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
779 program_transform_name
792 enable_option_checking
801 enable_dependency_tracking
841 enable_pulseaudio_shared
849 enable_fusionsound_shared
853 enable_libsamplerate_shared
857 enable_video_wayland_qt_touch
858 enable_wayland_shared
866 enable_video_x11_xcursor
867 enable_video_x11_xdbe
868 enable_video_x11_xinerama
869 enable_video_x11_xinput
870 enable_video_x11_xrandr
871 enable_video_x11_scrnsaver
872 enable_video_x11_xshape
878 enable_video_directfb
879 enable_directfb_shared
884 enable_video_opengles
885 enable_video_opengles1
886 enable_video_opengles2
903 enable_backgrounding_signal
904 enable_foregrounding_signal
905 enable_joystick_virtual
909 ac_precious_vars='build_alias
948 # Initialize some variables set by options.
950 ac_init_version=false
951 ac_unrecognized_opts=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name=s,x,x,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1008 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1255 -site=* | --site=* | --sit=*)
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error $? "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information"
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error $? "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1364 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1382 # Be sure to have absolute directory names.
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 elif test "x$build_alias" != "x$host_alias"; then
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error $? "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error $? "pwd does not report name of working directory"
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1452 ac_srcdir_defaulted=no
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 # Report the --help message.
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1486 \`configure' configures this package to adapt to many kinds of systems.
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1493 Defaults for the options are specified in brackets.
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking ...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1517 For better control, use the options below.
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1544 --x-includes=DIR X include files are in DIR
1545 --x-libraries=DIR X library files are in DIR
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 if test -n "$ac_init_help"; then
1558 --disable-option-checking ignore unrecognized --enable/--with options
1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --enable-assertions Enable internal sanity checks
1567 (auto/disabled/release/enabled/paranoid)
1569 --enable-dependency-tracking
1570 Use gcc -MMD -MT dependency tracking [[default=yes]]
1571 --enable-libc Use the system C library [[default=yes]]
1572 --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
1573 --enable-atomic Enable the atomic operations subsystem
1575 --enable-audio Enable the audio subsystem [[default=yes]]
1576 --enable-video Enable the video subsystem [[default=yes]]
1577 --enable-render Enable the render subsystem [[default=yes]]
1578 --enable-events Enable the events subsystem [[default=yes]]
1579 --enable-joystick Enable the joystick subsystem [[default=yes]]
1580 --enable-haptic Enable the haptic (force feedback) subsystem
1582 --enable-sensor Enable the sensor subsystem [[default=yes]]
1583 --enable-power Enable the power subsystem [[default=yes]]
1584 --enable-filesystem Enable the filesystem subsystem [[default=yes]]
1585 --enable-threads Enable the threading subsystem [[default=yes]]
1586 --enable-timers Enable the timer subsystem [[default=yes]]
1587 --enable-file Enable the file subsystem [[default=yes]]
1588 --enable-loadso Enable the shared object loading subsystem
1590 --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
1591 --enable-assembly Enable assembly routines [[default=yes]]
1592 --enable-ssemath Allow GCC to use SSE floating point math
1594 --enable-mmx use MMX assembly routines [[default=yes]]
1595 --enable-3dnow use 3DNow! assembly routines [[default=yes]]
1596 --enable-sse use SSE assembly routines [[default=yes]]
1597 --enable-sse2 use SSE2 assembly routines [[default=maybe]]
1598 --enable-sse3 use SSE3 assembly routines [[default=maybe]]
1599 --enable-altivec use Altivec assembly routines [[default=yes]]
1600 --enable-oss support the OSS audio API [[default=maybe]]
1601 --enable-alsa support the ALSA audio API [[default=yes]]
1602 --disable-alsatest Do not try to compile and run a test Alsa program
1603 --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
1604 --enable-jack use JACK audio [[default=yes]]
1605 --enable-jack-shared dynamically load JACK audio support [[default=yes]]
1606 --enable-esd support the Enlightened Sound Daemon [[default=yes]]
1607 --disable-esdtest Do not try to compile and run a test ESD program
1608 --enable-esd-shared dynamically load ESD audio support [[default=yes]]
1609 --enable-pulseaudio use PulseAudio [[default=yes]]
1610 --enable-pulseaudio-shared
1611 dynamically load PulseAudio support [[default=yes]]
1612 --enable-arts support the Analog Real Time Synthesizer
1614 --enable-arts-shared dynamically load aRts audio support [[default=yes]]
1615 --enable-nas support the NAS audio API [[default=yes]]
1616 --enable-nas-shared dynamically load NAS audio support [[default=yes]]
1617 --enable-sndio support the sndio audio API [[default=yes]]
1618 --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
1619 --enable-fusionsound use FusionSound audio driver [[default=no]]
1620 --enable-fusionsound-shared
1621 dynamically load fusionsound audio support
1623 --enable-diskaudio support the disk writer audio driver [[default=yes]]
1624 --enable-dummyaudio support the dummy audio driver [[default=yes]]
1625 --enable-libsamplerate use libsamplerate for audio rate conversion
1627 --enable-libsamplerate-shared
1628 dynamically load libsamplerate [[default=yes]]
1629 --enable-arm-simd use SIMD assembly blitters on ARM [[default=no]]
1630 --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
1631 --enable-video-wayland use Wayland video driver [[default=yes]]
1632 --enable-video-wayland-qt-touch
1633 QtWayland server support for Wayland video driver
1635 --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
1636 --enable-video-tizen use tizen video driver [[default=yes]]
1637 --enable-video-mir use Mir video driver [[default=yes]]
1638 --enable-mir-shared dynamically load Mir support [[default=maybe]]
1639 --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
1640 --enable-video-x11 use X11 video driver [[default=yes]]
1641 --enable-x11-shared dynamically load X11 support [[default=maybe]]
1642 --enable-video-x11-xcursor
1643 enable X11 Xcursor support [[default=yes]]
1644 --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
1645 --enable-video-x11-xinerama
1646 enable X11 Xinerama support [[default=yes]]
1647 --enable-video-x11-xinput
1648 enable X11 XInput extension for manymouse, tablets,
1650 --enable-video-x11-xrandr
1651 enable X11 Xrandr extension for fullscreen
1653 --enable-video-x11-scrnsaver
1654 enable X11 screensaver extension [[default=yes]]
1655 --enable-video-x11-xshape
1656 enable X11 XShape support [[default=yes]]
1657 --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
1658 --enable-video-vivante use Vivante EGL video driver [[default=yes]]
1659 --enable-video-cocoa use Cocoa video driver [[default=yes]]
1660 --enable-video-metal include Metal support [[default=yes]]
1661 --enable-render-metal enable the Metal render driver [[default=yes]]
1662 --enable-video-directfb use DirectFB video driver [[default=no]]
1663 --enable-directfb-shared
1664 dynamically load directfb support [[default=yes]]
1665 --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
1666 --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
1667 --enable-video-dummy use dummy video driver [[default=yes]]
1668 --enable-video-opengl include OpenGL support [[default=yes]]
1669 --enable-video-opengles include OpenGL ES support [[default=yes]]
1670 --enable-video-opengles1
1671 include OpenGL ES 1.1 support [[default=yes]]
1672 --enable-video-opengles2
1673 include OpenGL ES 2.0 support [[default=yes]]
1674 --enable-video-vulkan include Vulkan support [[default=yes]]
1675 --enable-libudev enable libudev support [[default=yes]]
1676 --enable-dbus enable D-Bus support [[default=yes]]
1677 --enable-ime enable IME support [[default=yes]]
1678 --enable-ibus enable IBus support [[default=yes]]
1679 --enable-fcitx enable fcitx support [[default=yes]]
1680 --enable-joystick-mfi include macOS MFI joystick support [[default=yes]]
1681 --enable-pthreads use POSIX threads for multi-threading
1683 --enable-pthread-sem use pthread semaphores [[default=yes]]
1684 --enable-directx use DirectX for Windows audio/video [[default=yes]]
1685 --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
1686 --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
1687 --enable-hidapi use HIDAPI for low level joystick drivers
1689 --enable-hidapi-libusb use libusb for low level joystick drivers
1691 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1692 UNIX [[default=yes]]
1693 --enable-rpath use an rpath when linking SDL [[default=yes]]
1694 --enable-backgrounding-signal
1695 number to use for magic backgrounding signal or 'no'
1697 --enable-foregrounding-signal
1698 number to use for magic foregrounding signal or 'no'
1700 --enable-joystick-virtual
1701 enable virtual joystick APIs [[default=yes]]
1702 --enable-render-d3d enable the Direct3D render driver [[default=yes]]
1703 --enable-sdl2-config Install sdl2-config [default=yes]
1706 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1707 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1708 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1710 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1711 --with-sysroot=DIR Search for dependent libraries within DIR
1712 (or the compiler's sysroot if not specified).
1713 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1714 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1715 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1716 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1717 --with-x use the X Window System
1719 Some influential environment variables:
1720 CC C compiler command
1721 CFLAGS C compiler flags
1722 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1723 nonstandard directory <lib dir>
1724 LIBS libraries to pass to the linker, e.g. -l<library>
1725 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1726 you have headers in a nonstandard directory <include dir>
1728 CXX C++ compiler command
1729 CXXFLAGS C++ compiler flags
1730 CXXCPP C++ preprocessor
1731 PKG_CONFIG path to pkg-config utility
1733 directories to add to pkg-config's search path
1735 path overriding pkg-config's built-in search path
1736 JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
1737 JACK_LIBS linker flags for JACK, overriding pkg-config
1739 C compiler flags for PULSEAUDIO, overriding pkg-config
1741 linker flags for PULSEAUDIO, overriding pkg-config
1743 C compiler flags for FUSIONSOUND, overriding pkg-config
1745 linker flags for FUSIONSOUND, overriding pkg-config
1746 RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
1747 RPI_LIBS linker flags for RPI, overriding pkg-config
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 C compiler flags for DIRECTFB, overriding pkg-config
1752 linker flags for DIRECTFB, overriding pkg-config
1754 C compiler flags for LIBDRM, overriding pkg-config
1755 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1757 C compiler flags for LIBGBM, overriding pkg-config
1758 LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
1759 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1760 DBUS_LIBS linker flags for DBUS, overriding pkg-config
1761 IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
1762 IBUS_LIBS linker flags for IBUS, overriding pkg-config
1764 C compiler flags for LIBUSB, overriding pkg-config
1765 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1767 Use these variables to override the choices made by `configure' or to help
1768 it to find libraries and programs with nonstandard names/locations.
1770 Report bugs to the package provider.
1775 if test "$ac_init_help" = "recursive"; then
1776 # If there are subdirs, report their specific --help.
1777 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1778 test -d "$ac_dir" ||
1779 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1787 # A ".." for each directory in $ac_dir_suffix.
1788 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1789 case $ac_top_builddir_sub in
1790 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1791 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1794 ac_abs_top_builddir=$ac_pwd
1795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1796 # for backward compatibility:
1797 ac_top_builddir=$ac_top_build_prefix
1800 .) # We are building in place.
1802 ac_top_srcdir=$ac_top_builddir_sub
1803 ac_abs_top_srcdir=$ac_pwd ;;
1804 [\\/]* | ?:[\\/]* ) # Absolute name.
1805 ac_srcdir=$srcdir$ac_dir_suffix;
1806 ac_top_srcdir=$srcdir
1807 ac_abs_top_srcdir=$srcdir ;;
1809 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1810 ac_top_srcdir=$ac_top_build_prefix$srcdir
1811 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815 cd "$ac_dir" || { ac_status=$?; continue; }
1816 # Check for guested configure.
1817 if test -f "$ac_srcdir/configure.gnu"; then
1819 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1820 elif test -f "$ac_srcdir/configure"; then
1822 $SHELL "$ac_srcdir/configure" --help=recursive
1824 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826 cd "$ac_pwd" || { ac_status=$?; break; }
1830 test -n "$ac_init_help" && exit $ac_status
1831 if $ac_init_version; then
1834 generated by GNU Autoconf 2.69
1836 Copyright (C) 2012 Free Software Foundation, Inc.
1837 This configure script is free software; the Free Software Foundation
1838 gives unlimited permission to copy, distribute and modify it.
1843 ## ------------------------ ##
1844 ## Autoconf initialization. ##
1845 ## ------------------------ ##
1847 # ac_fn_c_try_compile LINENO
1848 # --------------------------
1849 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext
1854 if { { ac_try="$ac_compile"
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_compile") 2>conftest.err
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest.$ac_objext; then :
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_compile
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext conftest$ac_exeext
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>conftest.err
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest$ac_exeext && {
1911 test "$cross_compiling" = yes ||
1912 test -x conftest$ac_exeext
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_c_try_link
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_try_cpp LINENO
1963 # ----------------------
1964 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } > conftest.i && {
1984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2056 #define $2 innocuous_$2
2058 /* System header to define __stub macros and hopefully few prototypes,
2059 which can conflict with char $2 (); below.
2060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061 <limits.h> exists even on freestanding compilers. */
2064 # include <limits.h>
2066 # include <assert.h>
2071 /* Override any GCC internal prototype to avoid an error.
2072 Use char because int might match the return type of a GCC
2073 builtin and then its argument prototype would still apply. */
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined __stub_$2 || defined __stub___$2
2093 if ac_fn_c_try_link "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext \
2099 conftest$ac_exeext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_func
2108 # ac_fn_cxx_try_compile LINENO
2109 # ----------------------------
2110 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2111 ac_fn_cxx_try_compile ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 rm -f conftest.$ac_objext
2115 if { { ac_try="$ac_compile"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_compile") 2>conftest.err
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && {
2131 test -z "$ac_cxx_werror_flag" ||
2132 test ! -s conftest.err
2133 } && test -s conftest.$ac_objext; then :
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status $ac_retval
2144 } # ac_fn_cxx_try_compile
2146 # ac_fn_cxx_try_cpp LINENO
2147 # ------------------------
2148 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_cxx_try_cpp ()
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 if { { ac_try="$ac_cpp conftest.$ac_ext"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } > conftest.i && {
2168 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2169 test ! -s conftest.err
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2181 } # ac_fn_cxx_try_cpp
2183 # ac_fn_cxx_try_link LINENO
2184 # -------------------------
2185 # Try to link conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_link ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 rm -f conftest.$ac_objext conftest$ac_exeext
2190 if { { ac_try="$ac_link"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_link") 2>conftest.err
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && {
2206 test -z "$ac_cxx_werror_flag" ||
2207 test ! -s conftest.err
2208 } && test -s conftest$ac_exeext && {
2209 test "$cross_compiling" = yes ||
2210 test -x conftest$ac_exeext
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2220 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2221 # interfere with the next link command; also delete a directory that is
2222 # left behind by Apple's compiler. We do this before executing the actions.
2223 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 as_fn_set_status $ac_retval
2227 } # ac_fn_cxx_try_link
2229 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2230 # -------------------------------------------------------
2231 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2232 # the include files in INCLUDES and setting the cache variable VAR
2234 ac_fn_c_check_header_mongrel ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 if eval \${$3+:} false; then :
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241 $as_echo_n "(cached) " >&6
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2247 # Is the header compilable?
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2249 $as_echo_n "checking $2 usability... " >&6; }
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 ac_header_compiler=yes
2258 ac_header_compiler=no
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2262 $as_echo "$ac_header_compiler" >&6; }
2264 # Is the header present?
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2266 $as_echo_n "checking $2 presence... " >&6; }
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 if ac_fn_c_try_cpp "$LINENO"; then :
2272 ac_header_preproc=yes
2274 ac_header_preproc=no
2276 rm -f conftest.err conftest.i conftest.$ac_ext
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2278 $as_echo "$ac_header_preproc" >&6; }
2280 # So? What about this header?
2281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2284 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2286 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2290 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2292 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2294 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2296 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2298 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \${$3+:} false; then :
2304 $as_echo_n "(cached) " >&6
2306 eval "$3=\$ac_header_compiler"
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2314 } # ac_fn_c_check_header_mongrel
2316 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2317 # -------------------------------------------
2318 # Tests whether TYPE exists after having included INCLUDES, setting cache
2319 # variable VAR accordingly.
2320 ac_fn_c_check_type ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \${$3+:} false; then :
2326 $as_echo_n "(cached) " >&6
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2354 if ac_fn_c_try_compile "$LINENO"; then :
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_type
2370 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2371 # ----------------------------------------------------
2372 # Tries to find if the field MEMBER exists in type AGGR, after including
2373 # INCLUDES, setting cache variable VAR accordingly.
2374 ac_fn_c_check_member ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2378 $as_echo_n "checking for $2.$3... " >&6; }
2379 if eval \${$4+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2395 if ac_fn_c_try_compile "$LINENO"; then :
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2405 if (sizeof ac_aggr.$3)
2411 if ac_fn_c_try_compile "$LINENO"; then :
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 } # ac_fn_c_check_member
2426 cat >config.log <<_ACEOF
2427 This file contains any messages produced by compilers while
2428 running configure, to aid debugging if configure makes a mistake.
2430 It was created by $as_me, which was
2431 generated by GNU Autoconf 2.69. Invocation command line was
2443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir=.
2467 $as_echo "PATH: $as_dir"
2483 # Keep a trace of the command line.
2484 # Strip out --no-create and --no-recursion so they do not pile up.
2485 # Strip out --silent because we don't want to record it for future runs.
2486 # Also quote any args containing shell meta-characters.
2487 # Make two passes to allow for proper duplicate-argument suppression.
2491 ac_must_keep_next=false
2497 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2499 | -silent | --silent | --silen | --sile | --sil)
2502 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2507 as_fn_append ac_configure_args1 " '$ac_arg'"
2508 if test $ac_must_keep_next = true; then
2509 ac_must_keep_next=false # Got value, back to normal.
2512 *=* | --config-cache | -C | -disable-* | --disable-* \
2513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2515 | -with-* | --with-* | -without-* | --without-* | --x)
2516 case "$ac_configure_args0 " in
2517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2520 -* ) ac_must_keep_next=true ;;
2523 as_fn_append ac_configure_args " '$ac_arg'"
2528 { ac_configure_args0=; unset ac_configure_args0;}
2529 { ac_configure_args1=; unset ac_configure_args1;}
2531 # When interrupted or exit'd, cleanup temporary files, and complete
2532 # config.log. We remove comments because anyway the quotes in there
2533 # would cause problems or look ugly.
2534 # WARNING: Use '\'' to represent an apostrophe within the trap.
2535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2536 trap 'exit_status=$?
2537 # Save into config.log some information that might help in debugging.
2541 $as_echo "## ---------------- ##
2542 ## Cache variables. ##
2543 ## ---------------- ##"
2545 # The following way of writing the cache mishandles newlines in values,
2547 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2548 eval ac_val=\$$ac_var
2552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2556 _ | IFS | as_nl) ;; #(
2557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2558 *) { eval $ac_var=; unset $ac_var;} ;;
2563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2564 *${as_nl}ac_space=\ *)
2566 "s/'\''/'\''\\\\'\'''\''/g;
2567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2577 $as_echo "## ----------------- ##
2578 ## Output variables. ##
2579 ## ----------------- ##"
2581 for ac_var in $ac_subst_vars
2583 eval ac_val=\$$ac_var
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -n "$ac_subst_files"; then
2592 $as_echo "## ------------------- ##
2593 ## File substitutions. ##
2594 ## ------------------- ##"
2596 for ac_var in $ac_subst_files
2598 eval ac_val=\$$ac_var
2600 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2602 $as_echo "$ac_var='\''$ac_val'\''"
2607 if test -s confdefs.h; then
2608 $as_echo "## ----------- ##
2615 test "$ac_signal" != 0 &&
2616 $as_echo "$as_me: caught signal $ac_signal"
2617 $as_echo "$as_me: exit $exit_status"
2619 rm -f core *.core core.conftest.* &&
2620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2623 for ac_signal in 1 2 13 15; do
2624 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2629 rm -f -r conftest* confdefs.h
2631 $as_echo "/* confdefs.h */" > confdefs.h
2633 # Predefined preprocessor variables.
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_NAME "$PACKAGE_NAME"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_STRING "$PACKAGE_STRING"
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_URL "$PACKAGE_URL"
2660 # Let the site file select an alternate cache file if it wants to.
2661 # Prefer an explicitly selected file to automatically selected ones.
2664 if test -n "$CONFIG_SITE"; then
2665 # We do not want a PATH search for config.site.
2666 case $CONFIG_SITE in #((
2667 -*) ac_site_file1=./$CONFIG_SITE;;
2668 */*) ac_site_file1=$CONFIG_SITE;;
2669 *) ac_site_file1=./$CONFIG_SITE;;
2671 elif test "x$prefix" != xNONE; then
2672 ac_site_file1=$prefix/share/config.site
2673 ac_site_file2=$prefix/etc/config.site
2675 ac_site_file1=$ac_default_prefix/share/config.site
2676 ac_site_file2=$ac_default_prefix/etc/config.site
2678 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2680 test "x$ac_site_file" = xNONE && continue
2681 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2683 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2684 sed 's/^/| /' "$ac_site_file" >&5
2686 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 as_fn_error $? "failed to load site script $ac_site_file
2689 See \`config.log' for more details" "$LINENO" 5; }
2693 if test -r "$cache_file"; then
2694 # Some versions of bash will fail to source /dev/null (special files
2695 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2696 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2698 $as_echo "$as_me: loading cache $cache_file" >&6;}
2700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2701 *) . "./$cache_file";;
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2706 $as_echo "$as_me: creating cache $cache_file" >&6;}
2710 # Check that the precious variables saved in the cache have kept the same
2712 ac_cache_corrupted=false
2713 for ac_var in $ac_precious_vars; do
2714 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2715 eval ac_new_set=\$ac_env_${ac_var}_set
2716 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2717 eval ac_new_val=\$ac_env_${ac_var}_value
2718 case $ac_old_set,$ac_new_set in
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2726 ac_cache_corrupted=: ;;
2729 if test "x$ac_old_val" != "x$ac_new_val"; then
2730 # differences in whitespace do not lead to failure.
2731 ac_old_val_w=`echo x $ac_old_val`
2732 ac_new_val_w=`echo x $ac_new_val`
2733 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2736 ac_cache_corrupted=:
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2740 eval $ac_var=\$ac_old_val
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2743 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2745 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2748 # Pass precious variables to config.status.
2749 if test "$ac_new_set" = set; then
2751 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2752 *) ac_arg=$ac_var=$ac_new_val ;;
2754 case " $ac_configure_args " in
2755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2756 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2760 if $ac_cache_corrupted; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2765 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2767 ## -------------------- ##
2768 ## Main body of script. ##
2769 ## -------------------- ##
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779 ac_config_headers="$ac_config_headers include/SDL_config.h"
2782 for ac_dir in build-scripts "$srcdir"/build-scripts; do
2783 if test -f "$ac_dir/install-sh"; then
2785 ac_install_sh="$ac_aux_dir/install-sh -c"
2787 elif test -f "$ac_dir/install.sh"; then
2789 ac_install_sh="$ac_aux_dir/install.sh -c"
2791 elif test -f "$ac_dir/shtool"; then
2793 ac_install_sh="$ac_aux_dir/shtool install -c"
2797 if test -z "$ac_aux_dir"; then
2798 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
2801 # These three variables are undocumented and unsupported,
2802 # and are intended to be withdrawn in a future Autoconf release.
2803 # They can cause serious problems if a builder's source tree is in a directory
2804 # whose full name contains unusual characters.
2805 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2806 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2807 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2812 orig_CFLAGS="$CFLAGS"
2816 # Edit include/SDL_version.h and change the version, then:
2817 # SDL_MICRO_VERSION += 1;
2818 # SDL_INTERFACE_AGE += 1;
2819 # SDL_BINARY_AGE += 1;
2820 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2821 # if backwards compatibility has been broken,
2822 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2826 SDL_MICRO_VERSION=14
2829 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2838 # libtool versioning
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2842 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2847 macro_version='2.4.2'
2848 macro_revision='1.3337'
2862 ltmain="$ac_aux_dir/ltmain.sh"
2864 ac_build_alias=$build_alias
2865 ac_cv_build=$build_alias
2867 $as_echo "ac_cv_build : $ac_cv_build"
2868 $as_echo "ac_build_alias : $ac_build_alias"
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2872 $as_echo "$ac_cv_build" >&6; }
2873 case $ac_cv_build in
2875 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2878 ac_save_IFS=$IFS; IFS='-'
2884 # Remember, the first character of IFS is used to create $*,
2885 # except with old shells:
2888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2892 $as_echo_n "checking host system type... " >&6; }
2893 ac_cv_host=$host_alias
2894 $as_echo "ac_cv_host : $ac_cv_host"
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2897 $as_echo "$ac_cv_host" >&6; }
2900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2903 ac_save_IFS=$IFS; IFS='-'
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2916 # Backslashify metacharacters that are still active within
2917 # double-quoted strings.
2918 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2920 # Same as above, but do not quote variable references.
2921 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2923 # Sed substitution to delay expansion of an escaped shell variable in a
2924 # double_quote_subst'ed string.
2925 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2927 # Sed substitution to delay expansion of an escaped single quote.
2928 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2930 # Sed substitution to avoid accidental globbing in evaled expressions
2931 no_glob_subst='s/\*/\\\*/g'
2933 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2934 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2935 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2938 $as_echo_n "checking how to print strings... " >&6; }
2939 # Test print first, because it will be a builtin if present.
2940 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2941 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2943 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2946 # Use this function as a fallback that always works.
2947 func_fallback_echo ()
2949 eval 'cat <<_LTECHO_EOF
2953 ECHO='func_fallback_echo'
2956 # func_echo_all arg...
2957 # Invoke $ECHO with all args, space-separated.
2964 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2965 $as_echo "printf" >&6; } ;;
2966 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2967 $as_echo "print -r" >&6; } ;;
2968 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2969 $as_echo "cat" >&6; } ;;
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 if test -n "$ac_tool_prefix"; then
2991 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2992 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994 $as_echo_n "checking for $ac_word... " >&6; }
2995 if ${ac_cv_prog_CC+:} false; then :
2996 $as_echo_n "(cached) " >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 $as_echo "$CC" >&6; }
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3029 if test -z "$ac_cv_prog_CC"; then
3031 # Extract the first word of "gcc", so it can be a program name with args.
3032 set dummy gcc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_ac_ct_CC="gcc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 $as_echo "$ac_ct_CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3067 if test "x$ac_ct_CC" = x; then
3070 case $cross_compiling:$ac_tool_warned in
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074 ac_tool_warned=yes ;;
3082 if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3085 set dummy ${ac_tool_prefix}cc; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_CC="${ac_tool_prefix}cc"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3123 if test -z "$CC"; then
3124 # Extract the first word of "cc", so it can be a program name with args.
3125 set dummy cc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir=.
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3143 ac_prog_rejected=yes
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test $ac_prog_rejected = yes; then
3155 # We found a bogon in the path, so make sure we never use it.
3156 set dummy $ac_cv_prog_CC
3158 if test $# != 0; then
3159 # We chose a different compiler from the bogus one.
3160 # However, it has the same basename, so the bogon will be chosen
3161 # first if we set CC to just the basename; use the full file name.
3163 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
3181 for ac_prog in cl.exe
3183 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3184 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3220 test -n "$CC" && break
3223 if test -z "$CC"; then
3225 for ac_prog in cl.exe
3227 # Extract the first word of "$ac_prog", so it can be a program name with args.
3228 set dummy $ac_prog; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 if test -n "$ac_ct_CC"; then
3235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244 ac_cv_prog_ac_ct_CC="$ac_prog"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3255 if test -n "$ac_ct_CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3257 $as_echo "$ac_ct_CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3264 test -n "$ac_ct_CC" && break
3267 if test "x$ac_ct_CC" = x; then
3270 case $cross_compiling:$ac_tool_warned in
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3274 ac_tool_warned=yes ;;
3283 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3285 as_fn_error $? "no acceptable C compiler found in \$PATH
3286 See \`config.log' for more details" "$LINENO" 5; }
3288 # Provide some information about the compiler.
3289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3292 for ac_option in --version -v -V -qversion; do
3293 { { ac_try="$ac_compiler $ac_option >&5"
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3302 if test -s conftest.err; then
3304 ... rest of stderr output deleted ...
3305 10q' conftest.err >conftest.er1
3306 cat conftest.er1 >&5
3308 rm -f conftest.er1 conftest.err
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3324 ac_clean_files_save=$ac_clean_files
3325 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3326 # Try to create an executable without -o first, disregard a.out.
3327 # It will help us diagnose broken compilers, and finding out an intuition
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3330 $as_echo_n "checking whether the C compiler works... " >&6; }
3331 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3333 # The possible output files:
3334 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337 for ac_file in $ac_files
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346 if { { ac_try="$ac_link_default"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353 (eval "$ac_link_default") 2>&5
3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356 test $ac_status = 0; }; then :
3357 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3358 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3359 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3360 # so that the user can short-circuit this test for compilers unknown to
3362 for ac_file in $ac_files ''
3364 test -f "$ac_file" || continue
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 # We found the default executable, but exeext='' is most
3373 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 # We set ac_cv_exeext here because the later test for it is not
3378 # safe: cross compilers may not add the suffix if given an `-o'
3379 # argument, so we may need to know it at that point already.
3380 # Even if this section looks crufty: it has the advantage of
3387 test "$ac_cv_exeext" = no && ac_cv_exeext=
3392 if test -z "$ac_file"; then :
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error 77 "C compiler cannot create executables
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3404 $as_echo "yes" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3407 $as_echo_n "checking for C compiler default output file name... " >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3409 $as_echo "$ac_file" >&6; }
3410 ac_exeext=$ac_cv_exeext
3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3415 $as_echo_n "checking for suffix of executables... " >&6; }
3416 if { { ac_try="$ac_link"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_link") 2>&5
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3428 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3429 # work properly (i.e., refer to `conftest.exe'), while it won't with
3431 for ac_file in conftest.exe conftest conftest.*; do
3432 test -f "$ac_file" || continue
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3444 See \`config.log' for more details" "$LINENO" 5; }
3446 rm -f conftest conftest$ac_cv_exeext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3448 $as_echo "$ac_cv_exeext" >&6; }
3450 rm -f conftest.$ac_ext
3451 EXEEXT=$ac_cv_exeext
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3459 FILE *f = fopen ("conftest.out", "w");
3460 return ferror (f) || fclose (f) != 0;
3466 ac_clean_files="$ac_clean_files conftest.out"
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3470 $as_echo_n "checking whether we are cross compiling... " >&6; }
3471 if test "$cross_compiling" != yes; then
3472 { { ac_try="$ac_link"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_link") 2>&5
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }
3483 if { ac_try='./conftest$ac_cv_exeext'
3484 { { case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_try") 2>&5
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; }; then
3496 if test "$cross_compiling" = maybe; then
3499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501 as_fn_error $? "cannot run C compiled programs.
3502 If you meant to cross compile, use \`--host'.
3503 See \`config.log' for more details" "$LINENO" 5; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3508 $as_echo "$cross_compiling" >&6; }
3510 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3511 ac_clean_files=$ac_clean_files_save
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3513 $as_echo_n "checking for suffix of object files... " >&6; }
3514 if ${ac_cv_objext+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 rm -f conftest.o conftest.obj
3529 if { { ac_try="$ac_compile"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compile") 2>&5
3538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539 test $ac_status = 0; }; then :
3540 for ac_file in conftest.o conftest.obj conftest.*; do
3541 test -f "$ac_file" || continue;
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3544 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "cannot compute suffix of object files: cannot compile
3555 See \`config.log' for more details" "$LINENO" 5; }
3557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3560 $as_echo "$ac_cv_objext" >&6; }
3561 OBJEXT=$ac_cv_objext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3564 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3565 if ${ac_cv_c_compiler_gnu+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3582 if ac_fn_c_try_compile "$LINENO"; then :
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3592 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3593 if test $ac_compiler_gnu = yes; then
3598 ac_test_CFLAGS=${CFLAGS+set}
3599 ac_save_CFLAGS=$CFLAGS
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3601 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3602 if ${ac_cv_prog_cc_g+:} false; then :
3603 $as_echo_n "(cached) " >&6
3605 ac_save_c_werror_flag=$ac_c_werror_flag
3606 ac_c_werror_flag=yes
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3620 if ac_fn_c_try_compile "$LINENO"; then :
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3635 if ac_fn_c_try_compile "$LINENO"; then :
3638 ac_c_werror_flag=$ac_save_c_werror_flag
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3651 if ac_fn_c_try_compile "$LINENO"; then :
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_c_werror_flag=$ac_save_c_werror_flag
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3662 $as_echo "$ac_cv_prog_cc_g" >&6; }
3663 if test "$ac_test_CFLAGS" = set; then
3664 CFLAGS=$ac_save_CFLAGS
3665 elif test $ac_cv_prog_cc_g = yes; then
3666 if test "$GCC" = yes; then
3672 if test "$GCC" = yes; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3679 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3680 if ${ac_cv_prog_cc_c89+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 ac_cv_prog_cc_c89=no
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3691 struct buf { int x; };
3692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3693 static char *e (p, i)
3699 static char *f (char * (*g) (char **, int), char **p, ...)
3704 s = g (p, va_arg (v,int));
3709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3710 function prototypes and stuff, but not '\xHH' hex character constants.
3711 These don't provoke an error unfortunately, instead are silently treated
3712 as 'x'. The following induces an error, until -std is added to get
3713 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3714 array size at least. It's necessary to write '\x00'==0 to get something
3715 that's true only with -std. */
3716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3719 inside strings and character constants. */
3721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3723 int test (int i, double x);
3724 struct s1 {int (*f) (int a);};
3725 struct s2 {int (*f) (double a);};
3726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3738 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3740 CC="$ac_save_CC $ac_arg"
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_c89=$ac_arg
3744 rm -f core conftest.err conftest.$ac_objext
3745 test "x$ac_cv_prog_cc_c89" != "xno" && break
3747 rm -f conftest.$ac_ext
3752 case "x$ac_cv_prog_cc_c89" in
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3760 CC="$CC $ac_cv_prog_cc_c89"
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3762 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3764 if test "x$ac_cv_prog_cc_c89" != xno; then :
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3776 if ${ac_cv_path_SED+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3780 for ac_i in 1 2 3 4 5 6 7; do
3781 ac_script="$ac_script$as_nl$ac_script"
3783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3784 { ac_script=; unset ac_script;}
3785 if test -z "$SED"; then
3786 ac_path_SED_found=false
3787 # Loop through the user's path and test for each of PROGNAME-LIST
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_prog in sed gsed; do
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3796 as_fn_executable_p "$ac_path_SED" || continue
3797 # Check for GNU ac_path_SED and select it if it is found.
3798 # Check for GNU $ac_path_SED
3799 case `"$ac_path_SED" --version 2>&1` in
3801 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3804 $as_echo_n 0123456789 >"conftest.in"
3807 cat "conftest.in" "conftest.in" >"conftest.tmp"
3808 mv "conftest.tmp" "conftest.in"
3809 cp "conftest.in" "conftest.nl"
3810 $as_echo '' >> "conftest.nl"
3811 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3813 as_fn_arith $ac_count + 1 && ac_count=$as_val
3814 if test $ac_count -gt ${ac_path_SED_max-0}; then
3815 # Best one so far, save it but keep looking for a better one
3816 ac_cv_path_SED="$ac_path_SED"
3817 ac_path_SED_max=$ac_count
3819 # 10*(2^10) chars as input seems more than enough
3820 test $ac_count -gt 10 && break
3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825 $ac_path_SED_found && break 3
3830 if test -z "$ac_cv_path_SED"; then
3831 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3839 $as_echo "$ac_cv_path_SED" >&6; }
3840 SED="$ac_cv_path_SED"
3843 test -z "$SED" && SED=sed
3844 Xsed="$SED -e 1s/^X//"
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3858 if ${ac_cv_path_GREP+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -z "$GREP"; then
3862 ac_path_GREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in grep ggrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3872 as_fn_executable_p "$ac_path_GREP" || continue
3873 # Check for GNU ac_path_GREP and select it if it is found.
3874 # Check for GNU $ac_path_GREP
3875 case `"$ac_path_GREP" --version 2>&1` in
3877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3880 $as_echo_n 0123456789 >"conftest.in"
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 $as_echo 'GREP' >> "conftest.nl"
3887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 as_fn_arith $ac_count + 1 && ac_count=$as_val
3890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_GREP="$ac_path_GREP"
3893 ac_path_GREP_max=$ac_count
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3901 $ac_path_GREP_found && break 3
3906 if test -z "$ac_cv_path_GREP"; then
3907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3910 ac_cv_path_GREP=$GREP
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3915 $as_echo "$ac_cv_path_GREP" >&6; }
3916 GREP="$ac_cv_path_GREP"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3920 $as_echo_n "checking for egrep... " >&6; }
3921 if ${ac_cv_path_EGREP+:} false; then :
3922 $as_echo_n "(cached) " >&6
3924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3925 then ac_cv_path_EGREP="$GREP -E"
3927 if test -z "$EGREP"; then
3928 ac_path_EGREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in egrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3938 as_fn_executable_p "$ac_path_EGREP" || continue
3939 # Check for GNU ac_path_EGREP and select it if it is found.
3940 # Check for GNU $ac_path_EGREP
3941 case `"$ac_path_EGREP" --version 2>&1` in
3943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3946 $as_echo_n 0123456789 >"conftest.in"
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo 'EGREP' >> "conftest.nl"
3953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 as_fn_arith $ac_count + 1 && ac_count=$as_val
3956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_EGREP="$ac_path_EGREP"
3959 ac_path_EGREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967 $ac_path_EGREP_found && break 3
3972 if test -z "$ac_cv_path_EGREP"; then
3973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976 ac_cv_path_EGREP=$EGREP
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3982 $as_echo "$ac_cv_path_EGREP" >&6; }
3983 EGREP="$ac_cv_path_EGREP"
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3987 $as_echo_n "checking for fgrep... " >&6; }
3988 if ${ac_cv_path_FGREP+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3992 then ac_cv_path_FGREP="$GREP -F"
3994 if test -z "$FGREP"; then
3995 ac_path_FGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in fgrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4005 as_fn_executable_p "$ac_path_FGREP" || continue
4006 # Check for GNU ac_path_FGREP and select it if it is found.
4007 # Check for GNU $ac_path_FGREP
4008 case `"$ac_path_FGREP" --version 2>&1` in
4010 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4013 $as_echo_n 0123456789 >"conftest.in"
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 $as_echo 'FGREP' >> "conftest.nl"
4020 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 as_fn_arith $ac_count + 1 && ac_count=$as_val
4023 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_FGREP="$ac_path_FGREP"
4026 ac_path_FGREP_max=$ac_count
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 $ac_path_FGREP_found && break 3
4039 if test -z "$ac_cv_path_FGREP"; then
4040 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4043 ac_cv_path_FGREP=$FGREP
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4049 $as_echo "$ac_cv_path_FGREP" >&6; }
4050 FGREP="$ac_cv_path_FGREP"
4053 test -z "$GREP" && GREP=grep
4073 # Check whether --with-gnu-ld was given.
4074 if test "${with_gnu_ld+set}" = set; then :
4075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4081 if test "$GCC" = yes; then
4082 # Check if gcc -print-prog-name=ld gives a path.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4084 $as_echo_n "checking for ld used by $CC... " >&6; }
4087 # gcc leaves a trailing carriage return which upsets mingw
4088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4093 # Accept absolute paths.
4095 re_direlt='/[^/][^/]*/\.\./'
4096 # Canonicalize the pathname of ld
4097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4101 test -z "$LD" && LD="$ac_prog"
4104 # If it fails, then pretend we aren't using GCC.
4108 # If it is relative, then search for the first ld in PATH.
4112 elif test "$with_gnu_ld" = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4114 $as_echo_n "checking for GNU ld... " >&6; }
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4117 $as_echo_n "checking for non-GNU ld... " >&6; }
4119 if ${lt_cv_path_LD+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 if test -z "$LD"; then
4123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124 for ac_dir in $PATH; do
4126 test -z "$ac_dir" && ac_dir=.
4127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128 lt_cv_path_LD="$ac_dir/$ac_prog"
4129 # Check to see if the program is GNU ld. I'd rather use --version,
4130 # but apparently some variants of GNU ld only accept -v.
4131 # Break only if it was the GNU/non-GNU ld that we prefer.
4132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134 test "$with_gnu_ld" != no && break
4137 test "$with_gnu_ld" != yes && break
4144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4149 if test -n "$LD"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4151 $as_echo "$LD" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4156 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4158 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4159 if ${lt_cv_prog_gnu_ld+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4163 case `$LD -v 2>&1 </dev/null` in
4164 *GNU* | *'with BFD'*)
4165 lt_cv_prog_gnu_ld=yes
4168 lt_cv_prog_gnu_ld=no
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4173 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4174 with_gnu_ld=$lt_cv_prog_gnu_ld
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4185 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4186 if ${lt_cv_path_NM+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if test -n "$NM"; then
4190 # Let the user override the test.
4193 lt_nm_to_check="${ac_tool_prefix}nm"
4194 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4195 lt_nm_to_check="$lt_nm_to_check nm"
4197 for lt_tmp_nm in $lt_nm_to_check; do
4198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4199 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4201 test -z "$ac_dir" && ac_dir=.
4202 tmp_nm="$ac_dir/$lt_tmp_nm"
4203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4204 # Check to see if the nm accepts a BSD-compat flag.
4205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4206 # nm: unknown option "B" ignored
4207 # Tru64's nm complains that /dev/null is an invalid object file
4208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4209 */dev/null* | *'Invalid file or object type'*)
4210 lt_cv_path_NM="$tmp_nm -B"
4214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4216 lt_cv_path_NM="$tmp_nm -p"
4220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4221 continue # so that we can try to find one that supports BSD flags
4230 : ${lt_cv_path_NM=no}
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4234 $as_echo "$lt_cv_path_NM" >&6; }
4235 if test "$lt_cv_path_NM" != "no"; then
4238 # Didn't find any BSD compatible name lister, look for dumpbin.
4239 if test -n "$DUMPBIN"; then :
4240 # Let the user override the test.
4242 if test -n "$ac_tool_prefix"; then
4243 for ac_prog in dumpbin "link -dump"
4245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_prog_DUMPBIN+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 if test -n "$DUMPBIN"; then
4253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 DUMPBIN=$ac_cv_prog_DUMPBIN
4273 if test -n "$DUMPBIN"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4275 $as_echo "$DUMPBIN" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4282 test -n "$DUMPBIN" && break
4285 if test -z "$DUMPBIN"; then
4286 ac_ct_DUMPBIN=$DUMPBIN
4287 for ac_prog in dumpbin "link -dump"
4289 # Extract the first word of "$ac_prog", so it can be a program name with args.
4290 set dummy $ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4294 $as_echo_n "(cached) " >&6
4296 if test -n "$ac_ct_DUMPBIN"; then
4297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4317 if test -n "$ac_ct_DUMPBIN"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4319 $as_echo "$ac_ct_DUMPBIN" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$ac_ct_DUMPBIN" && break
4329 if test "x$ac_ct_DUMPBIN" = x; then
4332 case $cross_compiling:$ac_tool_warned in
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336 ac_tool_warned=yes ;;
4338 DUMPBIN=$ac_ct_DUMPBIN
4342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4344 DUMPBIN="$DUMPBIN -symbols"
4352 if test "$DUMPBIN" != ":"; then
4356 test -z "$NM" && NM=nm
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4364 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4365 if ${lt_cv_nm_interface+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 lt_cv_nm_interface="BSD nm"
4369 echo "int some_variable = 0;" > conftest.$ac_ext
4370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4371 (eval "$ac_compile" 2>conftest.err)
4372 cat conftest.err >&5
4373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4375 cat conftest.err >&5
4376 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4377 cat conftest.out >&5
4378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4379 lt_cv_nm_interface="MS dumpbin"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4384 $as_echo "$lt_cv_nm_interface" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4387 $as_echo_n "checking whether ln -s works... " >&6; }
4389 if test "$LN_S" = "ln -s"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4394 $as_echo "no, using $LN_S" >&6; }
4397 # find the maximum length of command line arguments
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4399 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4400 if ${lt_cv_sys_max_cmd_len+:} false; then :
4401 $as_echo_n "(cached) " >&6
4408 # On DJGPP, this test can blow up pretty badly due to problems in libc
4409 # (any single argument exceeding 2000 bytes causes a buffer overrun
4410 # during glob expansion). Even if it were fixed, the result of this
4411 # check would be larger than it should be.
4412 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4416 # Under GNU Hurd, this test is not required because there is
4417 # no limit to the length of command line arguments.
4418 # Libtool will interpret -1 as no limit whatsoever
4419 lt_cv_sys_max_cmd_len=-1;
4422 cygwin* | mingw* | cegcc*)
4423 # On Win9x/ME, this test blows up -- it succeeds, but takes
4424 # about 5 minutes as the teststring grows exponentially.
4425 # Worse, since 9x/ME are not pre-emptively multitasking,
4426 # you end up with a "frozen" computer, even though with patience
4427 # the test eventually succeeds (with a max line length of 256k).
4428 # Instead, let's just punt: use the minimum linelength reported by
4429 # all of the supported platforms: 8192 (on NT/2K/XP).
4430 lt_cv_sys_max_cmd_len=8192;
4434 # On MiNT this can take a long time and run out of memory.
4435 lt_cv_sys_max_cmd_len=8192;
4439 # On AmigaOS with pdksh, this test takes hours, literally.
4440 # So we just punt and use a minimum line length of 8192.
4441 lt_cv_sys_max_cmd_len=8192;
4444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4445 # This has been around since 386BSD, at least. Likely further.
4446 if test -x /sbin/sysctl; then
4447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4448 elif test -x /usr/sbin/sysctl; then
4449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4453 # And add a safety zone
4454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4460 lt_cv_sys_max_cmd_len=196608
4464 # The test takes a long time on OS/2.
4465 lt_cv_sys_max_cmd_len=8192
4469 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4470 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4471 # nice to cause kernel panics so lets avoid the loop below.
4472 # First set a reasonable default.
4473 lt_cv_sys_max_cmd_len=16384
4475 if test -x /sbin/sysconfig; then
4476 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4477 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4482 lt_cv_sys_max_cmd_len=102400
4484 sysv5* | sco5v6* | sysv4.2uw2*)
4485 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4486 if test -n "$kargmax"; then
4487 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4489 lt_cv_sys_max_cmd_len=32768
4493 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4494 if test -n "$lt_cv_sys_max_cmd_len"; then
4495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4496 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4498 # Make teststring a little bigger before we do anything with it.
4499 # a 1K string should be a reasonable start.
4500 for i in 1 2 3 4 5 6 7 8 ; do
4501 teststring=$teststring$teststring
4503 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4504 # If test is not a shell built-in, we'll probably end up computing a
4505 # maximum length that is only half of the actual maximum length, but
4507 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4508 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4509 test $i != 17 # 1/2 MB should be enough
4512 teststring=$teststring$teststring
4514 # Only check the string length outside the loop.
4515 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4517 # Add a significant safety factor because C++ compilers can tack on
4518 # massive amounts of additional arguments before passing them to the
4519 # linker. It appears as though 1/2 is a usable value.
4520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4527 if test -n $lt_cv_sys_max_cmd_len ; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4529 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4532 $as_echo "none" >&6; }
4534 max_cmd_len=$lt_cv_sys_max_cmd_len
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4546 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4547 # Try some XSI features
4550 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4552 && eval 'test $(( 1 + 1 )) -eq 2 \
4553 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4556 $as_echo "$xsi_shell" >&6; }
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4560 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4562 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4564 && lt_shell_append=yes
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4566 $as_echo "$lt_shell_append" >&6; }
4569 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4579 # test EBCDIC or ASCII
4580 case `echo X|tr X '\101'` in
4581 A) # ASCII based system
4582 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4583 lt_SP2NL='tr \040 \012'
4584 lt_NL2SP='tr \015\012 \040\040'
4586 *) # EBCDIC based system
4587 lt_SP2NL='tr \100 \n'
4588 lt_NL2SP='tr \r\n \100\100'
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4601 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4602 if ${lt_cv_to_host_file_cmd+:} false; then :
4603 $as_echo_n "(cached) " >&6
4608 *-*-mingw* ) # actually msys
4609 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4612 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4614 * ) # otherwise, assume *nix
4615 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4621 *-*-mingw* ) # actually msys
4622 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4625 lt_cv_to_host_file_cmd=func_convert_file_noop
4627 * ) # otherwise, assume *nix
4628 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4632 * ) # unhandled hosts (and "normal" native builds)
4633 lt_cv_to_host_file_cmd=func_convert_file_noop
4639 to_host_file_cmd=$lt_cv_to_host_file_cmd
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4641 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4648 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4649 if ${lt_cv_to_tool_file_cmd+:} false; then :
4650 $as_echo_n "(cached) " >&6
4652 #assume ordinary cross tools, or native build.
4653 lt_cv_to_tool_file_cmd=func_convert_file_noop
4657 *-*-mingw* ) # actually msys
4658 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4668 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4675 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4676 if ${lt_cv_ld_reload_flag+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 lt_cv_ld_reload_flag='-r'
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4682 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4683 reload_flag=$lt_cv_ld_reload_flag
4684 case $reload_flag in
4686 *) reload_flag=" $reload_flag" ;;
4688 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4690 cygwin* | mingw* | pw32* | cegcc*)
4691 if test "$GCC" != yes; then
4696 if test "$GCC" = yes; then
4697 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if ${ac_cv_prog_OBJDUMP+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 if test -n "$OBJDUMP"; then
4721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 OBJDUMP=$ac_cv_prog_OBJDUMP
4741 if test -n "$OBJDUMP"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4743 $as_echo "$OBJDUMP" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4751 if test -z "$ac_cv_prog_OBJDUMP"; then
4752 ac_ct_OBJDUMP=$OBJDUMP
4753 # Extract the first word of "objdump", so it can be a program name with args.
4754 set dummy objdump; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -n "$ac_ct_OBJDUMP"; then
4761 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4781 if test -n "$ac_ct_OBJDUMP"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4783 $as_echo "$ac_ct_OBJDUMP" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4789 if test "x$ac_ct_OBJDUMP" = x; then
4792 case $cross_compiling:$ac_tool_warned in
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4796 ac_tool_warned=yes ;;
4798 OBJDUMP=$ac_ct_OBJDUMP
4801 OBJDUMP="$ac_cv_prog_OBJDUMP"
4804 test -z "$OBJDUMP" && OBJDUMP=objdump
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4812 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4813 if ${lt_cv_deplibs_check_method+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 lt_cv_file_magic_cmd='$MAGIC_CMD'
4817 lt_cv_file_magic_test_file=
4818 lt_cv_deplibs_check_method='unknown'
4819 # Need to set the preceding variable on all platforms that support
4820 # interlibrary dependencies.
4821 # 'none' -- dependencies not supported.
4822 # `unknown' -- same as none, but documents that we really don't know.
4823 # 'pass_all' -- all dependencies passed with no checks.
4824 # 'test_compile' -- check by making test program.
4825 # 'file_magic [[regex]]' -- check by looking for files in library path
4826 # which responds to the $file_magic_cmd with a given extended regex.
4827 # If you have `file' or equivalent on your system and you're not sure
4828 # whether `pass_all' will *always* work, you probably want this one.
4832 lt_cv_deplibs_check_method=pass_all
4836 lt_cv_deplibs_check_method=pass_all
4840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4841 lt_cv_file_magic_cmd='/usr/bin/file -L'
4842 lt_cv_file_magic_test_file=/shlib/libc.so
4846 # func_win32_libid is a shell function defined in ltmain.sh
4847 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4848 lt_cv_file_magic_cmd='func_win32_libid'
4849 lt_cv_deplibs_check_method=pass_all
4853 # Base MSYS/MinGW do not provide the 'file' command needed by
4854 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4855 # unless we find 'file', for example because we are cross-compiling.
4856 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4857 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4859 lt_cv_file_magic_cmd='func_win32_libid'
4861 # Keep this pattern in sync with the one in func_win32_libid.
4862 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4863 lt_cv_file_magic_cmd='$OBJDUMP -f'
4865 lt_cv_deplibs_check_method=pass_all
4869 # use the weaker test based on 'objdump'. See mingw*.
4870 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4871 lt_cv_file_magic_cmd='$OBJDUMP -f'
4874 darwin* | rhapsody*)
4875 lt_cv_deplibs_check_method=pass_all
4878 freebsd* | dragonfly*)
4879 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4882 # Not sure whether the presence of OpenBSD here was a mistake.
4883 # Let's accept both of them until this is cleared up.
4884 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4885 lt_cv_file_magic_cmd=/usr/bin/file
4886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4890 lt_cv_deplibs_check_method=pass_all
4895 lt_cv_deplibs_check_method=pass_all
4899 lt_cv_deplibs_check_method=pass_all
4902 hpux10.20* | hpux11*)
4903 lt_cv_file_magic_cmd=/usr/bin/file
4906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4907 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4910 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]'
4911 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4914 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4915 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4921 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4925 irix5* | irix6* | nonstopux*)
4927 *-32|*"-32 ") libmagic=32-bit;;
4928 *-n32|*"-n32 ") libmagic=N32;;
4929 *-64|*"-64 ") libmagic=64-bit;;
4930 *) libmagic=never-match;;
4932 lt_cv_deplibs_check_method=pass_all
4935 # This must be glibc/ELF.
4936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4937 lt_cv_deplibs_check_method=pass_all
4941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4949 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4950 lt_cv_file_magic_cmd=/usr/bin/file
4951 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4955 lt_cv_deplibs_check_method=pass_all
4959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4966 osf3* | osf4* | osf5*)
4967 lt_cv_deplibs_check_method=pass_all
4971 lt_cv_deplibs_check_method=pass_all
4975 lt_cv_deplibs_check_method=pass_all
4978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4979 lt_cv_deplibs_check_method=pass_all
4983 case $host_vendor in
4985 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]'
4986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4989 lt_cv_deplibs_check_method=pass_all
4992 lt_cv_file_magic_cmd='/bin/file'
4993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4996 lt_cv_file_magic_cmd='/bin/file'
4997 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4998 lt_cv_file_magic_test_file=/lib/libc.so
5001 lt_cv_deplibs_check_method=pass_all
5004 lt_cv_deplibs_check_method=pass_all
5010 lt_cv_deplibs_check_method=pass_all
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5016 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5020 if test "$build" = "$host"; then
5023 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5026 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5032 file_magic_cmd=$lt_cv_file_magic_cmd
5033 deplibs_check_method=$lt_cv_deplibs_check_method
5034 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_DLLTOOL+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$DLLTOOL"; then
5066 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 DLLTOOL=$ac_cv_prog_DLLTOOL
5086 if test -n "$DLLTOOL"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5088 $as_echo "$DLLTOOL" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5096 if test -z "$ac_cv_prog_DLLTOOL"; then
5097 ac_ct_DLLTOOL=$DLLTOOL
5098 # Extract the first word of "dlltool", so it can be a program name with args.
5099 set dummy dlltool; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$ac_ct_DLLTOOL"; then
5106 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5126 if test -n "$ac_ct_DLLTOOL"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5128 $as_echo "$ac_ct_DLLTOOL" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5134 if test "x$ac_ct_DLLTOOL" = x; then
5137 case $cross_compiling:$ac_tool_warned in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned=yes ;;
5143 DLLTOOL=$ac_ct_DLLTOOL
5146 DLLTOOL="$ac_cv_prog_DLLTOOL"
5149 test -z "$DLLTOOL" && DLLTOOL=dlltool
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5158 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5159 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5160 $as_echo_n "(cached) " >&6
5162 lt_cv_sharedlib_from_linklib_cmd='unknown'
5165 cygwin* | mingw* | pw32* | cegcc*)
5166 # two different shell functions defined in ltmain.sh
5167 # decide which to use based on capabilities of $DLLTOOL
5168 case `$DLLTOOL --help 2>&1` in
5169 *--identify-strict*)
5170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5173 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5178 # fallback: assume linklib IS sharedlib
5179 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5185 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5186 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5187 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5196 if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if ${ac_cv_prog_AR+:} false; then :
5204 $as_echo_n "(cached) " >&6
5206 if test -n "$AR"; then
5207 ac_cv_prog_AR="$AR" # Let the user override the test.
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 if test -n "$AR"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5229 $as_echo "$AR" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5236 test -n "$AR" && break
5239 if test -z "$AR"; then
5243 # Extract the first word of "$ac_prog", so it can be a program name with args.
5244 set dummy $ac_prog; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 if test -n "$ac_ct_AR"; then
5251 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_ac_ct_AR="$ac_prog"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5271 if test -n "$ac_ct_AR"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5273 $as_echo "$ac_ct_AR" >&6; }
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5280 test -n "$ac_ct_AR" && break
5283 if test "x$ac_ct_AR" = x; then
5286 case $cross_compiling:$ac_tool_warned in
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5290 ac_tool_warned=yes ;;
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5310 $as_echo_n "checking for archiver @FILE support... " >&6; }
5311 if ${lt_cv_ar_at_file+:} false; then :
5312 $as_echo_n "(cached) " >&6
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 echo conftest.$ac_objext > conftest.lst
5328 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5330 (eval $lt_ar_try) 2>&5
5332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5333 test $ac_status = 0; }
5334 if test "$ac_status" -eq 0; then
5335 # Ensure the archiver fails upon bogus file names.
5336 rm -f conftest.$ac_objext libconftest.a
5337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5338 (eval $lt_ar_try) 2>&5
5340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5341 test $ac_status = 0; }
5342 if test "$ac_status" -ne 0; then
5346 rm -f conftest.* libconftest.a
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5353 $as_echo "$lt_cv_ar_at_file" >&6; }
5355 if test "x$lt_cv_ar_at_file" = xno; then
5358 archiver_list_spec=$lt_cv_ar_at_file
5367 if test -n "$ac_tool_prefix"; then
5368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}strip; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if ${ac_cv_prog_STRIP+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$STRIP"; then
5376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 STRIP=$ac_cv_prog_STRIP
5396 if test -n "$STRIP"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5398 $as_echo "$STRIP" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5406 if test -z "$ac_cv_prog_STRIP"; then
5408 # Extract the first word of "strip", so it can be a program name with args.
5409 set dummy strip; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$ac_ct_STRIP"; then
5416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_ac_ct_STRIP="strip"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5436 if test -n "$ac_ct_STRIP"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5438 $as_echo "$ac_ct_STRIP" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5444 if test "x$ac_ct_STRIP" = x; then
5447 case $cross_compiling:$ac_tool_warned in
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5456 STRIP="$ac_cv_prog_STRIP"
5459 test -z "$STRIP" && STRIP=:
5466 if test -n "$ac_tool_prefix"; then
5467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_RANLIB+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -n "$RANLIB"; then
5475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 RANLIB=$ac_cv_prog_RANLIB
5495 if test -n "$RANLIB"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5497 $as_echo "$RANLIB" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5505 if test -z "$ac_cv_prog_RANLIB"; then
5506 ac_ct_RANLIB=$RANLIB
5507 # Extract the first word of "ranlib", so it can be a program name with args.
5508 set dummy ranlib; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5512 $as_echo_n "(cached) " >&6
5514 if test -n "$ac_ct_RANLIB"; then
5515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_ac_ct_RANLIB="ranlib"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5535 if test -n "$ac_ct_RANLIB"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5537 $as_echo "$ac_ct_RANLIB" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5543 if test "x$ac_ct_RANLIB" = x; then
5546 case $cross_compiling:$ac_tool_warned in
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5550 ac_tool_warned=yes ;;
5552 RANLIB=$ac_ct_RANLIB
5555 RANLIB="$ac_cv_prog_RANLIB"
5558 test -z "$RANLIB" && RANLIB=:
5565 # Determine commands to create old-style static archives.
5566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5567 old_postinstall_cmds='chmod 644 $oldlib'
5568 old_postuninstall_cmds=
5570 if test -n "$RANLIB"; then
5573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5584 lock_old_archive_extraction=yes ;;
5586 lock_old_archive_extraction=no ;;
5609 for ac_prog in gawk mawk nawk awk
5611 # Extract the first word of "$ac_prog", so it can be a program name with args.
5612 set dummy $ac_prog; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_prog_AWK+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$AWK"; then
5619 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628 ac_cv_prog_AWK="$ac_prog"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 if test -n "$AWK"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5641 $as_echo "$AWK" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5648 test -n "$AWK" && break
5669 # If no C compiler was specified, use CC.
5672 # If no C compiler flags were specified, use CFLAGS.
5673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5675 # Allow CC to be a program name with arguments.
5679 # Check for command to grab the raw symbol name followed by C symbol from nm.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5681 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5682 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5683 $as_echo_n "(cached) " >&6
5686 # These are sane defaults that work on at least a few old systems.
5687 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5689 # Character class describing NM global symbol codes.
5690 symcode='[BCDEGRST]'
5692 # Regexp to match symbols that can be accessed directly from C.
5693 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5695 # Define system-specific variables.
5700 cygwin* | mingw* | pw32* | cegcc*)
5701 symcode='[ABCDGISTW]'
5704 if test "$host_cpu" = ia64; then
5705 symcode='[ABCDEGRST]'
5709 symcode='[BCDEGRST]'
5712 symcode='[BCDEGQRST]'
5723 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5731 # If we're using GNU nm, then use its standard symbol codes.
5732 case `$NM -V 2>&1` in
5733 *GNU* | *'with BFD'*)
5734 symcode='[ABCDGIRSTW]' ;;
5737 # Transform an extracted symbol line into a proper C declaration.
5738 # Some systems (esp. on ia64) link data and code symbols differently,
5739 # so use this general approach.
5740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5742 # Transform an extracted symbol line into symbol name and symbol address
5743 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5744 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'"
5746 # Handle CRLF in mingw tool chain
5750 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5754 # Try without a prefix underscore, then with it.
5755 for ac_symprfx in "" "_"; do
5757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5758 symxfrm="\\1 $ac_symprfx\\2 \\2"
5760 # Write the raw and C identifiers.
5761 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5762 # Fake it for dumpbin and say T for any non-static function
5763 # and D for any global variable.
5764 # Also find C++ and __fastcall symbols from MSVC++,
5765 # which start with @ or ?.
5766 lt_cv_sys_global_symbol_pipe="$AWK '"\
5767 " {last_section=section; section=\$ 3};"\
5768 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5769 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5770 " \$ 0!~/External *\|/{next};"\
5771 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5772 " {if(hide[section]) next};"\
5773 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5774 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5775 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5776 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5777 " ' prfx=^$ac_symprfx"
5779 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5781 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5783 # Check to see that the pipe works correctly.
5787 cat > conftest.$ac_ext <<_LT_EOF
5792 void nm_test_func(void);
5793 void nm_test_func(void){}
5797 int main(){nm_test_var='a';nm_test_func();return(0);}
5800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5801 (eval $ac_compile) 2>&5
5803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5804 test $ac_status = 0; }; then
5805 # Now try to grab the symbols.
5807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5808 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5811 test $ac_status = 0; } && test -s "$nlist"; then
5812 # Try sorting and uniquifying the output.
5813 if sort "$nlist" | uniq > "$nlist"T; then
5814 mv -f "$nlist"T "$nlist"
5819 # Make sure that we snagged all the symbols we need.
5820 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5821 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5822 cat <<_LT_EOF > conftest.$ac_ext
5823 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5824 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5825 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5826 relocations are performed -- see ld's documentation on pseudo-relocs. */
5827 # define LT_DLSYM_CONST
5828 #elif defined(__osf__)
5829 /* This system does not cope well with relocations in const data. */
5830 # define LT_DLSYM_CONST
5832 # define LT_DLSYM_CONST const
5840 # Now generate the symbol file.
5841 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5843 cat <<_LT_EOF >> conftest.$ac_ext
5845 /* The mapping between symbol names and symbols. */
5846 LT_DLSYM_CONST struct {
5850 lt__PROGRAM__LTX_preloaded_symbols[] =
5852 { "@PROGRAM@", (void *) 0 },
5854 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5855 cat <<\_LT_EOF >> conftest.$ac_ext
5859 /* This works around a problem in FreeBSD linker */
5860 #ifdef FREEBSD_WORKAROUND
5861 static const void *lt_preloaded_setup() {
5862 return lt__PROGRAM__LTX_preloaded_symbols;
5870 # Now try linking the two files.
5871 mv conftest.$ac_objext conftstm.$ac_objext
5872 lt_globsym_save_LIBS=$LIBS
5873 lt_globsym_save_CFLAGS=$CFLAGS
5874 LIBS="conftstm.$ac_objext"
5875 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5877 (eval $ac_link) 2>&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5883 LIBS=$lt_globsym_save_LIBS
5884 CFLAGS=$lt_globsym_save_CFLAGS
5886 echo "cannot find nm_test_func in $nlist" >&5
5889 echo "cannot find nm_test_var in $nlist" >&5
5892 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5895 echo "$progname: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 rm -rf conftest* conftst*
5900 # Do not use the global_symbol_pipe unless it works.
5901 if test "$pipe_works" = yes; then
5904 lt_cv_sys_global_symbol_pipe=
5910 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5911 lt_cv_sys_global_symbol_to_cdecl=
5913 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5915 $as_echo "failed" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5918 $as_echo "ok" >&6; }
5921 # Response file support.
5922 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5923 nm_file_list_spec='@'
5924 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5925 nm_file_list_spec='@'
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5955 $as_echo_n "checking for sysroot... " >&6; }
5957 # Check whether --with-sysroot was given.
5958 if test "${with_sysroot+set}" = set; then :
5959 withval=$with_sysroot;
5966 case ${with_sysroot} in #(
5968 if test "$GCC" = yes; then
5969 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5973 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5979 $as_echo "${with_sysroot}" >&6; }
5980 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5985 $as_echo "${lt_sysroot:-no}" >&6; }
5991 # Check whether --enable-libtool-lock was given.
5992 if test "${enable_libtool_lock+set}" = set; then :
5993 enableval=$enable_libtool_lock;
5996 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5998 # Some flags need to be propagated to the compiler or linker for good
6002 # Find out which ABI we are using.
6003 echo 'int i;' > conftest.$ac_ext
6004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6005 (eval $ac_compile) 2>&5
6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008 test $ac_status = 0; }; then
6009 case `/usr/bin/file conftest.$ac_objext` in
6021 # Find out which ABI we are using.
6022 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6024 (eval $ac_compile) 2>&5
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; then
6028 if test "$lt_cv_prog_gnu_ld" = yes; then
6029 case `/usr/bin/file conftest.$ac_objext` in
6031 LD="${LD-ld} -melf32bsmip"
6034 LD="${LD-ld} -melf32bmipn32"
6037 LD="${LD-ld} -melf64bmip"
6041 case `/usr/bin/file conftest.$ac_objext` in
6057 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6058 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6059 # Find out which ABI we are using.
6060 echo 'int i;' > conftest.$ac_ext
6061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6062 (eval $ac_compile) 2>&5
6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065 test $ac_status = 0; }; then
6066 case `/usr/bin/file conftest.o` in
6069 x86_64-*kfreebsd*-gnu)
6070 LD="${LD-ld} -m elf_i386_fbsd"
6073 LD="${LD-ld} -m elf_i386"
6075 ppc64-*linux*|powerpc64-*linux*)
6076 LD="${LD-ld} -m elf32ppclinux"
6079 LD="${LD-ld} -m elf_s390"
6082 LD="${LD-ld} -m elf32_sparc"
6088 x86_64-*kfreebsd*-gnu)
6089 LD="${LD-ld} -m elf_x86_64_fbsd"
6092 LD="${LD-ld} -m elf_x86_64"
6094 powerpc64le-*linux*)
6095 LD="${LD-ld} -m elf64lppc"
6098 LD="${LD-ld} -m elf64ppc"
6100 s390*-*linux*|s390*-*tpf*)
6101 LD="${LD-ld} -m elf64_s390"
6104 LD="${LD-ld} -m elf64_sparc"
6114 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6115 SAVE_CFLAGS="$CFLAGS"
6116 CFLAGS="$CFLAGS -belf"
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6118 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6119 if ${lt_cv_cc_needs_belf+:} false; then :
6120 $as_echo_n "(cached) " >&6
6123 ac_cpp='$CPP $CPPFLAGS'
6124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6139 if ac_fn_c_try_link "$LINENO"; then :
6140 lt_cv_cc_needs_belf=yes
6142 lt_cv_cc_needs_belf=no
6144 rm -f core conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6154 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6155 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6156 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6157 CFLAGS="$SAVE_CFLAGS"
6161 # Find out which ABI we are using.
6162 echo 'int i;' > conftest.$ac_ext
6163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6164 (eval $ac_compile) 2>&5
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; }; then
6168 case `/usr/bin/file conftest.o` in
6170 case $lt_cv_prog_gnu_ld in
6174 LD="${LD-ld} -m elf_x86_64"
6177 LD="${LD-ld} -m elf64_sparc"
6180 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6181 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6186 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6198 need_locks="$enable_libtool_lock"
6200 if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6202 set dummy ${ac_tool_prefix}mt; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$MANIFEST_TOOL"; then
6209 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6229 if test -n "$MANIFEST_TOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6231 $as_echo "$MANIFEST_TOOL" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6239 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6240 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6241 # Extract the first word of "mt", so it can be a program name with args.
6242 set dummy mt; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -n "$ac_ct_MANIFEST_TOOL"; then
6249 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6269 if test -n "$ac_ct_MANIFEST_TOOL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6271 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6277 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6280 case $cross_compiling:$ac_tool_warned in
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284 ac_tool_warned=yes ;;
6286 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6289 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6292 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6294 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6295 if ${lt_cv_path_mainfest_tool+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 lt_cv_path_mainfest_tool=no
6299 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6300 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6301 cat conftest.err >&5
6302 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6303 lt_cv_path_mainfest_tool=yes
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6308 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6309 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6319 rhapsody* | darwin*)
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -n "$DSYMUTIL"; then
6329 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6349 if test -n "$DSYMUTIL"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6351 $as_echo "$DSYMUTIL" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6359 if test -z "$ac_cv_prog_DSYMUTIL"; then
6360 ac_ct_DSYMUTIL=$DSYMUTIL
6361 # Extract the first word of "dsymutil", so it can be a program name with args.
6362 set dummy dsymutil; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if test -n "$ac_ct_DSYMUTIL"; then
6369 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6389 if test -n "$ac_ct_DSYMUTIL"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6391 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6397 if test "x$ac_ct_DSYMUTIL" = x; then
6400 case $cross_compiling:$ac_tool_warned in
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6406 DSYMUTIL=$ac_ct_DSYMUTIL
6409 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_NMEDIT+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$NMEDIT"; then
6421 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 NMEDIT=$ac_cv_prog_NMEDIT
6441 if test -n "$NMEDIT"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6443 $as_echo "$NMEDIT" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_NMEDIT"; then
6452 ac_ct_NMEDIT=$NMEDIT
6453 # Extract the first word of "nmedit", so it can be a program name with args.
6454 set dummy nmedit; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$ac_ct_NMEDIT"; then
6461 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6481 if test -n "$ac_ct_NMEDIT"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6483 $as_echo "$ac_ct_NMEDIT" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_NMEDIT" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6498 NMEDIT=$ac_ct_NMEDIT
6501 NMEDIT="$ac_cv_prog_NMEDIT"
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_LIPO+:} false; then :
6510 $as_echo_n "(cached) " >&6
6512 if test -n "$LIPO"; then
6513 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 LIPO=$ac_cv_prog_LIPO
6533 if test -n "$LIPO"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6535 $as_echo "$LIPO" >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6543 if test -z "$ac_cv_prog_LIPO"; then
6545 # Extract the first word of "lipo", so it can be a program name with args.
6546 set dummy lipo; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6550 $as_echo_n "(cached) " >&6
6552 if test -n "$ac_ct_LIPO"; then
6553 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_ac_ct_LIPO="lipo"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6573 if test -n "$ac_ct_LIPO"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6575 $as_echo "$ac_ct_LIPO" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_ct_LIPO" = x; then
6584 case $cross_compiling:$ac_tool_warned in
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6593 LIPO="$ac_cv_prog_LIPO"
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}otool; ac_word=$2
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6600 $as_echo_n "checking for $ac_word... " >&6; }
6601 if ${ac_cv_prog_OTOOL+:} false; then :
6602 $as_echo_n "(cached) " >&6
6604 if test -n "$OTOOL"; then
6605 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 OTOOL=$ac_cv_prog_OTOOL
6625 if test -n "$OTOOL"; then
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6627 $as_echo "$OTOOL" >&6; }
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test -z "$ac_cv_prog_OTOOL"; then
6637 # Extract the first word of "otool", so it can be a program name with args.
6638 set dummy otool; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6642 $as_echo_n "(cached) " >&6
6644 if test -n "$ac_ct_OTOOL"; then
6645 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6654 ac_cv_prog_ac_ct_OTOOL="otool"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6665 if test -n "$ac_ct_OTOOL"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6667 $as_echo "$ac_ct_OTOOL" >&6; }
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6673 if test "x$ac_ct_OTOOL" = x; then
6676 case $cross_compiling:$ac_tool_warned in
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6680 ac_tool_warned=yes ;;
6685 OTOOL="$ac_cv_prog_OTOOL"
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_OTOOL64+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$OTOOL64"; then
6697 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 OTOOL64=$ac_cv_prog_OTOOL64
6717 if test -n "$OTOOL64"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6719 $as_echo "$OTOOL64" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6727 if test -z "$ac_cv_prog_OTOOL64"; then
6728 ac_ct_OTOOL64=$OTOOL64
6729 # Extract the first word of "otool64", so it can be a program name with args.
6730 set dummy otool64; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6734 $as_echo_n "(cached) " >&6
6736 if test -n "$ac_ct_OTOOL64"; then
6737 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_ac_ct_OTOOL64="otool64"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6757 if test -n "$ac_ct_OTOOL64"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6759 $as_echo "$ac_ct_OTOOL64" >&6; }
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6765 if test "x$ac_ct_OTOOL64" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6774 OTOOL64=$ac_ct_OTOOL64
6777 OTOOL64="$ac_cv_prog_OTOOL64"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6807 $as_echo_n "checking for -single_module linker flag... " >&6; }
6808 if ${lt_cv_apple_cc_single_mod+:} false; then :
6809 $as_echo_n "(cached) " >&6
6811 lt_cv_apple_cc_single_mod=no
6812 if test -z "${LT_MULTI_MODULE}"; then
6813 # By default we will add the -single_module flag. You can override
6814 # by either setting the environment variable LT_MULTI_MODULE
6815 # non-empty at configure time, or by adding -multi_module to the
6817 rm -rf libconftest.dylib*
6818 echo "int foo(void){return 1;}" > conftest.c
6819 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6820 -dynamiclib -Wl,-single_module conftest.c" >&5
6821 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6822 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6824 # If there is a non-empty error log, and "single_module"
6825 # appears in it, assume the flag caused a linker warning
6826 if test -s conftest.err && $GREP single_module conftest.err; then
6827 cat conftest.err >&5
6828 # Otherwise, if the output was created with a 0 exit code from
6829 # the compiler, it worked.
6830 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6831 lt_cv_apple_cc_single_mod=yes
6833 cat conftest.err >&5
6835 rm -rf libconftest.dylib*
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6843 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6844 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 lt_cv_ld_exported_symbols_list=no
6848 save_LDFLAGS=$LDFLAGS
6849 echo "_main" > conftest.sym
6850 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6862 if ac_fn_c_try_link "$LINENO"; then :
6863 lt_cv_ld_exported_symbols_list=yes
6865 lt_cv_ld_exported_symbols_list=no
6867 rm -f core conftest.err conftest.$ac_objext \
6868 conftest$ac_exeext conftest.$ac_ext
6869 LDFLAGS="$save_LDFLAGS"
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6873 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6876 $as_echo_n "checking for -force_load linker flag... " >&6; }
6877 if ${lt_cv_ld_force_load+:} false; then :
6878 $as_echo_n "(cached) " >&6
6880 lt_cv_ld_force_load=no
6881 cat > conftest.c << _LT_EOF
6882 int forced_loaded() { return 2;}
6884 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6885 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6886 echo "$AR cru libconftest.a conftest.o" >&5
6887 $AR cru libconftest.a conftest.o 2>&5
6888 echo "$RANLIB libconftest.a" >&5
6889 $RANLIB libconftest.a 2>&5
6890 cat > conftest.c << _LT_EOF
6891 int main() { return 0;}
6893 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6894 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6896 if test -s conftest.err && $GREP force_load conftest.err; then
6897 cat conftest.err >&5
6898 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6899 lt_cv_ld_force_load=yes
6901 cat conftest.err >&5
6903 rm -f conftest.err libconftest.a conftest conftest.c
6904 rm -rf conftest.dSYM
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6908 $as_echo "$lt_cv_ld_force_load" >&6; }
6910 rhapsody* | darwin1.[012])
6911 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6913 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6914 darwin*) # darwin 5.x on
6915 # if running on 10.5 or later, the deployment target defaults
6916 # to the OS version, if on x86, and 10.4, the deployment
6917 # target defaults to 10.4. Don't you love it?
6918 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6919 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6920 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6922 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6924 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6928 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6929 _lt_dar_single_mod='$single_module'
6931 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6932 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6934 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6936 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6937 _lt_dsymutil='~$DSYMUTIL $lib || :'
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6951 # On Suns, sometimes $CPP names a directory.
6952 if test -n "$CPP" && test -d "$CPP"; then
6955 if test -z "$CPP"; then
6956 if ${ac_cv_prog_CPP+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 # Double quotes because CPP needs to be expanded
6960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6963 for ac_c_preproc_warn_flag in '' yes
6965 # Use a header file that comes with gcc, so configuring glibc
6966 # with a fresh cross-compiler works.
6967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968 # <limits.h> exists even on freestanding compilers.
6969 # On the NeXT, cc -E runs the code through the compiler's parser,
6970 # not just through cpp. "Syntax error" is here to catch this case.
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6974 # include <limits.h>
6976 # include <assert.h>
6980 if ac_fn_c_try_cpp "$LINENO"; then :
6983 # Broken: fails on valid input.
6986 rm -f conftest.err conftest.i conftest.$ac_ext
6988 # OK, works on sane cases. Now check whether nonexistent headers
6989 # can be detected and how.
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 #include <ac_nonexistent.h>
6994 if ac_fn_c_try_cpp "$LINENO"; then :
6995 # Broken: success on invalid input.
6998 # Passes both tests.
7002 rm -f conftest.err conftest.i conftest.$ac_ext
7005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7006 rm -f conftest.i conftest.err conftest.$ac_ext
7007 if $ac_preproc_ok; then :
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7020 $as_echo "$CPP" >&6; }
7022 for ac_c_preproc_warn_flag in '' yes
7024 # Use a header file that comes with gcc, so configuring glibc
7025 # with a fresh cross-compiler works.
7026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7027 # <limits.h> exists even on freestanding compilers.
7028 # On the NeXT, cc -E runs the code through the compiler's parser,
7029 # not just through cpp. "Syntax error" is here to catch this case.
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7033 # include <limits.h>
7035 # include <assert.h>
7039 if ac_fn_c_try_cpp "$LINENO"; then :
7042 # Broken: fails on valid input.
7045 rm -f conftest.err conftest.i conftest.$ac_ext
7047 # OK, works on sane cases. Now check whether nonexistent headers
7048 # can be detected and how.
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7051 #include <ac_nonexistent.h>
7053 if ac_fn_c_try_cpp "$LINENO"; then :
7054 # Broken: success on invalid input.
7057 # Passes both tests.
7061 rm -f conftest.err conftest.i conftest.$ac_ext
7064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7065 rm -f conftest.i conftest.err conftest.$ac_ext
7066 if $ac_preproc_ok; then :
7069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7071 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7072 See \`config.log' for more details" "$LINENO" 5; }
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if ${ac_cv_header_stdc+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7102 if ac_fn_c_try_compile "$LINENO"; then :
7103 ac_cv_header_stdc=yes
7105 ac_cv_header_stdc=no
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109 if test $ac_cv_header_stdc = yes; then
7110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7117 $EGREP "memchr" >/dev/null 2>&1; then :
7120 ac_cv_header_stdc=no
7126 if test $ac_cv_header_stdc = yes; then
7127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134 $EGREP "free" >/dev/null 2>&1; then :
7137 ac_cv_header_stdc=no
7143 if test $ac_cv_header_stdc = yes; then
7144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7145 if test "$cross_compiling" = yes; then :
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7152 #if ((' ' & 0x0FF) == 0x020)
7153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7156 # define ISLOWER(c) \
7157 (('a' <= (c) && (c) <= 'i') \
7158 || ('j' <= (c) && (c) <= 'r') \
7159 || ('s' <= (c) && (c) <= 'z'))
7160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7168 for (i = 0; i < 256; i++)
7169 if (XOR (islower (i), ISLOWER (i))
7170 || toupper (i) != TOUPPER (i))
7175 if ac_fn_c_try_run "$LINENO"; then :
7178 ac_cv_header_stdc=no
7180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7181 conftest.$ac_objext conftest.beam conftest.$ac_ext
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7187 $as_echo "$ac_cv_header_stdc" >&6; }
7188 if test $ac_cv_header_stdc = yes; then
7190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7194 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7195 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7196 inttypes.h stdint.h unistd.h
7198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7199 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7202 cat >>confdefs.h <<_ACEOF
7203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7211 for ac_header in dlfcn.h
7213 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7215 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7216 cat >>confdefs.h <<_ACEOF
7217 #define HAVE_DLFCN_H 1
7229 enable_win32_dll=yes
7232 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7233 if test -n "$ac_tool_prefix"; then
7234 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}as; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_AS+:} false; then :
7239 $as_echo_n "(cached) " >&6
7241 if test -n "$AS"; then
7242 ac_cv_prog_AS="$AS" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_AS="${ac_tool_prefix}as"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 if test -n "$AS"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7264 $as_echo "$AS" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7272 if test -z "$ac_cv_prog_AS"; then
7274 # Extract the first word of "as", so it can be a program name with args.
7275 set dummy as; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test -n "$ac_ct_AS"; then
7282 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_ac_ct_AS="as"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7302 if test -n "$ac_ct_AS"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7304 $as_echo "$ac_ct_AS" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7310 if test "x$ac_ct_AS" = x; then
7313 case $cross_compiling:$ac_tool_warned in
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7317 ac_tool_warned=yes ;;
7325 if test -n "$ac_tool_prefix"; then
7326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_DLLTOOL+:} false; then :
7331 $as_echo_n "(cached) " >&6
7333 if test -n "$DLLTOOL"; then
7334 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 DLLTOOL=$ac_cv_prog_DLLTOOL
7354 if test -n "$DLLTOOL"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7356 $as_echo "$DLLTOOL" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7364 if test -z "$ac_cv_prog_DLLTOOL"; then
7365 ac_ct_DLLTOOL=$DLLTOOL
7366 # Extract the first word of "dlltool", so it can be a program name with args.
7367 set dummy dlltool; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7371 $as_echo_n "(cached) " >&6
7373 if test -n "$ac_ct_DLLTOOL"; then
7374 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7394 if test -n "$ac_ct_DLLTOOL"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7396 $as_echo "$ac_ct_DLLTOOL" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7402 if test "x$ac_ct_DLLTOOL" = x; then
7405 case $cross_compiling:$ac_tool_warned in
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7411 DLLTOOL=$ac_ct_DLLTOOL
7414 DLLTOOL="$ac_cv_prog_DLLTOOL"
7417 if test -n "$ac_tool_prefix"; then
7418 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7419 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_OBJDUMP+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 if test -n "$OBJDUMP"; then
7426 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 OBJDUMP=$ac_cv_prog_OBJDUMP
7446 if test -n "$OBJDUMP"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7448 $as_echo "$OBJDUMP" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7456 if test -z "$ac_cv_prog_OBJDUMP"; then
7457 ac_ct_OBJDUMP=$OBJDUMP
7458 # Extract the first word of "objdump", so it can be a program name with args.
7459 set dummy objdump; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7463 $as_echo_n "(cached) " >&6
7465 if test -n "$ac_ct_OBJDUMP"; then
7466 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7486 if test -n "$ac_ct_OBJDUMP"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7488 $as_echo "$ac_ct_OBJDUMP" >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7494 if test "x$ac_ct_OBJDUMP" = x; then
7497 case $cross_compiling:$ac_tool_warned in
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7501 ac_tool_warned=yes ;;
7503 OBJDUMP=$ac_ct_OBJDUMP
7506 OBJDUMP="$ac_cv_prog_OBJDUMP"
7512 test -z "$AS" && AS=as
7518 test -z "$DLLTOOL" && DLLTOOL=dlltool
7524 test -z "$OBJDUMP" && OBJDUMP=objdump
7536 # Check whether --enable-shared was given.
7537 if test "${enable_shared+set}" = set; then :
7538 enableval=$enable_shared; p=${PACKAGE-default}
7540 yes) enable_shared=yes ;;
7541 no) enable_shared=no ;;
7544 # Look at the argument we got. We use all the common list separators.
7545 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7546 for pkg in $enableval; do
7548 if test "X$pkg" = "X$p"; then
7567 # Check whether --enable-static was given.
7568 if test "${enable_static+set}" = set; then :
7569 enableval=$enable_static; p=${PACKAGE-default}
7571 yes) enable_static=yes ;;
7572 no) enable_static=no ;;
7575 # Look at the argument we got. We use all the common list separators.
7576 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7577 for pkg in $enableval; do
7579 if test "X$pkg" = "X$p"; then
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then :
7601 withval=$with_pic; lt_p=${PACKAGE-default}
7603 yes|no) pic_mode=$withval ;;
7606 # Look at the argument we got. We use all the common list separators.
7607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7608 for lt_pkg in $withval; do
7610 if test "X$lt_pkg" = "X$lt_p"; then
7622 test -z "$pic_mode" && pic_mode=default
7630 # Check whether --enable-fast-install was given.
7631 if test "${enable_fast_install+set}" = set; then :
7632 enableval=$enable_fast_install; p=${PACKAGE-default}
7634 yes) enable_fast_install=yes ;;
7635 no) enable_fast_install=no ;;
7637 enable_fast_install=no
7638 # Look at the argument we got. We use all the common list separators.
7639 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7640 for pkg in $enableval; do
7642 if test "X$pkg" = "X$p"; then
7643 enable_fast_install=yes
7650 enable_fast_install=yes
7663 # This can be used to rebuild libtool when needed
7664 LIBTOOL_DEPS="$ltmain"
7666 # Always use our own libtool.
7667 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7698 test -z "$LN_S" && LN_S="ln -s"
7713 if test -n "${ZSH_VERSION+set}" ; then
7714 setopt NO_GLOB_SUBST
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7718 $as_echo_n "checking for objdir... " >&6; }
7719 if ${lt_cv_objdir+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 rm -f .libs 2>/dev/null
7723 mkdir .libs 2>/dev/null
7724 if test -d .libs; then
7727 # MS-DOS does not allow filenames that begin with a dot.
7730 rmdir .libs 2>/dev/null
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7733 $as_echo "$lt_cv_objdir" >&6; }
7734 objdir=$lt_cv_objdir
7740 cat >>confdefs.h <<_ACEOF
7741 #define LT_OBJDIR "$lt_cv_objdir/"
7749 # AIX sometimes has problems with the GCC collect2 program. For some
7750 # reason, if we set the COLLECT_NAMES environment variable, the problems
7751 # vanish in a puff of smoke.
7752 if test "X${COLLECT_NAMES+set}" != Xset; then
7754 export COLLECT_NAMES
7761 can_build_shared=yes
7763 # All known linkers require a `.a' archive for static linking (except MSVC,
7764 # which needs '.lib').
7767 with_gnu_ld="$lt_cv_prog_gnu_ld"
7770 old_CFLAGS="$CFLAGS"
7772 # Set sane defaults for various variables
7773 test -z "$CC" && CC=cc
7774 test -z "$LTCC" && LTCC=$CC
7775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7776 test -z "$LD" && LD=ld
7777 test -z "$ac_objext" && ac_objext=o
7779 for cc_temp in $compiler""; do
7781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7787 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7790 # Only perform the check for file, if the check method requires it
7791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7792 case $deplibs_check_method in
7794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7796 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7798 $as_echo_n "(cached) " >&6
7802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7805 lt_save_MAGIC_CMD="$MAGIC_CMD"
7806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7808 for ac_dir in $ac_dummy; do
7810 test -z "$ac_dir" && ac_dir=.
7811 if test -f $ac_dir/${ac_tool_prefix}file; then
7812 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7813 if test -n "$file_magic_test_file"; then
7814 case $deplibs_check_method in
7816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7819 $EGREP "$file_magic_regex" > /dev/null; then
7824 *** Warning: the command libtool uses to detect shared libraries,
7825 *** $file_magic_cmd, produces output that libtool cannot recognize.
7826 *** The result is that libtool may fail to recognize shared libraries
7827 *** as such. This will affect the creation of libtool libraries that
7828 *** depend on shared libraries, but programs linked with such libtool
7829 *** libraries will work regardless of this problem. Nevertheless, you
7830 *** may want to report the problem to your system manager and/or to
7831 *** bug-libtool@gnu.org
7841 MAGIC_CMD="$lt_save_MAGIC_CMD"
7846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7847 if test -n "$MAGIC_CMD"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7849 $as_echo "$MAGIC_CMD" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7859 if test -z "$lt_cv_path_MAGIC_CMD"; then
7860 if test -n "$ac_tool_prefix"; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7862 $as_echo_n "checking for file... " >&6; }
7863 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7864 $as_echo_n "(cached) " >&6
7868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7871 lt_save_MAGIC_CMD="$MAGIC_CMD"
7872 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7874 for ac_dir in $ac_dummy; do
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/file; then
7878 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7879 if test -n "$file_magic_test_file"; then
7880 case $deplibs_check_method in
7882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7883 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7885 $EGREP "$file_magic_regex" > /dev/null; then
7890 *** Warning: the command libtool uses to detect shared libraries,
7891 *** $file_magic_cmd, produces output that libtool cannot recognize.
7892 *** The result is that libtool may fail to recognize shared libraries
7893 *** as such. This will affect the creation of libtool libraries that
7894 *** depend on shared libraries, but programs linked with such libtool
7895 *** libraries will work regardless of this problem. Nevertheless, you
7896 *** may want to report the problem to your system manager and/or to
7897 *** bug-libtool@gnu.org
7907 MAGIC_CMD="$lt_save_MAGIC_CMD"
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if test -n "$MAGIC_CMD"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7915 $as_echo "$MAGIC_CMD" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7931 # Use C for the default configuration in the libtool script
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 # Source file extension for C test sources.
7944 # Object file extension for compiled C test sources.
7948 # Code to be used in simple compile tests
7949 lt_simple_compile_test_code="int some_variable = 0;"
7951 # Code to be used in simple link tests
7952 lt_simple_link_test_code='int main(){return(0);}'
7960 # If no C compiler was specified, use CC.
7963 # If no C compiler flags were specified, use CFLAGS.
7964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7966 # Allow CC to be a program name with arguments.
7969 # Save the default compiler, since it gets overwritten when the other
7970 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7971 compiler_DEFAULT=$CC
7973 # save warnings/boilerplate of simple test code
7974 ac_outfile=conftest.$ac_objext
7975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7977 _lt_compiler_boilerplate=`cat conftest.err`
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7983 _lt_linker_boilerplate=`cat conftest.err`
7988 ## There is no encapsulation within the following macros, do not change
7989 ## the running order or otherwise move them around unless you know exactly
7990 ## what you are doing...
7991 if test -n "$compiler"; then
7993 lt_prog_compiler_no_builtin_flag=
7995 if test "$GCC" = yes; then
7996 case $cc_basename in
7998 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8000 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8004 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8005 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 lt_cv_prog_compiler_rtti_exceptions=no
8009 ac_outfile=conftest.$ac_objext
8010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8011 lt_compiler_flag="-fno-rtti -fno-exceptions"
8012 # Insert the option either (1) after the last *FLAGS variable, or
8013 # (2) before a word containing "conftest.", or (3) at the end.
8014 # Note that $ac_compile itself does not contain backslashes and begins
8015 # with a dollar sign (not a hyphen), so the echo should work correctly.
8016 # The option is referenced via a variable to avoid confusing sed.
8017 lt_compile=`echo "$ac_compile" | $SED \
8018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8020 -e 's:$: $lt_compiler_flag:'`
8021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8022 (eval "$lt_compile" 2>conftest.err)
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 if (exit $ac_status) && test -s "$ac_outfile"; then
8027 # The compiler can only warn and ignore the option if not recognized
8028 # So say no if there are warnings other than the usual output.
8029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8032 lt_cv_prog_compiler_rtti_exceptions=yes
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8039 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8041 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8042 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8054 lt_prog_compiler_wl=
8055 lt_prog_compiler_pic=
8056 lt_prog_compiler_static=
8059 if test "$GCC" = yes; then
8060 lt_prog_compiler_wl='-Wl,'
8061 lt_prog_compiler_static='-static'
8065 # All AIX code is PIC.
8066 if test "$host_cpu" = ia64; then
8067 # AIX 5 now supports IA64 processor
8068 lt_prog_compiler_static='-Bstatic'
8075 # see comment about AmigaOS4 .so support
8076 lt_prog_compiler_pic='-fPIC'
8079 # FIXME: we need at least 68020 code to build shared libraries, but
8080 # adding the `-m68020' flag to GCC prevents building anything better,
8082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8088 # PIC is the default for these OSes.
8091 mingw* | cygwin* | pw32* | os2* | cegcc*)
8092 # This hack is so that the source file can tell whether it is being
8093 # built for inclusion in a dll (and should export symbols for example).
8094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8095 # (--disable-auto-import) libraries
8096 lt_prog_compiler_pic='-DDLL_EXPORT'
8099 darwin* | rhapsody*)
8100 # PIC is the default on this platform
8101 # Common symbols not allowed in MH_DYLIB files
8102 lt_prog_compiler_pic='-fno-common'
8106 # PIC is the default for Haiku.
8107 # The "-static" flag exists, but is broken.
8108 lt_prog_compiler_static=
8112 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8113 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8114 # sets the default TLS model and affects inlining.
8120 lt_prog_compiler_pic='-fPIC'
8126 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8127 # Instead, we relocate shared libraries at runtime.
8131 # Just because we use GCC doesn't mean we suddenly get shared libraries
8132 # on systems that don't support them.
8133 lt_prog_compiler_can_build_shared=no
8138 # QNX uses GNU C++, but need to define -shared option too, otherwise
8140 lt_prog_compiler_pic='-fPIC -shared'
8144 if test -d /usr/nec; then
8145 lt_prog_compiler_pic=-Kconform_pic
8150 lt_prog_compiler_pic='-fPIC'
8154 case $cc_basename in
8155 nvcc*) # Cuda Compiler Driver 2.2
8156 lt_prog_compiler_wl='-Xlinker '
8157 if test -n "$lt_prog_compiler_pic"; then
8158 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8163 # PORTME Check for flag to pass linker flags through the system compiler.
8166 lt_prog_compiler_wl='-Wl,'
8167 if test "$host_cpu" = ia64; then
8168 # AIX 5 now supports IA64 processor
8169 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8175 mingw* | cygwin* | pw32* | os2* | cegcc*)
8176 # This hack is so that the source file can tell whether it is being
8177 # built for inclusion in a dll (and should export symbols for example).
8178 lt_prog_compiler_pic='-DDLL_EXPORT'
8181 hpux9* | hpux10* | hpux11*)
8182 lt_prog_compiler_wl='-Wl,'
8183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8190 lt_prog_compiler_pic='+Z'
8193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8194 lt_prog_compiler_static='${wl}-a ${wl}archive'
8197 irix5* | irix6* | nonstopux*)
8198 lt_prog_compiler_wl='-Wl,'
8199 # PIC (with -KPIC) is the default.
8200 lt_prog_compiler_static='-non_shared'
8203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8204 case $cc_basename in
8205 # old Intel for x86_64 which still supported -KPIC.
8207 lt_prog_compiler_wl='-Wl,'
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-static'
8211 # icc used to be incompatible with GCC.
8212 # ICC 10 doesn't accept -KPIC any more.
8214 lt_prog_compiler_wl='-Wl,'
8215 lt_prog_compiler_pic='-fPIC'
8216 lt_prog_compiler_static='-static'
8218 # Lahey Fortran 8.1.
8220 lt_prog_compiler_wl='-Wl,'
8221 lt_prog_compiler_pic='--shared'
8222 lt_prog_compiler_static='--static'
8225 # NAG Fortran compiler
8226 lt_prog_compiler_wl='-Wl,-Wl,,'
8227 lt_prog_compiler_pic='-PIC'
8228 lt_prog_compiler_static='-Bstatic'
8230 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8231 # Portland Group compilers (*not* the Pentium gcc compiler,
8232 # which looks to be a dead project)
8233 lt_prog_compiler_wl='-Wl,'
8234 lt_prog_compiler_pic='-fpic'
8235 lt_prog_compiler_static='-Bstatic'
8238 lt_prog_compiler_wl='-Wl,'
8239 # All Alpha code is PIC.
8240 lt_prog_compiler_static='-non_shared'
8242 xl* | bgxl* | bgf* | mpixl*)
8243 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8244 lt_prog_compiler_wl='-Wl,'
8245 lt_prog_compiler_pic='-qpic'
8246 lt_prog_compiler_static='-qstaticlink'
8249 case `$CC -V 2>&1 | sed 5q` in
8250 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8252 lt_prog_compiler_pic='-KPIC'
8253 lt_prog_compiler_static='-Bstatic'
8254 lt_prog_compiler_wl=''
8256 *Sun\ F* | *Sun*Fortran*)
8257 lt_prog_compiler_pic='-KPIC'
8258 lt_prog_compiler_static='-Bstatic'
8259 lt_prog_compiler_wl='-Qoption ld '
8263 lt_prog_compiler_pic='-KPIC'
8264 lt_prog_compiler_static='-Bstatic'
8265 lt_prog_compiler_wl='-Wl,'
8267 *Intel*\ [CF]*Compiler*)
8268 lt_prog_compiler_wl='-Wl,'
8269 lt_prog_compiler_pic='-fPIC'
8270 lt_prog_compiler_static='-static'
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_pic='-fpic'
8275 lt_prog_compiler_static='-Bstatic'
8283 lt_prog_compiler_pic='-KPIC'
8284 lt_prog_compiler_static='-Bstatic'
8288 # QNX uses GNU C++, but need to define -shared option too, otherwise
8290 lt_prog_compiler_pic='-fPIC -shared'
8293 osf3* | osf4* | osf5*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # All OSF/1 code is PIC.
8296 lt_prog_compiler_static='-non_shared'
8300 lt_prog_compiler_static='-non_shared'
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
8306 case $cc_basename in
8307 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8308 lt_prog_compiler_wl='-Qoption ld ';;
8310 lt_prog_compiler_wl='-Wl,';;
8315 lt_prog_compiler_wl='-Qoption ld '
8316 lt_prog_compiler_pic='-PIC'
8317 lt_prog_compiler_static='-Bstatic'
8320 sysv4 | sysv4.2uw2* | sysv4.3*)
8321 lt_prog_compiler_wl='-Wl,'
8322 lt_prog_compiler_pic='-KPIC'
8323 lt_prog_compiler_static='-Bstatic'
8327 if test -d /usr/nec ;then
8328 lt_prog_compiler_pic='-Kconform_pic'
8329 lt_prog_compiler_static='-Bstatic'
8333 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_can_build_shared=no
8345 lt_prog_compiler_pic='-pic'
8346 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_can_build_shared=no
8356 # For platforms which do not support PIC, -DPIC is meaningless:
8358 lt_prog_compiler_pic=
8361 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8367 if ${lt_cv_prog_compiler_pic+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8373 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8374 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8377 # Check to make sure the PIC flag actually works.
8379 if test -n "$lt_prog_compiler_pic"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8382 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 lt_cv_prog_compiler_pic_works=no
8386 ac_outfile=conftest.$ac_objext
8387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8389 # Insert the option either (1) after the last *FLAGS variable, or
8390 # (2) before a word containing "conftest.", or (3) at the end.
8391 # Note that $ac_compile itself does not contain backslashes and begins
8392 # with a dollar sign (not a hyphen), so the echo should work correctly.
8393 # The option is referenced via a variable to avoid confusing sed.
8394 lt_compile=`echo "$ac_compile" | $SED \
8395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8397 -e 's:$: $lt_compiler_flag:'`
8398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8399 (eval "$lt_compile" 2>conftest.err)
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 if (exit $ac_status) && test -s "$ac_outfile"; then
8404 # The compiler can only warn and ignore the option if not recognized
8405 # So say no if there are warnings other than the usual output.
8406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8409 lt_cv_prog_compiler_pic_works=yes
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8416 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8418 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8419 case $lt_prog_compiler_pic in
8421 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8424 lt_prog_compiler_pic=
8425 lt_prog_compiler_can_build_shared=no
8441 # Check to make sure the static flag actually works.
8443 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8445 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8446 if ${lt_cv_prog_compiler_static_works+:} false; then :
8447 $as_echo_n "(cached) " >&6
8449 lt_cv_prog_compiler_static_works=no
8450 save_LDFLAGS="$LDFLAGS"
8451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454 # The linker can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 if test -s conftest.err; then
8457 # Append any errors to the config.log.
8458 cat conftest.err 1>&5
8459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8461 if diff conftest.exp conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_static_works=yes
8465 lt_cv_prog_compiler_static_works=yes
8469 LDFLAGS="$save_LDFLAGS"
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8473 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8475 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8478 lt_prog_compiler_static=
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8489 if ${lt_cv_prog_compiler_c_o+:} false; then :
8490 $as_echo_n "(cached) " >&6
8492 lt_cv_prog_compiler_c_o=no
8493 $RM -r conftest 2>/dev/null
8497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8499 lt_compiler_flag="-o out/conftest2.$ac_objext"
8500 # Insert the option either (1) after the last *FLAGS variable, or
8501 # (2) before a word containing "conftest.", or (3) at the end.
8502 # Note that $ac_compile itself does not contain backslashes and begins
8503 # with a dollar sign (not a hyphen), so the echo should work correctly.
8504 lt_compile=`echo "$ac_compile" | $SED \
8505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507 -e 's:$: $lt_compiler_flag:'`
8508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8509 (eval "$lt_compile" 2>out/conftest.err)
8511 cat out/conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8515 # The compiler can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8520 lt_cv_prog_compiler_c_o=yes
8525 # SGI C++ compiler will create directory out/ii_files/ for
8526 # template instantiation
8527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8528 $RM out/* && rmdir out
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8544 if ${lt_cv_prog_compiler_c_o+:} false; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_cv_prog_compiler_c_o=no
8548 $RM -r conftest 2>/dev/null
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="-o out/conftest2.$ac_objext"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>out/conftest.err)
8566 cat out/conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_c_o=yes
8580 # SGI C++ compiler will create directory out/ii_files/ for
8581 # template instantiation
8582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583 $RM out/* && rmdir out
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8595 hard_links="nottested"
8596 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8597 # do not overwrite the value of need_locks provided by the user
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8599 $as_echo_n "checking if we can lock with hard links... " >&6; }
8602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604 ln conftest.a conftest.b 2>&5 || hard_links=no
8605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8607 $as_echo "$hard_links" >&6; }
8608 if test "$hard_links" = no; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8610 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8623 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8626 allow_undefined_flag=
8627 always_export_symbols=no
8629 archive_expsym_cmds=
8630 compiler_needs_object=no
8631 enable_shared_with_static_runtimes=no
8632 export_dynamic_flag_spec=
8633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8634 hardcode_automatic=no
8636 hardcode_direct_absolute=no
8637 hardcode_libdir_flag_spec=
8638 hardcode_libdir_separator=
8640 hardcode_shlibpath_var=unsupported
8642 link_all_deplibs=unknown
8645 old_archive_from_new_cmds=
8646 old_archive_from_expsyms_cmds=
8647 thread_safe_flag_spec=
8648 whole_archive_flag_spec=
8649 # include_expsyms should be a list of space-separated symbols to be *always*
8650 # included in the symbol list
8652 # exclude_expsyms can be an extended regexp of symbols to exclude
8653 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8654 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8655 # as well as any symbol that contains `d'.
8656 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8657 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8658 # platforms (ab)use it in PIC code, but their linkers get confused if
8659 # the symbol is explicitly referenced. Since portable code cannot
8660 # rely on this symbol name, it's probably fine to never include it in
8661 # preloaded symbol tables.
8662 # Exclude shared library initialization/finalization symbols.
8663 extract_expsyms_cmds=
8666 cygwin* | mingw* | pw32* | cegcc*)
8667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8668 # When not using gcc, we currently assume that we are using
8669 # Microsoft Visual C++.
8670 if test "$GCC" != yes; then
8675 # we just hope/assume this is gcc and not c89 (= MSVC++)
8685 # On some targets, GNU ld is compatible enough with the native linker
8686 # that we're better off using the native interface for both.
8687 lt_use_gnu_ld_interface=no
8688 if test "$with_gnu_ld" = yes; then
8691 # The AIX port of GNU ld has always aspired to compatibility
8692 # with the native linker. However, as the warning in the GNU ld
8693 # block says, versions before 2.19.5* couldn't really create working
8694 # shared libraries, regardless of the interface used.
8695 case `$LD -v 2>&1` in
8696 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8697 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8698 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8700 lt_use_gnu_ld_interface=yes
8705 lt_use_gnu_ld_interface=yes
8710 if test "$lt_use_gnu_ld_interface" = yes; then
8711 # If archive_cmds runs LD, not CC, wlarc should be empty
8714 # Set some defaults for GNU ld with shared library support. These
8715 # are reset later if shared libraries are not supported. Putting them
8716 # here allows them to be overridden if necessary.
8717 runpath_var=LD_RUN_PATH
8718 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719 export_dynamic_flag_spec='${wl}--export-dynamic'
8720 # ancient GNU ld didn't support --whole-archive et. al.
8721 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8724 whole_archive_flag_spec=
8726 supports_anon_versioning=no
8727 case `$LD -v 2>&1` in
8728 *GNU\ gold*) supports_anon_versioning=yes ;;
8729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8732 *\ 2.11.*) ;; # other 2.11 versions
8733 *) supports_anon_versioning=yes ;;
8736 # See if GNU ld supports shared libraries.
8739 # On AIX/PPC, the GNU linker is very broken
8740 if test "$host_cpu" != ia64; then
8744 *** Warning: the GNU linker, at least up to release 2.19, is reported
8745 *** to be unable to reliably create shared libraries on AIX.
8746 *** Therefore, libtool is disabling shared libraries support. If you
8747 *** really care for shared libraries, you may want to install binutils
8748 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8749 *** You will then need to restart the configuration process.
8758 # see comment about AmigaOS4 .so support
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds=''
8763 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)'
8764 hardcode_libdir_flag_spec='-L$libdir'
8765 hardcode_minus_L=yes
8771 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772 allow_undefined_flag=unsupported
8773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8774 # support --undefined. This deserves some investigation. FIXME
8775 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 cygwin* | mingw* | pw32* | cegcc*)
8782 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8783 # as there is no search path for DLLs.
8784 hardcode_libdir_flag_spec='-L$libdir'
8785 export_dynamic_flag_spec='${wl}--export-all-symbols'
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=no
8788 enable_shared_with_static_runtimes=yes
8789 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'
8790 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8792 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8794 # If the export-symbols file already is a .def file (1st line
8795 # is EXPORTS), use it as is; otherwise, prepend...
8796 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8797 cp $export_symbols $output_objdir/$soname.def;
8799 echo EXPORTS > $output_objdir/$soname.def;
8800 cat $export_symbols >> $output_objdir/$soname.def;
8802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 link_all_deplibs=yes
8815 hardcode_shlibpath_var=no
8816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8817 export_dynamic_flag_spec='${wl}-E'
8818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8819 # Instead, shared libraries are loaded at an image base (0x10000000 by
8820 # default) and relocated if they conflict, which is a slow very memory
8821 # consuming and fragmenting process. To avoid this, we pick a random,
8822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8823 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8825 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'
8828 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8830 if test "$host_os" = linux-dietlibc; then
8831 case $cc_basename in
8832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8836 && test "$tmp_diet" = no
8838 tmp_addflag=' $pic_flag'
8839 tmp_sharedflag='-shared'
8840 case $cc_basename,$host_cpu in
8841 pgcc*) # Portland Group C compiler
8842 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'
8843 tmp_addflag=' $pic_flag'
8845 pgf77* | pgf90* | pgf95* | pgfortran*)
8846 # Portland Group f77 and f90 compilers
8847 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'
8848 tmp_addflag=' $pic_flag -Mnomain' ;;
8849 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8850 tmp_addflag=' -i_dynamic' ;;
8851 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8852 tmp_addflag=' -i_dynamic -nofor_main' ;;
8853 ifc* | ifort*) # Intel Fortran compiler
8854 tmp_addflag=' -nofor_main' ;;
8855 lf95*) # Lahey Fortran 8.1
8856 whole_archive_flag_spec=
8857 tmp_sharedflag='--shared' ;;
8858 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8859 tmp_sharedflag='-qmkshrobj'
8861 nvcc*) # Cuda Compiler Driver 2.2
8862 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'
8863 compiler_needs_object=yes
8866 case `$CC -V 2>&1 | sed 5q` in
8867 *Sun\ C*) # Sun C 5.9
8868 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'
8869 compiler_needs_object=yes
8870 tmp_sharedflag='-G' ;;
8871 *Sun\ F*) # Sun Fortran 8.3
8872 tmp_sharedflag='-G' ;;
8874 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 if test "x$supports_anon_versioning" = xyes; then
8877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8879 echo "local: *; };" >> $output_objdir/$libname.ver~
8880 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8883 case $cc_basename in
8884 xlf* | bgf* | bgxlf* | mpixlf*)
8885 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8886 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8889 if test "x$supports_anon_versioning" = xyes; then
8890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8892 echo "local: *; };" >> $output_objdir/$libname.ver~
8893 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8904 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8913 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8917 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8918 *** create shared libraries on Solaris systems. Therefore, libtool
8919 *** is disabling shared libraries support. We urge you to upgrade GNU
8920 *** binutils to release 2.9.1 or newer. Another option is to modify
8921 *** your PATH or compiler configuration so that the native linker is
8922 *** used, and then restart.
8925 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8934 case `$LD -v 2>&1` in
8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8939 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8940 *** reliably create shared libraries on SCO systems. Therefore, libtool
8941 *** is disabling shared libraries support. We urge you to upgrade GNU
8942 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8943 *** your PATH or compiler configuration so that the native linker is
8944 *** used, and then restart.
8949 # For security reasons, it is highly recommended that you always
8950 # use absolute paths for naming shared libraries, and exclude the
8951 # DT_RUNPATH tag from executables and libraries. But doing so
8952 # requires that you compile everything twice, which is a pain.
8953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8956 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8965 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_shlibpath_var=no
8972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981 if test "$ld_shlibs" = no; then
8983 hardcode_libdir_flag_spec=
8984 export_dynamic_flag_spec=
8985 whole_archive_flag_spec=
8988 # PORTME fill in a description of your system's linker (not GNU ld)
8991 allow_undefined_flag=unsupported
8992 always_export_symbols=yes
8993 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'
8994 # Note: this linker hardcodes the directories in LIBPATH if there
8995 # are no directories specified by -L.
8996 hardcode_minus_L=yes
8997 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8998 # Neither direct hardcoding nor static linking is supported with a
9000 hardcode_direct=unsupported
9005 if test "$host_cpu" = ia64; then
9006 # On IA64, the linker does run time linking by default, so we don't
9007 # have to do anything special.
9008 aix_use_runtimelinking=no
9009 exp_sym_flag='-Bexport'
9012 # If we're using GNU nm, then we don't want the "-C" option.
9013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9014 # Also, AIX nm treats weak defined symbols like other global
9015 # defined symbols, whereas GNU nm marks them as "W".
9016 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9017 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'
9019 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'
9021 aix_use_runtimelinking=no
9023 # Test if we are trying to use run time linking or normal
9024 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9025 # need to do runtime linking.
9026 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9027 for ld_flag in $LDFLAGS; do
9028 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9029 aix_use_runtimelinking=yes
9036 exp_sym_flag='-bexport'
9037 no_entry_flag='-bnoentry'
9040 # When large executables or shared objects are built, AIX ld can
9041 # have problems creating the table of contents. If linking a library
9042 # or program results in "error TOC overflow" add -mminimal-toc to
9043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9048 hardcode_direct_absolute=yes
9049 hardcode_libdir_separator=':'
9050 link_all_deplibs=yes
9051 file_list_spec='${wl}-f,'
9053 if test "$GCC" = yes; then
9054 case $host_os in aix4.[012]|aix4.[012].*)
9055 # We only want to do this on AIX 4.2 and lower, the check
9056 # below for broken collect2 doesn't work under 4.3+
9057 collect2name=`${CC} -print-prog-name=collect2`
9058 if test -f "$collect2name" &&
9059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9061 # We have reworked collect2
9064 # We have old collect2
9065 hardcode_direct=unsupported
9066 # It fails to find uninstalled libraries when the uninstalled
9067 # path is not listed in the libpath. Setting hardcode_minus_L
9068 # to unsupported forces relinking
9069 hardcode_minus_L=yes
9070 hardcode_libdir_flag_spec='-L$libdir'
9071 hardcode_libdir_separator=
9075 shared_flag='-shared'
9076 if test "$aix_use_runtimelinking" = yes; then
9077 shared_flag="$shared_flag "'${wl}-G'
9081 if test "$host_cpu" = ia64; then
9082 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9083 # chokes on -Wl,-G. The following line is correct:
9086 if test "$aix_use_runtimelinking" = yes; then
9087 shared_flag='${wl}-G'
9089 shared_flag='${wl}-bM:SRE'
9094 export_dynamic_flag_spec='${wl}-bexpall'
9095 # It seems that -bexpall does not export symbols beginning with
9096 # underscore (_), so it is better to generate a list of symbols to export.
9097 always_export_symbols=yes
9098 if test "$aix_use_runtimelinking" = yes; then
9099 # Warning - without using the other runtime loading flags (-brtl),
9100 # -berok will link without error, but may produce a broken library.
9101 allow_undefined_flag='-berok'
9102 # Determine the default libpath from the value encoded in an
9104 if test "${lt_cv_aix_libpath+set}" = set; then
9105 aix_libpath=$lt_cv_aix_libpath
9107 if ${lt_cv_aix_libpath_+:} false; then :
9108 $as_echo_n "(cached) " >&6
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9121 if ac_fn_c_try_link "$LINENO"; then :
9123 lt_aix_libpath_sed='
9124 /Import File Strings/,/^$/ {
9126 s/^0 *\([^ ]*\) *$/\1/
9130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9131 # Check for a 64-bit object if we didn't find anything.
9132 if test -z "$lt_cv_aix_libpath_"; then
9133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 if test -z "$lt_cv_aix_libpath_"; then
9139 lt_cv_aix_libpath_="/usr/lib:/lib"
9144 aix_libpath=$lt_cv_aix_libpath_
9147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9148 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"
9150 if test "$host_cpu" = ia64; then
9151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9152 allow_undefined_flag="-z nodefs"
9153 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"
9155 # Determine the default libpath from the value encoded in an
9157 if test "${lt_cv_aix_libpath+set}" = set; then
9158 aix_libpath=$lt_cv_aix_libpath
9160 if ${lt_cv_aix_libpath_+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9174 if ac_fn_c_try_link "$LINENO"; then :
9176 lt_aix_libpath_sed='
9177 /Import File Strings/,/^$/ {
9179 s/^0 *\([^ ]*\) *$/\1/
9183 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184 # Check for a 64-bit object if we didn't find anything.
9185 if test -z "$lt_cv_aix_libpath_"; then
9186 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 if test -z "$lt_cv_aix_libpath_"; then
9192 lt_cv_aix_libpath_="/usr/lib:/lib"
9197 aix_libpath=$lt_cv_aix_libpath_
9200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9201 # Warning - without using the other run time loading flags,
9202 # -berok will link without error, but may produce a broken library.
9203 no_undefined_flag=' ${wl}-bernotok'
9204 allow_undefined_flag=' ${wl}-berok'
9205 if test "$with_gnu_ld" = yes; then
9206 # We only use this code for GNU lds that support --whole-archive.
9207 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9209 # Exported symbols can be pulled into shared objects from archives
9210 whole_archive_flag_spec='$convenience'
9212 archive_cmds_need_lc=yes
9213 # This is similar to how AIX traditionally builds its shared libraries.
9214 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'
9222 # see comment about AmigaOS4 .so support
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds=''
9227 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)'
9228 hardcode_libdir_flag_spec='-L$libdir'
9229 hardcode_minus_L=yes
9235 export_dynamic_flag_spec=-rdynamic
9238 cygwin* | mingw* | pw32* | cegcc*)
9239 # When not using gcc, we currently assume that we are using
9240 # Microsoft Visual C++.
9241 # hardcode_libdir_flag_spec is actually meaningless, as there is
9242 # no search path for DLLs.
9243 case $cc_basename in
9246 hardcode_libdir_flag_spec=' '
9247 allow_undefined_flag=unsupported
9248 always_export_symbols=yes
9250 # Tell ltmain to make .lib files, not .a files.
9252 # Tell ltmain to make .dll files, not .so files.
9254 # FIXME: Setting linknames here is a bad hack.
9255 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9256 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9257 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9259 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9263 # The linker will not automatically build a static lib if we build a DLL.
9264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9265 enable_shared_with_static_runtimes=yes
9266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9269 old_postinstall_cmds='chmod 644 $oldlib'
9270 postlink_cmds='lt_outputfile="@OUTPUT@"~
9271 lt_tool_outputfile="@TOOL_OUTPUT@"~
9272 case $lt_outputfile in
9275 lt_outputfile="$lt_outputfile.exe"
9276 lt_tool_outputfile="$lt_tool_outputfile.exe"
9279 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9281 $RM "$lt_outputfile.manifest";
9285 # Assume MSVC wrapper
9286 hardcode_libdir_flag_spec=' '
9287 allow_undefined_flag=unsupported
9288 # Tell ltmain to make .lib files, not .a files.
9290 # Tell ltmain to make .dll files, not .so files.
9292 # FIXME: Setting linknames here is a bad hack.
9293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9294 # The linker will automatically build a .lib file if we build a DLL.
9295 old_archive_from_new_cmds='true'
9296 # FIXME: Should let the user specify the lib program.
9297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9298 enable_shared_with_static_runtimes=yes
9303 darwin* | rhapsody*)
9306 archive_cmds_need_lc=no
9308 hardcode_automatic=yes
9309 hardcode_shlibpath_var=unsupported
9310 if test "$lt_cv_ld_force_load" = "yes"; then
9311 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\"`'
9314 whole_archive_flag_spec=''
9316 link_all_deplibs=yes
9317 allow_undefined_flag="$_lt_dar_allow_undefined"
9318 case $cc_basename in
9319 ifort*) _lt_dar_can_shared=yes ;;
9320 *) _lt_dar_can_shared=$GCC ;;
9322 if test "$_lt_dar_can_shared" = "yes"; then
9323 output_verbose_link_cmd=func_echo_all
9324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9326 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}"
9327 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}"
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_shlibpath_var=no
9341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9342 # support. Future versions do this automatically, but an explicit c++rt0.o
9343 # does not break anything, and helps significantly (at the cost of a little
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9347 hardcode_libdir_flag_spec='-R$libdir'
9349 hardcode_shlibpath_var=no
9352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9361 freebsd* | dragonfly*)
9362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9363 hardcode_libdir_flag_spec='-R$libdir'
9365 hardcode_shlibpath_var=no
9369 if test "$GCC" = yes; then
9370 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'
9372 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'
9374 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9375 hardcode_libdir_separator=:
9378 # hardcode_minus_L: Not really in the search PATH,
9379 # but as the default location of the library.
9380 hardcode_minus_L=yes
9381 export_dynamic_flag_spec='${wl}-E'
9385 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9386 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9390 if test "$with_gnu_ld" = no; then
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9394 hardcode_direct_absolute=yes
9395 export_dynamic_flag_spec='${wl}-E'
9396 # hardcode_minus_L: Not really in the search PATH,
9397 # but as the default location of the library.
9398 hardcode_minus_L=yes
9403 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9406 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9425 # Older versions of the 11.00 compiler do not understand -b yet
9426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9428 $as_echo_n "checking if $CC understands -b... " >&6; }
9429 if ${lt_cv_prog_compiler__b+:} false; then :
9430 $as_echo_n "(cached) " >&6
9432 lt_cv_prog_compiler__b=no
9433 save_LDFLAGS="$LDFLAGS"
9434 LDFLAGS="$LDFLAGS -b"
9435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437 # The linker can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 if test -s conftest.err; then
9440 # Append any errors to the config.log.
9441 cat conftest.err 1>&5
9442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444 if diff conftest.exp conftest.er2 >/dev/null; then
9445 lt_cv_prog_compiler__b=yes
9448 lt_cv_prog_compiler__b=yes
9452 LDFLAGS="$save_LDFLAGS"
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9456 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9458 if test x"$lt_cv_prog_compiler__b" = xyes; then
9459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9467 if test "$with_gnu_ld" = no; then
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
9474 hardcode_shlibpath_var=no
9478 hardcode_direct_absolute=yes
9479 export_dynamic_flag_spec='${wl}-E'
9481 # hardcode_minus_L: Not really in the search PATH,
9482 # but as the default location of the library.
9483 hardcode_minus_L=yes
9489 irix5* | irix6* | nonstopux*)
9490 if test "$GCC" = yes; then
9491 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'
9492 # Try to use the -exported_symbol ld option, if it does not
9493 # work, assume that -exports_file does not work either and
9494 # implicitly export all symbols.
9495 # This should be the same for all languages, so no per-tag cache variable.
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9497 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9498 if ${lt_cv_irix_exported_symbol+:} false; then :
9499 $as_echo_n "(cached) " >&6
9501 save_LDFLAGS="$LDFLAGS"
9502 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505 int foo (void) { return 0; }
9507 if ac_fn_c_try_link "$LINENO"; then :
9508 lt_cv_irix_exported_symbol=yes
9510 lt_cv_irix_exported_symbol=no
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LDFLAGS="$save_LDFLAGS"
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9517 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9518 if test "$lt_cv_irix_exported_symbol" = yes; then
9519 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'
9522 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'
9523 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'
9525 archive_cmds_need_lc='no'
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 hardcode_libdir_separator=:
9529 link_all_deplibs=yes
9533 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9536 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9538 hardcode_libdir_flag_spec='-R$libdir'
9540 hardcode_shlibpath_var=no
9544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9555 if test -f /usr/libexec/ld.so; then
9557 hardcode_shlibpath_var=no
9558 hardcode_direct_absolute=yes
9559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563 export_dynamic_flag_spec='${wl}-E'
9566 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='-R$libdir'
9571 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9572 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_minus_L=yes
9584 allow_undefined_flag=unsupported
9585 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'
9586 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9590 if test "$GCC" = yes; then
9591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9592 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'
9594 allow_undefined_flag=' -expect_unresolved \*'
9595 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'
9597 archive_cmds_need_lc='no'
9598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9599 hardcode_libdir_separator=:
9602 osf4* | osf5*) # as osf3* with the addition of -msym flag
9603 if test "$GCC" = yes; then
9604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9605 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'
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 allow_undefined_flag=' -expect_unresolved \*'
9609 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'
9610 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~
9611 $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'
9613 # Both c and cxx compiler support -rpath directly
9614 hardcode_libdir_flag_spec='-rpath $libdir'
9616 archive_cmds_need_lc='no'
9617 hardcode_libdir_separator=:
9621 no_undefined_flag=' -z defs'
9622 if test "$GCC" = yes; then
9624 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9626 $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'
9628 case `$CC -V 2>&1` in
9631 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9637 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9639 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9643 hardcode_libdir_flag_spec='-R$libdir'
9644 hardcode_shlibpath_var=no
9646 solaris2.[0-5] | solaris2.[0-5].*) ;;
9648 # The compiler driver will combine and reorder linker options,
9649 # but understands `-z linker_flag'. GCC discards it without `$wl',
9650 # but is careful enough not to reorder.
9651 # Supported since Solaris 2.6 (maybe 2.5.1?)
9652 if test "$GCC" = yes; then
9653 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9659 link_all_deplibs=yes
9663 if test "x$host_vendor" = xsequent; then
9664 # Use $CC to link under sequent, because it throws in some extra .o
9665 # files that make .init and .fini sections work.
9666 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_libdir_flag_spec='-L$libdir'
9672 hardcode_minus_L=yes
9673 hardcode_shlibpath_var=no
9677 case $host_vendor in
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=yes # is this really true???
9683 ## LD is ld it makes a PLAMLIB
9684 ## CC just makes a GrossModule.
9685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9686 reload_cmds='$CC -r -o $output$reload_objs'
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9694 runpath_var='LD_RUN_PATH'
9695 hardcode_shlibpath_var=no
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_shlibpath_var=no
9701 export_dynamic_flag_spec='-Bexport'
9705 if test -d /usr/nec; then
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9707 hardcode_shlibpath_var=no
9708 runpath_var=LD_RUN_PATH
9709 hardcode_runpath_var=yes
9714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9715 no_undefined_flag='${wl}-z,text'
9716 archive_cmds_need_lc=no
9717 hardcode_shlibpath_var=no
9718 runpath_var='LD_RUN_PATH'
9720 if test "$GCC" = yes; then
9721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 sysv5* | sco3.2v5* | sco5v6*)
9730 # Note: We can NOT use -z defs as we might desire, because we do not
9731 # link with -lc, and that would cause any symbols used from libc to
9732 # always be unresolved, which means just about no library would
9733 # ever link correctly. If we're not using GNU ld we use -z text
9734 # though, which does catch some bad symbols but isn't as heavy-handed
9736 no_undefined_flag='${wl}-z,text'
9737 allow_undefined_flag='${wl}-z,nodefs'
9738 archive_cmds_need_lc=no
9739 hardcode_shlibpath_var=no
9740 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9741 hardcode_libdir_separator=':'
9742 link_all_deplibs=yes
9743 export_dynamic_flag_spec='${wl}-Bexport'
9744 runpath_var='LD_RUN_PATH'
9746 if test "$GCC" = yes; then
9747 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9751 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_shlibpath_var=no
9766 if test x$host_vendor = xsni; then
9768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9776 $as_echo "$ld_shlibs" >&6; }
9777 test "$ld_shlibs" = no && can_build_shared=no
9779 with_gnu_ld=$with_gnu_ld
9796 # Do we need to explicitly link libc?
9798 case "x$archive_cmds_need_lc" in
9800 # Assume -lc should be added
9801 archive_cmds_need_lc=yes
9803 if test "$enable_shared" = yes && test "$GCC" = yes; then
9804 case $archive_cmds in
9806 # FIXME: we may have to deal with multi-command sequences.
9809 # Test whether the compiler implicitly links with -lc since on some
9810 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9811 # to ld, don't add -lc before -lgcc.
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9813 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9814 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9815 $as_echo_n "(cached) " >&6
9818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9821 (eval $ac_compile) 2>&5
9823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824 test $ac_status = 0; } 2>conftest.err; then
9827 libobjs=conftest.$ac_objext
9829 wl=$lt_prog_compiler_wl
9830 pic_flag=$lt_prog_compiler_pic
9836 lt_save_allow_undefined_flag=$allow_undefined_flag
9837 allow_undefined_flag=
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9839 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; }
9844 lt_cv_archive_cmds_need_lc=no
9846 lt_cv_archive_cmds_need_lc=yes
9848 allow_undefined_flag=$lt_save_allow_undefined_flag
9850 cat conftest.err 1>&5
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9856 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9857 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10016 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10018 if test "$GCC" = yes; then
10020 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10021 *) lt_awk_arg="/^libraries:/" ;;
10024 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10025 *) lt_sed_strip_eq="s,=/,/,g" ;;
10027 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10028 case $lt_search_path_spec in
10030 # if the path contains ";" then we assume it to be the separator
10031 # otherwise default to the standard path separator (i.e. ":") - it is
10032 # assumed that no part of a normal pathname contains ";" but that should
10033 # okay in the real world where ";" in dirpaths is itself problematic.
10034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10040 # Ok, now we have the path, separated by spaces, we can step through it
10041 # and add multilib dir if necessary...
10042 lt_tmp_lt_search_path_spec=
10043 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10044 # ...but if some path already ends with the multilib dir we assume
10045 # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
10046 case "$lt_multi_os_dir; $lt_search_path_spec " in
10047 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10051 for lt_sys_path in $lt_search_path_spec; do
10052 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10054 elif test -n "$lt_multi_os_dir"; then
10055 test -d "$lt_sys_path" && \
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10059 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10060 BEGIN {RS=" "; FS="/|\n";} {
10063 for (lt_i = NF; lt_i > 0; lt_i--) {
10064 if ($lt_i != "" && $lt_i != ".") {
10065 if ($lt_i == "..") {
10068 if (lt_count == 0) {
10069 lt_foo="/" $lt_i lt_foo;
10076 if (lt_foo != "") { lt_freq[lt_foo]++; }
10077 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10079 # AWK program above erroneously prepends '/' to C:/dos/paths
10082 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10083 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10085 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10087 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10089 library_names_spec=
10090 libname_spec='lib$name'
10094 postuninstall_cmds=
10098 shlibpath_overrides_runpath=unknown
10100 dynamic_linker="$host_os ld.so"
10101 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10102 need_lib_prefix=unknown
10103 hardcode_into_libs=no
10105 # when you set need_version to no, make sure it does not cause -set_version
10106 # flags to be left without arguments
10107 need_version=unknown
10111 version_type=linux # correct to gnu/linux during the next big refactor
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10113 shlibpath_var=LIBPATH
10115 # AIX 3 has no versioning support, so we append a major version to the name.
10116 soname_spec='${libname}${release}${shared_ext}$major'
10120 version_type=linux # correct to gnu/linux during the next big refactor
10123 hardcode_into_libs=yes
10124 if test "$host_cpu" = ia64; then
10125 # AIX 5 supports IA64
10126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10127 shlibpath_var=LD_LIBRARY_PATH
10129 # With GCC up to 2.95.x, collect2 would create an import file
10130 # for dependence libraries. The import file would start with
10131 # the line `#! .'. This would cause the generated library to
10132 # depend on `.', always an invalid library. This was fixed in
10133 # development snapshots of GCC prior to 3.0.
10135 aix4 | aix4.[01] | aix4.[01].*)
10136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10138 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10141 can_build_shared=no
10145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10146 # soname into executable. Probably we can add versioning support to
10147 # collect2, so additional links can be useful in future.
10148 if test "$aix_use_runtimelinking" = yes; then
10149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10150 # instead of lib<name>.a to let people know that these are not
10151 # typical AIX shared libraries.
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 # We preserve .a as extension for shared libraries through AIX4.2
10155 # and later when we are not doing run time linking.
10156 library_names_spec='${libname}${release}.a $libname.a'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LIBPATH
10166 # Since July 2007 AmigaOS4 officially supports .so libraries.
10167 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 library_names_spec='$libname.ixlibrary $libname.a'
10172 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10173 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'
10179 library_names_spec='${libname}${shared_ext}'
10180 dynamic_linker="$host_os ld.so"
10181 shlibpath_var=LIBRARY_PATH
10185 version_type=linux # correct to gnu/linux during the next big refactor
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
10191 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10192 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10193 # the default ld.so.conf also contains /usr/contrib/lib and
10194 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10195 # libtool to hard-code these into programs
10198 cygwin* | mingw* | pw32* | cegcc*)
10199 version_type=windows
10204 case $GCC,$cc_basename in
10207 library_names_spec='$libname.dll.a'
10208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209 postinstall_cmds='base_file=`basename \${file}`~
10210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10211 dldir=$destdir/`dirname \$dlpath`~
10212 test -d \$dldir || mkdir -p \$dldir~
10213 $install_prog $dir/$dlname \$dldir/$dlname~
10214 chmod a+x \$dldir/$dlname~
10215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10219 dlpath=$dir/\$dldll~
10221 shlibpath_overrides_runpath=yes
10225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10226 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10227 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
10229 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10232 # MinGW DLLs use traditional 'lib' prefix
10233 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
10234 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10241 dynamic_linker='Win32 ld.exe'
10246 libname_spec='$name'
10247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 library_names_spec='${libname}.dll.lib'
10252 sys_lib_search_path_spec=
10255 for lt_path in $LIB
10258 # Let DOS variable expansion print the short 8.3 style file name.
10259 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10260 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10263 # Convert to MSYS style.
10264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10267 # Convert to unix form, then to dos form, then back to unix form
10268 # but this time dos style (no spaces!) so that the unix form looks
10269 # like /cygdrive/c/PROGRA~1:/cygdr...
10270 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10271 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10272 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10275 sys_lib_search_path_spec="$LIB"
10276 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10277 # It is most probably a Windows format PATH.
10278 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10280 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10282 # FIXME: find the short name or the path components, as spaces are
10283 # common. (e.g. "Program Files" -> "PROGRA~1")
10287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10288 postinstall_cmds='base_file=`basename \${file}`~
10289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10290 dldir=$destdir/`dirname \$dlpath`~
10291 test -d \$dldir || mkdir -p \$dldir~
10292 $install_prog $dir/$dlname \$dldir/$dlname'
10293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10294 dlpath=$dir/\$dldll~
10296 shlibpath_overrides_runpath=yes
10297 dynamic_linker='Win32 link.exe'
10301 # Assume MSVC wrapper
10302 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10303 dynamic_linker='Win32 ld.exe'
10306 # FIXME: first we should search . and the directory the executable is in
10310 darwin* | rhapsody*)
10311 dynamic_linker="$host_os dyld"
10312 version_type=darwin
10315 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10316 soname_spec='${libname}${release}${major}$shared_ext'
10317 shlibpath_overrides_runpath=yes
10318 shlibpath_var=DYLD_LIBRARY_PATH
10319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10321 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10322 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10326 version_type=linux # correct to gnu/linux during the next big refactor
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10334 freebsd* | dragonfly*)
10335 # DragonFly does not have aout. When/if they implement a new
10336 # versioning mechanism, adjust this.
10337 if test -x /usr/bin/objformat; then
10338 objformat=`/usr/bin/objformat`
10341 freebsd[23].*) objformat=aout ;;
10342 *) objformat=elf ;;
10345 version_type=freebsd-$objformat
10346 case $version_type in
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10357 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10362 freebsd3.[01]* | freebsdelf3.[01]*)
10363 shlibpath_overrides_runpath=yes
10364 hardcode_into_libs=yes
10366 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10367 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10371 *) # from 4.6 on, and DragonFly
10372 shlibpath_overrides_runpath=yes
10373 hardcode_into_libs=yes
10379 version_type=linux # correct to gnu/linux during the next big refactor
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10390 version_type=linux # correct to gnu/linux during the next big refactor
10393 dynamic_linker="$host_os runtime_loader"
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LIBRARY_PATH
10397 shlibpath_overrides_runpath=yes
10398 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10399 hardcode_into_libs=yes
10402 hpux9* | hpux10* | hpux11*)
10403 # Give a soname corresponding to the major version so that dld.sl refuses to
10404 # link against other versions.
10411 hardcode_into_libs=yes
10412 dynamic_linker="$host_os dld.so"
10413 shlibpath_var=LD_LIBRARY_PATH
10414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 if test "X$HPUX_IA64_MODE" = X32; then
10418 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10420 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10422 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10426 hardcode_into_libs=yes
10427 dynamic_linker="$host_os dld.sl"
10428 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10433 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437 dynamic_linker="$host_os dld.sl"
10438 shlibpath_var=SHLIB_PATH
10439 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441 soname_spec='${libname}${release}${shared_ext}$major'
10444 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10445 postinstall_cmds='chmod 555 $lib'
10446 # or fails outright, so override atomically:
10447 install_override_mode=555
10451 version_type=linux # correct to gnu/linux during the next big refactor
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='Interix 3.x ld.so.1 (PE, like ELF)'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10459 hardcode_into_libs=yes
10462 irix5* | irix6* | nonstopux*)
10464 nonstopux*) version_type=nonstopux ;;
10466 if test "$lt_cv_prog_gnu_ld" = yes; then
10467 version_type=linux # correct to gnu/linux during the next big refactor
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10477 irix5* | nonstopux*)
10478 libsuff= shlibsuff=
10481 case $LD in # libtool.m4 will add one of these switches to LD
10482 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10483 libsuff= shlibsuff= libmagic=32-bit;;
10484 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10485 libsuff=32 shlibsuff=N32 libmagic=N32;;
10486 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10487 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10488 *) libsuff= shlibsuff= libmagic=never-match;;
10492 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10493 shlibpath_overrides_runpath=no
10494 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10495 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10496 hardcode_into_libs=yes
10499 # No shared lib support for Linux oldld, aout, or coff.
10500 linux*oldld* | linux*aout* | linux*coff*)
10504 # This must be glibc/ELF.
10505 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10506 version_type=linux # correct to gnu/linux during the next big refactor
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10512 shlibpath_var=LD_LIBRARY_PATH
10513 shlibpath_overrides_runpath=no
10515 # Some binutils ld are patched to set DT_RUNPATH
10516 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10517 $as_echo_n "(cached) " >&6
10519 lt_cv_shlibpath_overrides_runpath=no
10520 save_LDFLAGS=$LDFLAGS
10521 save_libdir=$libdir
10522 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10523 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10535 if ac_fn_c_try_link "$LINENO"; then :
10536 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10537 lt_cv_shlibpath_overrides_runpath=yes
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LDFLAGS=$save_LDFLAGS
10543 libdir=$save_libdir
10547 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10549 # This implies no fast_install, which is unacceptable.
10550 # Some rework will be needed to allow for fast_install
10551 # before this can be enabled.
10552 hardcode_into_libs=yes
10554 # Append ld.so.conf contents to the search path
10555 if test -f /etc/ld.so.conf; then
10556 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' ' '`
10557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10560 # We used to test for /lib/ld.so.1 and disable shared libraries on
10561 # powerpc, because MkLinux only supported shared libraries with the
10562 # GNU dynamic linker. Since this was broken with cross compilers,
10563 # most powerpc-linux boxes support dynamic linking these days and
10564 # people can always --disable-shared, the test was removed, and we
10565 # assume the GNU/Linux dynamic linker is in use.
10566 dynamic_linker='GNU/Linux ld.so'
10573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10576 dynamic_linker='NetBSD (a.out) ld.so'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 dynamic_linker='NetBSD ld.elf_so'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 hardcode_into_libs=yes
10588 version_type=linux # correct to gnu/linux during the next big refactor
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 shlibpath_overrides_runpath=yes
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=no
10602 hardcode_into_libs=yes
10603 dynamic_linker='ldqnx.so'
10608 sys_lib_dlsearch_path_spec="/usr/lib"
10610 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10612 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10613 *) need_version=no ;;
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10620 openbsd2.[89] | openbsd2.[89].*)
10621 shlibpath_overrides_runpath=no
10624 shlibpath_overrides_runpath=yes
10628 shlibpath_overrides_runpath=yes
10633 libname_spec='$name'
10636 library_names_spec='$libname${shared_ext} $libname.a'
10637 dynamic_linker='OS/2 ld.exe'
10638 shlibpath_var=LIBPATH
10641 osf3* | osf4* | osf5*)
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10649 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10657 version_type=linux # correct to gnu/linux during the next big refactor
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10665 # ldd complains unless libraries are executable
10666 postinstall_cmds='chmod +x $lib'
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 if test "$with_gnu_ld" = yes; then
10682 version_type=linux # correct to gnu/linux during the next big refactor
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 case $host_vendor in
10688 shlibpath_overrides_runpath=no
10690 runpath_var=LD_RUN_PATH
10698 shlibpath_overrides_runpath=no
10699 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10705 if test -d /usr/nec ;then
10706 version_type=linux # correct to gnu/linux during the next big refactor
10707 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10708 soname_spec='$libname${shared_ext}.$major'
10709 shlibpath_var=LD_LIBRARY_PATH
10713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10714 version_type=freebsd-elf
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=yes
10721 hardcode_into_libs=yes
10722 if test "$with_gnu_ld" = yes; then
10723 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10725 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10732 sys_lib_dlsearch_path_spec='/usr/lib'
10736 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10737 version_type=linux # correct to gnu/linux during the next big refactor
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=no
10743 hardcode_into_libs=yes
10747 version_type=linux # correct to gnu/linux during the next big refactor
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10758 $as_echo "$dynamic_linker" >&6; }
10759 test "$dynamic_linker" = no && can_build_shared=no
10761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10762 if test "$GCC" = yes; then
10763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10766 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10767 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10769 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10770 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10865 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10867 if test -n "$hardcode_libdir_flag_spec" ||
10868 test -n "$runpath_var" ||
10869 test "X$hardcode_automatic" = "Xyes" ; then
10871 # We can hardcode non-existent directories.
10872 if test "$hardcode_direct" != no &&
10873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10874 # have to relink, otherwise we might link with an installed library
10875 # when we should be linking with a yet-to-be-installed one
10876 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10877 test "$hardcode_minus_L" != no; then
10878 # Linking always hardcodes the temporary library directory.
10879 hardcode_action=relink
10881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10882 hardcode_action=immediate
10885 # We cannot hardcode anything, or else we can only hardcode existing
10887 hardcode_action=unsupported
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10890 $as_echo "$hardcode_action" >&6; }
10892 if test "$hardcode_action" = relink ||
10893 test "$inherit_rpath" = yes; then
10894 # Fast installation is not supported
10895 enable_fast_install=no
10896 elif test "$shlibpath_overrides_runpath" = yes ||
10897 test "$enable_shared" = no; then
10898 # Fast installation is not necessary
10899 enable_fast_install=needless
10907 if test "x$enable_dlopen" != xyes; then
10908 enable_dlopen=unknown
10909 enable_dlopen_self=unknown
10910 enable_dlopen_self_static=unknown
10917 lt_cv_dlopen="load_add_on"
10919 lt_cv_dlopen_self=yes
10922 mingw* | pw32* | cegcc*)
10923 lt_cv_dlopen="LoadLibrary"
10928 lt_cv_dlopen="dlopen"
10933 # if libdl is installed we need to link against it
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10935 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10936 if ${ac_cv_lib_dl_dlopen+:} false; then :
10937 $as_echo_n "(cached) " >&6
10939 ac_check_lib_save_LIBS=$LIBS
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_dl_dlopen=yes
10962 ac_cv_lib_dl_dlopen=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10970 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10974 lt_cv_dlopen="dyld"
10976 lt_cv_dlopen_self=yes
10983 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10984 if test "x$ac_cv_func_shl_load" = xyes; then :
10985 lt_cv_dlopen="shl_load"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10988 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10989 if ${ac_cv_lib_dld_shl_load+:} false; then :
10990 $as_echo_n "(cached) " >&6
10992 ac_check_lib_save_LIBS=$LIBS
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11007 return shl_load ();
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_dld_shl_load=yes
11015 ac_cv_lib_dld_shl_load=no
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11022 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11023 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11024 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11026 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11027 if test "x$ac_cv_func_dlopen" = xyes; then :
11028 lt_cv_dlopen="dlopen"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11031 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11032 if ${ac_cv_lib_dl_dlopen+:} false; then :
11033 $as_echo_n "(cached) " >&6
11035 ac_check_lib_save_LIBS=$LIBS
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_lib_dl_dlopen=yes
11058 ac_cv_lib_dl_dlopen=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11065 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11066 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11067 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11070 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11071 if ${ac_cv_lib_svld_dlopen+:} false; then :
11072 $as_echo_n "(cached) " >&6
11074 ac_check_lib_save_LIBS=$LIBS
11075 LIBS="-lsvld $LIBS"
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11079 /* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
11094 if ac_fn_c_try_link "$LINENO"; then :
11095 ac_cv_lib_svld_dlopen=yes
11097 ac_cv_lib_svld_dlopen=no
11099 rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11104 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11105 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11109 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11110 if ${ac_cv_lib_dld_dld_link+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 ac_check_lib_save_LIBS=$LIBS
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11128 return dld_link ();
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 ac_cv_lib_dld_dld_link=yes
11136 ac_cv_lib_dld_dld_link=no
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11143 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11144 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11145 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11166 if test "x$lt_cv_dlopen" != xno; then
11172 case $lt_cv_dlopen in
11174 save_CPPFLAGS="$CPPFLAGS"
11175 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11177 save_LDFLAGS="$LDFLAGS"
11178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11181 LIBS="$lt_cv_dlopen_libs $LIBS"
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11184 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11185 if ${lt_cv_dlopen_self+:} false; then :
11186 $as_echo_n "(cached) " >&6
11188 if test "$cross_compiling" = yes; then :
11189 lt_cv_dlopen_self=cross
11191 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11192 lt_status=$lt_dlunknown
11193 cat > conftest.$ac_ext <<_LT_EOF
11194 #line $LINENO "configure"
11195 #include "confdefs.h"
11204 # define LT_DLGLOBAL RTLD_GLOBAL
11207 # define LT_DLGLOBAL DL_GLOBAL
11209 # define LT_DLGLOBAL 0
11213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11214 find out it does not work in some platform. */
11215 #ifndef LT_DLLAZY_OR_NOW
11217 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11220 # define LT_DLLAZY_OR_NOW DL_LAZY
11223 # define LT_DLLAZY_OR_NOW RTLD_NOW
11226 # define LT_DLLAZY_OR_NOW DL_NOW
11228 # define LT_DLLAZY_OR_NOW 0
11235 /* When -fvisbility=hidden is used, assume the code has been annotated
11236 correspondingly for the symbols needed. */
11237 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11238 int fnord () __attribute__((visibility("default")));
11241 int fnord () { return 42; }
11244 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11245 int status = $lt_dlunknown;
11249 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11252 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11253 else puts (dlerror ());
11255 /* dlclose (self); */
11263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11264 (eval $ac_link) 2>&5
11266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11267 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11268 (./conftest; exit; ) >&5 2>/dev/null
11270 case x$lt_status in
11271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11276 # compilation failed
11277 lt_cv_dlopen_self=no
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11285 $as_echo "$lt_cv_dlopen_self" >&6; }
11287 if test "x$lt_cv_dlopen_self" = xyes; then
11288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11290 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11291 if ${lt_cv_dlopen_self_static+:} false; then :
11292 $as_echo_n "(cached) " >&6
11294 if test "$cross_compiling" = yes; then :
11295 lt_cv_dlopen_self_static=cross
11297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11298 lt_status=$lt_dlunknown
11299 cat > conftest.$ac_ext <<_LT_EOF
11300 #line $LINENO "configure"
11301 #include "confdefs.h"
11310 # define LT_DLGLOBAL RTLD_GLOBAL
11313 # define LT_DLGLOBAL DL_GLOBAL
11315 # define LT_DLGLOBAL 0
11319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11320 find out it does not work in some platform. */
11321 #ifndef LT_DLLAZY_OR_NOW
11323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11326 # define LT_DLLAZY_OR_NOW DL_LAZY
11329 # define LT_DLLAZY_OR_NOW RTLD_NOW
11332 # define LT_DLLAZY_OR_NOW DL_NOW
11334 # define LT_DLLAZY_OR_NOW 0
11341 /* When -fvisbility=hidden is used, assume the code has been annotated
11342 correspondingly for the symbols needed. */
11343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11344 int fnord () __attribute__((visibility("default")));
11347 int fnord () { return 42; }
11350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11351 int status = $lt_dlunknown;
11355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359 else puts (dlerror ());
11361 /* dlclose (self); */
11369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11370 (eval $ac_link) 2>&5
11372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11374 (./conftest; exit; ) >&5 2>/dev/null
11376 case x$lt_status in
11377 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11378 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11379 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11382 # compilation failed
11383 lt_cv_dlopen_self_static=no
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11394 CPPFLAGS="$save_CPPFLAGS"
11395 LDFLAGS="$save_LDFLAGS"
11400 case $lt_cv_dlopen_self in
11401 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11402 *) enable_dlopen_self=unknown ;;
11405 case $lt_cv_dlopen_self_static in
11406 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11407 *) enable_dlopen_self_static=unknown ;;
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11431 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435 $as_echo "yes" >&6; }
11437 # FIXME - insert some real tests, host_os isn't really good enough
11440 if test -n "$STRIP" ; then
11441 striplib="$STRIP -x"
11442 old_striplib="$STRIP -S"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11444 $as_echo "yes" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447 $as_echo "no" >&6; }
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452 $as_echo "no" >&6; }
11468 # Report which library types will actually be built
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11472 $as_echo "$can_build_shared" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11475 $as_echo_n "checking whether to build shared libraries... " >&6; }
11476 test "$can_build_shared" = "no" && enable_shared=no
11478 # On AIX, shared libraries and static libraries use the same namespace, and
11479 # are all built from PIC.
11482 test "$enable_shared" = yes && enable_static=no
11483 if test -n "$RANLIB"; then
11484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11485 postinstall_cmds='$RANLIB $lib'
11490 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11491 test "$enable_shared" = yes && enable_static=no
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11496 $as_echo "$enable_shared" >&6; }
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11499 $as_echo_n "checking whether to build static libraries... " >&6; }
11500 # Make sure either enable_shared or enable_static is yes.
11501 test "$enable_shared" = yes || enable_static=yes
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11503 $as_echo "$enable_static" >&6; }
11510 ac_cpp='$CPP $CPPFLAGS'
11511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11531 ac_config_commands="$ac_config_commands libtool"
11536 # Only expand once:
11539 if test -n "$ac_tool_prefix"; then
11540 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
11541 set dummy ${ac_tool_prefix}windres; ac_word=$2
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11543 $as_echo_n "checking for $ac_word... " >&6; }
11544 if ${ac_cv_prog_RC+:} false; then :
11545 $as_echo_n "(cached) " >&6
11547 if test -n "$RC"; then
11548 ac_cv_prog_RC="$RC" # Let the user override the test.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11557 ac_cv_prog_RC="${ac_tool_prefix}windres"
11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11568 if test -n "$RC"; then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
11570 $as_echo "$RC" >&6; }
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11578 if test -z "$ac_cv_prog_RC"; then
11580 # Extract the first word of "windres", so it can be a program name with args.
11581 set dummy windres; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583 $as_echo_n "checking for $ac_word... " >&6; }
11584 if ${ac_cv_prog_ac_ct_RC+:} false; then :
11585 $as_echo_n "(cached) " >&6
11587 if test -n "$ac_ct_RC"; then
11588 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_prog_ac_ct_RC="windres"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 ac_ct_RC=$ac_cv_prog_ac_ct_RC
11608 if test -n "$ac_ct_RC"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
11610 $as_echo "$ac_ct_RC" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613 $as_echo "no" >&6; }
11616 if test "x$ac_ct_RC" = x; then
11619 case $cross_compiling:$ac_tool_warned in
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11623 ac_tool_warned=yes ;;
11628 RC="$ac_cv_prog_RC"
11634 # Source file extension for RC test sources.
11637 # Object file extension for compiled RC test sources.
11641 # Code to be used in simple compile tests
11642 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11644 # Code to be used in simple link tests
11645 lt_simple_link_test_code="$lt_simple_compile_test_code"
11647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11654 # If no C compiler was specified, use CC.
11657 # If no C compiler flags were specified, use CFLAGS.
11658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11660 # Allow CC to be a program name with arguments.
11664 # save warnings/boilerplate of simple test code
11665 ac_outfile=conftest.$ac_objext
11666 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11667 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11668 _lt_compiler_boilerplate=`cat conftest.err`
11671 ac_outfile=conftest.$ac_objext
11672 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11673 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11674 _lt_linker_boilerplate=`cat conftest.err`
11678 # Allow CC to be a program name with arguments.
11680 lt_save_CFLAGS=$CFLAGS
11687 for cc_temp in $compiler""; do
11689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11695 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11697 lt_cv_prog_compiler_c_o_RC=yes
11699 if test -n "$compiler"; then
11708 ac_cpp='$CPP $CPPFLAGS'
11709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714 CFLAGS=$lt_save_CFLAGS
11717 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11718 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11719 LT_REVISION=$SDL_INTERFACE_AGE
11720 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11730 ac_cpp='$CPP $CPPFLAGS'
11731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11734 if test -n "$ac_tool_prefix"; then
11735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11736 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_prog_CC+:} false; then :
11740 $as_echo_n "(cached) " >&6
11742 if test -n "$CC"; then
11743 ac_cv_prog_CC="$CC" # Let the user override the test.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 if test -n "$CC"; then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11765 $as_echo "$CC" >&6; }
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; }
11773 if test -z "$ac_cv_prog_CC"; then
11775 # Extract the first word of "gcc", so it can be a program name with args.
11776 set dummy gcc; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11780 $as_echo_n "(cached) " >&6
11782 if test -n "$ac_ct_CC"; then
11783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_ac_ct_CC="gcc"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11803 if test -n "$ac_ct_CC"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11805 $as_echo "$ac_ct_CC" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11811 if test "x$ac_ct_CC" = x; then
11814 case $cross_compiling:$ac_tool_warned in
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11818 ac_tool_warned=yes ;;
11823 CC="$ac_cv_prog_CC"
11826 if test -z "$CC"; then
11827 if test -n "$ac_tool_prefix"; then
11828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11829 set dummy ${ac_tool_prefix}cc; ac_word=$2
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831 $as_echo_n "checking for $ac_word... " >&6; }
11832 if ${ac_cv_prog_CC+:} false; then :
11833 $as_echo_n "(cached) " >&6
11835 if test -n "$CC"; then
11836 ac_cv_prog_CC="$CC" # Let the user override the test.
11838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839 for as_dir in $PATH
11842 test -z "$as_dir" && as_dir=.
11843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11845 ac_cv_prog_CC="${ac_tool_prefix}cc"
11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 if test -n "$CC"; then
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11858 $as_echo "$CC" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11867 if test -z "$CC"; then
11868 # Extract the first word of "cc", so it can be a program name with args.
11869 set dummy cc; ac_word=$2
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11871 $as_echo_n "checking for $ac_word... " >&6; }
11872 if ${ac_cv_prog_CC+:} false; then :
11873 $as_echo_n "(cached) " >&6
11875 if test -n "$CC"; then
11876 ac_cv_prog_CC="$CC" # Let the user override the test.
11878 ac_prog_rejected=no
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11887 ac_prog_rejected=yes
11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11898 if test $ac_prog_rejected = yes; then
11899 # We found a bogon in the path, so make sure we never use it.
11900 set dummy $ac_cv_prog_CC
11902 if test $# != 0; then
11903 # We chose a different compiler from the bogus one.
11904 # However, it has the same basename, so the bogon will be chosen
11905 # first if we set CC to just the basename; use the full file name.
11907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11913 if test -n "$CC"; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11915 $as_echo "$CC" >&6; }
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11923 if test -z "$CC"; then
11924 if test -n "$ac_tool_prefix"; then
11925 for ac_prog in cl.exe
11927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_prog_CC+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 if test -n "$CC"; then
11935 ac_cv_prog_CC="$CC" # Let the user override the test.
11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938 for as_dir in $PATH
11941 test -z "$as_dir" && as_dir=.
11942 for ac_exec_ext in '' $ac_executable_extensions; do
11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 if test -n "$CC"; then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11957 $as_echo "$CC" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11964 test -n "$CC" && break
11967 if test -z "$CC"; then
11969 for ac_prog in cl.exe
11971 # Extract the first word of "$ac_prog", so it can be a program name with args.
11972 set dummy $ac_prog; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974 $as_echo_n "checking for $ac_word... " >&6; }
11975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11976 $as_echo_n "(cached) " >&6
11978 if test -n "$ac_ct_CC"; then
11979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11988 ac_cv_prog_ac_ct_CC="$ac_prog"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11999 if test -n "$ac_ct_CC"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12001 $as_echo "$ac_ct_CC" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12008 test -n "$ac_ct_CC" && break
12011 if test "x$ac_ct_CC" = x; then
12014 case $cross_compiling:$ac_tool_warned in
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12018 ac_tool_warned=yes ;;
12027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12029 as_fn_error $? "no acceptable C compiler found in \$PATH
12030 See \`config.log' for more details" "$LINENO" 5; }
12032 # Provide some information about the compiler.
12033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12036 for ac_option in --version -v -V -qversion; do
12037 { { ac_try="$ac_compiler $ac_option >&5"
12038 case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12043 $as_echo "$ac_try_echo"; } >&5
12044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12046 if test -s conftest.err; then
12048 ... rest of stderr output deleted ...
12049 10q' conftest.err >conftest.er1
12050 cat conftest.er1 >&5
12052 rm -f conftest.er1 conftest.err
12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054 test $ac_status = 0; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12058 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12059 if ${ac_cv_c_compiler_gnu+:} false; then :
12060 $as_echo_n "(cached) " >&6
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 ac_compiler_gnu=yes
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12086 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12087 if test $ac_compiler_gnu = yes; then
12092 ac_test_CFLAGS=${CFLAGS+set}
12093 ac_save_CFLAGS=$CFLAGS
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12095 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12096 if ${ac_cv_prog_cc_g+:} false; then :
12097 $as_echo_n "(cached) " >&6
12099 ac_save_c_werror_flag=$ac_c_werror_flag
12100 ac_c_werror_flag=yes
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12114 if ac_fn_c_try_compile "$LINENO"; then :
12115 ac_cv_prog_cc_g=yes
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12129 if ac_fn_c_try_compile "$LINENO"; then :
12132 ac_c_werror_flag=$ac_save_c_werror_flag
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 ac_cv_prog_cc_g=yes
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153 ac_c_werror_flag=$ac_save_c_werror_flag
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12156 $as_echo "$ac_cv_prog_cc_g" >&6; }
12157 if test "$ac_test_CFLAGS" = set; then
12158 CFLAGS=$ac_save_CFLAGS
12159 elif test $ac_cv_prog_cc_g = yes; then
12160 if test "$GCC" = yes; then
12166 if test "$GCC" = yes; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12173 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12174 if ${ac_cv_prog_cc_c89+:} false; then :
12175 $as_echo_n "(cached) " >&6
12177 ac_cv_prog_cc_c89=no
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12181 #include <stdarg.h>
12184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12185 struct buf { int x; };
12186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12187 static char *e (p, i)
12193 static char *f (char * (*g) (char **, int), char **p, ...)
12198 s = g (p, va_arg (v,int));
12203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12204 function prototypes and stuff, but not '\xHH' hex character constants.
12205 These don't provoke an error unfortunately, instead are silently treated
12206 as 'x'. The following induces an error, until -std is added to get
12207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12208 array size at least. It's necessary to write '\x00'==0 to get something
12209 that's true only with -std. */
12210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12212 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12213 inside strings and character constants. */
12215 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12217 int test (int i, double x);
12218 struct s1 {int (*f) (int a);};
12219 struct s2 {int (*f) (double a);};
12220 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12226 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12231 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12234 CC="$ac_save_CC $ac_arg"
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 ac_cv_prog_cc_c89=$ac_arg
12238 rm -f core conftest.err conftest.$ac_objext
12239 test "x$ac_cv_prog_cc_c89" != "xno" && break
12241 rm -f conftest.$ac_ext
12246 case "x$ac_cv_prog_cc_c89" in
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12249 $as_echo "none needed" >&6; } ;;
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12252 $as_echo "unsupported" >&6; } ;;
12254 CC="$CC $ac_cv_prog_cc_c89"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12256 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12258 if test "x$ac_cv_prog_cc_c89" != xno; then :
12263 ac_cpp='$CPP $CPPFLAGS'
12264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269 ac_cpp='$CXXCPP $CPPFLAGS'
12270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12273 if test -z "$CXX"; then
12274 if test -n "$CCC"; then
12277 if test -n "$ac_tool_prefix"; then
12278 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283 $as_echo_n "checking for $ac_word... " >&6; }
12284 if ${ac_cv_prog_CXX+:} false; then :
12285 $as_echo_n "(cached) " >&6
12287 if test -n "$CXX"; then
12288 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291 for as_dir in $PATH
12294 test -z "$as_dir" && as_dir=.
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12297 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12307 CXX=$ac_cv_prog_CXX
12308 if test -n "$CXX"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12310 $as_echo "$CXX" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313 $as_echo "no" >&6; }
12317 test -n "$CXX" && break
12320 if test -z "$CXX"; then
12322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12324 # Extract the first word of "$ac_prog", so it can be a program name with args.
12325 set dummy $ac_prog; ac_word=$2
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 if test -n "$ac_ct_CXX"; then
12332 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12341 ac_cv_prog_ac_ct_CXX="$ac_prog"
12342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12351 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12352 if test -n "$ac_ct_CXX"; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12354 $as_echo "$ac_ct_CXX" >&6; }
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12361 test -n "$ac_ct_CXX" && break
12364 if test "x$ac_ct_CXX" = x; then
12367 case $cross_compiling:$ac_tool_warned in
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12371 ac_tool_warned=yes ;;
12379 # Provide some information about the compiler.
12380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12383 for ac_option in --version -v -V -qversion; do
12384 { { ac_try="$ac_compiler $ac_option >&5"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12390 $as_echo "$ac_try_echo"; } >&5
12391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12393 if test -s conftest.err; then
12395 ... rest of stderr output deleted ...
12396 10q' conftest.err >conftest.er1
12397 cat conftest.er1 >&5
12399 rm -f conftest.er1 conftest.err
12400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12401 test $ac_status = 0; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12405 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12406 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12407 $as_echo_n "(cached) " >&6
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12423 if ac_fn_cxx_try_compile "$LINENO"; then :
12424 ac_compiler_gnu=yes
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12433 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12434 if test $ac_compiler_gnu = yes; then
12439 ac_test_CXXFLAGS=${CXXFLAGS+set}
12440 ac_save_CXXFLAGS=$CXXFLAGS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12442 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12443 if ${ac_cv_prog_cxx_g+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12447 ac_cxx_werror_flag=yes
12448 ac_cv_prog_cxx_g=no
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h. */
12461 if ac_fn_cxx_try_compile "$LINENO"; then :
12462 ac_cv_prog_cxx_g=yes
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12476 if ac_fn_cxx_try_compile "$LINENO"; then :
12479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12492 if ac_fn_cxx_try_compile "$LINENO"; then :
12493 ac_cv_prog_cxx_g=yes
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12503 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12504 if test "$ac_test_CXXFLAGS" = set; then
12505 CXXFLAGS=$ac_save_CXXFLAGS
12506 elif test $ac_cv_prog_cxx_g = yes; then
12507 if test "$GXX" = yes; then
12513 if test "$GXX" = yes; then
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12527 func_stripname_cnf ()
12530 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12531 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12533 } # func_stripname_cnf
12535 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12536 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12537 (test "X$CXX" != "Xg++"))) ; then
12539 ac_cpp='$CXXCPP $CPPFLAGS'
12540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12544 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12545 if test -z "$CXXCPP"; then
12546 if ${ac_cv_prog_CXXCPP+:} false; then :
12547 $as_echo_n "(cached) " >&6
12549 # Double quotes because CXXCPP needs to be expanded
12550 for CXXCPP in "$CXX -E" "/lib/cpp"
12552 ac_preproc_ok=false
12553 for ac_cxx_preproc_warn_flag in '' yes
12555 # Use a header file that comes with gcc, so configuring glibc
12556 # with a fresh cross-compiler works.
12557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12558 # <limits.h> exists even on freestanding compilers.
12559 # On the NeXT, cc -E runs the code through the compiler's parser,
12560 # not just through cpp. "Syntax error" is here to catch this case.
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12564 # include <limits.h>
12566 # include <assert.h>
12570 if ac_fn_cxx_try_cpp "$LINENO"; then :
12573 # Broken: fails on valid input.
12576 rm -f conftest.err conftest.i conftest.$ac_ext
12578 # OK, works on sane cases. Now check whether nonexistent headers
12579 # can be detected and how.
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 #include <ac_nonexistent.h>
12584 if ac_fn_cxx_try_cpp "$LINENO"; then :
12585 # Broken: success on invalid input.
12588 # Passes both tests.
12592 rm -f conftest.err conftest.i conftest.$ac_ext
12595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12596 rm -f conftest.i conftest.err conftest.$ac_ext
12597 if $ac_preproc_ok; then :
12602 ac_cv_prog_CXXCPP=$CXXCPP
12605 CXXCPP=$ac_cv_prog_CXXCPP
12607 ac_cv_prog_CXXCPP=$CXXCPP
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12610 $as_echo "$CXXCPP" >&6; }
12611 ac_preproc_ok=false
12612 for ac_cxx_preproc_warn_flag in '' yes
12614 # Use a header file that comes with gcc, so configuring glibc
12615 # with a fresh cross-compiler works.
12616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 # <limits.h> exists even on freestanding compilers.
12618 # On the NeXT, cc -E runs the code through the compiler's parser,
12619 # not just through cpp. "Syntax error" is here to catch this case.
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 # include <limits.h>
12625 # include <assert.h>
12629 if ac_fn_cxx_try_cpp "$LINENO"; then :
12632 # Broken: fails on valid input.
12635 rm -f conftest.err conftest.i conftest.$ac_ext
12637 # OK, works on sane cases. Now check whether nonexistent headers
12638 # can be detected and how.
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #include <ac_nonexistent.h>
12643 if ac_fn_cxx_try_cpp "$LINENO"; then :
12644 # Broken: success on invalid input.
12647 # Passes both tests.
12651 rm -f conftest.err conftest.i conftest.$ac_ext
12654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12655 rm -f conftest.i conftest.err conftest.$ac_ext
12656 if $ac_preproc_ok; then :
12659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12661 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12662 See \`config.log' for more details" "$LINENO" 5; }
12666 ac_cpp='$CPP $CPPFLAGS'
12667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672 _lt_caught_CXX_error=yes
12676 ac_cpp='$CXXCPP $CPPFLAGS'
12677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12681 archive_cmds_need_lc_CXX=no
12682 allow_undefined_flag_CXX=
12683 always_export_symbols_CXX=no
12684 archive_expsym_cmds_CXX=
12685 compiler_needs_object_CXX=no
12686 export_dynamic_flag_spec_CXX=
12687 hardcode_direct_CXX=no
12688 hardcode_direct_absolute_CXX=no
12689 hardcode_libdir_flag_spec_CXX=
12690 hardcode_libdir_separator_CXX=
12691 hardcode_minus_L_CXX=no
12692 hardcode_shlibpath_var_CXX=unsupported
12693 hardcode_automatic_CXX=no
12694 inherit_rpath_CXX=no
12696 module_expsym_cmds_CXX=
12697 link_all_deplibs_CXX=unknown
12698 old_archive_cmds_CXX=$old_archive_cmds
12699 reload_flag_CXX=$reload_flag
12700 reload_cmds_CXX=$reload_cmds
12701 no_undefined_flag_CXX=
12702 whole_archive_flag_spec_CXX=
12703 enable_shared_with_static_runtimes_CXX=no
12705 # Source file extension for C++ test sources.
12708 # Object file extension for compiled C++ test sources.
12712 # No sense in running all these tests if we already determined that
12713 # the CXX compiler isn't working. Some variables (like enable_shared)
12714 # are currently assumed to apply to all compilers on this platform,
12715 # and will be corrupted by setting them based on a non-working compiler.
12716 if test "$_lt_caught_CXX_error" != yes; then
12717 # Code to be used in simple compile tests
12718 lt_simple_compile_test_code="int some_variable = 0;"
12720 # Code to be used in simple link tests
12721 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12723 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12730 # If no C compiler was specified, use CC.
12733 # If no C compiler flags were specified, use CFLAGS.
12734 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12736 # Allow CC to be a program name with arguments.
12740 # save warnings/boilerplate of simple test code
12741 ac_outfile=conftest.$ac_objext
12742 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12743 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12744 _lt_compiler_boilerplate=`cat conftest.err`
12747 ac_outfile=conftest.$ac_objext
12748 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12749 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12750 _lt_linker_boilerplate=`cat conftest.err`
12754 # Allow CC to be a program name with arguments.
12756 lt_save_CFLAGS=$CFLAGS
12760 lt_save_with_gnu_ld=$with_gnu_ld
12761 lt_save_path_LD=$lt_cv_path_LD
12762 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12763 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12765 $as_unset lt_cv_prog_gnu_ld
12767 if test -n "${lt_cv_path_LDCXX+set}"; then
12768 lt_cv_path_LD=$lt_cv_path_LDCXX
12770 $as_unset lt_cv_path_LD
12772 test -z "${LDCXX+set}" || LD=$LDCXX
12777 for cc_temp in $compiler""; do
12779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12785 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12788 if test -n "$compiler"; then
12789 # We don't want -fno-exception when compiling C++ code, so set the
12790 # no_builtin_flag separately
12791 if test "$GXX" = yes; then
12792 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12794 lt_prog_compiler_no_builtin_flag_CXX=
12797 if test "$GXX" = yes; then
12798 # Set up default GNU C++ configuration
12802 # Check whether --with-gnu-ld was given.
12803 if test "${with_gnu_ld+set}" = set; then :
12804 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12810 if test "$GCC" = yes; then
12811 # Check if gcc -print-prog-name=ld gives a path.
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12813 $as_echo_n "checking for ld used by $CC... " >&6; }
12816 # gcc leaves a trailing carriage return which upsets mingw
12817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12822 # Accept absolute paths.
12824 re_direlt='/[^/][^/]*/\.\./'
12825 # Canonicalize the pathname of ld
12826 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12827 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12828 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12830 test -z "$LD" && LD="$ac_prog"
12833 # If it fails, then pretend we aren't using GCC.
12837 # If it is relative, then search for the first ld in PATH.
12838 with_gnu_ld=unknown
12841 elif test "$with_gnu_ld" = yes; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12843 $as_echo_n "checking for GNU ld... " >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12846 $as_echo_n "checking for non-GNU ld... " >&6; }
12848 if ${lt_cv_path_LD+:} false; then :
12849 $as_echo_n "(cached) " >&6
12851 if test -z "$LD"; then
12852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12853 for ac_dir in $PATH; do
12855 test -z "$ac_dir" && ac_dir=.
12856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12857 lt_cv_path_LD="$ac_dir/$ac_prog"
12858 # Check to see if the program is GNU ld. I'd rather use --version,
12859 # but apparently some variants of GNU ld only accept -v.
12860 # Break only if it was the GNU/non-GNU ld that we prefer.
12861 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12862 *GNU* | *'with BFD'*)
12863 test "$with_gnu_ld" != no && break
12866 test "$with_gnu_ld" != yes && break
12873 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12877 LD="$lt_cv_path_LD"
12878 if test -n "$LD"; then
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12880 $as_echo "$LD" >&6; }
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883 $as_echo "no" >&6; }
12885 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12888 if ${lt_cv_prog_gnu_ld+:} false; then :
12889 $as_echo_n "(cached) " >&6
12891 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12892 case `$LD -v 2>&1 </dev/null` in
12893 *GNU* | *'with BFD'*)
12894 lt_cv_prog_gnu_ld=yes
12897 lt_cv_prog_gnu_ld=no
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12902 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12903 with_gnu_ld=$lt_cv_prog_gnu_ld
12911 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12912 # archiving commands below assume that GNU ld is being used.
12913 if test "$with_gnu_ld" = yes; then
12914 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915 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'
12917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12920 # If archive_cmds runs LD, not CC, wlarc should be empty
12921 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12922 # investigate it a little bit more. (MM)
12925 # ancient GNU ld didn't support --whole-archive et. al.
12926 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12927 $GREP 'no-whole-archive' > /dev/null; then
12928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12930 whole_archive_flag_spec_CXX=
12936 # A generic and very simple default shared library creation
12937 # command for GNU C++ for the case where it uses the native
12938 # linker, instead of GNU ld. If possible, this setting should
12939 # overridden to take advantage of the native linker features on
12940 # the platform it is being used on.
12941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12944 # Commands to make compiler produce verbose output that lists
12945 # what "hidden" libraries, object files and flags are used when
12946 # linking a shared library.
12947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12955 # PORTME: fill in a description of your system's C++ link characteristics
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12961 # FIXME: insert proper C++ library support
12965 if test "$host_cpu" = ia64; then
12966 # On IA64, the linker does run time linking by default, so we don't
12967 # have to do anything special.
12968 aix_use_runtimelinking=no
12969 exp_sym_flag='-Bexport'
12972 aix_use_runtimelinking=no
12974 # Test if we are trying to use run time linking or normal
12975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12976 # need to do runtime linking.
12977 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12978 for ld_flag in $LDFLAGS; do
12981 aix_use_runtimelinking=yes
12989 exp_sym_flag='-bexport'
12990 no_entry_flag='-bnoentry'
12993 # When large executables or shared objects are built, AIX ld can
12994 # have problems creating the table of contents. If linking a library
12995 # or program results in "error TOC overflow" add -mminimal-toc to
12996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12999 archive_cmds_CXX=''
13000 hardcode_direct_CXX=yes
13001 hardcode_direct_absolute_CXX=yes
13002 hardcode_libdir_separator_CXX=':'
13003 link_all_deplibs_CXX=yes
13004 file_list_spec_CXX='${wl}-f,'
13006 if test "$GXX" = yes; then
13007 case $host_os in aix4.[012]|aix4.[012].*)
13008 # We only want to do this on AIX 4.2 and lower, the check
13009 # below for broken collect2 doesn't work under 4.3+
13010 collect2name=`${CC} -print-prog-name=collect2`
13011 if test -f "$collect2name" &&
13012 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13014 # We have reworked collect2
13017 # We have old collect2
13018 hardcode_direct_CXX=unsupported
13019 # It fails to find uninstalled libraries when the uninstalled
13020 # path is not listed in the libpath. Setting hardcode_minus_L
13021 # to unsupported forces relinking
13022 hardcode_minus_L_CXX=yes
13023 hardcode_libdir_flag_spec_CXX='-L$libdir'
13024 hardcode_libdir_separator_CXX=
13027 shared_flag='-shared'
13028 if test "$aix_use_runtimelinking" = yes; then
13029 shared_flag="$shared_flag "'${wl}-G'
13033 if test "$host_cpu" = ia64; then
13034 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13035 # chokes on -Wl,-G. The following line is correct:
13038 if test "$aix_use_runtimelinking" = yes; then
13039 shared_flag='${wl}-G'
13041 shared_flag='${wl}-bM:SRE'
13046 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13047 # It seems that -bexpall does not export symbols beginning with
13048 # underscore (_), so it is better to generate a list of symbols to
13050 always_export_symbols_CXX=yes
13051 if test "$aix_use_runtimelinking" = yes; then
13052 # Warning - without using the other runtime loading flags (-brtl),
13053 # -berok will link without error, but may produce a broken library.
13054 allow_undefined_flag_CXX='-berok'
13055 # Determine the default libpath from the value encoded in an empty
13057 if test "${lt_cv_aix_libpath+set}" = set; then
13058 aix_libpath=$lt_cv_aix_libpath
13060 if ${lt_cv_aix_libpath__CXX+:} false; then :
13061 $as_echo_n "(cached) " >&6
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13074 if ac_fn_cxx_try_link "$LINENO"; then :
13076 lt_aix_libpath_sed='
13077 /Import File Strings/,/^$/ {
13079 s/^0 *\([^ ]*\) *$/\1/
13083 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13084 # Check for a 64-bit object if we didn't find anything.
13085 if test -z "$lt_cv_aix_libpath__CXX"; then
13086 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089 rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 if test -z "$lt_cv_aix_libpath__CXX"; then
13092 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13097 aix_libpath=$lt_cv_aix_libpath__CXX
13100 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13102 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"
13104 if test "$host_cpu" = ia64; then
13105 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13106 allow_undefined_flag_CXX="-z nodefs"
13107 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"
13109 # Determine the default libpath from the value encoded in an
13110 # empty executable.
13111 if test "${lt_cv_aix_libpath+set}" = set; then
13112 aix_libpath=$lt_cv_aix_libpath
13114 if ${lt_cv_aix_libpath__CXX+:} false; then :
13115 $as_echo_n "(cached) " >&6
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13128 if ac_fn_cxx_try_link "$LINENO"; then :
13130 lt_aix_libpath_sed='
13131 /Import File Strings/,/^$/ {
13133 s/^0 *\([^ ]*\) *$/\1/
13137 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13138 # Check for a 64-bit object if we didn't find anything.
13139 if test -z "$lt_cv_aix_libpath__CXX"; then
13140 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 if test -z "$lt_cv_aix_libpath__CXX"; then
13146 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13151 aix_libpath=$lt_cv_aix_libpath__CXX
13154 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13155 # Warning - without using the other run time loading flags,
13156 # -berok will link without error, but may produce a broken library.
13157 no_undefined_flag_CXX=' ${wl}-bernotok'
13158 allow_undefined_flag_CXX=' ${wl}-berok'
13159 if test "$with_gnu_ld" = yes; then
13160 # We only use this code for GNU lds that support --whole-archive.
13161 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13163 # Exported symbols can be pulled into shared objects from archives
13164 whole_archive_flag_spec_CXX='$convenience'
13166 archive_cmds_need_lc_CXX=yes
13167 # This is similar to how AIX traditionally builds its shared
13169 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'
13175 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13176 allow_undefined_flag_CXX=unsupported
13177 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13178 # support --undefined. This deserves some investigation. FIXME
13179 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186 case $cc_basename in
13188 # FIXME: insert proper C++ library support
13194 cygwin* | mingw* | pw32* | cegcc*)
13195 case $GXX,$cc_basename in
13198 # hardcode_libdir_flag_spec is actually meaningless, as there is
13199 # no search path for DLLs.
13200 hardcode_libdir_flag_spec_CXX=' '
13201 allow_undefined_flag_CXX=unsupported
13202 always_export_symbols_CXX=yes
13203 file_list_spec_CXX='@'
13204 # Tell ltmain to make .lib files, not .a files.
13206 # Tell ltmain to make .dll files, not .so files.
13208 # FIXME: Setting linknames here is a bad hack.
13209 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13210 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13211 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13213 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13215 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13217 # The linker will not automatically build a static lib if we build a DLL.
13218 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13219 enable_shared_with_static_runtimes_CXX=yes
13221 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13222 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13223 lt_tool_outputfile="@TOOL_OUTPUT@"~
13224 case $lt_outputfile in
13227 lt_outputfile="$lt_outputfile.exe"
13228 lt_tool_outputfile="$lt_tool_outputfile.exe"
13231 func_to_tool_file "$lt_outputfile"~
13232 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13233 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13234 $RM "$lt_outputfile.manifest";
13239 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13240 # as there is no search path for DLLs.
13241 hardcode_libdir_flag_spec_CXX='-L$libdir'
13242 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13243 allow_undefined_flag_CXX=unsupported
13244 always_export_symbols_CXX=no
13245 enable_shared_with_static_runtimes_CXX=yes
13247 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13248 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'
13249 # If the export-symbols file already is a .def file (1st line
13250 # is EXPORTS), use it as is; otherwise, prepend...
13251 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13252 cp $export_symbols $output_objdir/$soname.def;
13254 echo EXPORTS > $output_objdir/$soname.def;
13255 cat $export_symbols >> $output_objdir/$soname.def;
13257 $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'
13264 darwin* | rhapsody*)
13267 archive_cmds_need_lc_CXX=no
13268 hardcode_direct_CXX=no
13269 hardcode_automatic_CXX=yes
13270 hardcode_shlibpath_var_CXX=unsupported
13271 if test "$lt_cv_ld_force_load" = "yes"; then
13272 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\"`'
13275 whole_archive_flag_spec_CXX=''
13277 link_all_deplibs_CXX=yes
13278 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13279 case $cc_basename in
13280 ifort*) _lt_dar_can_shared=yes ;;
13281 *) _lt_dar_can_shared=$GCC ;;
13283 if test "$_lt_dar_can_shared" = "yes"; then
13284 output_verbose_link_cmd=func_echo_all
13285 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}"
13286 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13287 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}"
13288 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}"
13289 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13290 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}"
13291 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}"
13301 case $cc_basename in
13303 # FIXME: insert proper C++ library support
13307 # Green Hills C++ Compiler
13308 # FIXME: insert proper C++ library support
13312 # FIXME: insert proper C++ library support
13319 # C++ shared libraries reported to be fairly broken before
13325 archive_cmds_need_lc_CXX=no
13328 freebsd* | dragonfly*)
13329 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13338 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13339 link_all_deplibs_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13344 hardcode_libdir_separator_CXX=:
13345 export_dynamic_flag_spec_CXX='${wl}-E'
13346 hardcode_direct_CXX=yes
13347 hardcode_minus_L_CXX=yes # Not in the search PATH,
13348 # but as the default
13349 # location of the library.
13351 case $cc_basename in
13353 # FIXME: insert proper C++ library support
13357 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'
13358 # Commands to make compiler produce verbose output that lists
13359 # what "hidden" libraries, object files and flags are used when
13360 # linking a shared library.
13362 # There doesn't appear to be a way to prevent this compiler from
13363 # explicitly linking system object files so we need to strip them
13364 # from the output so that they don't get included in the library
13366 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"'
13369 if test "$GXX" = yes; then
13370 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'
13372 # FIXME: insert proper C++ library support
13380 if test $with_gnu_ld = no; then
13381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13382 hardcode_libdir_separator_CXX=:
13388 export_dynamic_flag_spec_CXX='${wl}-E'
13394 hardcode_direct_CXX=no
13395 hardcode_shlibpath_var_CXX=no
13398 hardcode_direct_CXX=yes
13399 hardcode_direct_absolute_CXX=yes
13400 hardcode_minus_L_CXX=yes # Not in the search PATH,
13401 # but as the default
13402 # location of the library.
13406 case $cc_basename in
13408 # FIXME: insert proper C++ library support
13414 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13423 # Commands to make compiler produce verbose output that lists
13424 # what "hidden" libraries, object files and flags are used when
13425 # linking a shared library.
13427 # There doesn't appear to be a way to prevent this compiler from
13428 # explicitly linking system object files so we need to strip them
13429 # from the output so that they don't get included in the library
13431 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"'
13434 if test "$GXX" = yes; then
13435 if test $with_gnu_ld = no; then
13438 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13441 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13444 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'
13449 # FIXME: insert proper C++ library support
13457 hardcode_direct_CXX=no
13458 hardcode_shlibpath_var_CXX=no
13459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13460 export_dynamic_flag_spec_CXX='${wl}-E'
13461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13462 # Instead, shared libraries are loaded at an image base (0x10000000 by
13463 # default) and relocated if they conflict, which is a slow very memory
13464 # consuming and fragmenting process. To avoid this, we pick a random,
13465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13467 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'
13468 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'
13471 case $cc_basename in
13474 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'
13476 # Archives containing C++ object files must be created using
13477 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13478 # necessary to make sure instantiated templates are included
13480 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13483 if test "$GXX" = yes; then
13484 if test "$with_gnu_ld" = no; then
13485 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'
13487 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'
13490 link_all_deplibs_CXX=yes
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13494 hardcode_libdir_separator_CXX=:
13495 inherit_rpath_CXX=yes
13498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13499 case $cc_basename in
13501 # Kuck and Associates, Inc. (KAI) C++ Compiler
13503 # KCC will only create a shared library if the output file
13504 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13505 # to its proper name (with version) after linking.
13506 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'
13507 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'
13508 # Commands to make compiler produce verbose output that lists
13509 # what "hidden" libraries, object files and flags are used when
13510 # linking a shared library.
13512 # There doesn't appear to be a way to prevent this compiler from
13513 # explicitly linking system object files so we need to strip them
13514 # from the output so that they don't get included in the library
13516 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"'
13518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13521 # Archives containing C++ object files must be created using
13522 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13523 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13528 # version 8.0 and above of icpc choke on multiply defined symbols
13529 # if we add $predep_objects and $postdep_objects, however 7.1 and
13530 # earlier do not add the objects themselves.
13531 case `$CC -V 2>&1` in
13533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13534 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'
13536 *) # Version 8.0 or newer
13539 ia64*) tmp_idyn=' -i_dynamic';;
13541 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13542 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'
13545 archive_cmds_need_lc_CXX=no
13546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13551 # Portland Group C++ compiler
13553 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13554 prelink_cmds_CXX='tpldir=Template.dir~
13556 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13557 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13558 old_archive_cmds_CXX='tpldir=Template.dir~
13560 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13561 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13563 archive_cmds_CXX='tpldir=Template.dir~
13565 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13566 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13567 archive_expsym_cmds_CXX='tpldir=Template.dir~
13569 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13570 $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'
13572 *) # Version 6 and above use weak symbols
13573 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13574 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'
13578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13580 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'
13584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13585 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'
13587 runpath_var=LD_RUN_PATH
13588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13589 hardcode_libdir_separator_CXX=:
13591 # Commands to make compiler produce verbose output that lists
13592 # what "hidden" libraries, object files and flags are used when
13593 # linking a shared library.
13595 # There doesn't appear to be a way to prevent this compiler from
13596 # explicitly linking system object files so we need to strip them
13597 # from the output so that they don't get included in the library
13599 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'
13601 xl* | mpixl* | bgxl*)
13602 # IBM XL 8.0 on PPC, with GNU ld
13603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13605 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13606 if test "x$supports_anon_versioning" = xyes; then
13607 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13609 echo "local: *; };" >> $output_objdir/$libname.ver~
13610 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13614 case `$CC -V 2>&1 | sed 5q` in
13617 no_undefined_flag_CXX=' -zdefs'
13618 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13619 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'
13620 hardcode_libdir_flag_spec_CXX='-R$libdir'
13621 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'
13622 compiler_needs_object_CXX=yes
13624 # Not sure whether something based on
13625 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13627 output_verbose_link_cmd='func_echo_all'
13629 # Archives containing C++ object files must be created using
13630 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13631 # necessary to make sure instantiated templates are included
13633 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13641 # FIXME: insert proper C++ library support
13646 # FIXME: insert proper C++ library support
13651 case $cc_basename in
13653 # FIXME: insert proper C++ library support
13657 # FIXME: insert proper C++ library support
13664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13665 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13667 hardcode_libdir_flag_spec_CXX='-R$libdir'
13668 hardcode_direct_CXX=yes
13669 hardcode_shlibpath_var_CXX=no
13671 # Workaround some broken pre-1.5 toolchains
13672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13680 # C++ shared libraries are fairly broken
13685 if test -f /usr/libexec/ld.so; then
13686 hardcode_direct_CXX=yes
13687 hardcode_shlibpath_var_CXX=no
13688 hardcode_direct_absolute_CXX=yes
13689 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13692 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13693 export_dynamic_flag_spec_CXX='${wl}-E'
13694 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13696 output_verbose_link_cmd=func_echo_all
13702 osf3* | osf4* | osf5*)
13703 case $cc_basename in
13705 # Kuck and Associates, Inc. (KAI) C++ Compiler
13707 # KCC will only create a shared library if the output file
13708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13709 # to its proper name (with version) after linking.
13710 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'
13712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13713 hardcode_libdir_separator_CXX=:
13715 # Archives containing C++ object files must be created using
13716 # the KAI C++ compiler.
13718 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13719 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13723 # Rational C++ 2.4.1
13724 # FIXME: insert proper C++ library support
13730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13731 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'
13732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13735 allow_undefined_flag_CXX=' -expect_unresolved \*'
13736 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'
13737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13738 echo "-hidden">> $lib.exp~
13739 $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~
13741 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13745 hardcode_libdir_separator_CXX=:
13747 # Commands to make compiler produce verbose output that lists
13748 # what "hidden" libraries, object files and flags are used when
13749 # linking a shared library.
13751 # There doesn't appear to be a way to prevent this compiler from
13752 # explicitly linking system object files so we need to strip them
13753 # from the output so that they don't get included in the library
13755 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"'
13758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13762 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'
13765 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'
13769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13770 hardcode_libdir_separator_CXX=:
13772 # Commands to make compiler produce verbose output that lists
13773 # what "hidden" libraries, object files and flags are used when
13774 # linking a shared library.
13775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13778 # FIXME: insert proper C++ library support
13786 # FIXME: insert proper C++ library support
13791 case $cc_basename in
13794 # FIXME: insert proper C++ library support
13799 # FIXME: insert proper C++ library support
13803 # FIXME: insert proper C++ library support
13810 case $cc_basename in
13812 # Sun C++ 4.2, 5.x and Centerline C++
13813 archive_cmds_need_lc_CXX=yes
13814 no_undefined_flag_CXX=' -zdefs'
13815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13817 $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'
13819 hardcode_libdir_flag_spec_CXX='-R$libdir'
13820 hardcode_shlibpath_var_CXX=no
13822 solaris2.[0-5] | solaris2.[0-5].*) ;;
13824 # The compiler driver will combine and reorder linker options,
13825 # but understands `-z linker_flag'.
13826 # Supported since Solaris 2.6 (maybe 2.5.1?)
13827 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13830 link_all_deplibs_CXX=yes
13832 output_verbose_link_cmd='func_echo_all'
13834 # Archives containing C++ object files must be created using
13835 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13836 # necessary to make sure instantiated templates are included
13838 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13841 # Green Hills C++ Compiler
13842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13844 # The C++ compiler must be used to create the archive.
13845 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13848 # GNU C++ compiler with Solaris linker
13849 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13850 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13851 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13852 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13853 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13854 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13856 # Commands to make compiler produce verbose output that lists
13857 # what "hidden" libraries, object files and flags are used when
13858 # linking a shared library.
13859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13861 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13863 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13864 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13865 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13867 # Commands to make compiler produce verbose output that lists
13868 # what "hidden" libraries, object files and flags are used when
13869 # linking a shared library.
13870 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13873 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13875 solaris2.[0-5] | solaris2.[0-5].*) ;;
13877 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13885 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13886 no_undefined_flag_CXX='${wl}-z,text'
13887 archive_cmds_need_lc_CXX=no
13888 hardcode_shlibpath_var_CXX=no
13889 runpath_var='LD_RUN_PATH'
13891 case $cc_basename in
13893 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13894 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13897 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13898 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13903 sysv5* | sco3.2v5* | sco5v6*)
13904 # Note: We can NOT use -z defs as we might desire, because we do not
13905 # link with -lc, and that would cause any symbols used from libc to
13906 # always be unresolved, which means just about no library would
13907 # ever link correctly. If we're not using GNU ld we use -z text
13908 # though, which does catch some bad symbols but isn't as heavy-handed
13910 no_undefined_flag_CXX='${wl}-z,text'
13911 allow_undefined_flag_CXX='${wl}-z,nodefs'
13912 archive_cmds_need_lc_CXX=no
13913 hardcode_shlibpath_var_CXX=no
13914 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13915 hardcode_libdir_separator_CXX=':'
13916 link_all_deplibs_CXX=yes
13917 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13918 runpath_var='LD_RUN_PATH'
13920 case $cc_basename in
13922 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13923 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13925 '"$old_archive_cmds_CXX"
13926 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13927 '"$reload_cmds_CXX"
13930 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13937 case $cc_basename in
13939 # NonStop-UX NCC 3.20
13940 # FIXME: insert proper C++ library support
13944 # FIXME: insert proper C++ library support
13951 # FIXME: insert proper C++ library support
13956 # FIXME: insert proper C++ library support
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13962 $as_echo "$ld_shlibs_CXX" >&6; }
13963 test "$ld_shlibs_CXX" = no && can_build_shared=no
13969 ## There is no encapsulation within the following macros, do not change
13970 ## the running order or otherwise move them around unless you know exactly
13971 ## what you are doing...
13972 # Dependencies to place before and after the object being linked:
13973 predep_objects_CXX=
13974 postdep_objects_CXX=
13977 compiler_lib_search_path_CXX=
13979 cat > conftest.$ac_ext <<_LT_EOF
13983 Foo (void) { a = 0; }
13990 _lt_libdeps_save_CFLAGS=$CFLAGS
13991 case "$CC $CFLAGS " in #(
13992 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13993 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13994 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13998 (eval $ac_compile) 2>&5
14000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001 test $ac_status = 0; }; then
14002 # Parse the compiler output and extract the necessary
14003 # objects, libraries and library flags.
14005 # Sentinel used to keep track of whether or not we are before
14006 # the conftest object file.
14007 pre_test_object_deps_done=no
14009 for p in `eval "$output_verbose_link_cmd"`; do
14010 case ${prev}${p} in
14013 # Some compilers place space between "-{L,R}" and the path.
14014 # Remove the space.
14015 if test $p = "-L" ||
14016 test $p = "-R"; then
14021 # Expand the sysroot to ease extracting the directories later.
14022 if test -z "$prev"; then
14024 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14025 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14026 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14030 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14032 if test "$pre_test_object_deps_done" = no; then
14035 # Internal compiler library paths should come after those
14036 # provided the user. The postdeps already come after the
14037 # user supplied libs so there is no need to process them.
14038 if test -z "$compiler_lib_search_path_CXX"; then
14039 compiler_lib_search_path_CXX="${prev}${p}"
14041 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14044 # The "-l" case would never come before the object being
14045 # linked, so don't bother handling this case.
14048 if test -z "$postdeps_CXX"; then
14049 postdeps_CXX="${prev}${p}"
14051 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14057 *.lto.$objext) ;; # Ignore GCC LTO objects
14059 # This assumes that the test object file only shows up
14060 # once in the compiler output.
14061 if test "$p" = "conftest.$objext"; then
14062 pre_test_object_deps_done=yes
14066 if test "$pre_test_object_deps_done" = no; then
14067 if test -z "$predep_objects_CXX"; then
14068 predep_objects_CXX="$p"
14070 predep_objects_CXX="$predep_objects_CXX $p"
14073 if test -z "$postdep_objects_CXX"; then
14074 postdep_objects_CXX="$p"
14076 postdep_objects_CXX="$postdep_objects_CXX $p"
14081 *) ;; # Ignore the rest.
14089 echo "libtool.m4: error: problem compiling CXX test program"
14092 $RM -f confest.$objext
14093 CFLAGS=$_lt_libdeps_save_CFLAGS
14095 # PORTME: override above test on systems where it is broken
14098 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14099 # hack all around it, let's just trust "g++" to DTRT.
14100 predep_objects_CXX=
14101 postdep_objects_CXX=
14106 case `$CC -V 2>&1 | sed 5q` in
14110 # The more standards-conforming stlport4 library is
14111 # incompatible with the Cstd library. Avoid specifying
14112 # it if it's in CXXFLAGS. Ignore libCrun as
14113 # -library=stlport4 depends on it.
14114 case " $CXX $CXXFLAGS " in
14115 *" -library=stlport4 "*)
14116 solaris_use_stlport4=yes
14120 if test "$solaris_use_stlport4" != yes; then
14121 postdeps_CXX='-library=Cstd -library=Crun'
14128 case $cc_basename in
14130 # The more standards-conforming stlport4 library is
14131 # incompatible with the Cstd library. Avoid specifying
14132 # it if it's in CXXFLAGS. Ignore libCrun as
14133 # -library=stlport4 depends on it.
14134 case " $CXX $CXXFLAGS " in
14135 *" -library=stlport4 "*)
14136 solaris_use_stlport4=yes
14140 # Adding this requires a known-good setup of shared libraries for
14141 # Sun compiler versions before 5.6, else PIC objects from an old
14142 # archive will be linked into the output, leading to subtle bugs.
14143 if test "$solaris_use_stlport4" != yes; then
14144 postdeps_CXX='-library=Cstd -library=Crun'
14152 case " $postdeps_CXX " in
14153 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14155 compiler_lib_search_dirs_CXX=
14156 if test -n "${compiler_lib_search_path_CXX}"; then
14157 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14190 lt_prog_compiler_wl_CXX=
14191 lt_prog_compiler_pic_CXX=
14192 lt_prog_compiler_static_CXX=
14195 # C++ specific cases for pic, static, wl, etc.
14196 if test "$GXX" = yes; then
14197 lt_prog_compiler_wl_CXX='-Wl,'
14198 lt_prog_compiler_static_CXX='-static'
14202 # All AIX code is PIC.
14203 if test "$host_cpu" = ia64; then
14204 # AIX 5 now supports IA64 processor
14205 lt_prog_compiler_static_CXX='-Bstatic'
14212 # see comment about AmigaOS4 .so support
14213 lt_prog_compiler_pic_CXX='-fPIC'
14216 # FIXME: we need at least 68020 code to build shared libraries, but
14217 # adding the `-m68020' flag to GCC prevents building anything better,
14219 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14224 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14225 # PIC is the default for these OSes.
14227 mingw* | cygwin* | os2* | pw32* | cegcc*)
14228 # This hack is so that the source file can tell whether it is being
14229 # built for inclusion in a dll (and should export symbols for example).
14230 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14231 # (--disable-auto-import) libraries
14232 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14234 darwin* | rhapsody*)
14235 # PIC is the default on this platform
14236 # Common symbols not allowed in MH_DYLIB files
14237 lt_prog_compiler_pic_CXX='-fno-common'
14240 # DJGPP does not support shared libraries at all
14241 lt_prog_compiler_pic_CXX=
14244 # PIC is the default for Haiku.
14245 # The "-static" flag exists, but is broken.
14246 lt_prog_compiler_static_CXX=
14249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14250 # Instead, we relocate shared libraries at runtime.
14253 if test -d /usr/nec; then
14254 lt_prog_compiler_pic_CXX=-Kconform_pic
14258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14260 # sets the default TLS model and affects inlining.
14265 lt_prog_compiler_pic_CXX='-fPIC'
14270 # QNX uses GNU C++, but need to define -shared option too, otherwise
14271 # it will coredump.
14272 lt_prog_compiler_pic_CXX='-fPIC -shared'
14275 lt_prog_compiler_pic_CXX='-fPIC'
14281 # All AIX code is PIC.
14282 if test "$host_cpu" = ia64; then
14283 # AIX 5 now supports IA64 processor
14284 lt_prog_compiler_static_CXX='-Bstatic'
14286 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14290 case $cc_basename in
14292 # Green Hills C++ Compiler
14293 # _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"
14297 mingw* | cygwin* | os2* | pw32* | cegcc*)
14298 # This hack is so that the source file can tell whether it is being
14299 # built for inclusion in a dll (and should export symbols for example).
14300 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14303 case $cc_basename in
14305 lt_prog_compiler_pic_CXX='-KPIC'
14308 # Green Hills C++ Compiler
14309 lt_prog_compiler_pic_CXX='-pic'
14315 freebsd* | dragonfly*)
14316 # FreeBSD uses GNU C++
14318 hpux9* | hpux10* | hpux11*)
14319 case $cc_basename in
14321 lt_prog_compiler_wl_CXX='-Wl,'
14322 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14323 if test "$host_cpu" != ia64; then
14324 lt_prog_compiler_pic_CXX='+Z'
14328 lt_prog_compiler_wl_CXX='-Wl,'
14329 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14335 lt_prog_compiler_pic_CXX='+Z'
14344 # This is c89, which is MS Visual C++ (no shared libs)
14345 # Anyone wants to do a port?
14347 irix5* | irix6* | nonstopux*)
14348 case $cc_basename in
14350 lt_prog_compiler_wl_CXX='-Wl,'
14351 lt_prog_compiler_static_CXX='-non_shared'
14352 # CC pic flag -KPIC is the default.
14358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14359 case $cc_basename in
14362 lt_prog_compiler_wl_CXX='--backend -Wl,'
14363 lt_prog_compiler_pic_CXX='-fPIC'
14366 # old Intel C++ for x86_64 which still supported -KPIC.
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_pic_CXX='-KPIC'
14369 lt_prog_compiler_static_CXX='-static'
14372 # Intel C++, used to be incompatible with GCC.
14373 # ICC 10 doesn't accept -KPIC any more.
14374 lt_prog_compiler_wl_CXX='-Wl,'
14375 lt_prog_compiler_pic_CXX='-fPIC'
14376 lt_prog_compiler_static_CXX='-static'
14379 # Portland Group C++ compiler
14380 lt_prog_compiler_wl_CXX='-Wl,'
14381 lt_prog_compiler_pic_CXX='-fpic'
14382 lt_prog_compiler_static_CXX='-Bstatic'
14386 # Make sure the PIC flag is empty. It appears that all Alpha
14387 # Linux and Compaq Tru64 Unix objects are PIC.
14388 lt_prog_compiler_pic_CXX=
14389 lt_prog_compiler_static_CXX='-non_shared'
14391 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14392 # IBM XL 8.0, 9.0 on PPC and BlueGene
14393 lt_prog_compiler_wl_CXX='-Wl,'
14394 lt_prog_compiler_pic_CXX='-qpic'
14395 lt_prog_compiler_static_CXX='-qstaticlink'
14398 case `$CC -V 2>&1 | sed 5q` in
14401 lt_prog_compiler_pic_CXX='-KPIC'
14402 lt_prog_compiler_static_CXX='-Bstatic'
14403 lt_prog_compiler_wl_CXX='-Qoption ld '
14414 case $cc_basename in
14416 lt_prog_compiler_pic_CXX='-W c,exportall'
14425 # QNX uses GNU C++, but need to define -shared option too, otherwise
14426 # it will coredump.
14427 lt_prog_compiler_pic_CXX='-fPIC -shared'
14429 osf3* | osf4* | osf5*)
14430 case $cc_basename in
14432 lt_prog_compiler_wl_CXX='--backend -Wl,'
14435 # Rational C++ 2.4.1
14436 lt_prog_compiler_pic_CXX='-pic'
14439 # Digital/Compaq C++
14440 lt_prog_compiler_wl_CXX='-Wl,'
14441 # Make sure the PIC flag is empty. It appears that all Alpha
14442 # Linux and Compaq Tru64 Unix objects are PIC.
14443 lt_prog_compiler_pic_CXX=
14444 lt_prog_compiler_static_CXX='-non_shared'
14453 case $cc_basename in
14455 # Sun C++ 4.2, 5.x and Centerline C++
14456 lt_prog_compiler_pic_CXX='-KPIC'
14457 lt_prog_compiler_static_CXX='-Bstatic'
14458 lt_prog_compiler_wl_CXX='-Qoption ld '
14461 # Green Hills C++ Compiler
14462 lt_prog_compiler_pic_CXX='-PIC'
14469 case $cc_basename in
14472 lt_prog_compiler_pic_CXX='-pic'
14473 lt_prog_compiler_static_CXX='-Bstatic'
14477 lt_prog_compiler_pic_CXX='-pic'
14483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14484 case $cc_basename in
14486 lt_prog_compiler_wl_CXX='-Wl,'
14487 lt_prog_compiler_pic_CXX='-KPIC'
14488 lt_prog_compiler_static_CXX='-Bstatic'
14493 case $cc_basename in
14495 # NonStop-UX NCC 3.20
14496 lt_prog_compiler_pic_CXX='-KPIC'
14505 lt_prog_compiler_can_build_shared_CXX=no
14511 # For platforms which do not support PIC, -DPIC is meaningless:
14513 lt_prog_compiler_pic_CXX=
14516 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14521 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14522 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14523 $as_echo_n "(cached) " >&6
14525 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14528 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14529 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14532 # Check to make sure the PIC flag actually works.
14534 if test -n "$lt_prog_compiler_pic_CXX"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14536 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14537 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14538 $as_echo_n "(cached) " >&6
14540 lt_cv_prog_compiler_pic_works_CXX=no
14541 ac_outfile=conftest.$ac_objext
14542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14543 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14544 # Insert the option either (1) after the last *FLAGS variable, or
14545 # (2) before a word containing "conftest.", or (3) at the end.
14546 # Note that $ac_compile itself does not contain backslashes and begins
14547 # with a dollar sign (not a hyphen), so the echo should work correctly.
14548 # The option is referenced via a variable to avoid confusing sed.
14549 lt_compile=`echo "$ac_compile" | $SED \
14550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14552 -e 's:$: $lt_compiler_flag:'`
14553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14554 (eval "$lt_compile" 2>conftest.err)
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 if (exit $ac_status) && test -s "$ac_outfile"; then
14559 # The compiler can only warn and ignore the option if not recognized
14560 # So say no if there are warnings other than the usual output.
14561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14564 lt_cv_prog_compiler_pic_works_CXX=yes
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14571 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14573 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14574 case $lt_prog_compiler_pic_CXX in
14576 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14579 lt_prog_compiler_pic_CXX=
14580 lt_prog_compiler_can_build_shared_CXX=no
14590 # Check to make sure the static flag actually works.
14592 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14594 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14595 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14596 $as_echo_n "(cached) " >&6
14598 lt_cv_prog_compiler_static_works_CXX=no
14599 save_LDFLAGS="$LDFLAGS"
14600 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14601 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14602 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14603 # The linker can only warn and ignore the option if not recognized
14604 # So say no if there are warnings
14605 if test -s conftest.err; then
14606 # Append any errors to the config.log.
14607 cat conftest.err 1>&5
14608 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14610 if diff conftest.exp conftest.er2 >/dev/null; then
14611 lt_cv_prog_compiler_static_works_CXX=yes
14614 lt_cv_prog_compiler_static_works_CXX=yes
14618 LDFLAGS="$save_LDFLAGS"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14622 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14624 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14627 lt_prog_compiler_static_CXX=
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14635 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14636 $as_echo_n "(cached) " >&6
14638 lt_cv_prog_compiler_c_o_CXX=no
14639 $RM -r conftest 2>/dev/null
14643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645 lt_compiler_flag="-o out/conftest2.$ac_objext"
14646 # Insert the option either (1) after the last *FLAGS variable, or
14647 # (2) before a word containing "conftest.", or (3) at the end.
14648 # Note that $ac_compile itself does not contain backslashes and begins
14649 # with a dollar sign (not a hyphen), so the echo should work correctly.
14650 lt_compile=`echo "$ac_compile" | $SED \
14651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14653 -e 's:$: $lt_compiler_flag:'`
14654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14655 (eval "$lt_compile" 2>out/conftest.err)
14657 cat out/conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14661 # The compiler can only warn and ignore the option if not recognized
14662 # So say no if there are warnings
14663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14666 lt_cv_prog_compiler_c_o_CXX=yes
14671 # SGI C++ compiler will create directory out/ii_files/ for
14672 # template instantiation
14673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14674 $RM out/* && rmdir out
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14687 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14688 $as_echo_n "(cached) " >&6
14690 lt_cv_prog_compiler_c_o_CXX=no
14691 $RM -r conftest 2>/dev/null
14695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14697 lt_compiler_flag="-o out/conftest2.$ac_objext"
14698 # Insert the option either (1) after the last *FLAGS variable, or
14699 # (2) before a word containing "conftest.", or (3) at the end.
14700 # Note that $ac_compile itself does not contain backslashes and begins
14701 # with a dollar sign (not a hyphen), so the echo should work correctly.
14702 lt_compile=`echo "$ac_compile" | $SED \
14703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14705 -e 's:$: $lt_compiler_flag:'`
14706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14707 (eval "$lt_compile" 2>out/conftest.err)
14709 cat out/conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14713 # The compiler can only warn and ignore the option if not recognized
14714 # So say no if there are warnings
14715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_c_o_CXX=yes
14723 # SGI C++ compiler will create directory out/ii_files/ for
14724 # template instantiation
14725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14726 $RM out/* && rmdir out
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14733 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14738 hard_links="nottested"
14739 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14740 # do not overwrite the value of need_locks provided by the user
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14742 $as_echo_n "checking if we can lock with hard links... " >&6; }
14745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14747 ln conftest.a conftest.b 2>&5 || hard_links=no
14748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14750 $as_echo "$hard_links" >&6; }
14751 if test "$hard_links" = no; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14763 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14765 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14766 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14769 # If we're using GNU nm, then we don't want the "-C" option.
14770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14771 # Also, AIX nm treats weak defined symbols like other global defined
14772 # symbols, whereas GNU nm marks them as "W".
14773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14774 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'
14776 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'
14780 export_symbols_cmds_CXX="$ltdll_cmds"
14782 cygwin* | mingw* | cegcc*)
14783 case $cc_basename in
14785 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14788 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'
14789 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14799 $as_echo "$ld_shlibs_CXX" >&6; }
14800 test "$ld_shlibs_CXX" = no && can_build_shared=no
14802 with_gnu_ld_CXX=$with_gnu_ld
14810 # Do we need to explicitly link libc?
14812 case "x$archive_cmds_need_lc_CXX" in
14814 # Assume -lc should be added
14815 archive_cmds_need_lc_CXX=yes
14817 if test "$enable_shared" = yes && test "$GCC" = yes; then
14818 case $archive_cmds_CXX in
14820 # FIXME: we may have to deal with multi-command sequences.
14823 # Test whether the compiler implicitly links with -lc since on some
14824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14825 # to ld, don't add -lc before -lgcc.
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14827 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14828 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14829 $as_echo_n "(cached) " >&6
14832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14835 (eval $ac_compile) 2>&5
14837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14838 test $ac_status = 0; } 2>conftest.err; then
14841 libobjs=conftest.$ac_objext
14843 wl=$lt_prog_compiler_wl_CXX
14844 pic_flag=$lt_prog_compiler_pic_CXX
14850 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14851 allow_undefined_flag_CXX=
14852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14853 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14856 test $ac_status = 0; }
14858 lt_cv_archive_cmds_need_lc_CXX=no
14860 lt_cv_archive_cmds_need_lc_CXX=yes
14862 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14864 cat conftest.err 1>&5
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14870 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14871 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14942 library_names_spec=
14943 libname_spec='lib$name'
14947 postuninstall_cmds=
14951 shlibpath_overrides_runpath=unknown
14953 dynamic_linker="$host_os ld.so"
14954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14955 need_lib_prefix=unknown
14956 hardcode_into_libs=no
14958 # when you set need_version to no, make sure it does not cause -set_version
14959 # flags to be left without arguments
14960 need_version=unknown
14964 version_type=linux # correct to gnu/linux during the next big refactor
14965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14966 shlibpath_var=LIBPATH
14968 # AIX 3 has no versioning support, so we append a major version to the name.
14969 soname_spec='${libname}${release}${shared_ext}$major'
14973 version_type=linux # correct to gnu/linux during the next big refactor
14976 hardcode_into_libs=yes
14977 if test "$host_cpu" = ia64; then
14978 # AIX 5 supports IA64
14979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14980 shlibpath_var=LD_LIBRARY_PATH
14982 # With GCC up to 2.95.x, collect2 would create an import file
14983 # for dependence libraries. The import file would start with
14984 # the line `#! .'. This would cause the generated library to
14985 # depend on `.', always an invalid library. This was fixed in
14986 # development snapshots of GCC prior to 3.0.
14988 aix4 | aix4.[01] | aix4.[01].*)
14989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14994 can_build_shared=no
14998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14999 # soname into executable. Probably we can add versioning support to
15000 # collect2, so additional links can be useful in future.
15001 if test "$aix_use_runtimelinking" = yes; then
15002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15003 # instead of lib<name>.a to let people know that these are not
15004 # typical AIX shared libraries.
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 # We preserve .a as extension for shared libraries through AIX4.2
15008 # and later when we are not doing run time linking.
15009 library_names_spec='${libname}${release}.a $libname.a'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15012 shlibpath_var=LIBPATH
15019 # Since July 2007 AmigaOS4 officially supports .so libraries.
15020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 library_names_spec='$libname.ixlibrary $libname.a'
15025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15026 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'
15032 library_names_spec='${libname}${shared_ext}'
15033 dynamic_linker="$host_os ld.so"
15034 shlibpath_var=LIBRARY_PATH
15038 version_type=linux # correct to gnu/linux during the next big refactor
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15046 # the default ld.so.conf also contains /usr/contrib/lib and
15047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15048 # libtool to hard-code these into programs
15051 cygwin* | mingw* | pw32* | cegcc*)
15052 version_type=windows
15057 case $GCC,$cc_basename in
15060 library_names_spec='$libname.dll.a'
15061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15062 postinstall_cmds='base_file=`basename \${file}`~
15063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15064 dldir=$destdir/`dirname \$dlpath`~
15065 test -d \$dldir || mkdir -p \$dldir~
15066 $install_prog $dir/$dlname \$dldir/$dlname~
15067 chmod a+x \$dldir/$dlname~
15068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15071 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15072 dlpath=$dir/\$dldll~
15074 shlibpath_overrides_runpath=yes
15078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15079 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15080 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15084 # MinGW DLLs use traditional 'lib' prefix
15085 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15086 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15089 # pw32 DLLs use 'pw' prefix rather than 'lib'
15090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15093 dynamic_linker='Win32 ld.exe'
15098 libname_spec='$name'
15099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15100 library_names_spec='${libname}.dll.lib'
15104 sys_lib_search_path_spec=
15107 for lt_path in $LIB
15110 # Let DOS variable expansion print the short 8.3 style file name.
15111 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15112 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15115 # Convert to MSYS style.
15116 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15119 # Convert to unix form, then to dos form, then back to unix form
15120 # but this time dos style (no spaces!) so that the unix form looks
15121 # like /cygdrive/c/PROGRA~1:/cygdr...
15122 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15123 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15124 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15127 sys_lib_search_path_spec="$LIB"
15128 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15129 # It is most probably a Windows format PATH.
15130 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15134 # FIXME: find the short name or the path components, as spaces are
15135 # common. (e.g. "Program Files" -> "PROGRA~1")
15139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15140 postinstall_cmds='base_file=`basename \${file}`~
15141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15142 dldir=$destdir/`dirname \$dlpath`~
15143 test -d \$dldir || mkdir -p \$dldir~
15144 $install_prog $dir/$dlname \$dldir/$dlname'
15145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15146 dlpath=$dir/\$dldll~
15148 shlibpath_overrides_runpath=yes
15149 dynamic_linker='Win32 link.exe'
15153 # Assume MSVC wrapper
15154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15155 dynamic_linker='Win32 ld.exe'
15158 # FIXME: first we should search . and the directory the executable is in
15162 darwin* | rhapsody*)
15163 dynamic_linker="$host_os dyld"
15164 version_type=darwin
15167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15168 soname_spec='${libname}${release}${major}$shared_ext'
15169 shlibpath_overrides_runpath=yes
15170 shlibpath_var=DYLD_LIBRARY_PATH
15171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15177 version_type=linux # correct to gnu/linux during the next big refactor
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 shlibpath_var=LD_LIBRARY_PATH
15185 freebsd* | dragonfly*)
15186 # DragonFly does not have aout. When/if they implement a new
15187 # versioning mechanism, adjust this.
15188 if test -x /usr/bin/objformat; then
15189 objformat=`/usr/bin/objformat`
15192 freebsd[23].*) objformat=aout ;;
15193 *) objformat=elf ;;
15196 version_type=freebsd-$objformat
15197 case $version_type in
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15208 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes
15213 freebsd3.[01]* | freebsdelf3.[01]*)
15214 shlibpath_overrides_runpath=yes
15215 hardcode_into_libs=yes
15217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15219 shlibpath_overrides_runpath=no
15220 hardcode_into_libs=yes
15222 *) # from 4.6 on, and DragonFly
15223 shlibpath_overrides_runpath=yes
15224 hardcode_into_libs=yes
15230 version_type=linux # correct to gnu/linux during the next big refactor
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15234 soname_spec='${libname}${release}${shared_ext}$major'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 shlibpath_overrides_runpath=no
15237 hardcode_into_libs=yes
15241 version_type=linux # correct to gnu/linux during the next big refactor
15244 dynamic_linker="$host_os runtime_loader"
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15246 soname_spec='${libname}${release}${shared_ext}$major'
15247 shlibpath_var=LIBRARY_PATH
15248 shlibpath_overrides_runpath=yes
15249 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15250 hardcode_into_libs=yes
15253 hpux9* | hpux10* | hpux11*)
15254 # Give a soname corresponding to the major version so that dld.sl refuses to
15255 # link against other versions.
15262 hardcode_into_libs=yes
15263 dynamic_linker="$host_os dld.so"
15264 shlibpath_var=LD_LIBRARY_PATH
15265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 if test "X$HPUX_IA64_MODE" = X32; then
15269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15277 hardcode_into_libs=yes
15278 dynamic_linker="$host_os dld.sl"
15279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15288 dynamic_linker="$host_os dld.sl"
15289 shlibpath_var=SHLIB_PATH
15290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15295 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15296 postinstall_cmds='chmod 555 $lib'
15297 # or fails outright, so override atomically:
15298 install_override_mode=555
15302 version_type=linux # correct to gnu/linux during the next big refactor
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15306 soname_spec='${libname}${release}${shared_ext}$major'
15307 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15308 shlibpath_var=LD_LIBRARY_PATH
15309 shlibpath_overrides_runpath=no
15310 hardcode_into_libs=yes
15313 irix5* | irix6* | nonstopux*)
15315 nonstopux*) version_type=nonstopux ;;
15317 if test "$lt_cv_prog_gnu_ld" = yes; then
15318 version_type=linux # correct to gnu/linux during the next big refactor
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15328 irix5* | nonstopux*)
15329 libsuff= shlibsuff=
15332 case $LD in # libtool.m4 will add one of these switches to LD
15333 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15334 libsuff= shlibsuff= libmagic=32-bit;;
15335 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15336 libsuff=32 shlibsuff=N32 libmagic=N32;;
15337 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15338 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15339 *) libsuff= shlibsuff= libmagic=never-match;;
15343 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15344 shlibpath_overrides_runpath=no
15345 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15346 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15347 hardcode_into_libs=yes
15350 # No shared lib support for Linux oldld, aout, or coff.
15351 linux*oldld* | linux*aout* | linux*coff*)
15355 # This must be glibc/ELF.
15356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15357 version_type=linux # correct to gnu/linux during the next big refactor
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=no
15366 # Some binutils ld are patched to set DT_RUNPATH
15367 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15368 $as_echo_n "(cached) " >&6
15370 lt_cv_shlibpath_overrides_runpath=no
15371 save_LDFLAGS=$LDFLAGS
15372 save_libdir=$libdir
15373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15386 if ac_fn_cxx_try_link "$LINENO"; then :
15387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15388 lt_cv_shlibpath_overrides_runpath=yes
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 LDFLAGS=$save_LDFLAGS
15394 libdir=$save_libdir
15398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15400 # This implies no fast_install, which is unacceptable.
15401 # Some rework will be needed to allow for fast_install
15402 # before this can be enabled.
15403 hardcode_into_libs=yes
15405 # Append ld.so.conf contents to the search path
15406 if test -f /etc/ld.so.conf; then
15407 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' ' '`
15408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15411 # We used to test for /lib/ld.so.1 and disable shared libraries on
15412 # powerpc, because MkLinux only supported shared libraries with the
15413 # GNU dynamic linker. Since this was broken with cross compilers,
15414 # most powerpc-linux boxes support dynamic linking these days and
15415 # people can always --disable-shared, the test was removed, and we
15416 # assume the GNU/Linux dynamic linker is in use.
15417 dynamic_linker='GNU/Linux ld.so'
15424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15427 dynamic_linker='NetBSD (a.out) ld.so'
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 dynamic_linker='NetBSD ld.elf_so'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 shlibpath_overrides_runpath=yes
15435 hardcode_into_libs=yes
15439 version_type=linux # correct to gnu/linux during the next big refactor
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 shlibpath_overrides_runpath=no
15453 hardcode_into_libs=yes
15454 dynamic_linker='ldqnx.so'
15459 sys_lib_dlsearch_path_spec="/usr/lib"
15461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15464 *) need_version=no ;;
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15471 openbsd2.[89] | openbsd2.[89].*)
15472 shlibpath_overrides_runpath=no
15475 shlibpath_overrides_runpath=yes
15479 shlibpath_overrides_runpath=yes
15484 libname_spec='$name'
15487 library_names_spec='$libname${shared_ext} $libname.a'
15488 dynamic_linker='OS/2 ld.exe'
15489 shlibpath_var=LIBPATH
15492 osf3* | osf4* | osf5*)
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15498 shlibpath_var=LD_LIBRARY_PATH
15499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15508 version_type=linux # correct to gnu/linux during the next big refactor
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=yes
15515 hardcode_into_libs=yes
15516 # ldd complains unless libraries are executable
15517 postinstall_cmds='chmod +x $lib'
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=yes
15526 if test "$with_gnu_ld" = yes; then
15533 version_type=linux # correct to gnu/linux during the next big refactor
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15535 soname_spec='${libname}${release}${shared_ext}$major'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 case $host_vendor in
15539 shlibpath_overrides_runpath=no
15541 runpath_var=LD_RUN_PATH
15549 shlibpath_overrides_runpath=no
15550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15556 if test -d /usr/nec ;then
15557 version_type=linux # correct to gnu/linux during the next big refactor
15558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15559 soname_spec='$libname${shared_ext}.$major'
15560 shlibpath_var=LD_LIBRARY_PATH
15564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15565 version_type=freebsd-elf
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15573 if test "$with_gnu_ld" = yes; then
15574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15583 sys_lib_dlsearch_path_spec='/usr/lib'
15587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15588 version_type=linux # correct to gnu/linux during the next big refactor
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=no
15594 hardcode_into_libs=yes
15598 version_type=linux # correct to gnu/linux during the next big refactor
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15609 $as_echo "$dynamic_linker" >&6; }
15610 test "$dynamic_linker" = no && can_build_shared=no
15612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15613 if test "$GCC" = yes; then
15614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15663 hardcode_action_CXX=
15664 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15665 test -n "$runpath_var_CXX" ||
15666 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15668 # We can hardcode non-existent directories.
15669 if test "$hardcode_direct_CXX" != no &&
15670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15671 # have to relink, otherwise we might link with an installed library
15672 # when we should be linking with a yet-to-be-installed one
15673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15674 test "$hardcode_minus_L_CXX" != no; then
15675 # Linking always hardcodes the temporary library directory.
15676 hardcode_action_CXX=relink
15678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15679 hardcode_action_CXX=immediate
15682 # We cannot hardcode anything, or else we can only hardcode existing
15684 hardcode_action_CXX=unsupported
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15687 $as_echo "$hardcode_action_CXX" >&6; }
15689 if test "$hardcode_action_CXX" = relink ||
15690 test "$inherit_rpath_CXX" = yes; then
15691 # Fast installation is not supported
15692 enable_fast_install=no
15693 elif test "$shlibpath_overrides_runpath" = yes ||
15694 test "$enable_shared" = no; then
15695 # Fast installation is not necessary
15696 enable_fast_install=needless
15705 fi # test -n "$compiler"
15708 CFLAGS=$lt_save_CFLAGS
15712 with_gnu_ld=$lt_save_with_gnu_ld
15713 lt_cv_path_LDCXX=$lt_cv_path_LD
15714 lt_cv_path_LD=$lt_save_path_LD
15715 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15716 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15717 fi # test "$_lt_caught_CXX_error" != yes
15720 ac_cpp='$CPP $CPPFLAGS'
15721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15726 # Find a good install program. We prefer a C program (faster),
15727 # so one script is as good as another. But avoid the broken or
15728 # incompatible versions:
15729 # SysV /etc/install, /usr/sbin/install
15730 # SunOS /usr/etc/install
15731 # IRIX /sbin/install
15733 # AmigaOS /C/install, which installs bootblocks on floppy discs
15734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15737 # OS/2's system install, which has a completely different semantic
15738 # ./install, which can be erroneously created by make from ./install.sh.
15739 # Reject install programs that cannot install multiple files.
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15741 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15742 if test -z "$INSTALL"; then
15743 if ${ac_cv_path_install+:} false; then :
15744 $as_echo_n "(cached) " >&6
15746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747 for as_dir in $PATH
15750 test -z "$as_dir" && as_dir=.
15751 # Account for people who put trailing slashes in PATH elements.
15752 case $as_dir/ in #((
15753 ./ | .// | /[cC]/* | \
15754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15755 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15758 # OSF1 and SCO ODT 3.0 have their own names for install.
15759 # Don't use installbsd from OSF since it installs stuff as root
15761 for ac_prog in ginstall scoinst install; do
15762 for ac_exec_ext in '' $ac_executable_extensions; do
15763 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15764 if test $ac_prog = install &&
15765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15766 # AIX install. It has an incompatible calling convention.
15768 elif test $ac_prog = install &&
15769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15770 # program-specific install script used by HP pwplus--don't use.
15773 rm -rf conftest.one conftest.two conftest.dir
15774 echo one > conftest.one
15775 echo two > conftest.two
15777 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15778 test -s conftest.one && test -s conftest.two &&
15779 test -s conftest.dir/conftest.one &&
15780 test -s conftest.dir/conftest.two
15782 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15795 rm -rf conftest.one conftest.two conftest.dir
15798 if test "${ac_cv_path_install+set}" = set; then
15799 INSTALL=$ac_cv_path_install
15801 # As a last resort, use the slow shell script. Don't cache a
15802 # value for INSTALL within a source directory, because that will
15803 # break other packages using the cache if that directory is
15804 # removed, or if the value is a relative name.
15805 INSTALL=$ac_install_sh
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15809 $as_echo "$INSTALL" >&6; }
15811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15812 # It thinks the first close brace ends the variable substitution.
15813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15822 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15823 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
15824 $as_echo_n "(cached) " >&6
15826 cat >conftest.make <<\_ACEOF
15829 @echo '@@@%%%=$(MAKE)=@@@%%%'
15831 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
15832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15833 *@@@%%%=?*=@@@%%%*)
15834 eval ac_cv_prog_make_${ac_make}_set=yes;;
15836 eval ac_cv_prog_make_${ac_make}_set=no;;
15838 rm -f conftest.make
15840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15842 $as_echo "yes" >&6; }
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 $as_echo "no" >&6; }
15847 SET_MAKE="MAKE=${MAKE-make}"
15856 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15857 if test -n "$ac_tool_prefix"; then
15858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15861 $as_echo_n "checking for $ac_word... " >&6; }
15862 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15863 $as_echo_n "(cached) " >&6
15865 case $PKG_CONFIG in
15867 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871 for as_dir in $PATH
15874 test -z "$as_dir" && as_dir=.
15875 for ac_exec_ext in '' $ac_executable_extensions; do
15876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15888 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15889 if test -n "$PKG_CONFIG"; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15891 $as_echo "$PKG_CONFIG" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15894 $as_echo "no" >&6; }
15899 if test -z "$ac_cv_path_PKG_CONFIG"; then
15900 ac_pt_PKG_CONFIG=$PKG_CONFIG
15901 # Extract the first word of "pkg-config", so it can be a program name with args.
15902 set dummy pkg-config; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904 $as_echo_n "checking for $ac_word... " >&6; }
15905 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15906 $as_echo_n "(cached) " >&6
15908 case $ac_pt_PKG_CONFIG in
15910 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15917 test -z "$as_dir" && as_dir=.
15918 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15931 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15932 if test -n "$ac_pt_PKG_CONFIG"; then
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15934 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15940 if test "x$ac_pt_PKG_CONFIG" = x; then
15943 case $cross_compiling:$ac_tool_warned in
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15947 ac_tool_warned=yes ;;
15949 PKG_CONFIG=$ac_pt_PKG_CONFIG
15952 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15956 if test -n "$PKG_CONFIG"; then
15957 _pkg_min_version=0.9.0
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15959 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15960 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15962 $as_echo "yes" >&6; }
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965 $as_echo "no" >&6; }
15972 # Except on msys, where make can't handle full pathnames (bug 1972)
15975 srcdir=`cd $srcdir && pwd`
15979 INCLUDE="-I$srcdir/include"
15985 INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
15989 if test x$srcdir != x.; then
15990 INCLUDE="-Iinclude $INCLUDE"
15991 elif test -d .hg; then
15993 *** When building from Mercurial you should configure and build in a
15994 separate directory so you don't clobber SDL_config.h, SDL_revision.h
16001 # We build SDL on cygwin without the UNIX emulation layer
16002 save_CFLAGS="$CFLAGS"
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
16005 $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
16006 CFLAGS="$save_CFLAGS -mno-cygwin"
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16021 if ac_fn_c_try_compile "$LINENO"; then :
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
16028 $as_echo "$have_no_cygwin" >&6; }
16029 CFLAGS="$save_CFLAGS"
16031 if test x$have_no_cygwin = xyes; then
16032 BASE_CFLAGS="-mno-cygwin"
16033 BASE_LDFLAGS="-mno-cygwin"
16035 BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
16038 # Uncomment the following line if you want to force SDL and applications
16039 # built with it to be compiled for a particular architecture.
16040 #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
16041 BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
16042 # The default optimization for SDL is -O3 (Bug #31)
16043 if test "x$orig_CFLAGS" = x; then
16044 BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
16046 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
16047 BUILD_LDFLAGS="$LDFLAGS"
16048 EXTRA_LDFLAGS="$BASE_LDFLAGS"
16049 ## These are common directories to find software packages
16050 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
16051 # if test -d $path/include; then
16052 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
16054 # if test -d $path/lib; then
16055 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
16058 SDL_CFLAGS="$BASE_CFLAGS"
16060 if test "x$BASE_LDFLAGS" != x; then
16061 SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
16063 if test "x$EXTRA_CFLAGS" != x; then
16064 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
16065 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
16067 if test "x$EXTRA_LDFLAGS" != x; then
16068 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
16071 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
16075 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16076 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16077 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
16078 if test "$cross_compiling" = yes; then
16081 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
16083 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
16084 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
16085 if test x$lib != x; then
16090 # Try again, this time allowing more than one version digit after the .so
16091 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
16092 lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
16093 if test x$lib != x; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16101 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16102 if ${ac_cv_c_const+:} false; then :
16103 $as_echo_n "(cached) " >&6
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16112 #ifndef __cplusplus
16113 /* Ultrix mips cc rejects this sort of thing. */
16114 typedef int charset[2];
16115 const charset cs = { 0, 0 };
16116 /* SunOS 4.1.1 cc rejects this. */
16117 char const *const *pcpcc;
16119 /* NEC SVR4.0.2 mips cc rejects this. */
16120 struct point {int x, y;};
16121 static struct point const zero = {0,0};
16122 /* AIX XL C 1.02.0.0 rejects this.
16123 It does not let you subtract one const X* pointer from another in
16124 an arm of an if-expression whose if-part is not a constant
16126 const char *g = "string";
16127 pcpcc = &g + (g ? g-g : 0);
16128 /* HPUX 7.0 cc rejects these. */
16130 ppc = (char**) pcpcc;
16131 pcpcc = (char const *const *) ppc;
16132 { /* SCO 3.2v4 cc rejects this sort of thing. */
16135 char const *s = 0 ? (char *) 0 : (char const *) 0;
16140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16141 int x[] = {25, 17};
16142 const int *foo = &x[0];
16145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16146 typedef const int *iptr;
16150 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16152 struct s { int j; const int *ap[3]; } bx;
16153 struct s *b = &bx; b->j = 5;
16155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16156 const int foo = 10;
16157 if (!foo) return 0;
16159 return !cs[0] && !zero.x;
16166 if ac_fn_c_try_compile "$LINENO"; then :
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16174 $as_echo "$ac_cv_c_const" >&6; }
16175 if test $ac_cv_c_const = no; then
16177 $as_echo "#define const /**/" >>confdefs.h
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16182 $as_echo_n "checking for inline... " >&6; }
16183 if ${ac_cv_c_inline+:} false; then :
16184 $as_echo_n "(cached) " >&6
16187 for ac_kw in inline __inline__ __inline; do
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h. */
16190 #ifndef __cplusplus
16192 static $ac_kw foo_t static_foo () {return 0; }
16193 $ac_kw foo_t foo () {return 0; }
16197 if ac_fn_c_try_compile "$LINENO"; then :
16198 ac_cv_c_inline=$ac_kw
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 test "$ac_cv_c_inline" != no && break
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16206 $as_echo "$ac_cv_c_inline" >&6; }
16208 case $ac_cv_c_inline in
16211 case $ac_cv_c_inline in
16213 *) ac_val=$ac_cv_c_inline;;
16215 cat >>confdefs.h <<_ACEOF
16216 #ifndef __cplusplus
16217 #define inline $ac_val
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16224 $as_echo_n "checking for working volatile... " >&6; }
16225 if ${ac_cv_c_volatile+:} false; then :
16226 $as_echo_n "(cached) " >&6
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16236 int * volatile y = (int *) 0;
16242 if ac_fn_c_try_compile "$LINENO"; then :
16243 ac_cv_c_volatile=yes
16245 ac_cv_c_volatile=no
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16250 $as_echo "$ac_cv_c_volatile" >&6; }
16251 if test $ac_cv_c_volatile = no; then
16253 $as_echo "#define volatile /**/" >>confdefs.h
16258 # Check whether --enable-assertions was given.
16259 if test "${enable_assertions+set}" = set; then :
16260 enableval=$enable_assertions;
16262 enable_assertions=auto
16265 case "$enable_assertions" in
16266 auto) # Use optimization settings to determine assertion level
16270 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
16275 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
16280 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
16285 $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
16289 as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
16293 # Check whether --enable-dependency-tracking was given.
16294 if test "${enable_dependency_tracking+set}" = set; then :
16295 enableval=$enable_dependency_tracking;
16297 enable_dependency_tracking=yes
16300 if test x$enable_dependency_tracking = xyes; then
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
16303 $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16307 #if !defined(__GNUC__) || __GNUC__ < 3
16308 #error Dependency tracking requires GCC 3.0 or newer
16320 if ac_fn_c_try_compile "$LINENO"; then :
16322 have_gcc_mmd_mt=yes
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
16327 $as_echo "$have_gcc_mmd_mt" >&6; }
16329 if test x$have_gcc_mmd_mt = xyes; then
16330 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
16335 $as_echo_n "checking for linker option --no-undefined... " >&6; }
16336 have_no_undefined=no
16342 save_LDFLAGS="$LDFLAGS"
16343 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16345 /* end confdefs.h. */
16357 if ac_fn_c_try_link "$LINENO"; then :
16359 have_no_undefined=yes
16360 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
16363 rm -f core conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LDFLAGS="$save_LDFLAGS"
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
16369 $as_echo "$have_no_undefined" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
16372 $as_echo_n "checking for linker option --dynamicbase... " >&6; }
16373 have_dynamicbase=no
16376 save_LDFLAGS="$LDFLAGS"
16377 LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16391 if ac_fn_c_try_link "$LINENO"; then :
16393 have_dynamicbase=yes
16394 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
16397 rm -f core conftest.err conftest.$ac_objext \
16398 conftest$ac_exeext conftest.$ac_ext
16399 LDFLAGS="$save_LDFLAGS"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
16403 $as_echo "$have_dynamicbase" >&6; }
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
16406 $as_echo_n "checking for linker option --nxcompat... " >&6; }
16410 save_LDFLAGS="$LDFLAGS"
16411 LDFLAGS="$LDFLAGS -Wl,--nxcompat"
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16425 if ac_fn_c_try_link "$LINENO"; then :
16428 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
16431 rm -f core conftest.err conftest.$ac_objext \
16432 conftest$ac_exeext conftest.$ac_ext
16433 LDFLAGS="$save_LDFLAGS"
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
16437 $as_echo "$have_nxcompat" >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
16440 $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
16441 have_high_entropy_va=no
16444 save_LDFLAGS="$LDFLAGS"
16445 LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16459 if ac_fn_c_try_link "$LINENO"; then :
16461 have_high_entropy_va=yes
16462 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
16465 rm -f core conftest.err conftest.$ac_objext \
16466 conftest$ac_exeext conftest.$ac_ext
16467 LDFLAGS="$save_LDFLAGS"
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
16471 $as_echo "$have_high_entropy_va" >&6; }
16473 # Check whether --enable-libc was given.
16474 if test "${enable_libc+set}" = set; then :
16475 enableval=$enable_libc;
16480 if test x$enable_libc = xyes; then
16482 $as_echo "#define HAVE_LIBC 1" >>confdefs.h
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16486 $as_echo_n "checking for ANSI C header files... " >&6; }
16487 if ${ac_cv_header_stdc+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491 /* end confdefs.h. */
16492 #include <stdlib.h>
16493 #include <stdarg.h>
16494 #include <string.h>
16505 if ac_fn_c_try_compile "$LINENO"; then :
16506 ac_cv_header_stdc=yes
16508 ac_cv_header_stdc=no
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16512 if test $ac_cv_header_stdc = yes; then
16513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 #include <string.h>
16519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16520 $EGREP "memchr" >/dev/null 2>&1; then :
16523 ac_cv_header_stdc=no
16529 if test $ac_cv_header_stdc = yes; then
16530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 #include <stdlib.h>
16536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16537 $EGREP "free" >/dev/null 2>&1; then :
16540 ac_cv_header_stdc=no
16546 if test $ac_cv_header_stdc = yes; then
16547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16548 if test "$cross_compiling" = yes; then :
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16554 #include <stdlib.h>
16555 #if ((' ' & 0x0FF) == 0x020)
16556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16559 # define ISLOWER(c) \
16560 (('a' <= (c) && (c) <= 'i') \
16561 || ('j' <= (c) && (c) <= 'r') \
16562 || ('s' <= (c) && (c) <= 'z'))
16563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16571 for (i = 0; i < 256; i++)
16572 if (XOR (islower (i), ISLOWER (i))
16573 || toupper (i) != TOUPPER (i))
16578 if ac_fn_c_try_run "$LINENO"; then :
16581 ac_cv_header_stdc=no
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16584 conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16590 $as_echo "$ac_cv_header_stdc" >&6; }
16591 if test $ac_cv_header_stdc = yes; then
16593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16597 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h wchar.h inttypes.h stdint.h limits.h ctype.h math.h float.h iconv.h signal.h
16599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16600 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16601 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16602 cat >>confdefs.h <<_ACEOF
16603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16611 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16612 if test "x$ac_cv_type_size_t" = xyes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define size_t unsigned int
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
16624 $as_echo_n "checking for M_PI in math.h... " >&6; }
16625 if ${ac_cv_define_M_PI+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16638 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
16639 ac_cv_define_M_PI=yes
16641 ac_cv_define_M_PI=no
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
16648 $as_echo "$ac_cv_define_M_PI" >&6; }
16649 if test "$ac_cv_define_M_PI" = "yes" ; then
16651 $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
16657 *-*-cygwin* | *-*-mingw32*)
16660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16661 # for constant arguments. Useless!
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16663 $as_echo_n "checking for working alloca.h... " >&6; }
16664 if ${ac_cv_working_alloca_h+:} false; then :
16665 $as_echo_n "(cached) " >&6
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <alloca.h>
16673 char *p = (char *) alloca (2 * sizeof (int));
16679 if ac_fn_c_try_link "$LINENO"; then :
16680 ac_cv_working_alloca_h=yes
16682 ac_cv_working_alloca_h=no
16684 rm -f core conftest.err conftest.$ac_objext \
16685 conftest$ac_exeext conftest.$ac_ext
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16688 $as_echo "$ac_cv_working_alloca_h" >&6; }
16689 if test $ac_cv_working_alloca_h = yes; then
16691 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16696 $as_echo_n "checking for alloca... " >&6; }
16697 if ${ac_cv_func_alloca_works+:} false; then :
16698 $as_echo_n "(cached) " >&6
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16703 # define alloca __builtin_alloca
16706 # include <malloc.h>
16707 # define alloca _alloca
16709 # ifdef HAVE_ALLOCA_H
16710 # include <alloca.h>
16715 # ifndef alloca /* predefined by HP cc +Olibcalls */
16716 void *alloca (size_t);
16726 char *p = (char *) alloca (1);
16732 if ac_fn_c_try_link "$LINENO"; then :
16733 ac_cv_func_alloca_works=yes
16735 ac_cv_func_alloca_works=no
16737 rm -f core conftest.err conftest.$ac_objext \
16738 conftest$ac_exeext conftest.$ac_ext
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16741 $as_echo "$ac_cv_func_alloca_works" >&6; }
16743 if test $ac_cv_func_alloca_works = yes; then
16745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16749 # that cause trouble. Some versions do not even contain alloca or
16750 # contain a buggy version. If you still want to use their alloca,
16751 # use ar to extract alloca.o from them instead of compiling alloca.c.
16753 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16755 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16759 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16760 if ${ac_cv_os_cray+:} false; then :
16761 $as_echo_n "(cached) " >&6
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 #if defined CRAY && ! defined CRAY2
16772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16773 $EGREP "webecray" >/dev/null 2>&1; then :
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16782 $as_echo "$ac_cv_os_cray" >&6; }
16783 if test $ac_cv_os_cray = yes; then
16784 for ac_func in _getb67 GETB67 getb67; do
16785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define CRAY_STACKSEG_END $ac_func
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16800 $as_echo_n "checking stack direction for C alloca... " >&6; }
16801 if ${ac_cv_c_stack_direction+:} false; then :
16802 $as_echo_n "(cached) " >&6
16804 if test "$cross_compiling" = yes; then :
16805 ac_cv_c_stack_direction=0
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809 $ac_includes_default
16811 find_stack_direction (int *addr, int depth)
16813 int dir, dummy = 0;
16816 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16817 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16818 return dir + dummy;
16822 main (int argc, char **argv)
16824 return find_stack_direction (0, argc + !argv + 20) < 0;
16827 if ac_fn_c_try_run "$LINENO"; then :
16828 ac_cv_c_stack_direction=1
16830 ac_cv_c_stack_direction=-1
16832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16833 conftest.$ac_objext conftest.beam conftest.$ac_ext
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16838 $as_echo "$ac_cv_c_stack_direction" >&6; }
16839 cat >>confdefs.h <<_ACEOF
16840 #define STACK_DIRECTION $ac_cv_c_stack_direction
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
16850 $as_echo_n "checking for working memcmp... " >&6; }
16851 if ${ac_cv_func_memcmp_working+:} false; then :
16852 $as_echo_n "(cached) " >&6
16854 if test "$cross_compiling" = yes; then :
16855 ac_cv_func_memcmp_working=no
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 $ac_includes_default
16864 /* Some versions of memcmp are not 8-bit clean. */
16865 char c0 = '\100', c1 = '\200', c2 = '\201';
16866 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16869 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16870 or more and with at least one buffer not starting on a 4-byte boundary.
16871 William Lewis provided this test program. */
16876 for (i = 0; i < 4; i++)
16880 strcpy (a, "--------01111111");
16881 strcpy (b, "--------10000000");
16882 if (memcmp (a, b, 16) >= 0)
16892 if ac_fn_c_try_run "$LINENO"; then :
16893 ac_cv_func_memcmp_working=yes
16895 ac_cv_func_memcmp_working=no
16897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16898 conftest.$ac_objext conftest.beam conftest.$ac_ext
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16903 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16904 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16905 *" memcmp.$ac_objext "* ) ;;
16906 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16911 if test x$ac_cv_func_memcmp_working = xyes; then
16913 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16917 $as_echo_n "checking for working strtod... " >&6; }
16918 if ${ac_cv_func_strtod+:} false; then :
16919 $as_echo_n "(cached) " >&6
16921 if test "$cross_compiling" = yes; then :
16922 ac_cv_func_strtod=no
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 $ac_includes_default
16935 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
16936 char *string = " +69";
16939 value = strtod (string, &term);
16940 if (value != 69 || term != (string + 4))
16945 /* Under Solaris 2.4, strtod returns the wrong value for the
16946 terminating character under some conditions. */
16947 char *string = "NaN";
16949 strtod (string, &term);
16950 if (term != string && *(term - 1) == 0)
16957 if ac_fn_c_try_run "$LINENO"; then :
16958 ac_cv_func_strtod=yes
16960 ac_cv_func_strtod=no
16962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963 conftest.$ac_objext conftest.beam conftest.$ac_ext
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16968 $as_echo "$ac_cv_func_strtod" >&6; }
16969 if test $ac_cv_func_strtod = no; then
16970 case " $LIBOBJS " in
16971 *" strtod.$ac_objext "* ) ;;
16972 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16976 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16977 if test "x$ac_cv_func_pow" = xyes; then :
16981 if test $ac_cv_func_pow = no; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16983 $as_echo_n "checking for pow in -lm... " >&6; }
16984 if ${ac_cv_lib_m_pow+:} false; then :
16985 $as_echo_n "(cached) " >&6
16987 ac_check_lib_save_LIBS=$LIBS
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16992 /* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_m_pow=yes
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17017 $as_echo "$ac_cv_lib_m_pow" >&6; }
17018 if test "x$ac_cv_lib_m_pow" = xyes; then :
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
17022 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17029 if test x$ac_cv_func_strtod = xyes; then
17031 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
17034 ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
17035 if test "x$ac_cv_func_mprotect" = xyes; then :
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17039 #include <sys/types.h>
17040 #include <sys/mman.h>
17051 if ac_fn_c_try_compile "$LINENO"; then :
17054 $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
17058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval elf_aux_info poll _Exit
17063 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17065 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17066 cat >>confdefs.h <<_ACEOF
17067 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
17075 $as_echo_n "checking for pow in -lm... " >&6; }
17076 if ${ac_cv_lib_m_pow+:} false; then :
17077 $as_echo_n "(cached) " >&6
17079 ac_check_lib_save_LIBS=$LIBS
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_lib_m_pow=yes
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
17109 $as_echo "$ac_cv_lib_m_pow" >&6; }
17110 if test "x$ac_cv_lib_m_pow" = xyes; then :
17111 LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
17114 for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
17116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17117 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17118 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17119 cat >>confdefs.h <<_ACEOF
17120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
17128 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
17129 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
17130 $as_echo_n "(cached) " >&6
17132 ac_check_lib_save_LIBS=$LIBS
17133 LIBS="-liconv $LIBS"
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17137 /* Override any GCC internal prototype to avoid an error.
17138 Use char because int might match the return type of a GCC
17139 builtin and then its argument prototype would still apply. */
17143 char iconv_open ();
17147 return iconv_open ();
17152 if ac_fn_c_try_link "$LINENO"; then :
17153 ac_cv_lib_iconv_iconv_open=yes
17155 ac_cv_lib_iconv_iconv_open=no
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159 LIBS=$ac_check_lib_save_LIBS
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
17162 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
17163 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
17164 LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
17167 for ac_func in iconv
17169 ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
17170 if test "x$ac_cv_func_iconv" = xyes; then :
17171 cat >>confdefs.h <<_ACEOF
17172 #define HAVE_ICONV 1
17179 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
17181 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
17183 $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
17188 for ac_header in libunwind.h
17190 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
17191 if test "x$ac_cv_header_libunwind_h" = xyes; then :
17192 cat >>confdefs.h <<_ACEOF
17193 #define HAVE_LIBUNWIND_H 1
17203 # Check whether --enable-gcc-atomics was given.
17204 if test "${enable_gcc_atomics+set}" = set; then :
17205 enableval=$enable_gcc_atomics;
17207 enable_gcc_atomics=yes
17210 if test x$enable_gcc_atomics = xyes; then
17211 have_gcc_atomics=no
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
17213 $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17224 __sync_lock_test_and_set(&a, 4);
17225 __sync_lock_test_and_set(&x, y);
17226 __sync_fetch_and_add(&a, 1);
17227 __sync_bool_compare_and_swap(&a, 5, 10);
17228 __sync_bool_compare_and_swap(&x, y, z);
17234 if ac_fn_c_try_link "$LINENO"; then :
17236 have_gcc_atomics=yes
17239 rm -f core conftest.err conftest.$ac_objext \
17240 conftest$ac_exeext conftest.$ac_ext
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
17242 $as_echo "$have_gcc_atomics" >&6; }
17244 if test x$have_gcc_atomics = xyes; then
17246 $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
17249 # See if we have the minimum operation needed for GCC atomics
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17259 __sync_lock_test_and_set(&a, 1);
17260 __sync_lock_release(&a);
17266 if ac_fn_c_try_link "$LINENO"; then :
17268 have_gcc_sync_lock_test_and_set=yes
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 if test x$have_gcc_sync_lock_test_and_set = xyes; then
17275 $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
17281 # Standard C sources
17282 SOURCES="$SOURCES $srcdir/src/*.c"
17283 SOURCES="$SOURCES $srcdir/src/atomic/*.c"
17284 SOURCES="$SOURCES $srcdir/src/audio/*.c"
17285 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
17286 SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
17287 SOURCES="$SOURCES $srcdir/src/events/*.c"
17288 SOURCES="$SOURCES $srcdir/src/file/*.c"
17289 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
17290 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
17291 SOURCES="$SOURCES $srcdir/src/libm/*.c"
17292 SOURCES="$SOURCES $srcdir/src/misc/*.c"
17293 SOURCES="$SOURCES $srcdir/src/power/*.c"
17294 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
17295 SOURCES="$SOURCES $srcdir/src/render/*.c"
17296 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
17297 SOURCES="$SOURCES $srcdir/src/sensor/*.c"
17298 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
17299 SOURCES="$SOURCES $srcdir/src/thread/*.c"
17300 SOURCES="$SOURCES $srcdir/src/timer/*.c"
17301 SOURCES="$SOURCES $srcdir/src/video/*.c"
17302 SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
17303 SOURCES="$SOURCES $srcdir/src/locale/*.c"
17306 # Check whether --enable-atomic was given.
17307 if test "${enable_atomic+set}" = set; then :
17308 enableval=$enable_atomic;
17313 if test x$enable_atomic != xyes; then
17315 $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
17318 SUMMARY_modules="${SUMMARY_modules} atomic"
17320 # Check whether --enable-audio was given.
17321 if test "${enable_audio+set}" = set; then :
17322 enableval=$enable_audio;
17327 if test x$enable_audio != xyes; then
17329 $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
17332 SUMMARY_modules="${SUMMARY_modules} audio"
17334 # Check whether --enable-video was given.
17335 if test "${enable_video+set}" = set; then :
17336 enableval=$enable_video;
17341 if test x$enable_video != xyes; then
17343 $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
17346 SUMMARY_modules="${SUMMARY_modules} video"
17348 # Check whether --enable-render was given.
17349 if test "${enable_render+set}" = set; then :
17350 enableval=$enable_render;
17355 if test x$enable_render != xyes; then
17357 $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
17360 SUMMARY_modules="${SUMMARY_modules} render"
17362 # Check whether --enable-events was given.
17363 if test "${enable_events+set}" = set; then :
17364 enableval=$enable_events;
17369 if test x$enable_events != xyes; then
17371 $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
17374 SUMMARY_modules="${SUMMARY_modules} events"
17376 # Check whether --enable-joystick was given.
17377 if test "${enable_joystick+set}" = set; then :
17378 enableval=$enable_joystick;
17380 enable_joystick=yes
17383 if test x$enable_joystick != xyes; then
17385 $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
17388 SUMMARY_modules="${SUMMARY_modules} joystick"
17390 # Check whether --enable-haptic was given.
17391 if test "${enable_haptic+set}" = set; then :
17392 enableval=$enable_haptic;
17397 if test x$enable_haptic != xyes; then
17399 $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
17402 SUMMARY_modules="${SUMMARY_modules} haptic"
17404 # Check whether --enable-sensor was given.
17405 if test "${enable_sensor+set}" = set; then :
17406 enableval=$enable_sensor;
17411 if test x$enable_sensor != xyes; then
17413 $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
17416 SUMMARY_modules="${SUMMARY_modules} sensor"
17418 # Check whether --enable-power was given.
17419 if test "${enable_power+set}" = set; then :
17420 enableval=$enable_power;
17425 if test x$enable_power != xyes; then
17427 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
17430 SUMMARY_modules="${SUMMARY_modules} power"
17432 # Check whether --enable-filesystem was given.
17433 if test "${enable_filesystem+set}" = set; then :
17434 enableval=$enable_filesystem;
17436 enable_filesystem=yes
17439 if test x$enable_filesystem != xyes; then
17441 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
17444 SUMMARY_modules="${SUMMARY_modules} filesystem"
17446 # Check whether --enable-threads was given.
17447 if test "${enable_threads+set}" = set; then :
17448 enableval=$enable_threads;
17453 if test x$enable_threads != xyes; then
17455 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
17458 SUMMARY_modules="${SUMMARY_modules} threads"
17460 # Check whether --enable-timers was given.
17461 if test "${enable_timers+set}" = set; then :
17462 enableval=$enable_timers;
17467 if test x$enable_timers != xyes; then
17469 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
17472 SUMMARY_modules="${SUMMARY_modules} timers"
17474 # Check whether --enable-file was given.
17475 if test "${enable_file+set}" = set; then :
17476 enableval=$enable_file;
17481 if test x$enable_file != xyes; then
17483 $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
17486 SUMMARY_modules="${SUMMARY_modules} file"
17488 # Check whether --enable-loadso was given.
17489 if test "${enable_loadso+set}" = set; then :
17490 enableval=$enable_loadso;
17495 if test x$enable_loadso != xyes; then
17497 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
17500 SUMMARY_modules="${SUMMARY_modules} loadso"
17502 # Check whether --enable-cpuinfo was given.
17503 if test "${enable_cpuinfo+set}" = set; then :
17504 enableval=$enable_cpuinfo;
17509 if test x$enable_cpuinfo != xyes; then
17511 $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
17514 SUMMARY_modules="${SUMMARY_modules} cpuinfo"
17516 # Check whether --enable-assembly was given.
17517 if test "${enable_assembly+set}" = set; then :
17518 enableval=$enable_assembly;
17520 enable_assembly=yes
17523 if test x$enable_assembly = xyes; then
17524 SUMMARY_modules="${SUMMARY_modules} assembly"
17527 $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
17530 # Make sure that we don't generate floating point code that would
17531 # cause illegal instruction exceptions on older processors
17534 # Don't need to worry about Apple hardware, it's all SSE capable
17535 default_ssemath=yes
17538 # x86 64-bit architectures all have SSE instructions
17539 default_ssemath=yes
17545 # Check whether --enable-ssemath was given.
17546 if test "${enable_ssemath+set}" = set; then :
17547 enableval=$enable_ssemath;
17549 enable_ssemath=$default_ssemath
17552 if test x$enable_ssemath = xno; then
17553 if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
17554 EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
17558 # Check whether --enable-mmx was given.
17559 if test "${enable_mmx+set}" = set; then :
17560 enableval=$enable_mmx;
17565 if test x$enable_mmx = xyes; then
17566 save_CFLAGS="$CFLAGS"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
17569 $as_echo_n "checking for GCC -mmmx option... " >&6; }
17571 CFLAGS="$save_CFLAGS $mmx_CFLAGS"
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17577 #include <_mingw.h>
17578 #ifdef __MINGW64_VERSION_MAJOR
17579 #include <intrin.h>
17581 #include <mmintrin.h>
17584 #include <mmintrin.h>
17587 #error Assembler CPP flag not enabled
17599 if ac_fn_c_try_compile "$LINENO"; then :
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
17606 $as_echo "$have_gcc_mmx" >&6; }
17607 CFLAGS="$save_CFLAGS"
17609 if test x$have_gcc_mmx = xyes; then
17610 EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
17611 SUMMARY_math="${SUMMARY_math} mmx"
17615 # Check whether --enable-3dnow was given.
17616 if test "${enable_3dnow+set}" = set; then :
17617 enableval=$enable_3dnow;
17622 if test x$enable_3dnow = xyes; then
17623 save_CFLAGS="$CFLAGS"
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
17626 $as_echo_n "checking for GCC -m3dnow option... " >&6; }
17627 amd3dnow_CFLAGS="-m3dnow"
17628 CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631 /* end confdefs.h. */
17633 #include <mm3dnow.h>
17635 #error Assembler CPP flag not enabled
17649 if ac_fn_c_try_link "$LINENO"; then :
17654 rm -f core conftest.err conftest.$ac_objext \
17655 conftest$ac_exeext conftest.$ac_ext
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
17657 $as_echo "$have_gcc_3dnow" >&6; }
17658 CFLAGS="$save_CFLAGS"
17660 if test x$have_gcc_3dnow = xyes; then
17661 EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
17662 SUMMARY_math="${SUMMARY_math} 3dnow"
17666 # Check whether --enable-sse was given.
17667 if test "${enable_sse+set}" = set; then :
17668 enableval=$enable_sse;
17673 if test x$enable_sse = xyes; then
17674 save_CFLAGS="$CFLAGS"
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
17677 $as_echo_n "checking for GCC -msse option... " >&6; }
17679 CFLAGS="$save_CFLAGS $sse_CFLAGS"
17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17685 #include <_mingw.h>
17686 #ifdef __MINGW64_VERSION_MAJOR
17687 #include <intrin.h>
17689 #include <xmmintrin.h>
17692 #include <xmmintrin.h>
17695 #error Assembler CPP flag not enabled
17707 if ac_fn_c_try_compile "$LINENO"; then :
17712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
17714 $as_echo "$have_gcc_sse" >&6; }
17715 CFLAGS="$save_CFLAGS"
17717 if test x$have_gcc_sse = xyes; then
17718 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
17719 SUMMARY_math="${SUMMARY_math} sse"
17723 # Check whether --enable-sse2 was given.
17724 if test "${enable_sse2+set}" = set; then :
17725 enableval=$enable_sse2;
17727 enable_sse2=$default_ssemath
17730 if test x$enable_sse2 = xyes; then
17731 save_CFLAGS="$CFLAGS"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
17734 $as_echo_n "checking for GCC -msse2 option... " >&6; }
17735 sse2_CFLAGS="-msse2"
17736 CFLAGS="$save_CFLAGS $sse2_CFLAGS"
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17742 #include <_mingw.h>
17743 #ifdef __MINGW64_VERSION_MAJOR
17744 #include <intrin.h>
17746 #include <emmintrin.h>
17749 #include <emmintrin.h>
17752 #error Assembler CPP flag not enabled
17764 if ac_fn_c_try_compile "$LINENO"; then :
17769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
17771 $as_echo "$have_gcc_sse2" >&6; }
17772 CFLAGS="$save_CFLAGS"
17774 if test x$have_gcc_sse2 = xyes; then
17775 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
17776 SUMMARY_math="${SUMMARY_math} sse2"
17780 # Check whether --enable-sse3 was given.
17781 if test "${enable_sse3+set}" = set; then :
17782 enableval=$enable_sse3;
17784 enable_sse3=$default_ssemath
17787 if test x$enable_sse3 = xyes; then
17788 save_CFLAGS="$CFLAGS"
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
17791 $as_echo_n "checking for GCC -msse3 option... " >&6; }
17792 sse3_CFLAGS="-msse3"
17793 CFLAGS="$save_CFLAGS $sse3_CFLAGS"
17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17796 /* end confdefs.h. */
17799 #include <_mingw.h>
17800 #ifdef __MINGW64_VERSION_MAJOR
17801 #include <intrin.h>
17803 #include <pmmintrin.h>
17806 #include <pmmintrin.h>
17809 #error Assembler CPP flag not enabled
17821 if ac_fn_c_try_compile "$LINENO"; then :
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
17828 $as_echo "$have_gcc_sse3" >&6; }
17829 CFLAGS="$save_CFLAGS"
17831 if test x$have_gcc_sse3 = xyes; then
17832 EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
17833 SUMMARY_math="${SUMMARY_math} sse3"
17837 ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
17838 if test "x$ac_cv_header_immintrin_h" = xyes; then :
17839 have_immintrin_h_hdr=yes
17841 have_immintrin_h_hdr=no
17845 if test x$have_immintrin_h_hdr = xyes; then
17847 $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
17851 # Check whether --enable-altivec was given.
17852 if test "${enable_altivec+set}" = set; then :
17853 enableval=$enable_altivec;
17858 if test x$enable_altivec = xyes; then
17859 save_CFLAGS="$CFLAGS"
17860 have_gcc_altivec=no
17861 have_altivec_h_hdr=no
17862 altivec_CFLAGS="-maltivec"
17863 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
17866 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17870 #include <altivec.h>
17871 vector unsigned int vzero() {
17872 return vec_splat_u32(0);
17884 if ac_fn_c_try_compile "$LINENO"; then :
17886 have_gcc_altivec=yes
17887 have_altivec_h_hdr=yes
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17892 $as_echo "$have_gcc_altivec" >&6; }
17894 if test x$have_gcc_altivec = xno; then
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
17896 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17900 vector unsigned int vzero() {
17901 return vec_splat_u32(0);
17913 if ac_fn_c_try_compile "$LINENO"; then :
17915 have_gcc_altivec=yes
17918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17920 $as_echo "$have_gcc_altivec" >&6; }
17923 if test x$have_gcc_altivec = xno; then
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
17925 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
17926 altivec_CFLAGS="-faltivec"
17927 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17931 #include <altivec.h>
17932 vector unsigned int vzero() {
17933 return vec_splat_u32(0);
17945 if ac_fn_c_try_compile "$LINENO"; then :
17947 have_gcc_altivec=yes
17948 have_altivec_h_hdr=yes
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17953 $as_echo "$have_gcc_altivec" >&6; }
17956 if test x$have_gcc_altivec = xno; then
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
17958 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17962 vector unsigned int vzero() {
17963 return vec_splat_u32(0);
17975 if ac_fn_c_try_compile "$LINENO"; then :
17977 have_gcc_altivec=yes
17980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
17982 $as_echo "$have_gcc_altivec" >&6; }
17984 CFLAGS="$save_CFLAGS"
17986 if test x$have_gcc_altivec = xyes; then
17988 $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
17990 if test x$have_altivec_h_hdr = xyes; then
17992 $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
17995 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
17996 SUMMARY_math="${SUMMARY_math} altivec"
18003 # Check whether --enable-oss was given.
18004 if test "${enable_oss+set}" = set; then :
18005 enableval=$enable_oss;
18011 # OpenBSD "has" OSS, but it's not really for app use. They want you to
18012 # use sndio instead. So on there, we default to disabled. You can force
18013 # it on if you really want, though.
18014 if test x$enable_oss = xmaybe; then
18022 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
18024 $as_echo_n "checking for OSS audio support... " >&6; }
18026 if test x$have_oss != xyes; then
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18030 #include <sys/soundcard.h>
18036 int arg = SNDCTL_DSP_SETFRAGMENT;
18042 if ac_fn_c_try_compile "$LINENO"; then :
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 if test x$have_oss != xyes; then
18050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18051 /* end confdefs.h. */
18053 #include <soundcard.h>
18059 int arg = SNDCTL_DSP_SETFRAGMENT;
18065 if ac_fn_c_try_compile "$LINENO"; then :
18069 $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
18076 $as_echo "$have_oss" >&6; }
18077 if test x$have_oss = xyes; then
18078 SUMMARY_audio="${SUMMARY_audio} oss"
18080 $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
18082 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
18085 # We may need to link with ossaudio emulation library
18087 *-*-openbsd*|*-*-netbsd*)
18088 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
18096 # Check whether --enable-alsa was given.
18097 if test "${enable_alsa+set}" = set; then :
18098 enableval=$enable_alsa;
18103 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
18104 alsa_save_CFLAGS="$CFLAGS"
18105 alsa_save_LDFLAGS="$LDFLAGS"
18106 alsa_save_LIBS="$LIBS"
18110 # Check whether --with-alsa-prefix was given.
18111 if test "${with_alsa_prefix+set}" = set; then :
18112 withval=$with_alsa_prefix; alsa_prefix="$withval"
18119 # Check whether --with-alsa-inc-prefix was given.
18120 if test "${with_alsa_inc_prefix+set}" = set; then :
18121 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
18127 # Check whether --enable-alsatest was given.
18128 if test "${enable_alsatest+set}" = set; then :
18129 enableval=$enable_alsatest; enable_alsatest="$enableval"
18131 enable_alsatest=yes
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
18136 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
18137 if test "$alsa_inc_prefix" != "" ; then
18138 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
18139 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
18142 $as_echo "$ALSA_CFLAGS" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
18145 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
18146 if test "$alsa_prefix" != "" ; then
18147 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
18148 LDFLAGS="$LDFLAGS $ALSA_LIBS"
18151 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
18152 LIBS=`echo $LIBS | sed 's/-lm//'`
18153 LIBS=`echo $LIBS | sed 's/-ldl//'`
18154 LIBS=`echo $LIBS | sed 's/-lpthread//'`
18155 LIBS=`echo $LIBS | sed 's/ //'`
18156 LIBS="$ALSA_LIBS $LIBS"
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
18158 $as_echo "$ALSA_LIBS" >&6; }
18160 min_alsa_version=1.0.11
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
18162 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
18164 alsa_min_major_version=`echo $min_alsa_version | \
18165 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18166 alsa_min_minor_version=`echo $min_alsa_version | \
18167 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18168 alsa_min_micro_version=`echo $min_alsa_version | \
18169 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18173 ac_cpp='$CPP $CPPFLAGS'
18174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18181 #include <alsa/asoundlib.h>
18187 /* ensure backward compatibility */
18188 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
18189 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
18191 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
18192 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
18194 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
18195 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
18198 # if(SND_LIB_MAJOR > $alsa_min_major_version)
18201 # if(SND_LIB_MAJOR < $alsa_min_major_version)
18202 # error not present
18205 # if(SND_LIB_MINOR > $alsa_min_minor_version)
18208 # if(SND_LIB_MINOR < $alsa_min_minor_version)
18209 # error not present
18212 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
18213 # error not present
18223 if ac_fn_c_try_compile "$LINENO"; then :
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
18225 $as_echo "found." >&6; }
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
18228 $as_echo "not present." >&6; }
18233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 ac_cpp='$CPP $CPPFLAGS'
18236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18241 if test "x$enable_alsatest" = "xyes"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
18243 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
18244 if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
18245 $as_echo_n "(cached) " >&6
18247 ac_check_lib_save_LIBS=$LIBS
18248 LIBS="-lasound $LIBS"
18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h. */
18252 /* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18258 char snd_ctl_open ();
18262 return snd_ctl_open ();
18267 if ac_fn_c_try_link "$LINENO"; then :
18268 ac_cv_lib_asound_snd_ctl_open=yes
18270 ac_cv_lib_asound_snd_ctl_open=no
18272 rm -f core conftest.err conftest.$ac_objext \
18273 conftest$ac_exeext conftest.$ac_ext
18274 LIBS=$ac_check_lib_save_LIBS
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
18277 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
18278 if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
18279 cat >>confdefs.h <<_ACEOF
18280 #define HAVE_LIBASOUND 1
18283 LIBS="-lasound $LIBS"
18293 if test "x$alsa_found" = "xyes" ; then
18295 LIBS=`echo $LIBS | sed 's/-lasound//g'`
18296 LIBS=`echo $LIBS | sed 's/ //'`
18297 LIBS="-lasound $LIBS"
18299 if test "x$alsa_found" = "xno" ; then
18301 CFLAGS="$alsa_save_CFLAGS"
18302 LDFLAGS="$alsa_save_LDFLAGS"
18303 LIBS="$alsa_save_LIBS"
18311 # Restore all flags from before the ALSA detection runs
18312 CFLAGS="$alsa_save_CFLAGS"
18313 LDFLAGS="$alsa_save_LDFLAGS"
18314 LIBS="$alsa_save_LIBS"
18315 if test x$have_alsa = xyes; then
18316 # Check whether --enable-alsa-shared was given.
18317 if test "${enable_alsa_shared+set}" = set; then :
18318 enableval=$enable_alsa_shared;
18320 enable_alsa_shared=yes
18323 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18326 $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
18328 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
18329 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
18330 if test x$have_loadso != xyes && \
18331 test x$enable_alsa_shared = xyes; then
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
18333 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
18335 if test x$have_loadso = xyes && \
18336 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
18337 echo "-- dynamic libasound -> $alsa_lib"
18339 cat >>confdefs.h <<_ACEOF
18340 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
18343 SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
18345 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
18346 SUMMARY_audio="${SUMMARY_audio} alsa"
18355 # Check whether --enable-jack was given.
18356 if test "${enable_jack+set}" = set; then :
18357 enableval=$enable_jack;
18362 if test x$enable_audio = xyes -a x$enable_jack = xyes; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
18366 $as_echo_n "checking for JACK... " >&6; }
18368 if test -n "$JACK_CFLAGS"; then
18369 pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
18370 elif test -n "$PKG_CONFIG"; then
18371 if test -n "$PKG_CONFIG" && \
18372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
18373 ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
18375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376 test $ac_status = 0; }; then
18377 pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
18384 if test -n "$JACK_LIBS"; then
18385 pkg_cv_JACK_LIBS="$JACK_LIBS"
18386 elif test -n "$PKG_CONFIG"; then
18387 if test -n "$PKG_CONFIG" && \
18388 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
18389 ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
18391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18392 test $ac_status = 0; }; then
18393 pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
18403 if test $pkg_failed = yes; then
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18408 _pkg_short_errors_supported=yes
18410 _pkg_short_errors_supported=no
18412 if test $_pkg_short_errors_supported = yes; then
18413 JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
18415 JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
18417 # Put the nasty error message in config.log where it belongs
18418 echo "$JACK_PKG_ERRORS" >&5
18421 elif test $pkg_failed = untried; then
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18423 $as_echo "no" >&6; }
18426 JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
18427 JACK_LIBS=$pkg_cv_JACK_LIBS
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18429 $as_echo "yes" >&6; }
18433 if test x$audio_jack = xyes; then
18434 # Check whether --enable-jack-shared was given.
18435 if test "${enable_jack_shared+set}" = set; then :
18436 enableval=$enable_jack_shared;
18438 enable_jack_shared=yes
18441 jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18444 $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
18446 SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
18447 EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
18448 if test x$have_loadso != xyes && \
18449 test x$enable_jack_shared = xyes; then
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
18451 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
18453 if test x$have_loadso = xyes && \
18454 test x$enable_jack_shared = xyes && test x$jack_lib != x; then
18455 echo "-- dynamic libjack -> $jack_lib"
18457 cat >>confdefs.h <<_ACEOF
18458 #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
18461 SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
18464 # On Solaris, jack must be linked deferred explicitly
18465 # to prevent undefined symbol failures.
18467 JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
18468 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
18471 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
18472 SUMMARY_audio="${SUMMARY_audio} jack"
18481 # Check whether --enable-esd was given.
18482 if test "${enable_esd+set}" = set; then :
18483 enableval=$enable_esd;
18488 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
18490 # Check whether --with-esd-prefix was given.
18491 if test "${with_esd_prefix+set}" = set; then :
18492 withval=$with_esd_prefix; esd_prefix="$withval"
18498 # Check whether --with-esd-exec-prefix was given.
18499 if test "${with_esd_exec_prefix+set}" = set; then :
18500 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
18505 # Check whether --enable-esdtest was given.
18506 if test "${enable_esdtest+set}" = set; then :
18507 enableval=$enable_esdtest;
18513 if test x$esd_exec_prefix != x ; then
18514 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
18515 if test x${ESD_CONFIG+set} != xset ; then
18516 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
18519 if test x$esd_prefix != x ; then
18520 esd_args="$esd_args --prefix=$esd_prefix"
18521 if test x${ESD_CONFIG+set} != xset ; then
18522 ESD_CONFIG=$esd_prefix/bin/esd-config
18526 # Extract the first word of "esd-config", so it can be a program name with args.
18527 set dummy esd-config; ac_word=$2
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18529 $as_echo_n "checking for $ac_word... " >&6; }
18530 if ${ac_cv_path_ESD_CONFIG+:} false; then :
18531 $as_echo_n "(cached) " >&6
18533 case $ESD_CONFIG in
18535 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
18538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18539 for as_dir in $PATH
18542 test -z "$as_dir" && as_dir=.
18543 for ac_exec_ext in '' $ac_executable_extensions; do
18544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18545 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18553 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
18557 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
18558 if test -n "$ESD_CONFIG"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
18560 $as_echo "$ESD_CONFIG" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18563 $as_echo "no" >&6; }
18567 min_esd_version=0.2.8
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
18569 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
18571 if test "$ESD_CONFIG" = "no" ; then
18574 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
18575 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
18577 esd_major_version=`$ESD_CONFIG $esd_args --version | \
18578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
18579 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
18580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
18581 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
18582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
18583 if test "x$enable_esdtest" = "xyes" ; then
18584 ac_save_CFLAGS="$CFLAGS"
18585 ac_save_LIBS="$LIBS"
18586 CFLAGS="$CFLAGS $ESD_CFLAGS"
18587 LIBS="$LIBS $ESD_LIBS"
18589 if test "$cross_compiling" = yes; then :
18590 echo $ac_n "cross compiling; assumed OK... $ac_c"
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18596 #include <stdlib.h>
18597 #include <string.h>
18601 my_strdup (char *str)
18607 new_str = malloc ((strlen (str) + 1) * sizeof(char));
18608 strcpy (new_str, str);
18618 int major, minor, micro;
18621 system ("touch conf.esdtest");
18623 /* HP/UX 9 (%@#!) writes to sscanf strings */
18624 tmp_version = my_strdup("$min_esd_version");
18625 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
18626 printf("%s, bad version string\n", "$min_esd_version");
18630 if (($esd_major_version > major) ||
18631 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
18632 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
18638 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
18639 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
18640 printf("*** best to upgrade to the required version.\n");
18641 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
18642 printf("*** to point to the correct copy of esd-config, and remove the file\n");
18643 printf("*** config.cache before re-running configure\n");
18650 if ac_fn_c_try_run "$LINENO"; then :
18655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18656 conftest.$ac_objext conftest.beam conftest.$ac_ext
18659 CFLAGS="$ac_save_CFLAGS"
18660 LIBS="$ac_save_LIBS"
18663 if test "x$no_esd" = x ; then
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18665 $as_echo "yes" >&6; }
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18669 $as_echo "no" >&6; }
18670 if test "$ESD_CONFIG" = "no" ; then
18671 echo "*** The esd-config script installed by ESD could not be found"
18672 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
18673 echo "*** your path, or set the ESD_CONFIG environment variable to the"
18674 echo "*** full path to esd-config."
18676 if test -f conf.esdtest ; then
18679 echo "*** Could not run ESD test program, checking why..."
18680 CFLAGS="$CFLAGS $ESD_CFLAGS"
18681 LIBS="$LIBS $ESD_LIBS"
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18696 if ac_fn_c_try_link "$LINENO"; then :
18697 echo "*** The test program compiled, but did not run. This usually means"
18698 echo "*** that the run-time linker is not finding ESD or finding the wrong"
18699 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
18700 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
18701 echo "*** to the installed location Also, make sure you have run ldconfig if that"
18702 echo "*** is required on your system"
18704 echo "*** If you have an old version installed, it is best to remove it, although"
18705 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
18707 echo "*** The test program failed to compile or link. See the file config.log for the"
18708 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
18709 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
18710 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
18712 rm -f core conftest.err conftest.$ac_objext \
18713 conftest$ac_exeext conftest.$ac_ext
18714 CFLAGS="$ac_save_CFLAGS"
18715 LIBS="$ac_save_LIBS"
18726 if test x$have_esd = xyes; then
18727 # Check whether --enable-esd-shared was given.
18728 if test "${enable_esd_shared+set}" = set; then :
18729 enableval=$enable_esd_shared;
18731 enable_esd_shared=yes
18734 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18737 $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
18739 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
18740 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
18741 if test x$have_loadso != xyes && \
18742 test x$enable_esd_shared = xyes; then
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
18744 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
18746 if test x$have_loadso = xyes && \
18747 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
18748 echo "-- dynamic libesd -> $esd_lib"
18750 cat >>confdefs.h <<_ACEOF
18751 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
18754 SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
18756 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
18757 SUMMARY_audio="${SUMMARY_audio} esd"
18766 # Check whether --enable-pulseaudio was given.
18767 if test "${enable_pulseaudio+set}" = set; then :
18768 enableval=$enable_pulseaudio;
18770 enable_pulseaudio=yes
18773 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
18777 $as_echo_n "checking for PULSEAUDIO... " >&6; }
18779 if test -n "$PULSEAUDIO_CFLAGS"; then
18780 pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
18781 elif test -n "$PKG_CONFIG"; then
18782 if test -n "$PKG_CONFIG" && \
18783 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
18784 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
18786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18787 test $ac_status = 0; }; then
18788 pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
18795 if test -n "$PULSEAUDIO_LIBS"; then
18796 pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
18797 elif test -n "$PKG_CONFIG"; then
18798 if test -n "$PKG_CONFIG" && \
18799 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
18800 ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
18802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18803 test $ac_status = 0; }; then
18804 pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
18814 if test $pkg_failed = yes; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18816 $as_echo "no" >&6; }
18818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18819 _pkg_short_errors_supported=yes
18821 _pkg_short_errors_supported=no
18823 if test $_pkg_short_errors_supported = yes; then
18824 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
18826 PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
18828 # Put the nasty error message in config.log where it belongs
18829 echo "$PULSEAUDIO_PKG_ERRORS" >&5
18831 audio_pulseaudio=no
18832 elif test $pkg_failed = untried; then
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18835 audio_pulseaudio=no
18837 PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
18838 PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 $as_echo "yes" >&6; }
18841 audio_pulseaudio=yes
18844 if test x$audio_pulseaudio = xyes; then
18845 # Check whether --enable-pulseaudio-shared was given.
18846 if test "${enable_pulseaudio_shared+set}" = set; then :
18847 enableval=$enable_pulseaudio_shared;
18849 enable_pulseaudio_shared=yes
18852 pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18855 $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
18857 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
18858 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
18859 if test x$have_loadso != xyes && \
18860 test x$enable_pulseaudio_shared = xyes; then
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
18862 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
18864 if test x$have_loadso = xyes && \
18865 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
18866 echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
18868 cat >>confdefs.h <<_ACEOF
18869 #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
18872 SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
18875 # On Solaris, pulseaudio must be linked deferred explicitly
18876 # to prevent undefined symbol failures.
18878 PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
18879 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
18882 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
18883 SUMMARY_audio="${SUMMARY_audio} pulse"
18892 # Check whether --enable-arts was given.
18893 if test "${enable_arts+set}" = set; then :
18894 enableval=$enable_arts;
18899 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
18900 # Extract the first word of "artsc-config", so it can be a program name with args.
18901 set dummy artsc-config; ac_word=$2
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18903 $as_echo_n "checking for $ac_word... " >&6; }
18904 if ${ac_cv_path_ARTSCONFIG+:} false; then :
18905 $as_echo_n "(cached) " >&6
18907 case $ARTSCONFIG in
18909 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
18912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18913 for as_dir in $PATH
18916 test -z "$as_dir" && as_dir=.
18917 for ac_exec_ext in '' $ac_executable_extensions; do
18918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18919 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
18920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18930 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
18931 if test -n "$ARTSCONFIG"; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
18933 $as_echo "$ARTSCONFIG" >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18940 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
18941 : # arts isn't installed
18943 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
18944 ARTS_LIBS=`$ARTSCONFIG --libs`
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
18946 $as_echo_n "checking for aRts development environment... " >&6; }
18948 save_CFLAGS="$CFLAGS"
18949 CFLAGS="$CFLAGS $ARTS_CFLAGS"
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18959 arts_stream_t stream;
18965 if ac_fn_c_try_compile "$LINENO"; then :
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971 CFLAGS="$save_CFLAGS"
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
18973 $as_echo "$audio_arts" >&6; }
18974 if test x$audio_arts = xyes; then
18975 # Check whether --enable-arts-shared was given.
18976 if test "${enable_arts_shared+set}" = set; then :
18977 enableval=$enable_arts_shared;
18979 enable_arts_shared=yes
18982 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
18985 $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
18987 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
18988 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
18989 if test x$have_loadso != xyes && \
18990 test x$enable_arts_shared = xyes; then
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
18992 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
18994 if test x$have_loadso = xyes && \
18995 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
18996 echo "-- dynamic libartsc -> $arts_lib"
18998 cat >>confdefs.h <<_ACEOF
18999 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
19002 SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
19004 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
19005 SUMMARY_audio="${SUMMARY_audio} arts"
19015 # Check whether --enable-nas was given.
19016 if test "${enable_nas+set}" = set; then :
19017 enableval=$enable_nas;
19022 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
19023 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
19024 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
19030 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
19031 if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
19032 $as_echo_n "(cached) " >&6
19034 ac_check_lib_save_LIBS=$LIBS
19035 LIBS="-laudio $LIBS"
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19045 char AuOpenServer ();
19049 return AuOpenServer ();
19054 if ac_fn_c_try_link "$LINENO"; then :
19055 ac_cv_lib_audio_AuOpenServer=yes
19057 ac_cv_lib_audio_AuOpenServer=no
19059 rm -f core conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19061 LIBS=$ac_check_lib_save_LIBS
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
19064 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
19065 if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
19071 $as_echo_n "checking for NAS audio support... " >&6; }
19074 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
19078 elif test -r /usr/X11R6/include/audio/audiolib.h; then
19080 NAS_CFLAGS="-I/usr/X11R6/include/"
19081 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
19086 $as_echo "$have_nas" >&6; }
19088 if test x$have_nas = xyes; then
19089 # Check whether --enable-nas-shared was given.
19090 if test "${enable_nas_shared+set}" = set; then :
19091 enableval=$enable_nas_shared;
19093 enable_nas_shared=yes
19096 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19098 if test x$have_loadso != xyes && \
19099 test x$enable_nas_shared = xyes; then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
19101 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
19103 if test x$have_loadso = xyes && \
19104 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
19105 echo "-- dynamic libaudio -> $nas_lib"
19107 cat >>confdefs.h <<_ACEOF
19108 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
19111 SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
19113 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
19114 SUMMARY_audio="${SUMMARY_audio} nas"
19118 $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
19120 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
19121 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
19129 # Check whether --enable-sndio was given.
19130 if test "${enable_sndio+set}" = set; then :
19131 enableval=$enable_sndio;
19136 if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
19137 ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
19138 if test "x$ac_cv_header_sndio_h" = xyes; then :
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
19144 $as_echo_n "checking for sio_open in -lsndio... " >&6; }
19145 if ${ac_cv_lib_sndio_sio_open+:} false; then :
19146 $as_echo_n "(cached) " >&6
19148 ac_check_lib_save_LIBS=$LIBS
19149 LIBS="-lsndio $LIBS"
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19163 return sio_open ();
19168 if ac_fn_c_try_link "$LINENO"; then :
19169 ac_cv_lib_sndio_sio_open=yes
19171 ac_cv_lib_sndio_sio_open=no
19173 rm -f core conftest.err conftest.$ac_objext \
19174 conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
19178 $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
19179 if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
19185 $as_echo_n "checking for sndio audio support... " >&6; }
19188 if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
19190 SNDIO_LIBS="-lsndio"
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
19194 $as_echo "$have_sndio" >&6; }
19196 if test x$have_sndio = xyes; then
19197 # Check whether --enable-sndio-shared was given.
19198 if test "${enable_sndio_shared+set}" = set; then :
19199 enableval=$enable_sndio_shared;
19201 enable_sndio_shared=yes
19204 sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19206 if test x$have_loadso != xyes && \
19207 test x$enable_sndio_shared = xyes; then
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
19209 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
19211 if test x$have_loadso = xyes && \
19212 test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
19213 echo "-- dynamic libsndio -> $sndio_lib"
19215 cat >>confdefs.h <<_ACEOF
19216 #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
19219 SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
19221 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
19222 SUMMARY_audio="${SUMMARY_audio} sndio"
19226 $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
19228 SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
19229 EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
19237 # Check whether --enable-fusionsound was given.
19238 if test "${enable_fusionsound+set}" = set; then :
19239 enableval=$enable_fusionsound;
19241 enable_fusionsound=no
19244 if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
19248 $as_echo_n "checking for FUSIONSOUND... " >&6; }
19250 if test -n "$FUSIONSOUND_CFLAGS"; then
19251 pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
19252 elif test -n "$PKG_CONFIG"; then
19253 if test -n "$PKG_CONFIG" && \
19254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
19255 ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
19257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19258 test $ac_status = 0; }; then
19259 pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
19266 if test -n "$FUSIONSOUND_LIBS"; then
19267 pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
19268 elif test -n "$PKG_CONFIG"; then
19269 if test -n "$PKG_CONFIG" && \
19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
19271 ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
19273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19274 test $ac_status = 0; }; then
19275 pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
19285 if test $pkg_failed = yes; then
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19287 $as_echo "no" >&6; }
19289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19290 _pkg_short_errors_supported=yes
19292 _pkg_short_errors_supported=no
19294 if test $_pkg_short_errors_supported = yes; then
19295 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
19297 FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
19299 # Put the nasty error message in config.log where it belongs
19300 echo "$FUSIONSOUND_PKG_ERRORS" >&5
19303 elif test $pkg_failed = untried; then
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19308 FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
19309 FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19311 $as_echo "yes" >&6; }
19315 if test x$fusionsound = xyes; then
19317 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
19319 SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
19320 EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
19322 # Check whether --enable-fusionsound-shared was given.
19323 if test "${enable_fusionsound_shared+set}" = set; then :
19324 enableval=$enable_fusionsound_shared;
19326 enable_fusionsound_shared=yes
19329 fusionsound_shared=no
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
19331 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
19332 if test x$have_loadso != xyes && \
19333 test x$enable_fusionsound_shared = xyes; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
19335 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
19337 if test x$have_loadso = xyes && \
19338 test x$enable_fusionsound_shared = xyes; then
19340 cat >>confdefs.h <<_ACEOF
19341 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
19344 fusionsound_shared=yes
19345 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
19347 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
19348 SUMMARY_audio="${SUMMARY_audio} fusionsound"
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
19351 $as_echo "$fusionsound_shared" >&6; }
19360 # Check whether --enable-diskaudio was given.
19361 if test "${enable_diskaudio+set}" = set; then :
19362 enableval=$enable_diskaudio;
19364 enable_diskaudio=yes
19367 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
19369 $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
19371 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
19372 SUMMARY_audio="${SUMMARY_audio} disk"
19378 # Check whether --enable-dummyaudio was given.
19379 if test "${enable_dummyaudio+set}" = set; then :
19380 enableval=$enable_dummyaudio;
19382 enable_dummyaudio=yes
19385 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
19387 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
19389 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
19390 SUMMARY_audio="${SUMMARY_audio} dummy"
19394 CheckLibSampleRate()
19396 # Check whether --enable-libsamplerate was given.
19397 if test "${enable_libsamplerate+set}" = set; then :
19398 enableval=$enable_libsamplerate;
19400 enable_libsamplerate=yes
19403 if test x$enable_libsamplerate = xyes; then
19404 ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
19405 if test "x$ac_cv_header_samplerate_h" = xyes; then :
19406 have_samplerate_h_hdr=yes
19408 have_samplerate_h_hdr=no
19412 if test x$have_samplerate_h_hdr = xyes; then
19414 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
19417 # Check whether --enable-libsamplerate-shared was given.
19418 if test "${enable_libsamplerate_shared+set}" = set; then :
19419 enableval=$enable_libsamplerate_shared;
19421 enable_libsamplerate_shared=yes
19425 samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
19427 if test x$have_loadso != xyes && \
19428 test x$enable_libsamplerate_shared = xyes; then
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
19430 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
19432 if test x$have_loadso = xyes && \
19433 test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
19434 echo "-- dynamic libsamplerate -> $samplerate_lib"
19436 cat >>confdefs.h <<_ACEOF
19437 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
19441 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
19449 # Check whether --enable-arm-simd was given.
19450 if test "${enable_arm_simd+set}" = set; then :
19451 enableval=$enable_arm_simd; enable_arm_simd=$enableval
19456 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
19457 save_CFLAGS="$CFLAGS"
19459 CFLAGS="-x assembler-with-cpp $CFLAGS"
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
19462 $as_echo_n "checking for ARM SIMD... " >&6; }
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19471 #ifndef __ARM_EABI__
19472 #error EABI is required (to be sure that calling conventions are compatible)
19478 if ac_fn_c_try_compile "$LINENO"; then :
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
19483 $as_echo "$have_arm_simd" >&6; }
19485 CFLAGS="$save_CFLAGS"
19487 if test x$have_arm_simd = xyes; then
19489 $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
19491 SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
19492 WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
19499 # Check whether --enable-arm-neon was given.
19500 if test "${enable_arm_neon+set}" = set; then :
19501 enableval=$enable_arm_neon; enable_arm_neon=$enableval
19506 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
19507 save_CFLAGS="$CFLAGS"
19509 CFLAGS="-x assembler-with-cpp $CFLAGS"
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
19512 $as_echo_n "checking for ARM NEON... " >&6; }
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19520 .eabi_attribute 10, 0
19523 #ifndef __ARM_EABI__
19524 #error EABI is required (to be sure that calling conventions are compatible)
19530 if ac_fn_c_try_compile "$LINENO"; then :
19533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
19535 $as_echo "$have_arm_neon" >&6; }
19536 CFLAGS="$save_CFLAGS"
19538 if test x$have_arm_neon = xyes; then
19540 $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
19542 SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
19543 WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
19548 CheckVisibilityHidden()
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
19551 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
19552 have_gcc_fvisibility=no
19554 visibility_CFLAGS="-fvisibility=hidden"
19555 save_CFLAGS="$CFLAGS"
19556 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
19557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h. */
19560 #if !defined(__GNUC__) || __GNUC__ < 4
19561 #error SDL only uses visibility attributes in GCC 4 or newer
19573 if ac_fn_c_try_compile "$LINENO"; then :
19575 have_gcc_fvisibility=yes
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
19580 $as_echo "$have_gcc_fvisibility" >&6; }
19581 CFLAGS="$save_CFLAGS"
19583 if test x$have_gcc_fvisibility = xyes; then
19584 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
19588 CheckNoStrictAliasing()
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
19591 $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
19592 have_gcc_no_strict_aliasing=no
19594 save_CFLAGS="$CFLAGS"
19595 CFLAGS="$save_CFLAGS -fno-strict-aliasing"
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19610 if ac_fn_c_try_compile "$LINENO"; then :
19612 have_gcc_no_strict_aliasing=yes
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
19617 $as_echo "$have_gcc_no_strict_aliasing" >&6; }
19618 CFLAGS="$save_CFLAGS"
19620 if test x$have_gcc_no_strict_aliasing = xyes; then
19621 EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
19625 CheckStackBoundary()
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
19628 $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
19629 have_gcc_preferred_stack_boundary=no
19631 save_CFLAGS="$CFLAGS"
19632 CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
19633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19634 /* end confdefs.h. */
19647 if ac_fn_c_try_compile "$LINENO"; then :
19649 have_gcc_preferred_stack_boundary=yes
19652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
19654 $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
19655 CFLAGS="$save_CFLAGS"
19657 if test x$have_gcc_preferred_stack_boundary = xyes; then
19658 EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
19662 CheckDeclarationAfterStatement()
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
19665 $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
19666 have_gcc_declaration_after_statement=no
19668 save_CFLAGS="$CFLAGS"
19669 CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671 /* end confdefs.h. */
19684 if ac_fn_c_try_compile "$LINENO"; then :
19686 have_gcc_declaration_after_statement=yes
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
19691 $as_echo "$have_gcc_declaration_after_statement" >&6; }
19692 CFLAGS="$save_CFLAGS"
19694 if test x$have_gcc_declaration_after_statement = xyes; then
19695 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
19702 $as_echo_n "checking for GCC -Wall option... " >&6; }
19705 save_CFLAGS="$CFLAGS"
19706 CFLAGS="$save_CFLAGS -Wall"
19707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19721 if ac_fn_c_try_compile "$LINENO"; then :
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
19728 $as_echo "$have_gcc_Wall" >&6; }
19729 CFLAGS="$save_CFLAGS"
19731 if test x$have_gcc_Wall = xyes; then
19732 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
19735 $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
19736 need_gcc_Wno_multichar=no
19739 need_gcc_Wno_multichar=yes
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
19743 $as_echo "$need_gcc_Wno_multichar" >&6; }
19744 if test x$need_gcc_Wno_multichar = xyes; then
19745 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
19752 # Check whether --enable-video-wayland was given.
19753 if test "${enable_video_wayland+set}" = set; then :
19754 enableval=$enable_video_wayland;
19756 enable_video_wayland=yes
19760 # Check whether --enable-video-wayland-qt-touch was given.
19761 if test "${enable_video_wayland_qt_touch+set}" = set; then :
19762 enableval=$enable_video_wayland_qt_touch;
19764 enable_video_wayland_qt_touch=yes
19768 if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
19770 $as_echo_n "checking for Wayland support... " >&6; }
19772 if test x$video_opengl_egl = xyes && \
19773 test x$video_opengles_v2 = xyes; then
19774 if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon xdg-shell-client text-client tizen-extension-client; then
19775 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19776 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon xdg-shell-client text-client tizen-extension-client`
19777 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
19782 $as_echo "$video_wayland" >&6; }
19784 if test x$video_wayland = xyes; then
19786 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
19788 if test x$enable_video_wayland_qt_touch = xyes; then
19790 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
19794 WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
19795 SOURCES="$SOURCES $WAYLAND_SOURCES"
19796 EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
19797 # Check whether --enable-wayland-shared was given.
19798 if test "${enable_wayland_shared+set}" = set; then :
19799 enableval=$enable_wayland_shared;
19801 enable_wayland_shared=maybe
19807 wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19808 wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19809 if test x$wayland_egl_lib = x; then
19810 wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19812 wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19813 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19814 xdg_shell_client_lib=`find_lib "libxdg-shell-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19815 text_client_lib=`find_lib "libtext-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19816 tizen_extension_client_lib=`find_lib "libtizen-extension-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
19820 if test x$enable_wayland_shared = xmaybe; then
19821 enable_wayland_shared=yes
19823 if test x$have_loadso != xyes && \
19824 test x$enable_wayland_shared = xyes; then
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
19826 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
19827 enable_wayland_shared=no
19829 if test x$have_loadso = xyes && \
19830 test x$enable_wayland_shared = xyes && \
19831 test x$wayland_client_lib != x && \
19832 test x$wayland_egl_lib != x && \
19833 test x$wayland_cursor_lib != x && \
19834 test x$xdg_shell_client_lib != x && \
19835 test x$text_client_lib != x && \
19836 test x$tizen_extension_client_lib != x && \
19837 test x$xkbcommon_lib != x; then
19838 echo "-- dynamic libwayland-client -> $wayland_client_lib"
19839 echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
19840 echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
19841 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
19842 echo "-- dynamic libxdg_shell_client -> $xdg_shell_client_lib"
19843 echo "-- dynamic libtext_client -> $xtext_client_lib"
19844 echo "-- dynamic libtizen_extension_client -> $xtizen_extension_client_lib"
19846 cat >>confdefs.h <<_ACEOF
19847 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
19851 cat >>confdefs.h <<_ACEOF
19852 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
19856 cat >>confdefs.h <<_ACEOF
19857 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
19861 cat >>confdefs.h <<_ACEOF
19862 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
19866 cat >>confdefs.h <<_ACEOF
19867 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XDGSHELLCLIENT "$xdg_shell_client_lib"
19871 cat >>confdefs.h <<_ACEOF
19872 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TEXTCLIENT "$text_client_lib"
19876 cat >>confdefs.h <<_ACEOF
19877 #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_TIZENEXTENSIONCLIENT "$tizen_extension_client_lib"
19880 SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
19882 enable_wayland_shared=no
19883 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
19884 SUMMARY_video="${SUMMARY_video} wayland"
19893 # Check whether --enable-video-tizen was given.
19894 if test "${enable_video_tizen+set}" = set; then :
19895 enableval=$enable_video_tizen;
19897 enable_video_tizen=yes
19901 if test x$enable_video = xyes -a x$enable_video_tizen = xyes; then
19902 # Extract the first word of "pkg-config", so it can be a program name with args.
19903 set dummy pkg-config; ac_word=$2
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19905 $as_echo_n "checking for $ac_word... " >&6; }
19906 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19907 $as_echo_n "(cached) " >&6
19909 case $PKG_CONFIG in
19911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19915 for as_dir in $PATH
19918 test -z "$as_dir" && as_dir=.
19919 for ac_exec_ext in '' $ac_executable_extensions; do
19920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19934 if test -n "$PKG_CONFIG"; then
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19936 $as_echo "$PKG_CONFIG" >&6; }
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19939 $as_echo "no" >&6; }
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tizen support" >&5
19944 $as_echo_n "checking for Tizen support... " >&6; }
19946 if test x$PKG_CONFIG != xno && \
19947 test x$video_opengl_egl = xyes && \
19948 test x$video_opengles_v2 = xyes; then
19949 if $PKG_CONFIG --exists wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui; then
19950 TIZEN_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui`
19951 TIZEN_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-egl-tizen ecore ecore-wl2 xdg-shell-client text-client tizen-extension-client eina elementary capi-appfw-application capi-system-system-settings ecore-input dlog ecore-imf libdrm aul ecore-ipc appcore-ui`
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_tizen" >&5
19957 $as_echo "$video_tizen" >&6; }
19959 if test x$video_tizen = xyes; then
19961 $as_echo "#define SDL_VIDEO_DRIVER_TIZEN 1" >>confdefs.h
19963 SOURCES="$SOURCES $srcdir/src/video/tizen/*.c"
19964 SOURCES="$SOURCES $srcdir/src/core/tizen/*.c"
19965 SDLMAIN_SOURCES="$srcdir/src/main/tizen/*.c"
19967 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
19968 SDL_LIBS="-lSDL2main $SDL_LIBS"
19970 EXTRA_CFLAGS="$EXTRA_CFLAGS $TIZEN_CFLAGS -DTIZEN -fstack-protector-strong -Wl,-z,relro -D_FORTIFY_SOURCE=2 -fPIE -pie -Wno-error=declaration-after-statement"
19971 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $TIZEN_LIBS -pie -Wl,-z,relro,-z,now"
19972 SUMMARY_video="${SUMMARY_video} tizen"
19977 if test x$enable_joystick = xyes; then
19978 SUMMARY="${SUMMARY}SDL2 tizen joystick in:\n"
19980 $as_echo "#define SDL_JOYSTICK_TIZEN 1" >>confdefs.h
19982 SOURCES="$SOURCES $srcdir/src/joystick/tizen/*.c"
19989 # Check whether --enable-video-mir was given.
19990 if test "${enable_video_mir+set}" = set; then :
19991 enableval=$enable_video_mir;
19993 enable_video_mir=yes
19997 if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
19998 # Extract the first word of "pkg-config", so it can be a program name with args.
19999 set dummy pkg-config; ac_word=$2
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20001 $as_echo_n "checking for $ac_word... " >&6; }
20002 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20003 $as_echo_n "(cached) " >&6
20005 case $PKG_CONFIG in
20007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20011 for as_dir in $PATH
20014 test -z "$as_dir" && as_dir=.
20015 for ac_exec_ext in '' $ac_executable_extensions; do
20016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20030 if test -n "$PKG_CONFIG"; then
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20032 $as_echo "$PKG_CONFIG" >&6; }
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035 $as_echo "no" >&6; }
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
20040 $as_echo_n "checking for Mir support... " >&6; }
20042 if test x$PKG_CONFIG != xno; then
20043 if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
20044 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
20045 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
20046 save_CFLAGS="$CFLAGS"
20047 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
20049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20050 /* end confdefs.h. */
20052 #include <mir_toolkit/mir_client_library.h>
20058 MirWindowAttrib attrib = mir_window_attrib_state
20064 if ac_fn_c_try_compile "$LINENO"; then :
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 CFLAGS="$save_CFLAGS"
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
20074 $as_echo "$video_mir" >&6; }
20076 if test x$video_mir = xyes; then
20078 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
20080 SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
20081 EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
20082 # Check whether --enable-mir-shared was given.
20083 if test "${enable_mir_shared+set}" = set; then :
20084 enableval=$enable_mir_shared;
20086 enable_mir_shared=maybe
20092 mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20093 xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20097 if test x$enable_mir_shared = xmaybe; then
20098 enable_mir_shared=yes
20100 if test x$have_loadso != xyes && \
20101 test x$enable_mir_shared = xyes; then
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
20103 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
20104 enable_mir_shared=no
20106 if test x$have_loadso = xyes && \
20107 test x$enable_mir_shared = xyes && \
20108 test x$mirclient_lib != x && \
20109 test x$xkbcommon_lib != x; then
20110 echo "-- dynamic libmirclient -> $mirclient_lib"
20111 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
20113 cat >>confdefs.h <<_ACEOF
20114 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
20118 cat >>confdefs.h <<_ACEOF
20119 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
20122 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
20124 enable_mir_shared=no
20125 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
20126 SUMMARY_video="${SUMMARY_video} mir"
20133 CheckNativeClient()
20135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h. */
20138 #if !defined(__native_client__)
20151 if ac_fn_c_try_compile "$LINENO"; then :
20154 $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
20157 $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
20160 $as_echo "#define HAVE_POW 1" >>confdefs.h
20163 $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
20166 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
20169 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
20172 SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
20174 SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
20175 SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
20176 SUMMARY_audio="${SUMMARY_audio} nacl"
20177 SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
20178 SUMMARY_video="${SUMMARY_video} nacl opengles2"
20181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 # Check whether --enable-video-rpi was given.
20187 if test "${enable_video_rpi+set}" = set; then :
20188 enableval=$enable_video_rpi;
20190 enable_video_rpi=yes
20193 if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
20197 $as_echo_n "checking for RPI... " >&6; }
20199 if test -n "$RPI_CFLAGS"; then
20200 pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
20201 elif test -n "$PKG_CONFIG"; then
20202 if test -n "$PKG_CONFIG" && \
20203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
20204 ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
20206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20207 test $ac_status = 0; }; then
20208 pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
20215 if test -n "$RPI_LIBS"; then
20216 pkg_cv_RPI_LIBS="$RPI_LIBS"
20217 elif test -n "$PKG_CONFIG"; then
20218 if test -n "$PKG_CONFIG" && \
20219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
20220 ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
20222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20223 test $ac_status = 0; }; then
20224 pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
20234 if test $pkg_failed = yes; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 $as_echo "no" >&6; }
20238 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20239 _pkg_short_errors_supported=yes
20241 _pkg_short_errors_supported=no
20243 if test $_pkg_short_errors_supported = yes; then
20244 RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
20246 RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
20248 # Put the nasty error message in config.log where it belongs
20249 echo "$RPI_PKG_ERRORS" >&5
20252 elif test $pkg_failed = untried; then
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20254 $as_echo "no" >&6; }
20257 RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
20258 RPI_LIBS=$pkg_cv_RPI_LIBS
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20260 $as_echo "yes" >&6; }
20264 if test x$video_rpi = xno; then
20265 if test x$ARCH = xnetbsd; then
20266 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
20267 RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
20269 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
20270 RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
20274 # Save the original compiler flags and libraries
20275 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
20277 # Add the Raspberry Pi compiler flags and libraries
20278 CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
20281 $as_echo_n "checking for Raspberry Pi... " >&6; }
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20286 #include <bcm_host.h>
20298 if ac_fn_c_try_link "$LINENO"; then :
20303 rm -f core conftest.err conftest.$ac_objext \
20304 conftest$ac_exeext conftest.$ac_ext
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
20306 $as_echo "$have_video_rpi" >&6; }
20308 # Restore the compiler flags and libraries
20309 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
20311 if test x$have_video_rpi = xyes; then
20312 CFLAGS="$CFLAGS $RPI_CFLAGS"
20313 SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
20314 EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
20315 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
20316 SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
20318 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
20320 SUMMARY_video="${SUMMARY_video} rpi"
20327 # Check whether --enable-video-x11 was given.
20328 if test "${enable_video_x11+set}" = set; then :
20329 enableval=$enable_video_x11;
20331 enable_video_x11=yes
20334 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
20337 # This isn't necessary for X11, but fixes GLX detection
20338 if test "x$x_includes" = xNONE && \
20339 test "x$x_libraries" = xNONE && \
20340 test -d /opt/X11/include && \
20341 test -d /opt/X11/lib; then
20342 x_includes="/opt/X11/include"
20343 x_libraries="/opt/X11/lib"
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
20348 $as_echo_n "checking for X... " >&6; }
20351 # Check whether --with-x was given.
20352 if test "${with_x+set}" = set; then :
20356 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20357 if test "x$with_x" = xno; then
20358 # The user explicitly disabled X.
20361 case $x_includes,$x_libraries in #(
20362 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
20363 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
20364 $as_echo_n "(cached) " >&6
20366 # One or both of the vars are not set, and there is no cached value.
20367 ac_x_includes=no ac_x_libraries=no
20368 rm -f -r conftest.dir
20369 if mkdir conftest.dir; then
20371 cat >Imakefile <<'_ACEOF'
20373 @echo incroot='${INCROOT}'
20375 @echo usrlibdir='${USRLIBDIR}'
20377 @echo libdir='${LIBDIR}'
20379 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
20380 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
20381 for ac_var in incroot usrlibdir libdir; do
20382 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
20384 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20385 for ac_extension in a so sl dylib la dll; do
20386 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
20387 test -f "$ac_im_libdir/libX11.$ac_extension"; then
20388 ac_im_usrlibdir=$ac_im_libdir; break
20391 # Screen out bogus values from the imake configuration. They are
20392 # bogus both because they are the default anyway, and because
20393 # using them would break gcc on systems where it needs fixed includes.
20394 case $ac_im_incroot in
20395 /usr/include) ac_x_includes= ;;
20396 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20398 case $ac_im_usrlibdir in
20399 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
20400 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20404 rm -f -r conftest.dir
20407 # Standard set of common directories for X headers.
20408 # Check X11 before X11Rn because it is often a symlink to the current release.
20422 /usr/local/X11/include
20423 /usr/local/X11R7/include
20424 /usr/local/X11R6/include
20425 /usr/local/X11R5/include
20426 /usr/local/X11R4/include
20428 /usr/local/include/X11
20429 /usr/local/include/X11R7
20430 /usr/local/include/X11R6
20431 /usr/local/include/X11R5
20432 /usr/local/include/X11R4
20438 /usr/XFree86/include/X11
20442 /usr/unsupported/include
20443 /usr/athena/include
20444 /usr/local/x11r5/include
20445 /usr/lpp/Xamples/include
20447 /usr/openwin/include
20448 /usr/openwin/share/include'
20450 if test "$ac_x_includes" = no; then
20451 # Guess where to find include files, by looking for Xlib.h.
20452 # First, try using that file with no special directory specified.
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20455 #include <X11/Xlib.h>
20457 if ac_fn_c_try_cpp "$LINENO"; then :
20458 # We can compile using X headers with no special include directory.
20461 for ac_dir in $ac_x_header_dirs; do
20462 if test -r "$ac_dir/X11/Xlib.h"; then
20463 ac_x_includes=$ac_dir
20468 rm -f conftest.err conftest.i conftest.$ac_ext
20469 fi # $ac_x_includes = no
20471 if test "$ac_x_libraries" = no; then
20472 # Check for the libraries.
20473 # See if we find them without any special options.
20474 # Don't add to $LIBS permanently.
20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h. */
20479 #include <X11/Xlib.h>
20488 if ac_fn_c_try_link "$LINENO"; then :
20490 # We can link X programs with no special library path.
20494 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20496 # Don't even attempt the hair of trying to link an X program!
20497 for ac_extension in a so sl dylib la dll; do
20498 if test -r "$ac_dir/libX11.$ac_extension"; then
20499 ac_x_libraries=$ac_dir
20505 rm -f core conftest.err conftest.$ac_objext \
20506 conftest$ac_exeext conftest.$ac_ext
20507 fi # $ac_x_libraries = no
20509 case $ac_x_includes,$ac_x_libraries in #(
20510 no,* | *,no | *\'*)
20511 # Didn't find X, or a directory has "'" in its name.
20512 ac_cv_have_x="have_x=no";; #(
20514 # Record where we found X for the cache.
20515 ac_cv_have_x="have_x=yes\
20516 ac_x_includes='$ac_x_includes'\
20517 ac_x_libraries='$ac_x_libraries'"
20523 eval "$ac_cv_have_x"
20526 if test "$have_x" != yes; then
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20528 $as_echo "$have_x" >&6; }
20531 # If each of the values was on the command line, it overrides each guess.
20532 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20533 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20534 # Update the cache value to reflect the command line values.
20535 ac_cv_have_x="have_x=yes\
20536 ac_x_includes='$x_includes'\
20537 ac_x_libraries='$x_libraries'"
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20539 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20542 if test "$no_x" = yes; then
20543 # Not all programs may use this symbol, but it does not hurt to define it.
20545 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20547 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20549 if test -n "$x_includes"; then
20550 X_CFLAGS="$X_CFLAGS -I$x_includes"
20553 # It would also be nice to do this for all -L options, not just this one.
20554 if test -n "$x_libraries"; then
20555 X_LIBS="$X_LIBS -L$x_libraries"
20556 # For Solaris; some versions of Sun CC require a space after -R and
20557 # others require no space. Words are not sufficient . . . .
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20559 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20560 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20561 ac_xsave_c_werror_flag=$ac_c_werror_flag
20562 ac_c_werror_flag=yes
20563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h. */
20574 if ac_fn_c_try_link "$LINENO"; then :
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 $as_echo "no" >&6; }
20577 X_LIBS="$X_LIBS -R$x_libraries"
20579 LIBS="$ac_xsave_LIBS -R $x_libraries"
20580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20581 /* end confdefs.h. */
20591 if ac_fn_c_try_link "$LINENO"; then :
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20593 $as_echo "yes" >&6; }
20594 X_LIBS="$X_LIBS -R $x_libraries"
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20597 $as_echo "neither works" >&6; }
20599 rm -f core conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
20602 rm -f core conftest.err conftest.$ac_objext \
20603 conftest$ac_exeext conftest.$ac_ext
20604 ac_c_werror_flag=$ac_xsave_c_werror_flag
20605 LIBS=$ac_xsave_LIBS
20608 # Check for system-dependent libraries X programs must link with.
20609 # Do this before checking for the system-independent R6 libraries
20610 # (-lICE), since we may need -lsocket or whatever for X linking.
20612 if test "$ISC" = yes; then
20613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20615 # Martyn Johnson says this is needed for Ultrix, if the X
20616 # libraries were built with DECnet support. And Karl Berry says
20617 # the Alpha needs dnet_stub (dnet does not exist).
20618 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20628 char XOpenDisplay ();
20632 return XOpenDisplay ();
20637 if ac_fn_c_try_link "$LINENO"; then :
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20641 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20642 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20643 $as_echo_n "(cached) " >&6
20645 ac_check_lib_save_LIBS=$LIBS
20646 LIBS="-ldnet $LIBS"
20647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h. */
20650 /* Override any GCC internal prototype to avoid an error.
20651 Use char because int might match the return type of a GCC
20652 builtin and then its argument prototype would still apply. */
20660 return dnet_ntoa ();
20665 if ac_fn_c_try_link "$LINENO"; then :
20666 ac_cv_lib_dnet_dnet_ntoa=yes
20668 ac_cv_lib_dnet_dnet_ntoa=no
20670 rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext conftest.$ac_ext
20672 LIBS=$ac_check_lib_save_LIBS
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20675 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20676 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20677 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20680 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20682 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20683 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20684 $as_echo_n "(cached) " >&6
20686 ac_check_lib_save_LIBS=$LIBS
20687 LIBS="-ldnet_stub $LIBS"
20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20689 /* end confdefs.h. */
20691 /* Override any GCC internal prototype to avoid an error.
20692 Use char because int might match the return type of a GCC
20693 builtin and then its argument prototype would still apply. */
20701 return dnet_ntoa ();
20706 if ac_fn_c_try_link "$LINENO"; then :
20707 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20709 ac_cv_lib_dnet_stub_dnet_ntoa=no
20711 rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20713 LIBS=$ac_check_lib_save_LIBS
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20716 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20717 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20725 LIBS="$ac_xsave_LIBS"
20727 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20728 # to get the SysV transport functions.
20729 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20731 # The nsl library prevents programs from opening the X display
20732 # on Irix 5.2, according to T.E. Dickey.
20733 # The functions gethostbyname, getservbyname, and inet_addr are
20734 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20735 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20736 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20740 if test $ac_cv_func_gethostbyname = no; then
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20742 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20743 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20744 $as_echo_n "(cached) " >&6
20746 ac_check_lib_save_LIBS=$LIBS
20748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply. */
20757 char gethostbyname ();
20761 return gethostbyname ();
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 ac_cv_lib_nsl_gethostbyname=yes
20769 ac_cv_lib_nsl_gethostbyname=no
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20773 LIBS=$ac_check_lib_save_LIBS
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20776 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20777 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20781 if test $ac_cv_lib_nsl_gethostbyname = no; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20783 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20784 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20785 $as_echo_n "(cached) " >&6
20787 ac_check_lib_save_LIBS=$LIBS
20789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h. */
20792 /* Override any GCC internal prototype to avoid an error.
20793 Use char because int might match the return type of a GCC
20794 builtin and then its argument prototype would still apply. */
20798 char gethostbyname ();
20802 return gethostbyname ();
20807 if ac_fn_c_try_link "$LINENO"; then :
20808 ac_cv_lib_bsd_gethostbyname=yes
20810 ac_cv_lib_bsd_gethostbyname=no
20812 rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
20814 LIBS=$ac_check_lib_save_LIBS
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20817 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20818 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20825 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20826 # socket/setsockopt and other routines are undefined under SCO ODT
20827 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20828 # on later versions), says Simon Leinen: it contains gethostby*
20829 # variants that don't use the name server (or something). -lsocket
20830 # must be given before -lnsl if both are needed. We assume that
20831 # if connect needs -lnsl, so does gethostbyname.
20832 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20833 if test "x$ac_cv_func_connect" = xyes; then :
20837 if test $ac_cv_func_connect = no; then
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20839 $as_echo_n "checking for connect in -lsocket... " >&6; }
20840 if ${ac_cv_lib_socket_connect+:} false; then :
20841 $as_echo_n "(cached) " >&6
20843 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20863 if ac_fn_c_try_link "$LINENO"; then :
20864 ac_cv_lib_socket_connect=yes
20866 ac_cv_lib_socket_connect=no
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20873 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20874 if test "x$ac_cv_lib_socket_connect" = xyes; then :
20875 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20880 # Guillermo Gomez says -lposix is necessary on A/UX.
20881 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20882 if test "x$ac_cv_func_remove" = xyes; then :
20886 if test $ac_cv_func_remove = no; then
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20888 $as_echo_n "checking for remove in -lposix... " >&6; }
20889 if ${ac_cv_lib_posix_remove+:} false; then :
20890 $as_echo_n "(cached) " >&6
20892 ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-lposix $LIBS"
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20912 if ac_fn_c_try_link "$LINENO"; then :
20913 ac_cv_lib_posix_remove=yes
20915 ac_cv_lib_posix_remove=no
20917 rm -f core conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20922 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20923 if test "x$ac_cv_lib_posix_remove" = xyes; then :
20924 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20929 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20930 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20931 if test "x$ac_cv_func_shmat" = xyes; then :
20935 if test $ac_cv_func_shmat = no; then
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20937 $as_echo_n "checking for shmat in -lipc... " >&6; }
20938 if ${ac_cv_lib_ipc_shmat+:} false; then :
20939 $as_echo_n "(cached) " >&6
20941 ac_check_lib_save_LIBS=$LIBS
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20946 /* Override any GCC internal prototype to avoid an error.
20947 Use char because int might match the return type of a GCC
20948 builtin and then its argument prototype would still apply. */
20961 if ac_fn_c_try_link "$LINENO"; then :
20962 ac_cv_lib_ipc_shmat=yes
20964 ac_cv_lib_ipc_shmat=no
20966 rm -f core conftest.err conftest.$ac_objext \
20967 conftest$ac_exeext conftest.$ac_ext
20968 LIBS=$ac_check_lib_save_LIBS
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20971 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20972 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20973 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20979 # Check for libraries that X11R6 Xt/Xaw programs need.
20980 ac_save_LDFLAGS=$LDFLAGS
20981 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20982 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20983 # check for ICE first), but we must link in the order -lSM -lICE or
20984 # we get undefined symbols. So assume we have SM if we have ICE.
20985 # These have to be linked with before -lX11, unlike the other
20986 # libraries we check for below, so use a different variable.
20987 # John Interrante, Karl Berry
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20989 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20990 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20991 $as_echo_n "(cached) " >&6
20993 ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21004 char IceConnectionNumber ();
21008 return IceConnectionNumber ();
21013 if ac_fn_c_try_link "$LINENO"; then :
21014 ac_cv_lib_ICE_IceConnectionNumber=yes
21016 ac_cv_lib_ICE_IceConnectionNumber=no
21018 rm -f core conftest.err conftest.$ac_objext \
21019 conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21023 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21024 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
21025 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21028 LDFLAGS=$ac_save_LDFLAGS
21032 if test x$have_x = xyes; then
21033 # Check whether --enable-x11-shared was given.
21034 if test "${enable_x11_shared+set}" = set; then :
21035 enableval=$enable_x11_shared;
21037 enable_x11_shared=maybe
21043 # Apple now puts this in /opt/X11
21044 x11_lib='/opt/X11/lib/libX11.6.dylib'
21045 x11ext_lib='/opt/X11/lib/libXext.6.dylib'
21046 xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
21047 xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
21048 xinput_lib='/opt/X11/lib/libXi.6.dylib'
21049 xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
21050 xrender_lib='/opt/X11/lib/libXrender.1.dylib'
21051 xss_lib='/opt/X11/lib/libXss.1.dylib'
21052 xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
21055 x11_lib='libX11.so'
21056 x11ext_lib='libXext.so'
21057 xcursor_lib='libXcursor.so'
21058 xinerama_lib='libXinerama.so'
21059 xinput_lib='libXi.so'
21060 xrandr_lib='libXrandr.so'
21061 xrender_lib='libXrender.so'
21062 xss_lib='libXss.so'
21063 xvidmode_lib='libXxf86vm.so'
21066 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21067 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21068 xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21069 xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21070 xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21071 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21072 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21073 xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21074 xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
21078 if test x$ac_cv_func_shmat != xyes; then
21079 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
21081 CFLAGS="$CFLAGS $X_CFLAGS"
21082 LDFLAGS="$LDFLAGS $X_LIBS"
21084 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
21085 #include <X11/Xproto.h>
21088 if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
21089 have_xext_h_hdr=yes
21095 if test x$have_xext_h_hdr != xyes; then
21097 *** Missing Xext.h, maybe you need to install the libxext-dev package?
21102 $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
21104 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
21105 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
21107 # Needed so SDL applications can include SDL_syswm.h
21108 SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
21110 if test x$enable_x11_shared = xmaybe; then
21111 enable_x11_shared=yes
21113 if test x$have_loadso != xyes && \
21114 test x$enable_x11_shared = xyes; then
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
21116 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
21117 enable_x11_shared=no
21119 if test x$have_loadso = xyes && \
21120 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
21121 echo "-- dynamic libX11 -> $x11_lib"
21122 echo "-- dynamic libX11ext -> $x11ext_lib"
21124 cat >>confdefs.h <<_ACEOF
21125 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
21129 cat >>confdefs.h <<_ACEOF
21130 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
21133 SUMMARY_video="${SUMMARY_video} x11(dynamic)"
21135 enable_x11_shared=no
21136 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
21137 SUMMARY_video="${SUMMARY_video} x11"
21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
21142 $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
21143 have_const_param_XextAddDisplay=no
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21147 #include <X11/Xlib.h>
21148 #include <X11/Xproto.h>
21149 #include <X11/extensions/Xext.h>
21150 #include <X11/extensions/extutil.h>
21151 extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
21162 if ac_fn_c_try_compile "$LINENO"; then :
21164 have_const_param_XextAddDisplay=yes
21166 $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
21172 $as_echo "$have_const_param_XextAddDisplay" >&6; }
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
21175 $as_echo_n "checking for XGenericEvent... " >&6; }
21176 have_XGenericEvent=no
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21180 #include <X11/Xlib.h>
21188 XGenericEventCookie *cookie = &event.xcookie;
21189 XNextEvent(display, &event);
21190 XGetEventData(display, cookie);
21191 XFreeEventData(display, cookie);
21197 if ac_fn_c_try_compile "$LINENO"; then :
21199 have_XGenericEvent=yes
21201 $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
21207 $as_echo "$have_XGenericEvent" >&6; }
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
21210 $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
21211 if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
21212 $as_echo_n "(cached) " >&6
21214 ac_check_lib_save_LIBS=$LIBS
21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h. */
21219 /* Override any GCC internal prototype to avoid an error.
21220 Use char because int might match the return type of a GCC
21221 builtin and then its argument prototype would still apply. */
21225 char XkbKeycodeToKeysym ();
21229 return XkbKeycodeToKeysym ();
21234 if ac_fn_c_try_link "$LINENO"; then :
21235 ac_cv_lib_X11_XkbKeycodeToKeysym=yes
21237 ac_cv_lib_X11_XkbKeycodeToKeysym=no
21239 rm -f core conftest.err conftest.$ac_objext \
21240 conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
21244 $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
21245 if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
21247 $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
21252 # Check whether --enable-video-x11-xcursor was given.
21253 if test "${enable_video_x11_xcursor+set}" = set; then :
21254 enableval=$enable_video_x11_xcursor;
21256 enable_video_x11_xcursor=yes
21259 if test x$enable_video_x11_xcursor = xyes; then
21260 definitely_enable_video_x11_xcursor=no
21261 ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
21264 if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
21265 have_xcursor_h_hdr=yes
21267 have_xcursor_h_hdr=no
21271 if test x$have_xcursor_h_hdr = xyes; then
21272 if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
21273 echo "-- dynamic libXcursor -> $xcursor_lib"
21275 cat >>confdefs.h <<_ACEOF
21276 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
21279 definitely_enable_video_x11_xcursor=yes
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
21282 $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
21283 if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
21284 $as_echo_n "(cached) " >&6
21286 ac_check_lib_save_LIBS=$LIBS
21287 LIBS="-lXcursor $LIBS"
21288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289 /* end confdefs.h. */
21291 /* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21297 char XcursorImageCreate ();
21301 return XcursorImageCreate ();
21306 if ac_fn_c_try_link "$LINENO"; then :
21307 ac_cv_lib_Xcursor_XcursorImageCreate=yes
21309 ac_cv_lib_Xcursor_XcursorImageCreate=no
21311 rm -f core conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
21316 $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
21317 if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
21318 have_xcursor_lib=yes
21321 if test x$have_xcursor_lib = xyes ; then
21322 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
21323 definitely_enable_video_x11_xcursor=yes
21328 if test x$definitely_enable_video_x11_xcursor = xyes; then
21330 $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
21332 SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
21334 # Check whether --enable-video-x11-xdbe was given.
21335 if test "${enable_video_x11_xdbe+set}" = set; then :
21336 enableval=$enable_video_x11_xdbe;
21338 enable_video_x11_xdbe=yes
21341 if test x$enable_video_x11_xdbe = xyes; then
21342 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
21345 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
21352 if test x$have_dbe_h_hdr = xyes; then
21354 $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
21356 SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
21359 # Check whether --enable-video-x11-xinerama was given.
21360 if test "${enable_video_x11_xinerama+set}" = set; then :
21361 enableval=$enable_video_x11_xinerama;
21363 enable_video_x11_xinerama=yes
21366 if test x$enable_video_x11_xinerama = xyes; then
21367 definitely_enable_video_x11_xinerama=no
21368 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
21371 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
21372 have_xinerama_h_hdr=yes
21374 have_xinerama_h_hdr=no
21378 if test x$have_xinerama_h_hdr = xyes; then
21379 if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
21380 echo "-- dynamic libXinerama -> $xinerama_lib"
21382 cat >>confdefs.h <<_ACEOF
21383 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
21386 definitely_enable_video_x11_xinerama=yes
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
21389 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
21390 if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
21391 $as_echo_n "(cached) " >&6
21393 ac_check_lib_save_LIBS=$LIBS
21394 LIBS="-lXinerama $LIBS"
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21398 /* Override any GCC internal prototype to avoid an error.
21399 Use char because int might match the return type of a GCC
21400 builtin and then its argument prototype would still apply. */
21404 char XineramaQueryExtension ();
21408 return XineramaQueryExtension ();
21413 if ac_fn_c_try_link "$LINENO"; then :
21414 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
21416 ac_cv_lib_Xinerama_XineramaQueryExtension=no
21418 rm -f core conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
21423 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
21424 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
21425 have_xinerama_lib=yes
21428 if test x$have_xinerama_lib = xyes ; then
21429 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
21430 definitely_enable_video_x11_xinerama=yes
21435 if test x$definitely_enable_video_x11_xinerama = xyes; then
21437 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
21439 SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
21441 # Check whether --enable-video-x11-xinput was given.
21442 if test "${enable_video_x11_xinput+set}" = set; then :
21443 enableval=$enable_video_x11_xinput;
21445 enable_video_x11_xinput=yes
21448 if test x$enable_video_x11_xinput = xyes; then
21449 definitely_enable_video_x11_xinput=no
21450 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
21453 if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
21454 have_xinput_h_hdr=yes
21456 have_xinput_h_hdr=no
21460 if test x$have_xinput_h_hdr = xyes; then
21461 if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
21462 echo "-- dynamic libXi -> $xinput_lib"
21464 cat >>confdefs.h <<_ACEOF
21465 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
21468 definitely_enable_video_x11_xinput=yes
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
21471 $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
21472 if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
21473 $as_echo_n "(cached) " >&6
21475 ac_check_lib_save_LIBS=$LIBS
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21480 /* Override any GCC internal prototype to avoid an error.
21481 Use char because int might match the return type of a GCC
21482 builtin and then its argument prototype would still apply. */
21486 char XOpenDevice ();
21490 return XOpenDevice ();
21495 if ac_fn_c_try_link "$LINENO"; then :
21496 ac_cv_lib_Xi_XOpenDevice=yes
21498 ac_cv_lib_Xi_XOpenDevice=no
21500 rm -f core conftest.err conftest.$ac_objext \
21501 conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
21505 $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
21506 if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
21507 have_xinput_lib=yes
21510 if test x$have_xinput_lib = xyes ; then
21511 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
21512 definitely_enable_video_x11_xinput=yes
21517 if test x$definitely_enable_video_x11_xinput = xyes; then
21518 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
21520 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
21523 $as_echo_n "checking for xinput2 multitouch... " >&6; }
21524 have_xinput2_multitouch=no
21525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21526 /* end confdefs.h. */
21528 #include <X11/Xlib.h>
21529 #include <X11/Xproto.h>
21530 #include <X11/extensions/XInput2.h>
21536 int event_type = XI_TouchBegin;
21537 XITouchClassInfo *t;
21543 if ac_fn_c_try_compile "$LINENO"; then :
21545 have_xinput2_multitouch=yes
21547 $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
21549 SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
21554 $as_echo "$have_xinput2_multitouch" >&6; }
21556 # Check whether --enable-video-x11-xrandr was given.
21557 if test "${enable_video_x11_xrandr+set}" = set; then :
21558 enableval=$enable_video_x11_xrandr;
21560 enable_video_x11_xrandr=yes
21563 if test x$enable_video_x11_xrandr = xyes; then
21564 definitely_enable_video_x11_xrandr=no
21565 have_xrandr_h_hdr=no
21566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21567 /* end confdefs.h. */
21569 #include <X11/Xlib.h>
21570 #include <X11/extensions/Xrandr.h>
21576 XRRScreenResources *res = NULL;
21582 if ac_fn_c_try_compile "$LINENO"; then :
21584 have_xrandr_h_hdr=yes
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 if test x$have_xrandr_h_hdr = xyes; then
21589 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
21590 echo "-- dynamic libXrandr -> $xrandr_lib"
21592 cat >>confdefs.h <<_ACEOF
21593 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
21596 definitely_enable_video_x11_xrandr=yes
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
21599 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
21600 if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
21601 $as_echo_n "(cached) " >&6
21603 ac_check_lib_save_LIBS=$LIBS
21604 LIBS="-lXrandr $LIBS"
21605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21606 /* end confdefs.h. */
21608 /* Override any GCC internal prototype to avoid an error.
21609 Use char because int might match the return type of a GCC
21610 builtin and then its argument prototype would still apply. */
21614 char XRRQueryExtension ();
21618 return XRRQueryExtension ();
21623 if ac_fn_c_try_link "$LINENO"; then :
21624 ac_cv_lib_Xrandr_XRRQueryExtension=yes
21626 ac_cv_lib_Xrandr_XRRQueryExtension=no
21628 rm -f core conftest.err conftest.$ac_objext \
21629 conftest$ac_exeext conftest.$ac_ext
21630 LIBS=$ac_check_lib_save_LIBS
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
21633 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
21634 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
21635 have_xrandr_lib=yes
21638 if test x$have_xrandr_lib = xyes ; then
21639 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
21640 definitely_enable_video_x11_xrandr=yes
21645 if test x$definitely_enable_video_x11_xrandr = xyes; then
21647 $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
21649 SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
21651 # Check whether --enable-video-x11-scrnsaver was given.
21652 if test "${enable_video_x11_scrnsaver+set}" = set; then :
21653 enableval=$enable_video_x11_scrnsaver;
21655 enable_video_x11_scrnsaver=yes
21658 if test x$enable_video_x11_scrnsaver = xyes; then
21659 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
21662 if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
21663 have_scrnsaver_h_hdr=yes
21665 have_scrnsaver_h_hdr=no
21669 if test x$have_scrnsaver_h_hdr = xyes; then
21670 if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
21671 echo "-- dynamic libXss -> $xss_lib"
21673 cat >>confdefs.h <<_ACEOF
21674 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
21677 definitely_enable_video_x11_scrnsaver=yes
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
21680 $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
21681 if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
21682 $as_echo_n "(cached) " >&6
21684 ac_check_lib_save_LIBS=$LIBS
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21689 /* Override any GCC internal prototype to avoid an error.
21690 Use char because int might match the return type of a GCC
21691 builtin and then its argument prototype would still apply. */
21695 char XScreenSaverSuspend ();
21699 return XScreenSaverSuspend ();
21704 if ac_fn_c_try_link "$LINENO"; then :
21705 ac_cv_lib_Xss_XScreenSaverSuspend=yes
21707 ac_cv_lib_Xss_XScreenSaverSuspend=no
21709 rm -f core conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext conftest.$ac_ext
21711 LIBS=$ac_check_lib_save_LIBS
21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
21714 $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
21715 if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
21719 if test x$have_xss_lib = xyes ; then
21720 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
21721 definitely_enable_video_x11_scrnsaver=yes
21726 if test x$definitely_enable_video_x11_scrnsaver = xyes; then
21728 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
21730 SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
21732 # Check whether --enable-video-x11-xshape was given.
21733 if test "${enable_video_x11_xshape+set}" = set; then :
21734 enableval=$enable_video_x11_xshape;
21736 enable_video_x11_xshape=yes
21739 if test x$enable_video_x11_xshape = xyes; then
21740 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
21743 if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
21744 have_shape_h_hdr=yes
21746 have_shape_h_hdr=no
21750 if test x$have_shape_h_hdr = xyes; then
21752 $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
21754 SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
21757 # Check whether --enable-video-x11-vm was given.
21758 if test "${enable_video_x11_vm+set}" = set; then :
21759 enableval=$enable_video_x11_vm;
21761 enable_video_x11_vm=yes
21764 if test x$enable_video_x11_vm = xyes; then
21765 definitely_enable_video_x11_vm=no
21766 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
21769 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
21776 if test x$have_vm_h_hdr = xyes; then
21777 if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
21778 echo "-- dynamic libXxf86vm -> $xvidmode_lib"
21780 cat >>confdefs.h <<_ACEOF
21781 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
21784 definitely_enable_video_x11_vm=yes
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
21787 $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
21788 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
21789 $as_echo_n "(cached) " >&6
21791 ac_check_lib_save_LIBS=$LIBS
21792 LIBS="-lXxf86vm $LIBS"
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 /* Override any GCC internal prototype to avoid an error.
21797 Use char because int might match the return type of a GCC
21798 builtin and then its argument prototype would still apply. */
21802 char XF86VidModeQueryVersion ();
21806 return XF86VidModeQueryVersion ();
21811 if ac_fn_c_try_link "$LINENO"; then :
21812 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
21814 ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
21816 rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21818 LIBS=$ac_check_lib_save_LIBS
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
21821 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
21822 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
21826 if test x$have_vm_lib = xyes ; then
21827 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
21828 definitely_enable_video_x11_vm=yes
21833 if test x$definitely_enable_video_x11_vm = xyes; then
21835 $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
21837 SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
21841 # Prevent Mesa from including X11 headers
21842 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
21846 CheckVivanteVideo()
21848 # Check whether --enable-video-vivante was given.
21849 if test "${enable_video_vivante+set}" = set; then :
21850 enableval=$enable_video_vivante;
21852 enable_video_vivante=yes
21855 if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
21857 $as_echo_n "checking for Vivante VDK API... " >&6; }
21858 have_vivante_vdk=no
21859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860 /* end confdefs.h. */
21864 #include <gc_vdk.h>
21875 if ac_fn_c_try_compile "$LINENO"; then :
21877 have_vivante_vdk=yes
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
21882 $as_echo "$have_vivante_vdk" >&6; }
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
21885 $as_echo_n "checking for Vivante FB API... " >&6; }
21886 have_vivante_egl=no
21887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21892 #include <EGL/eglvivante.h>
21903 if ac_fn_c_try_compile "$LINENO"; then :
21905 have_vivante_egl=yes
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
21910 $as_echo "$have_vivante_egl" >&6; }
21912 if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
21914 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
21916 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
21917 if test x$have_vivante_vdk = xyes; then
21919 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
21921 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
21923 SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
21924 SUMMARY_video="${SUMMARY_video} vivante"
21932 if test x$enable_video = xyes; then
21934 $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
21936 SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
21938 SUMMARY_video="${SUMMARY_video} haiku"
21944 # Check whether --enable-video-cocoa was given.
21945 if test "${enable_video_cocoa+set}" = set; then :
21946 enableval=$enable_video_cocoa;
21948 enable_video_cocoa=yes
21951 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
21952 save_CFLAGS="$CFLAGS"
21953 CFLAGS="$CFLAGS -x objective-c"
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
21955 $as_echo_n "checking for Cocoa framework... " >&6; }
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21960 #import <Cocoa/Cocoa.h>
21971 if ac_fn_c_try_compile "$LINENO"; then :
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
21978 $as_echo "$have_cocoa" >&6; }
21979 CFLAGS="$save_CFLAGS"
21980 if test x$have_cocoa = xyes; then
21982 $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
21984 SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
21985 SUMMARY_video="${SUMMARY_video} cocoa"
21993 # Check whether --enable-video-metal was given.
21994 if test "${enable_video_metal+set}" = set; then :
21995 enableval=$enable_video_metal;
21997 enable_video_metal=yes
22000 # Check whether --enable-render-metal was given.
22001 if test "${enable_render_metal+set}" = set; then :
22002 enableval=$enable_render_metal;
22004 enable_render_metal=yes
22007 if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
22008 save_CFLAGS="$CFLAGS"
22009 CFLAGS="$CFLAGS -x objective-c"
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
22011 $as_echo_n "checking for Metal framework... " >&6; }
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22016 #import <Cocoa/Cocoa.h>
22017 #import <Metal/Metal.h>
22018 #import <QuartzCore/CAMetalLayer.h>
22021 #error Metal doesn't work on this configuration
22033 if ac_fn_c_try_compile "$LINENO"; then :
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039 CFLAGS="$save_CFLAGS"
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
22041 $as_echo "$have_metal" >&6; }
22042 if test x$have_metal = xyes; then
22044 $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
22046 if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
22048 $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
22050 SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
22052 SUMMARY_video="${SUMMARY_video} metal"
22054 enable_video_metal=no
22055 enable_render_metal=no
22062 # Check whether --enable-video-directfb was given.
22063 if test "${enable_video_directfb+set}" = set; then :
22064 enableval=$enable_video_directfb;
22066 enable_video_directfb=no
22069 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
22073 $as_echo_n "checking for DIRECTFB... " >&6; }
22075 if test -n "$DIRECTFB_CFLAGS"; then
22076 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
22077 elif test -n "$PKG_CONFIG"; then
22078 if test -n "$PKG_CONFIG" && \
22079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
22080 ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; then
22084 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
22091 if test -n "$DIRECTFB_LIBS"; then
22092 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
22093 elif test -n "$PKG_CONFIG"; then
22094 if test -n "$PKG_CONFIG" && \
22095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
22096 ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
22098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22099 test $ac_status = 0; }; then
22100 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
22110 if test $pkg_failed = yes; then
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22112 $as_echo "no" >&6; }
22114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22115 _pkg_short_errors_supported=yes
22117 _pkg_short_errors_supported=no
22119 if test $_pkg_short_errors_supported = yes; then
22120 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
22122 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
22124 # Put the nasty error message in config.log where it belongs
22125 echo "$DIRECTFB_PKG_ERRORS" >&5
22128 elif test $pkg_failed = untried; then
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130 $as_echo "no" >&6; }
22133 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
22134 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22136 $as_echo "yes" >&6; }
22140 if test x$video_directfb = xyes; then
22141 # SuSE 11.1 installs directfb-config without directfb-devel
22142 save_CPPFLAGS="$CPPFLAGS"
22143 CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
22144 ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
22145 if test "x$ac_cv_header_directfb_h" = xyes; then :
22146 have_directfb_hdr=yes
22148 have_directfb_hdr=no
22152 CPPFLAGS="$save_CPPFLAGS"
22153 video_directfb=$have_directfb_hdr
22156 if test x$video_directfb = xyes; then
22157 # Check whether --enable-directfb-shared was given.
22158 if test "${enable_directfb_shared+set}" = set; then :
22159 enableval=$enable_directfb_shared;
22161 enable_directfb_shared=yes
22166 $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
22169 $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
22171 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
22172 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
22175 $as_echo_n "checking for directfb dynamic loading support... " >&6; }
22177 directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
22178 # | sed 's/.*\/\(.*\)/\1/; q'`]
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
22180 $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
22181 if test x$have_loadso != xyes && \
22182 test x$enable_directfb_shared = xyes; then
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
22184 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
22186 if test x$have_loadso = xyes && \
22187 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
22188 directfb_shared=yes
22189 echo "-- $directfb_lib_spec -> $directfb_lib"
22191 cat >>confdefs.h <<_ACEOF
22192 #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
22195 SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
22197 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
22198 SUMMARY_video="${SUMMARY_video} directfb"
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
22201 $as_echo "$directfb_shared" >&6; }
22202 SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
22210 # Check whether --enable-video-kmsdrm was given.
22211 if test "${enable_video_kmsdrm+set}" = set; then :
22212 enableval=$enable_video_kmsdrm;
22214 enable_video_kmsdrm=no
22218 if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
22224 $as_echo_n "checking for LIBDRM... " >&6; }
22226 if test -n "$LIBDRM_CFLAGS"; then
22227 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
22228 elif test -n "$PKG_CONFIG"; then
22229 if test -n "$PKG_CONFIG" && \
22230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
22231 ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; then
22235 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
22242 if test -n "$LIBDRM_LIBS"; then
22243 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
22244 elif test -n "$PKG_CONFIG"; then
22245 if test -n "$PKG_CONFIG" && \
22246 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
22247 ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
22249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22250 test $ac_status = 0; }; then
22251 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
22261 if test $pkg_failed = yes; then
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22263 $as_echo "no" >&6; }
22265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22266 _pkg_short_errors_supported=yes
22268 _pkg_short_errors_supported=no
22270 if test $_pkg_short_errors_supported = yes; then
22271 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 1.4.82" 2>&1`
22273 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 1.4.82" 2>&1`
22275 # Put the nasty error message in config.log where it belongs
22276 echo "$LIBDRM_PKG_ERRORS" >&5
22279 elif test $pkg_failed = untried; then
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22281 $as_echo "no" >&6; }
22284 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
22285 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22287 $as_echo "yes" >&6; }
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
22293 $as_echo_n "checking for LIBGBM... " >&6; }
22295 if test -n "$LIBGBM_CFLAGS"; then
22296 pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
22297 elif test -n "$PKG_CONFIG"; then
22298 if test -n "$PKG_CONFIG" && \
22299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
22300 ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; then
22304 pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
22311 if test -n "$LIBGBM_LIBS"; then
22312 pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
22313 elif test -n "$PKG_CONFIG"; then
22314 if test -n "$PKG_CONFIG" && \
22315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
22316 ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
22318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22319 test $ac_status = 0; }; then
22320 pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
22330 if test $pkg_failed = yes; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22332 $as_echo "no" >&6; }
22334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22335 _pkg_short_errors_supported=yes
22337 _pkg_short_errors_supported=no
22339 if test $_pkg_short_errors_supported = yes; then
22340 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 11.1.0" 2>&1`
22342 LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 11.1.0" 2>&1`
22344 # Put the nasty error message in config.log where it belongs
22345 echo "$LIBGBM_PKG_ERRORS" >&5
22348 elif test $pkg_failed = untried; then
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22353 LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
22354 LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22356 $as_echo "yes" >&6; }
22360 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
22364 if test x$video_kmsdrm = xyes; then
22365 # Check whether --enable-kmsdrm-shared was given.
22366 if test "${enable_kmsdrm_shared+set}" = set; then :
22367 enableval=$enable_kmsdrm_shared;
22369 enable_kmsdrm_shared=yes
22374 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
22376 SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
22377 SOURCES="$SOURCES $srcdir/src/video/kmsdrm_legacy/*.c"
22378 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
22381 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
22383 drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
22384 gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
22385 if test x$have_loadso != xyes && \
22386 test x$enable_kmsdrm_shared = xyes; then
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
22388 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
22390 if test x$have_loadso = xyes && \
22391 test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
22394 cat >>confdefs.h <<_ACEOF
22395 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
22399 cat >>confdefs.h <<_ACEOF
22400 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
22404 cat >>confdefs.h <<_ACEOF
22405 #define HAVE_KMSDRM_SHARED "TRUE"
22408 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
22410 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
22411 SUMMARY_video="${SUMMARY_video} kmsdrm"
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
22414 $as_echo "$kmsdrm_shared" >&6; }
22422 # Check whether --enable-video-dummy was given.
22423 if test "${enable_video_dummy+set}" = set; then :
22424 enableval=$enable_video_dummy;
22426 enable_video_dummy=yes
22429 if test x$enable_video_dummy = xyes; then
22431 $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
22433 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
22435 SUMMARY_video="${SUMMARY_video} dummy"
22441 if test x$enable_video = xyes; then
22443 $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
22445 SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
22447 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
22448 SUMMARY_video="${SUMMARY_video} qnx"
22454 if test x$enable_audio = xyes; then
22456 $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
22458 SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
22460 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
22461 SUMMARY_audio="${SUMMARY_audio} qsa"
22465 # Check whether --enable-video-opengl was given.
22466 if test "${enable_video_opengl+set}" = set; then :
22467 enableval=$enable_video_opengl;
22469 enable_video_opengl=yes
22475 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
22477 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22483 #include <GL/glx.h>
22494 if ac_fn_c_try_compile "$LINENO"; then :
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
22501 $as_echo "$video_opengl" >&6; }
22502 if test x$video_opengl = xyes; then
22504 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22507 $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
22510 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22512 SUMMARY_video="${SUMMARY_video} opengl"
22517 # Check whether --enable-video-opengles was given.
22518 if test "${enable_video_opengles+set}" = set; then :
22519 enableval=$enable_video_opengles;
22521 enable_video_opengles=yes
22524 # Check whether --enable-video-opengles1 was given.
22525 if test "${enable_video_opengles1+set}" = set; then :
22526 enableval=$enable_video_opengles1;
22528 enable_video_opengles1=yes
22531 # Check whether --enable-video-opengles2 was given.
22532 if test "${enable_video_opengles2+set}" = set; then :
22533 enableval=$enable_video_opengles2;
22535 enable_video_opengles2=yes
22543 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22545 $as_echo_n "checking for EGL support... " >&6; }
22546 video_opengl_egl=no
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22552 #define MESA_EGL_NO_X11_HEADERS
22554 #include <EGL/egl.h>
22555 #include <EGL/eglext.h>
22566 if ac_fn_c_try_compile "$LINENO"; then :
22568 video_opengl_egl=yes
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22573 $as_echo "$video_opengl_egl" >&6; }
22574 if test x$video_opengl_egl = xyes; then
22576 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22580 if test x$enable_video_opengles1 = xyes; then
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
22582 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
22583 video_opengles_v1=no
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h. */
22587 #include <GLES/gl.h>
22588 #include <GLES/glext.h>
22599 if ac_fn_c_try_compile "$LINENO"; then :
22601 video_opengles_v1=yes
22604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
22606 $as_echo "$video_opengles_v1" >&6; }
22607 if test x$video_opengles_v1 = xyes; then
22609 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
22612 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
22614 SUMMARY_video="${SUMMARY_video} opengl_es1"
22618 if test x$enable_video_opengles2 = xyes; then
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22620 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22621 video_opengles_v2=no
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h. */
22625 #include <GLES2/gl2.h>
22626 #include <GLES2/gl2ext.h>
22637 if ac_fn_c_try_compile "$LINENO"; then :
22639 video_opengles_v2=yes
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22644 $as_echo "$video_opengles_v2" >&6; }
22645 if test x$video_opengles_v2 = xyes; then
22647 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22650 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22652 SUMMARY_video="${SUMMARY_video} opengl_es2"
22660 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22662 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22665 $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
22668 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22670 SUMMARY_video="${SUMMARY_video} opengl"
22676 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22679 $as_echo_n "checking for EGL support... " >&6; }
22680 video_opengl_egl=no
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22684 #include <EGL/egl.h>
22695 if ac_fn_c_try_compile "$LINENO"; then :
22697 video_opengl_egl=yes
22700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22702 $as_echo "$video_opengl_egl" >&6; }
22703 if test x$video_opengl_egl = xyes; then
22705 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22708 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22710 SUMMARY_video="${SUMMARY_video} opengl_es1"
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22714 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22715 video_opengles_v2=no
22716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22717 /* end confdefs.h. */
22719 #include <GLES2/gl2.h>
22720 #include <GLES2/gl2ext.h>
22731 if ac_fn_c_try_compile "$LINENO"; then :
22733 video_opengles_v2=yes
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22738 $as_echo "$video_opengles_v2" >&6; }
22739 if test x$video_opengles_v2 = xyes; then
22741 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22744 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22747 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22749 SUMMARY_video="${SUMMARY_video} opengl_es2"
22756 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22758 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22761 $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
22764 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22766 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
22767 SUMMARY_video="${SUMMARY_video} opengl"
22773 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
22775 $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
22778 $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
22781 $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
22783 SUMMARY_video="${SUMMARY_video} opengl"
22789 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22790 video_opengl_egl=yes
22792 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22794 video_opengles_v2=yes
22796 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22799 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22801 SUMMARY_video="${SUMMARY_video} opengl_es2"
22805 CheckEmscriptenGLES()
22807 if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
22809 $as_echo_n "checking for EGL support... " >&6; }
22810 video_opengl_egl=no
22811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22812 /* end confdefs.h. */
22814 #include <EGL/egl.h>
22825 if ac_fn_c_try_compile "$LINENO"; then :
22827 video_opengl_egl=yes
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
22832 $as_echo "$video_opengl_egl" >&6; }
22833 if test x$video_opengl_egl = xyes; then
22835 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
22840 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
22841 video_opengles_v2=no
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22845 #include <GLES2/gl2.h>
22846 #include <GLES2/gl2ext.h>
22857 if ac_fn_c_try_compile "$LINENO"; then :
22859 video_opengles_v2=yes
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
22864 $as_echo "$video_opengles_v2" >&6; }
22865 if test x$video_opengles_v2 = xyes; then
22867 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
22870 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
22872 SUMMARY_video="${SUMMARY_video} opengl_es2"
22878 # Check whether --enable-video-vulkan was given.
22879 if test "${enable_video_vulkan+set}" = set; then :
22880 enableval=$enable_video_vulkan;
22882 enable_video_vulkan=yes
22888 if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892 /* end confdefs.h. */
22894 #if defined(__ARM_ARCH) && __ARM_ARCH < 7
22895 #error Vulkan doesn't work on this configuration
22907 if ac_fn_c_try_compile "$LINENO"; then :
22915 enable_video_vulkan=no
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22921 save_CFLAGS="$CFLAGS"
22922 CFLAGS="$CFLAGS -x objective-c"
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22926 #include <Cocoa/Cocoa.h>
22927 #include <Metal/Metal.h>
22928 #include <QuartzCore/CAMetalLayer.h>
22931 #error Vulkan doesn't work on this configuration
22943 if ac_fn_c_try_compile "$LINENO"; then :
22948 enable_video_vulkan=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 CFLAGS="$save_CFLAGS"
22957 if test x$enable_video_vulkan = xno; then
22958 # For reasons I am totally unable to see, I get an undefined macro error if
22959 # I put this in the AC_TRY_COMPILE.
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
22961 $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
22964 if test x$enable_video_vulkan = xyes; then
22966 $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
22968 SUMMARY_video="${SUMMARY_video} vulkan"
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
22975 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
22976 use_input_events=no
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22980 #include <linux/input.h>
22987 #error EVIOCGNAME() ioctl not available
22994 if ac_fn_c_try_compile "$LINENO"; then :
22996 use_input_events=yes
22999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
23001 $as_echo "$use_input_events" >&6; }
23002 if test x$use_input_events = xyes; then
23004 $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
23006 SUMMARY_input="${SUMMARY_input} linuxev"
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
23014 $as_echo_n "checking for Linux kd.h... " >&6; }
23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h. */
23019 #include <linux/kd.h>
23020 #include <linux/keyboard.h>
23026 struct kbentry kbe;
23027 kbe.kb_table = KG_CTRL;
23028 ioctl(0, KDGKBENT, &kbe);
23034 if ac_fn_c_try_compile "$LINENO"; then :
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
23041 $as_echo "$use_input_kd" >&6; }
23042 if test x$use_input_kd = xyes; then
23044 $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
23046 SUMMARY_input="${SUMMARY_input} linuxkd"
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
23053 $as_echo_n "checking for FreeBSD kbio.h... " >&6; }
23055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h. */
23058 #include <sys/kbio.h>
23059 #include <sys/ioctl.h>
23065 accentmap_t accTable;
23066 ioctl(0, KDENABIO, 1);
23072 if ac_fn_c_try_compile "$LINENO"; then :
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
23079 $as_echo "$use_input_kbio" >&6; }
23080 if test x$use_input_kbio = xyes; then
23082 $as_echo "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
23084 SUMMARY_input="${SUMMARY_input} fbsdkbio"
23090 # Check whether --enable-libudev was given.
23091 if test "${enable_libudev+set}" = set; then :
23092 enableval=$enable_libudev;
23097 if test x$enable_libudev = xyes; then
23098 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
23099 if test "x$ac_cv_header_libudev_h" = xyes; then :
23100 have_libudev_h_hdr=yes
23102 have_libudev_h_hdr=no
23106 if test x$have_libudev_h_hdr = xyes; then
23108 $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
23111 udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
23112 if test x$udev_lib != x; then
23113 echo "-- dynamic udev -> $udev_lib"
23115 cat >>confdefs.h <<_ACEOF
23116 #define SDL_UDEV_DYNAMIC "$udev_lib"
23126 # Check whether --enable-dbus was given.
23127 if test "${enable_dbus+set}" = set; then :
23128 enableval=$enable_dbus;
23133 if test x$enable_dbus = xyes; then
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
23137 $as_echo_n "checking for DBUS... " >&6; }
23139 if test -n "$DBUS_CFLAGS"; then
23140 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
23141 elif test -n "$PKG_CONFIG"; then
23142 if test -n "$PKG_CONFIG" && \
23143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
23144 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; then
23148 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
23155 if test -n "$DBUS_LIBS"; then
23156 pkg_cv_DBUS_LIBS="$DBUS_LIBS"
23157 elif test -n "$PKG_CONFIG"; then
23158 if test -n "$PKG_CONFIG" && \
23159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
23160 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
23162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23163 test $ac_status = 0; }; then
23164 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
23174 if test $pkg_failed = yes; then
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23176 $as_echo "no" >&6; }
23178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23179 _pkg_short_errors_supported=yes
23181 _pkg_short_errors_supported=no
23183 if test $_pkg_short_errors_supported = yes; then
23184 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
23186 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
23188 # Put the nasty error message in config.log where it belongs
23189 echo "$DBUS_PKG_ERRORS" >&5
23192 elif test $pkg_failed = untried; then
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23194 $as_echo "no" >&6; }
23197 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
23198 DBUS_LIBS=$pkg_cv_DBUS_LIBS
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200 $as_echo "yes" >&6; }
23203 save_CFLAGS="$CFLAGS"
23204 CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
23205 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
23206 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
23207 have_dbus_dbus_h_hdr=yes
23209 have_dbus_dbus_h_hdr=no
23213 CFLAGS="$save_CFLAGS"
23214 if test x$have_dbus_dbus_h_hdr = xyes; then
23216 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
23218 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
23219 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
23226 # Check whether --enable-ime was given.
23227 if test "${enable_ime+set}" = set; then :
23228 enableval=$enable_ime;
23233 if test x$enable_ime = xyes; then
23235 $as_echo "#define SDL_USE_IME 1" >>confdefs.h
23237 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
23245 *-*-freebsd*) LIBS="$LIBS -linotify"
23248 for ac_header in sys/inotify.h
23250 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
23251 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_SYS_INOTIFY_H 1
23255 have_inotify_inotify_h_hdr=yes
23260 for ac_func in inotify_init
23262 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
23263 if test "x$ac_cv_func_inotify_init" = xyes; then :
23264 cat >>confdefs.h <<_ACEOF
23265 #define HAVE_INOTIFY_INIT 1
23271 for ac_func in inotify_init1
23273 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
23274 if test "x$ac_cv_func_inotify_init1" = xyes; then :
23275 cat >>confdefs.h <<_ACEOF
23276 #define HAVE_INOTIFY_INIT1 1
23282 if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
23284 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
23288 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
23297 # Check whether --enable-ibus was given.
23298 if test "${enable_ibus+set}" = set; then :
23299 enableval=$enable_ibus;
23304 if test x$enable_ibus = xyes; then
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
23308 $as_echo_n "checking for IBUS... " >&6; }
23310 if test -n "$IBUS_CFLAGS"; then
23311 pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
23312 elif test -n "$PKG_CONFIG"; then
23313 if test -n "$PKG_CONFIG" && \
23314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
23315 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; then
23319 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
23326 if test -n "$IBUS_LIBS"; then
23327 pkg_cv_IBUS_LIBS="$IBUS_LIBS"
23328 elif test -n "$PKG_CONFIG"; then
23329 if test -n "$PKG_CONFIG" && \
23330 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
23331 ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
23333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334 test $ac_status = 0; }; then
23335 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
23345 if test $pkg_failed = yes; then
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23347 $as_echo "no" >&6; }
23349 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23350 _pkg_short_errors_supported=yes
23352 _pkg_short_errors_supported=no
23354 if test $_pkg_short_errors_supported = yes; then
23355 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
23357 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
23359 # Put the nasty error message in config.log where it belongs
23360 echo "$IBUS_PKG_ERRORS" >&5
23363 elif test $pkg_failed = untried; then
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365 $as_echo "no" >&6; }
23368 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
23369 IBUS_LIBS=$pkg_cv_IBUS_LIBS
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23371 $as_echo "yes" >&6; }
23374 save_CFLAGS="$CFLAGS"
23375 CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
23376 ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
23377 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
23378 have_ibus_ibus_h_hdr=yes
23380 have_ibus_ibus_h_hdr=no
23384 CFLAGS="$save_CFLAGS"
23385 if test x$have_ibus_ibus_h_hdr = xyes; then
23386 if test x$enable_ime != xyes; then
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
23388 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
23389 have_ibus_ibus_h_hdr=no
23390 elif test x$enable_dbus != xyes; then
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
23392 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
23393 have_ibus_ibus_h_hdr=no
23394 elif test x$have_inotify_inotify_h_hdr != xyes; then
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
23396 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
23397 have_ibus_ibus_h_hdr=no
23400 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
23402 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
23403 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
23411 # Check whether --enable-fcitx was given.
23412 if test "${enable_fcitx+set}" = set; then :
23413 enableval=$enable_fcitx;
23418 if test x$enable_fcitx = xyes; then
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
23420 $as_echo_n "checking for fcitx support... " >&6; }
23422 if test x$enable_ime != xyes; then
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
23424 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
23425 elif test x$have_dbus_dbus_h_hdr != xyes; then
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
23427 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
23431 $as_echo "#define HAVE_FCITX 1" >>confdefs.h
23433 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
23436 $as_echo "$have_fcitx" >&6; }
23442 # Check whether --enable-joystick-mfi was given.
23443 if test "${enable_joystick_mfi+set}" = set; then :
23444 enableval=$enable_joystick_mfi;
23446 enable_joystick_mfi=yes
23450 if test x$enable_joystick_mfi = xyes; then
23451 save_CFLAGS="$CFLAGS"
23452 save_LDFLAGS="$LDFLAGS"
23453 CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
23454 LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
23456 $as_echo_n "checking for GameController framework... " >&6; }
23457 enable_joystick_mfi=no
23458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h. */
23461 #include <AvailabilityMacros.h>
23462 #include <TargetConditionals.h>
23463 #import <GameController/GameController.h>
23469 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
23470 #error GameController framework doesn't work on this configuration
23473 #error GameController framework doesn't work on this configuration
23480 if ac_fn_c_try_link "$LINENO"; then :
23482 enable_joystick_mfi=yes
23485 rm -f core conftest.err conftest.$ac_objext \
23486 conftest$ac_exeext conftest.$ac_ext
23487 CFLAGS="$save_CFLAGS"
23488 LDFLAGS="$save_LDFLAGS"
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
23491 $as_echo "$enable_joystick_mfi" >&6; }
23492 if test x$enable_joystick_mfi = xyes; then
23494 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
23496 EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
23497 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
23504 # Check whether --enable-pthreads was given.
23505 if test "${enable_pthreads+set}" = set; then :
23506 enableval=$enable_pthreads;
23508 enable_pthreads=yes
23511 # Check whether --enable-pthread-sem was given.
23512 if test "${enable_pthread_sem+set}" = set; then :
23513 enableval=$enable_pthread_sem;
23515 enable_pthread_sem=yes
23520 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23523 *-*-linux*|*-*-uclinux*)
23524 pthread_cflags="-D_REENTRANT"
23525 pthread_lib="-lpthread"
23528 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23532 pthread_cflags="-D_THREAD_SAFE"
23533 # causes Carbon.p complaints?
23534 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23536 *-*-freebsd*|*-*-dragonfly*)
23537 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23538 pthread_lib="-pthread"
23541 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
23542 pthread_lib="-lpthread"
23545 pthread_cflags="-D_REENTRANT"
23546 pthread_lib="-pthread"
23549 # From Solaris 9+, posix4's preferred name is rt.
23550 pthread_cflags="-D_REENTRANT"
23551 pthread_lib="-lpthread -lrt"
23554 # Solaris 10+ merged pthread into libc.
23555 pthread_cflags="-D_REENTRANT"
23559 # Solaris 11+ merged rt into libc.
23560 pthread_cflags="-D_REENTRANT"
23564 pthread_cflags="-D_REENTRANT -Kthread"
23568 pthread_cflags="-D_REENTRANT -mthreads"
23569 pthread_lib="-lpthread"
23572 pthread_cflags="-D_REENTRANT"
23573 pthread_lib="-L/usr/lib -lpthread"
23576 pthread_cflags="-D_REENTRANT"
23580 pthread_cflags="-D_REENTRANT"
23584 pthread_cflags="-D_REENTRANT"
23585 pthread_lib="-lpthread"
23588 if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
23589 # Save the original compiler flags and libraries
23590 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
23591 # Add the pthread compiler flags and libraries
23592 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
23593 # Check to see if we have pthread support on this system
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
23595 $as_echo_n "checking for pthreads... " >&6; }
23597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23598 /* end confdefs.h. */
23600 #include <pthread.h>
23606 pthread_attr_t type;
23607 pthread_attr_init(&type);
23613 if ac_fn_c_try_link "$LINENO"; then :
23618 rm -f core conftest.err conftest.$ac_objext \
23619 conftest$ac_exeext conftest.$ac_ext
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
23621 $as_echo "$use_pthreads" >&6; }
23622 # Restore the compiler flags and libraries
23623 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23625 # Do futher testing if we have pthread support...
23626 if test x$use_pthreads = xyes; then
23628 $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
23630 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
23631 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
23632 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
23634 # Save the original compiler flags and libraries
23635 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
23636 # Add the pthread compiler flags and libraries
23637 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
23639 # Check to see if recursive mutexes are available
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
23641 $as_echo_n "checking for recursive mutexes... " >&6; }
23642 has_recursive_mutexes=no
23643 if test x$has_recursive_mutexes = xno; then
23644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23645 /* end confdefs.h. */
23647 #define _GNU_SOURCE 1
23648 #include <pthread.h>
23654 pthread_mutexattr_t attr;
23655 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
23661 if ac_fn_c_try_link "$LINENO"; then :
23663 has_recursive_mutexes=yes
23665 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
23669 rm -f core conftest.err conftest.$ac_objext \
23670 conftest$ac_exeext conftest.$ac_ext
23672 if test x$has_recursive_mutexes = xno; then
23673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h. */
23676 #define _GNU_SOURCE 1
23677 #include <pthread.h>
23683 pthread_mutexattr_t attr;
23684 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
23690 if ac_fn_c_try_link "$LINENO"; then :
23692 has_recursive_mutexes=yes
23694 $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
23698 rm -f core conftest.err conftest.$ac_objext \
23699 conftest$ac_exeext conftest.$ac_ext
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
23702 $as_echo "$has_recursive_mutexes" >&6; }
23704 # Check to see if pthread semaphore support is missing
23705 if test x$enable_pthread_sem = xyes; then
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
23707 $as_echo_n "checking for pthread semaphores... " >&6; }
23708 have_pthread_sem=no
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h. */
23712 #include <pthread.h>
23713 #include <semaphore.h>
23724 if ac_fn_c_try_compile "$LINENO"; then :
23726 have_pthread_sem=yes
23729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
23731 $as_echo "$have_pthread_sem" >&6; }
23733 if test x$have_pthread_sem = xyes; then
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
23735 $as_echo_n "checking for sem_timedwait... " >&6; }
23736 have_sem_timedwait=no
23737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23738 /* end confdefs.h. */
23740 #include <pthread.h>
23741 #include <semaphore.h>
23747 sem_timedwait(NULL, NULL);
23753 if ac_fn_c_try_link "$LINENO"; then :
23755 have_sem_timedwait=yes
23757 $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
23761 rm -f core conftest.err conftest.$ac_objext \
23762 conftest$ac_exeext conftest.$ac_ext
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
23764 $as_echo "$have_sem_timedwait" >&6; }
23767 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
23769 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
23770 have_pthread_np_h=yes
23772 have_pthread_np_h=no
23776 if test x$have_pthread_np_h = xyes; then
23778 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
23782 # Check to see if pthread naming is available
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
23784 $as_echo_n "checking for pthread_setname_np... " >&6; }
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23788 /* Override any GCC internal prototype to avoid an error.
23789 Use char because int might match the return type of a GCC
23790 builtin and then its argument prototype would still apply. */
23794 char pthread_setname_np ();
23798 return pthread_setname_np ();
23803 if ac_fn_c_try_link "$LINENO"; then :
23805 has_pthread_setname_np=yes
23807 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
23812 has_pthread_setname_np=no
23815 rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
23818 $as_echo "$has_pthread_setname_np" >&6; }
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
23821 $as_echo_n "checking for pthread_set_name_np... " >&6; }
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h. */
23825 /* Override any GCC internal prototype to avoid an error.
23826 Use char because int might match the return type of a GCC
23827 builtin and then its argument prototype would still apply. */
23831 char pthread_set_name_np ();
23835 return pthread_set_name_np ();
23840 if ac_fn_c_try_link "$LINENO"; then :
23842 has_pthread_set_name_np=yes
23844 $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
23849 has_pthread_set_name_np=no
23852 rm -f core conftest.err conftest.$ac_objext \
23853 conftest$ac_exeext conftest.$ac_ext
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
23855 $as_echo "$has_pthread_set_name_np" >&6; }
23857 # Restore the compiler flags and libraries
23858 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
23860 # Basic thread creation functions
23861 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
23864 # We can fake these with mutexes and condition variables if necessary
23865 if test x$have_pthread_sem = xyes; then
23866 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
23868 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
23872 # We can fake these with semaphores if necessary
23873 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
23875 # Condition variables
23876 # We can fake these with semaphores and mutexes if necessary
23877 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
23879 # Thread local storage
23880 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
23890 $as_echo_n "checking Windows compiler... " >&6; }
23892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23893 /* end confdefs.h. */
23895 #include <windows.h>
23906 if ac_fn_c_try_compile "$LINENO"; then :
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
23913 $as_echo "$have_win32_gcc" >&6; }
23914 if test x$have_win32_gcc != xyes; then
23916 *** Your compiler ($CC) does not produce Windows executables!
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
23921 $as_echo_n "checking Windows CE... " >&6; }
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23926 #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
23927 #error This is not Windows CE
23939 if ac_fn_c_try_compile "$LINENO"; then :
23943 *** Sorry, Windows CE is no longer supported.
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
23949 $as_echo "$have_wince" >&6; }
23951 # This fixes Windows stack alignment with newer GCC
23957 # Check whether --enable-directx was given.
23958 if test "${enable_directx+set}" = set; then :
23959 enableval=$enable_directx;
23964 if test x$enable_directx = xyes; then
23965 ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
23966 if test "x$ac_cv_header_d3d9_h" = xyes; then :
23971 ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
23972 if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
23977 ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
23978 if test "x$ac_cv_header_ddraw_h" = xyes; then :
23983 ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
23984 if test "x$ac_cv_header_dsound_h" = xyes; then :
23989 ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
23990 if test "x$ac_cv_header_dinput_h" = xyes; then :
23995 ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
23996 if test "x$ac_cv_header_dxgi_h" = xyes; then :
24001 ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
24002 if test "x$ac_cv_header_xinput_h" = xyes; then :
24007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24008 /* end confdefs.h. */
24010 #include <windows.h>
24011 #include <xinput.h>
24012 XINPUT_GAMEPAD_EX x1;
24022 if ac_fn_c_try_compile "$LINENO"; then :
24023 have_xinput_gamepadex=yes
24025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24027 /* end confdefs.h. */
24029 #include <windows.h>
24030 #include <xinput.h>
24031 XINPUT_STATE_EX s1;
24041 if ac_fn_c_try_compile "$LINENO"; then :
24042 have_xinput_stateex=yes
24044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24046 if test x$have_ddraw = xyes; then
24048 $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
24051 if test x$have_dinput = xyes; then
24053 $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
24056 if test x$have_dsound = xyes; then
24058 $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
24061 if test x$have_dxgi = xyes; then
24063 $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
24066 if test x$have_xinput = xyes; then
24068 $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
24071 if test x$have_xinput_gamepadex = xyes; then
24073 $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
24076 if test x$have_xinput_stateex = xyes; then
24078 $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
24082 # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
24083 # FIXME: ...so force it off for now.
24091 ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
24092 if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
24097 if test x$have_wasapi = xyes; then
24099 $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
24102 ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
24103 if test "x$ac_cv_header_audioclient_h" = xyes; then :
24110 if test x$have_wasapi = xyes; then
24112 $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
24116 # Check whether --enable-wasapi was given.
24117 if test "${enable_wasapi+set}" = set; then :
24118 enableval=$enable_wasapi;
24127 # Check whether --enable-sdl-dlopen was given.
24128 if test "${enable_sdl_dlopen+set}" = set; then :
24129 enableval=$enable_sdl_dlopen;
24131 enable_sdl_dlopen=yes
24134 if test x$enable_sdl_dlopen = xyes; then
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
24136 $as_echo_n "checking for dlopen... " >&6; }
24138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139 /* end confdefs.h. */
24147 void *handle = dlopen("", RTLD_NOW);
24148 const char *loaderror = (char *) dlerror();
24154 if ac_fn_c_try_compile "$LINENO"; then :
24159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
24161 $as_echo "$have_dlopen" >&6; }
24163 if test x$have_dlopen = xyes; then
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
24165 $as_echo_n "checking for dlopen in -lc... " >&6; }
24166 if ${ac_cv_lib_c_dlopen+:} false; then :
24167 $as_echo_n "(cached) " >&6
24169 ac_check_lib_save_LIBS=$LIBS
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24174 /* Override any GCC internal prototype to avoid an error.
24175 Use char because int might match the return type of a GCC
24176 builtin and then its argument prototype would still apply. */
24189 if ac_fn_c_try_link "$LINENO"; then :
24190 ac_cv_lib_c_dlopen=yes
24192 ac_cv_lib_c_dlopen=no
24194 rm -f core conftest.err conftest.$ac_objext \
24195 conftest$ac_exeext conftest.$ac_ext
24196 LIBS=$ac_check_lib_save_LIBS
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
24199 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
24200 if test "x$ac_cv_lib_c_dlopen" = xyes; then :
24201 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24204 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24205 if ${ac_cv_lib_dl_dlopen+:} false; then :
24206 $as_echo_n "(cached) " >&6
24208 ac_check_lib_save_LIBS=$LIBS
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h. */
24213 /* Override any GCC internal prototype to avoid an error.
24214 Use char because int might match the return type of a GCC
24215 builtin and then its argument prototype would still apply. */
24228 if ac_fn_c_try_link "$LINENO"; then :
24229 ac_cv_lib_dl_dlopen=yes
24231 ac_cv_lib_dl_dlopen=no
24233 rm -f core conftest.err conftest.$ac_objext \
24234 conftest$ac_exeext conftest.$ac_ext
24235 LIBS=$ac_check_lib_save_LIBS
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24238 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24239 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
24240 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
24243 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
24244 if ${ac_cv_lib_ltdl_dlopen+:} false; then :
24245 $as_echo_n "(cached) " >&6
24247 ac_check_lib_save_LIBS=$LIBS
24248 LIBS="-lltdl $LIBS"
24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24250 /* end confdefs.h. */
24252 /* Override any GCC internal prototype to avoid an error.
24253 Use char because int might match the return type of a GCC
24254 builtin and then its argument prototype would still apply. */
24267 if ac_fn_c_try_link "$LINENO"; then :
24268 ac_cv_lib_ltdl_dlopen=yes
24270 ac_cv_lib_ltdl_dlopen=no
24272 rm -f core conftest.err conftest.$ac_objext \
24273 conftest$ac_exeext conftest.$ac_ext
24274 LIBS=$ac_check_lib_save_LIBS
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
24277 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
24278 if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
24279 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
24287 $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
24289 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
24298 *-*-*bsd*|*-*-dragonfly*)
24299 if test x$enable_joystick = xyes; then
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
24301 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
24302 if ${ac_cv_lib_usbhid_hid_init+:} false; then :
24303 $as_echo_n "(cached) " >&6
24305 ac_check_lib_save_LIBS=$LIBS
24306 LIBS="-lusbhid $LIBS"
24307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24308 /* end confdefs.h. */
24310 /* Override any GCC internal prototype to avoid an error.
24311 Use char because int might match the return type of a GCC
24312 builtin and then its argument prototype would still apply. */
24320 return hid_init ();
24325 if ac_fn_c_try_link "$LINENO"; then :
24326 ac_cv_lib_usbhid_hid_init=yes
24328 ac_cv_lib_usbhid_hid_init=no
24330 rm -f core conftest.err conftest.$ac_objext \
24331 conftest$ac_exeext conftest.$ac_ext
24332 LIBS=$ac_check_lib_save_LIBS
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
24335 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
24336 if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
24340 if test x$have_libusbhid = xyes; then
24341 ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
24342 if test "x$ac_cv_header_usbhid_h" = xyes; then :
24343 USB_CFLAGS="-DHAVE_USBHID_H"
24347 ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
24348 if test "x$ac_cv_header_libusbhid_h" = xyes; then :
24349 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
24353 USB_LIBS="$USB_LIBS -lusbhid"
24355 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
24356 if test "x$ac_cv_header_usb_h" = xyes; then :
24357 USB_CFLAGS="-DHAVE_USB_H"
24361 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
24362 if test "x$ac_cv_header_libusb_h" = xyes; then :
24363 USB_CFLAGS="-DHAVE_LIBUSB_H"
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
24368 $as_echo_n "checking for hid_init in -lusb... " >&6; }
24369 if ${ac_cv_lib_usb_hid_init+:} false; then :
24370 $as_echo_n "(cached) " >&6
24372 ac_check_lib_save_LIBS=$LIBS
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24377 /* Override any GCC internal prototype to avoid an error.
24378 Use char because int might match the return type of a GCC
24379 builtin and then its argument prototype would still apply. */
24387 return hid_init ();
24392 if ac_fn_c_try_link "$LINENO"; then :
24393 ac_cv_lib_usb_hid_init=yes
24395 ac_cv_lib_usb_hid_init=no
24397 rm -f core conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
24399 LIBS=$ac_check_lib_save_LIBS
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
24402 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
24403 if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
24404 USB_LIBS="$USB_LIBS -lusb"
24409 save_CFLAGS="$CFLAGS"
24410 CFLAGS="$CFLAGS $USB_CFLAGS"
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
24413 $as_echo_n "checking for usbhid... " >&6; }
24415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h. */
24418 #include <sys/types.h>
24419 #if defined(HAVE_USB_H)
24422 #ifdef __DragonFly__
24423 # include <bus/u4b/usb.h>
24424 # include <bus/u4b/usbhid.h>
24426 # include <dev/usb/usb.h>
24427 # include <dev/usb/usbhid.h>
24429 #if defined(HAVE_USBHID_H)
24430 #include <usbhid.h>
24431 #elif defined(HAVE_LIBUSB_H)
24432 #include <libusb.h>
24433 #elif defined(HAVE_LIBUSBHID_H)
24434 #include <libusbhid.h>
24441 struct report_desc *repdesc;
24442 struct usb_ctl_report *repbuf;
24443 hid_kind_t hidkind;
24449 if ac_fn_c_try_compile "$LINENO"; then :
24454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
24456 $as_echo "$have_usbhid" >&6; }
24458 if test x$have_usbhid = xyes; then
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
24460 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
24461 have_usbhid_ucr_data=no
24462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24463 /* end confdefs.h. */
24465 #include <sys/types.h>
24466 #if defined(HAVE_USB_H)
24469 #ifdef __DragonFly__
24470 # include <bus/u4b/usb.h>
24471 # include <bus/u4b/usbhid.h>
24473 # include <dev/usb/usb.h>
24474 # include <dev/usb/usbhid.h>
24476 #if defined(HAVE_USBHID_H)
24477 #include <usbhid.h>
24478 #elif defined(HAVE_LIBUSB_H)
24479 #include <libusb.h>
24480 #elif defined(HAVE_LIBUSBHID_H)
24481 #include <libusbhid.h>
24488 struct usb_ctl_report buf;
24489 if (buf.ucr_data) { }
24495 if ac_fn_c_try_compile "$LINENO"; then :
24497 have_usbhid_ucr_data=yes
24500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24501 if test x$have_usbhid_ucr_data = xyes; then
24502 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
24505 $as_echo "$have_usbhid_ucr_data" >&6; }
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
24508 $as_echo_n "checking for new usbhid API... " >&6; }
24510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511 /* end confdefs.h. */
24513 #include <sys/types.h>
24514 #if defined(HAVE_USB_H)
24517 #ifdef __DragonFly__
24518 #include <bus/u4b/usb.h>
24519 #include <bus/u4b/usbhid.h>
24521 #include <dev/usb/usb.h>
24522 #include <dev/usb/usbhid.h>
24524 #if defined(HAVE_USBHID_H)
24525 #include <usbhid.h>
24526 #elif defined(HAVE_LIBUSB_H)
24527 #include <libusb.h>
24528 #elif defined(HAVE_LIBUSBHID_H)
24529 #include <libusbhid.h>
24537 hid_start_parse(d, 1, 1);
24543 if ac_fn_c_try_compile "$LINENO"; then :
24545 have_usbhid_new=yes
24548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24549 if test x$have_usbhid_new = xyes; then
24550 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
24553 $as_echo "$have_usbhid_new" >&6; }
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
24556 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
24557 have_machine_joystick=no
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24561 #include <machine/joystick.h>
24573 if ac_fn_c_try_compile "$LINENO"; then :
24575 have_machine_joystick=yes
24578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24579 if test x$have_machine_joystick = xyes; then
24581 $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
24585 $as_echo "$have_machine_joystick" >&6; }
24588 $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
24590 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
24591 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
24592 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
24595 CFLAGS="$save_CFLAGS"
24603 # Check whether --enable-hidapi was given.
24604 if test "${enable_hidapi+set}" = set; then :
24605 enableval=$enable_hidapi;
24610 # Check whether --enable-hidapi-libusb was given.
24611 if test "${enable_hidapi_libusb+set}" = set; then :
24612 enableval=$enable_hidapi_libusb;
24614 enable_hidapi_libusb=maybe
24618 if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
24620 # libusb does not support iOS
24622 enable_hidapi_libusb=no
24624 # On the other hand, *BSD specifically uses libusb only
24626 enable_hidapi_libusb=yes
24627 require_hidapi_libusb=yes
24629 # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
24630 *-*-cygwin* | *-*-mingw32*)
24631 enable_joystick_rawinput=yes
24636 if test x$enable_hidapi_libusb = xyes; then
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
24640 $as_echo_n "checking for LIBUSB... " >&6; }
24642 if test -n "$LIBUSB_CFLAGS"; then
24643 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
24644 elif test -n "$PKG_CONFIG"; then
24645 if test -n "$PKG_CONFIG" && \
24646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24647 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; then
24651 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
24658 if test -n "$LIBUSB_LIBS"; then
24659 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
24660 elif test -n "$PKG_CONFIG"; then
24661 if test -n "$PKG_CONFIG" && \
24662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
24663 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; then
24667 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
24677 if test $pkg_failed = yes; then
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24682 _pkg_short_errors_supported=yes
24684 _pkg_short_errors_supported=no
24686 if test $_pkg_short_errors_supported = yes; then
24687 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
24689 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
24691 # Put the nasty error message in config.log where it belongs
24692 echo "$LIBUSB_PKG_ERRORS" >&5
24695 elif test $pkg_failed = untried; then
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24697 $as_echo "no" >&6; }
24700 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
24701 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24703 $as_echo "yes" >&6; }
24706 save_CFLAGS="$CFLAGS"
24707 CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
24708 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
24709 if test "x$ac_cv_header_libusb_h" = xyes; then :
24714 CFLAGS="$save_CFLAGS"
24715 if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
24720 if test x$hidapi_support = xyes; then
24722 $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
24724 if test x$enable_joystick_rawinput = xyes; then
24726 $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
24729 EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
24730 SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
24731 SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
24733 if test x$have_libusb_h = xyes; then
24734 EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
24735 if test x$require_hidapi_libusb = xyes; then
24736 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
24738 if test x$have_loadso != xyes; then
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
24740 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
24742 # libusb is loaded dynamically, so don't add it to LDFLAGS
24746 libusb_lib="libusb-1.0.0.dylib"
24748 *-*-cygwin* | *-*-mingw32* )
24749 libusb_lib="libusb-1.0.dll"
24752 if test x$libusb_lib = x; then
24753 libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
24756 cat >>confdefs.h <<_ACEOF
24757 #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
24765 $as_echo_n "checking for hidapi support... " >&6; }
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
24767 $as_echo "$hidapi_support" >&6; }
24771 CheckClockGettime()
24773 # Check whether --enable-clock_gettime was given.
24774 if test "${enable_clock_gettime+set}" = set; then :
24775 enableval=$enable_clock_gettime;
24777 enable_clock_gettime=yes
24780 if test x$enable_clock_gettime = xyes; then
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
24782 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
24783 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
24784 $as_echo_n "(cached) " >&6
24786 ac_check_lib_save_LIBS=$LIBS
24788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24789 /* end confdefs.h. */
24791 /* Override any GCC internal prototype to avoid an error.
24792 Use char because int might match the return type of a GCC
24793 builtin and then its argument prototype would still apply. */
24797 char clock_gettime ();
24801 return clock_gettime ();
24806 if ac_fn_c_try_link "$LINENO"; then :
24807 ac_cv_lib_rt_clock_gettime=yes
24809 ac_cv_lib_rt_clock_gettime=no
24811 rm -f core conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24813 LIBS=$ac_check_lib_save_LIBS
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
24816 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
24817 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
24818 have_clock_gettime=yes
24821 if test x$have_clock_gettime = xyes; then
24823 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24825 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
24828 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
24829 if ${ac_cv_lib_c_clock_gettime+:} false; then :
24830 $as_echo_n "(cached) " >&6
24832 ac_check_lib_save_LIBS=$LIBS
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h. */
24837 /* Override any GCC internal prototype to avoid an error.
24838 Use char because int might match the return type of a GCC
24839 builtin and then its argument prototype would still apply. */
24843 char clock_gettime ();
24847 return clock_gettime ();
24852 if ac_fn_c_try_link "$LINENO"; then :
24853 ac_cv_lib_c_clock_gettime=yes
24855 ac_cv_lib_c_clock_gettime=no
24857 rm -f core conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext conftest.$ac_ext
24859 LIBS=$ac_check_lib_save_LIBS
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
24862 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
24863 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
24864 have_clock_gettime=yes
24867 if test x$have_clock_gettime = xyes; then
24869 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24871 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
24877 CheckLinuxVersion()
24879 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
24880 if test "x$ac_cv_header_linux_version_h" = xyes; then :
24881 have_linux_version_h=yes
24885 if test x$have_linux_version_h = xyes; then
24886 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
24892 # Check whether --enable-rpath was given.
24893 if test "${enable_rpath+set}" = set; then :
24894 enableval=$enable_rpath;
24901 CheckEventSignals()
24903 # Check whether --enable-backgrounding-signal was given.
24904 if test "${enable_backgrounding_signal+set}" = set; then :
24905 enableval=$enable_backgrounding_signal;
24907 enable_backgrounding_signal=no
24910 if test x$enable_backgrounding_signal != xno; then
24911 EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
24914 # Check whether --enable-foregrounding-signal was given.
24915 if test "${enable_foregrounding_signal+set}" = set; then :
24916 enableval=$enable_foregrounding_signal;
24918 enable_foregrounding_signal=no
24921 if test x$enable_foregrounding_signal != xno; then
24922 EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
24926 CheckVirtualJoystick()
24928 # Check whether --enable-joystick-virtual was given.
24929 if test "${enable_joystick_virtual+set}" = set; then :
24930 enableval=$enable_joystick_virtual;
24932 enable_joystick_virtual=yes
24935 if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
24937 $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
24939 SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
24940 have_joystick_virtual=yes
24945 CheckNoStrictAliasing
24952 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
24957 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
24958 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
24959 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
24960 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
24961 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
24962 SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
24963 if test x$enable_video = xyes; then
24964 SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
24966 $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
24968 SUMMARY_video="${SUMMARY_video} android"
24971 *-*-linux*) ARCH=linux ;;
24972 *-*-uclinux*) ARCH=linux ;;
24973 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
24974 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
24975 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
24976 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
24977 *-*-bsdi*) ARCH=bsdi ;;
24978 *-*-freebsd*) ARCH=freebsd ;;
24979 *-*-dragonfly*) ARCH=freebsd ;;
24980 *-*-netbsd*) ARCH=netbsd ;;
24981 *-*-openbsd*) ARCH=openbsd ;;
24982 *-*-sysv5*) ARCH=sysv5 ;;
24983 *-*-solaris*) ARCH=solaris ;;
24984 *-*-hpux*) ARCH=hpux ;;
24985 *-*-aix*) ARCH=aix ;;
24986 *-*-minix*) ARCH=minix ;;
24991 CheckVisibilityHidden
24992 #CheckDeclarationAfterStatement
25009 # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
25041 SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
25044 SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
25047 # Set up files for the audio library
25048 if test x$enable_audio = xyes; then
25050 sysv5|solaris|hpux)
25052 $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
25054 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
25055 SUMMARY_audio="${SUMMARY_audio} sun"
25058 netbsd) # Don't use this on OpenBSD, it's busted.
25060 $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
25062 SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
25063 SUMMARY_audio="${SUMMARY_audio} netbsd"
25068 $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
25070 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
25071 SUMMARY_audio="${SUMMARY_audio} paudio"
25076 $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
25078 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
25079 SUMMARY_audio="${SUMMARY_audio} android"
25087 # Set up files for the joystick library
25088 if test x$have_joystick != xyes; then
25089 if test x$enable_joystick = xyes; then
25093 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
25097 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
25098 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25102 if test x$use_input_events = xyes; then
25104 $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
25106 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
25107 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25113 $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
25115 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
25116 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25122 # Set up files for the haptic library
25123 if test x$enable_haptic = xyes; then
25126 if test x$use_input_events = xyes; then
25128 $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
25130 SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
25136 $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
25138 SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
25143 # Set up files for the sensor library
25144 if test x$enable_sensor = xyes; then
25148 $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
25150 SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
25155 # Set up files for the power library
25156 if test x$enable_power = xyes; then
25160 $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
25162 SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
25167 $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
25169 SOURCES="$SOURCES $srcdir/src/power/android/*.c"
25174 # Set up files for the filesystem library
25175 if test x$enable_filesystem = xyes; then
25179 $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
25181 SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
25182 have_filesystem=yes
25186 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
25188 SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
25189 have_filesystem=yes
25193 # Set up files for the timer library
25194 if test x$enable_timers = xyes; then
25196 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25198 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25201 # Set up files for udev hotplugging support
25202 if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
25203 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
25205 # Set up files for evdev input
25206 if test x$use_input_events = xyes; then
25207 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
25208 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
25209 SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
25211 # Set up other core UNIX files
25212 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
25213 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
25214 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25216 *-*-cygwin* | *-*-mingw32*)
25218 if test "$build" != "$host"; then # cross-compiling
25219 # Default cross-compile location
25220 ac_default_prefix=/usr/local/cross-tools/$host
25222 # Look for the location of the tools and install there
25223 if test "$BUILD_PREFIX" != ""; then
25224 ac_default_prefix=$BUILD_PREFIX
25227 #CheckDeclarationAfterStatement
25238 # Set up the core platform files
25239 SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
25241 SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
25244 # Use the Windows locale APIs.
25245 SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
25248 # Set up files for the video library
25249 if test x$enable_video = xyes; then
25251 $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
25253 SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
25255 # Check whether --enable-render-d3d was given.
25256 if test "${enable_render_d3d+set}" = set; then :
25257 enableval=$enable_render_d3d;
25259 enable_render_d3d=yes
25262 if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
25264 $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
25266 SUMMARY_video="${SUMMARY_video} d3d9"
25268 if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
25270 $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
25272 SUMMARY_video="${SUMMARY_video} d3d11"
25275 # Set up files for the audio library
25276 if test x$enable_audio = xyes; then
25278 $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
25280 SUMMARY_audio="${SUMMARY_audio} winmm"
25281 SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
25282 if test x$have_dsound = xyes; then
25284 $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
25286 SUMMARY_audio="${SUMMARY_audio} directsound"
25287 SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
25289 if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
25291 $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
25293 SUMMARY_audio="${SUMMARY_audio} wasapi"
25294 SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
25298 # Set up files for the joystick library
25299 if test x$enable_joystick = xyes; then
25300 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
25301 if test x$have_xinput = xyes; then
25303 $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
25306 if test x$have_dinput = xyes; then
25308 $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
25310 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
25314 $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
25317 SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
25320 if test x$enable_haptic = xyes; then
25321 if test x$have_dinput = xyes -o x$have_xinput = xyes; then
25322 if test x$have_xinput = xyes; then
25324 $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
25327 if test x$have_dinput = xyes; then
25329 $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
25332 SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
25336 # Set up files for the sensor library
25337 ac_fn_c_check_header_mongrel "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
25338 if test "x$ac_cv_header_sensorsapi_h" = xyes; then :
25339 have_winsensors=yes
25345 if test x$have_winsensors = xyes; then
25347 $as_echo "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
25350 if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
25352 $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
25354 SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
25357 # Set up files for the power library
25358 if test x$enable_power = xyes; then
25360 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
25362 SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
25365 # Set up files for the filesystem library
25366 if test x$enable_filesystem = xyes; then
25368 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
25370 SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
25371 have_filesystem=yes
25373 # Set up files for the thread library
25374 if test x$enable_threads = xyes; then
25376 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
25378 SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
25379 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
25382 # Set up files for the timer library
25383 if test x$enable_timers = xyes; then
25385 $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
25387 SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
25390 # Set up files for the shared object loading library
25391 if test x$enable_loadso = xyes; then
25393 $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
25395 SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
25398 # Set up the system libraries we need
25399 if test -f /lib/w32api/libuuid.a; then
25400 LIBUUID=/lib/w32api/libuuid.a
25404 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
25405 # The Windows platform requires special setup
25406 VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
25407 SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
25408 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
25409 SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
25411 # Check to see if this is a mingw or cygwin build
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
25414 $as_echo_n "checking for main in -lmingw32... " >&6; }
25415 if ${ac_cv_lib_mingw32_main+:} false; then :
25416 $as_echo_n "(cached) " >&6
25418 ac_check_lib_save_LIBS=$LIBS
25419 LIBS="-lmingw32 $LIBS"
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h. */
25432 if ac_fn_c_try_link "$LINENO"; then :
25433 ac_cv_lib_mingw32_main=yes
25435 ac_cv_lib_mingw32_main=no
25437 rm -f core conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
25439 LIBS=$ac_check_lib_save_LIBS
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
25442 $as_echo "$ac_cv_lib_mingw32_main" >&6; }
25443 if test "x$ac_cv_lib_mingw32_main" = xyes; then :
25447 if test x$have_mingw32 = xyes; then
25448 SDL_LIBS="-lmingw32 $SDL_LIBS"
25450 SDL_LIBS="-lcygwin $SDL_LIBS"
25456 *** BeOS support has been removed as of SDL 2.0.2.
25462 ac_default_prefix=/boot/system
25470 # Set up files for the audio library
25471 if test x$enable_audio = xyes; then
25473 $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
25475 SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
25478 # Set up files for the joystick library
25479 if test x$enable_joystick = xyes; then
25481 $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
25483 SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
25486 # Set up files for the timer library
25487 if test x$enable_timers = xyes; then
25489 $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
25491 SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
25494 # Set up files for the system power library
25495 if test x$enable_power = xyes; then
25497 $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
25499 SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
25502 # Set up files for the system filesystem library
25503 if test x$enable_filesystem = xyes; then
25505 $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
25507 SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
25508 have_filesystem=yes
25511 SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
25514 # Set up files for the locale library
25515 SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
25518 # The Haiku platform requires special setup.
25519 SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
25520 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
25521 # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
25522 # other spins, like x86-64, use a more standard "libstdc++.so.*"
25523 as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
25525 $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
25526 if eval \${$as_ac_File+:} false; then :
25527 $as_echo_n "(cached) " >&6
25529 test "$cross_compiling" = yes &&
25530 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25531 if test -r ""/boot/system/lib/libstdc++.r4.so""; then
25532 eval "$as_ac_File=yes"
25534 eval "$as_ac_File=no"
25537 eval ac_res=\$$as_ac_File
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25539 $as_echo "$ac_res" >&6; }
25540 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
25541 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
25543 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
25550 CheckVisibilityHidden
25551 #CheckDeclarationAfterStatement
25560 SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
25563 # Set up files for the locale library
25564 SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
25567 # Set up files for the audio library
25568 if test x$enable_audio = xyes; then
25570 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
25572 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
25573 SUMMARY_audio="${SUMMARY_audio} coreaudio"
25576 # Set up files for the joystick library
25577 if test x$enable_joystick = xyes; then
25579 $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
25581 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25582 SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
25585 # Need this code for accelerometer as joystick support
25586 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25588 # Set up files for the haptic library
25589 #if test x$enable_haptic = xyes; then
25590 # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
25592 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
25594 # Set up files for the sensor library
25595 if test x$enable_sensor = xyes; then
25597 $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
25599 SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
25602 # Set up files for the power library
25603 if test x$enable_power = xyes; then
25605 $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
25607 SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
25610 # Set up files for the filesystem library
25611 if test x$enable_filesystem = xyes; then
25612 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
25613 have_filesystem=yes
25615 # Set up additional files for the file library
25616 if test x$enable_file = xyes; then
25618 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
25620 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
25622 # Set up files for the timer library
25623 if test x$enable_timers = xyes; then
25625 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25627 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25630 # Set up other core UNIX files
25631 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25632 # The iOS platform requires special setup.
25634 $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
25637 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
25640 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
25643 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
25646 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
25648 SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
25649 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
25650 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
25651 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
25652 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
25653 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
25654 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
25655 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
25656 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
25657 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
25658 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
25659 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
25661 if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
25662 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
25666 # This could be either full "Mac OS X", or plain "Darwin" which is
25667 # just the OS X kernel sans upper layers like Carbon and Cocoa.
25668 # Next line is broken, and a few files below require Mac OS X (full)
25671 # Mac OS X builds with both the Carbon and OSX APIs at the moment
25672 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
25673 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
25675 CheckVisibilityHidden
25676 #CheckDeclarationAfterStatement
25691 SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
25694 # Set up files for the locale library
25695 SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
25698 # Set up files for the audio library
25699 if test x$enable_audio = xyes; then
25701 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
25703 SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
25704 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
25705 SUMMARY_audio="${SUMMARY_audio} coreaudio"
25708 # Set up files for the joystick library
25709 if test x$enable_joystick = xyes; then
25711 $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
25713 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
25714 SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
25718 # Set up files for the haptic library
25719 if test x$enable_haptic = xyes; then
25721 $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
25723 SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
25724 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
25727 # Set up files for the power library
25728 if test x$enable_power = xyes; then
25730 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
25732 SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
25735 # Set up files for the filesystem library
25736 if test x$enable_filesystem = xyes; then
25738 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
25740 SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
25741 have_filesystem=yes
25743 # Set up files for the timer library
25744 if test x$enable_timers = xyes; then
25746 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25748 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25751 # Set up additional files for the file library
25752 if test x$enable_file = xyes; then
25753 SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
25755 # Set up other core UNIX files
25756 SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
25757 # The Mac OS X platform requires special setup.
25758 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
25759 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
25760 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
25761 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
25762 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
25764 if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
25765 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
25776 # Set up files for the timer library
25777 if test x$enable_timers = xyes; then
25779 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25781 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25785 if test x$enable_filesystem = xyes; then
25787 $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
25789 SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
25790 have_filesystem=yes
25794 if test x$enable_video = xyes; then
25796 $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
25798 SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
25800 SUMMARY_video="${SUMMARY_video} emscripten"
25803 if test x$enable_audio = xyes; then
25805 $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
25807 SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
25809 SUMMARY_audio="${SUMMARY_audio} emscripten"
25812 CheckVisibilityHidden
25813 #CheckDeclarationAfterStatement
25819 CheckEmscriptenGLES
25821 # Set up files for the power library
25822 if test x$enable_power = xyes; then
25824 $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
25826 SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
25830 # Set up files for the power library
25831 if test x$enable_joystick = xyes; then
25833 $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
25835 SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
25839 # Set up files for the filesystem library
25840 if test x$enable_filesystem = xyes; then
25842 $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
25844 SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
25845 have_filesystem=yes
25847 # Set up files for the timer library
25848 if test x$enable_timers = xyes; then
25850 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25852 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25855 # Set up files for the locale library
25856 SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
25861 CheckVisibilityHidden
25862 CheckDeclarationAfterStatement
25871 SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
25874 # Set up files for the timer library
25875 if test x$enable_timers = xyes; then
25877 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
25879 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
25885 *** Unsupported host: Please add to configure.ac
25890 CheckVirtualJoystick
25892 # Check whether to install sdl2-config
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
25894 $as_echo_n "checking whether to install sdl2-config... " >&6; }
25895 # Check whether --enable-sdl2-config was given.
25896 if test "${enable_sdl2_config+set}" = set; then :
25897 enableval=$enable_sdl2_config; case "${enableval}" in
25898 yes) enable_sdl2_config="TRUE" ;;
25899 no) enable_sdl2_config="FALSE" ;;
25900 *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
25903 enable_sdl2_config="TRUE"
25906 if test "$enable_sdl2_config" = "TRUE"; then
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25908 $as_echo "yes" >&6; }
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25911 $as_echo "no" >&6; }
25913 INSTALL_SDL2_CONFIG=$enable_sdl2_config
25916 # Verify that we have all the platform specific files we need
25918 if test x$have_misc != xyes; then
25919 SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
25921 if test x$have_locale != xyes; then
25922 SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
25924 if test x$have_joystick != xyes; then
25925 if test x$enable_joystick = xyes; then
25927 $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
25930 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
25932 if test x$have_haptic != xyes; then
25933 if test x$enable_haptic = xyes; then
25935 $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
25938 SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
25940 if test x$have_sensor != xyes; then
25941 if test x$enable_sensor = xyes; then
25943 $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
25946 SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
25948 if test x$have_threads != xyes; then
25949 if test x$enable_threads = xyes; then
25951 $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
25954 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
25956 if test x$have_timers != xyes; then
25957 if test x$enable_timers = xyes; then
25959 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
25962 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
25964 if test x$have_filesystem != xyes; then
25965 if test x$enable_filesystem = xyes; then
25967 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
25970 SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
25972 if test x$have_loadso != xyes; then
25973 if test x$enable_loadso = xyes; then
25975 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
25978 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
25980 if test x$SDLMAIN_SOURCES = x; then
25981 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
25983 SDLTEST_SOURCES="$srcdir/src/test/*.c"
25985 if test x$video_wayland = xyes; then
25986 WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
25987 WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
25988 WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
25989 GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
25990 GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
25992 WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
25994 echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
25995 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
25996 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
25998 echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
25999 echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
26000 echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
26002 echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
26003 echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
26006 for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
26009 OBJECTS=`echo $SOURCES`
26010 DEPENDS=`echo $SOURCES | tr ' ' '\n'`
26011 for EXT in asm cc m c S; do
26012 OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
26013 DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
26014 \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
26015 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26018 GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26020 VERSION_OBJECTS=`echo $VERSION_SOURCES`
26021 VERSION_DEPENDS=`echo $VERSION_SOURCES`
26022 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
26023 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
26024 \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
26025 \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
26027 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
26028 SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
26029 SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26030 SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
26031 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
26032 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26034 SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
26035 SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
26036 SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
26037 SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
26038 \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
26039 \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
26041 # Set runtime shared library paths as needed
26043 if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
26044 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
26045 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
26048 $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
26049 have_enable_new_dtags=no
26050 save_LDFLAGS="$LDFLAGS"
26051 LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
26052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26053 /* end confdefs.h. */
26065 if ac_fn_c_try_link "$LINENO"; then :
26067 have_enable_new_dtags=yes
26068 SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
26071 rm -f core conftest.err conftest.$ac_objext \
26072 conftest$ac_exeext conftest.$ac_ext
26073 LDFLAGS="$save_LDFLAGS"
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
26075 $as_echo "$have_enable_new_dtags" >&6; }
26077 if test $ARCH = solaris; then
26078 SDL_RLD_FLAGS="-R\${libdir}"
26084 SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
26090 if test x$enable_shared = xyes; then
26091 PKG_CONFIG_LIBS_PRIV="
26093 ENABLE_SHARED_TRUE=
26094 ENABLE_SHARED_FALSE="#"
26096 PKG_CONFIG_LIBS_PRIV=
26097 ENABLE_SHARED_TRUE="#"
26098 ENABLE_SHARED_FALSE=
26100 if test x$enable_static = xyes; then
26101 ENABLE_STATIC_TRUE=
26102 ENABLE_STATIC_FALSE="#"
26104 ENABLE_STATIC_TRUE="#"
26105 ENABLE_STATIC_FALSE=
26127 cat >Makefile.rules <<__EOF__
26129 # Build rules for objects
26130 -include \$(OBJECTS:.lo=.d)
26132 # Special dependency for SDL.c, since it depends on SDL_revision.h
26133 $srcdir/src/SDL.c: update-revision
26138 $WAYLAND_PROTOCOLS_DEPENDS
26141 ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
26143 ac_config_commands="$ac_config_commands sdl2_config"
26146 SUMMARY="${SUMMARY}SDL2 Configure Summary:\n"
26147 if test x$enable_shared = xyes; then
26148 SUMMARY="${SUMMARY}Building Shared Libraries\n"
26150 if test x$enable_static = xyes; then
26151 SUMMARY="${SUMMARY}Building Static Libraries\n"
26153 SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
26154 SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
26155 SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
26156 SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
26157 if test x$have_x = xyes; then
26158 SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
26160 SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
26161 if test x$have_joystick_virtual = xyes; then
26162 SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
26164 SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
26166 if test x$have_samplerate_h_hdr = xyes; then
26167 SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
26169 SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
26171 if test x$have_libudev_h_hdr = xyes; then
26172 SUMMARY="${SUMMARY}Using libudev : YES\n"
26174 SUMMARY="${SUMMARY}Using libudev : NO\n"
26176 if test x$have_dbus_dbus_h_hdr = xyes; then
26177 SUMMARY="${SUMMARY}Using dbus : YES\n"
26179 SUMMARY="${SUMMARY}Using dbus : NO\n"
26181 if test x$enable_ime = xyes; then
26182 SUMMARY="${SUMMARY}Using ime : YES\n"
26184 SUMMARY="${SUMMARY}Using ime : NO\n"
26186 if test x$have_ibus_ibus_h_hdr = xyes; then
26187 SUMMARY="${SUMMARY}Using ibus : YES\n"
26189 SUMMARY="${SUMMARY}Using ibus : NO\n"
26191 if test x$have_fcitx = xyes; then
26192 SUMMARY="${SUMMARY}Using fcitx : YES\n"
26194 SUMMARY="${SUMMARY}Using fcitx : NO\n"
26197 if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
26198 SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
26199 SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
26200 SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
26201 SUMMARY="${SUMMARY}configure script with:\n"
26202 SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
26205 if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
26206 SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
26207 SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
26208 SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
26209 SUMMARY="${SUMMARY}configure script with:\n"
26210 SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
26213 ac_config_commands="$ac_config_commands summary"
26216 cat >confcache <<\_ACEOF
26217 # This file is a shell script that caches the results of configure
26218 # tests run on this system so they can be shared between configure
26219 # scripts and configure runs, see configure's option --config-cache.
26220 # It is not useful on other systems. If it contains results you don't
26221 # want to keep, you may remove or edit it.
26223 # config.status only pays attention to the cache file if you give it
26224 # the --recheck option to rerun configure.
26226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26228 # following values.
26232 # The following way of writing the cache mishandles newlines in values,
26233 # but we know of no workaround that is simple, portable, and efficient.
26234 # So, we kill variables containing newlines.
26235 # Ultrix sh set writes to stderr and can't be redirected directly,
26236 # and sets the high bit in the cache file unless we assign to the vars.
26238 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26239 eval ac_val=\$$ac_var
26243 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26244 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26247 _ | IFS | as_nl) ;; #(
26248 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26249 *) { eval $ac_var=; unset $ac_var;} ;;
26255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26256 *${as_nl}ac_space=\ *)
26257 # `set' does not quote correctly, so add quotes: double-quote
26258 # substitution turns \\\\ into \\, and sed turns \\ into \.
26261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26264 # `set' quotes correctly as required by POSIX, so do not add quotes.
26265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26279 if test -w "$cache_file"; then
26280 if test "x$cache_file" != "x/dev/null"; then
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26282 $as_echo "$as_me: updating cache $cache_file" >&6;}
26283 if test ! -f "$cache_file" || test -h "$cache_file"; then
26284 cat confcache >"$cache_file"
26286 case $cache_file in #(
26288 mv -f confcache "$cache_file"$$ &&
26289 mv -f "$cache_file"$$ "$cache_file" ;; #(
26291 mv -f confcache "$cache_file" ;;
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26297 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26303 # Let make expand exec_prefix.
26304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26306 DEFS=-DHAVE_CONFIG_H
26311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26312 # 1. Remove the extension, and $U if already installed.
26313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26314 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26316 # will be set to the directory where LIBOBJS objects are built.
26317 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26318 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26320 LIBOBJS=$ac_libobjs
26322 LTLIBOBJS=$ac_ltlibobjs
26326 : "${CONFIG_STATUS=./config.status}"
26328 ac_clean_files_save=$ac_clean_files
26329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26331 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26333 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26335 # Generated by $as_me.
26336 # Run this file to recreate the current configuration.
26337 # Compiler output produced by configure, useful for debugging
26338 # configure, is in config.log if it exists.
26341 ac_cs_recheck=false
26344 SHELL=\${CONFIG_SHELL-$SHELL}
26347 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26348 ## -------------------- ##
26349 ## M4sh Initialization. ##
26350 ## -------------------- ##
26352 # Be more Bourne compatible
26353 DUALCASE=1; export DUALCASE # for MKS sh
26354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26357 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26358 # is contrary to our usage. Disable this feature.
26359 alias -g '${1+"$@"}'='"$@"'
26360 setopt NO_GLOB_SUBST
26362 case `(set -o) 2>/dev/null` in #(
26374 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26375 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26376 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26378 # Prefer a ksh shell builtin over an external printf program on Solaris,
26379 # but without wasting forks for bash or zsh.
26380 if test -z "$BASH_VERSION$ZSH_VERSION" \
26381 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26382 as_echo='print -r --'
26383 as_echo_n='print -rn --'
26384 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26385 as_echo='printf %s\n'
26386 as_echo_n='printf %s'
26388 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26389 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26390 as_echo_n='/usr/ucb/echo -n'
26392 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26393 as_echo_n_body='eval
26397 expr "X$arg" : "X\\(.*\\)$as_nl";
26398 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26400 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26402 export as_echo_n_body
26403 as_echo_n='sh -c $as_echo_n_body as_echo'
26405 export as_echo_body
26406 as_echo='sh -c $as_echo_body as_echo'
26409 # The user is always right.
26410 if test "${PATH_SEPARATOR+set}" != set; then
26412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26413 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26420 # We need space, tab and new line, in precisely that order. Quoting is
26421 # there to prevent editors from complaining about space-tab.
26422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26423 # splitting by setting IFS to empty value.)
26426 # Find who we are. Look in the path if we contain no directory separator.
26429 *[\\/]* ) as_myself=$0 ;;
26430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26431 for as_dir in $PATH
26434 test -z "$as_dir" && as_dir=.
26435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26441 # We did not find ourselves, most probably we were run as `sh COMMAND'
26442 # in which case we are not to be found in the path.
26443 if test "x$as_myself" = x; then
26446 if test ! -f "$as_myself"; then
26447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26451 # Unset variables that we do not need and which cause bugs (e.g. in
26452 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26453 # suppresses any "Segmentation fault" message there. '((' could
26454 # trigger a bug in pdksh 5.2.14.
26455 for as_var in BASH_ENV ENV MAIL MAILPATH
26456 do eval test x\${$as_var+set} = xset \
26457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26470 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26473 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26474 # ----------------------------------------
26475 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26476 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26477 # script with STATUS, using 1 if that was 0.
26480 as_status=$1; test $as_status -eq 0 && as_status=1
26482 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26485 $as_echo "$as_me: error: $2" >&2
26486 as_fn_exit $as_status
26490 # as_fn_set_status STATUS
26491 # -----------------------
26492 # Set $? to STATUS, without forking.
26493 as_fn_set_status ()
26496 } # as_fn_set_status
26498 # as_fn_exit STATUS
26499 # -----------------
26500 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26504 as_fn_set_status $1
26510 # Portably unset VAR.
26513 { eval $1=; unset $1;}
26515 as_unset=as_fn_unset
26516 # as_fn_append VAR VALUE
26517 # ----------------------
26518 # Append the text in VALUE to the end of the definition contained in VAR. Take
26519 # advantage of any shell optimizations that allow amortized linear growth over
26520 # repeated appends, instead of the typical quadratic growth present in naive
26522 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26523 eval 'as_fn_append ()
26534 # as_fn_arith ARG...
26535 # ------------------
26536 # Perform arithmetic evaluation on the ARGs, and store the result in the
26537 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26538 # must be portable across $(()) and expr.
26539 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26540 eval 'as_fn_arith ()
26547 as_val=`expr "$@" || test $? -eq 1`
26552 if expr a : '\(a\)' >/dev/null 2>&1 &&
26553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26559 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26560 as_basename=basename
26565 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26571 as_me=`$as_basename -- "$0" ||
26572 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26573 X"$0" : 'X\(//\)$' \| \
26574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26576 sed '/^.*\/\([^/][^/]*\)\/*$/{
26590 # Avoid depending upon Character Ranges.
26591 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26592 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26593 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26594 as_cr_digits='0123456789'
26595 as_cr_alnum=$as_cr_Letters$as_cr_digits
26597 ECHO_C= ECHO_N= ECHO_T=
26598 case `echo -n x` in #(((((
26600 case `echo 'xy\c'` in
26601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26610 rm -f conf$$ conf$$.exe conf$$.file
26611 if test -d conf$$.dir; then
26612 rm -f conf$$.dir/conf$$.file
26615 mkdir conf$$.dir 2>/dev/null
26617 if (echo >conf$$.file) 2>/dev/null; then
26618 if ln -s conf$$.file conf$$ 2>/dev/null; then
26620 # ... but there are two gotchas:
26621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26623 # In both cases, we have to default to `cp -pR'.
26624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26626 elif ln conf$$.file conf$$ 2>/dev/null; then
26634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26635 rmdir conf$$.dir 2>/dev/null
26640 # Create "$as_dir" as a directory, including parents if necessary.
26645 -*) as_dir=./$as_dir;;
26647 test -d "$as_dir" || eval $as_mkdir_p || {
26651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26652 *) as_qdir=$as_dir;;
26654 as_dirs="'$as_qdir' $as_dirs"
26655 as_dir=`$as_dirname -- "$as_dir" ||
26656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26657 X"$as_dir" : 'X\(//\)[^/]' \| \
26658 X"$as_dir" : 'X\(//\)$' \| \
26659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26660 $as_echo X"$as_dir" |
26661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26665 /^X\(\/\/\)[^/].*/{
26678 test -d "$as_dir" && break
26680 test -z "$as_dirs" || eval "mkdir $as_dirs"
26681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26685 if mkdir -p . 2>/dev/null; then
26686 as_mkdir_p='mkdir -p "$as_dir"'
26688 test -d ./-p && rmdir ./-p
26693 # as_fn_executable_p FILE
26694 # -----------------------
26695 # Test if FILE is an executable regular file.
26696 as_fn_executable_p ()
26698 test -f "$1" && test -x "$1"
26699 } # as_fn_executable_p
26700 as_test_x='test -x'
26701 as_executable_p=as_fn_executable_p
26703 # Sed expression to map a string onto a valid CPP name.
26704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26706 # Sed expression to map a string onto a valid variable name.
26707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26711 ## ----------------------------------- ##
26712 ## Main body of $CONFIG_STATUS script. ##
26713 ## ----------------------------------- ##
26715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26718 # Save the log message, to keep $0 and so on meaningful, and to
26719 # report actual input values of CONFIG_FILES etc. instead of their
26720 # values after options handling.
26722 This file was extended by $as_me, which was
26723 generated by GNU Autoconf 2.69. Invocation command line was
26725 CONFIG_FILES = $CONFIG_FILES
26726 CONFIG_HEADERS = $CONFIG_HEADERS
26727 CONFIG_LINKS = $CONFIG_LINKS
26728 CONFIG_COMMANDS = $CONFIG_COMMANDS
26731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26736 case $ac_config_files in *"
26737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26740 case $ac_config_headers in *"
26741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26746 # Files that config.status was made for.
26747 config_files="$ac_config_files"
26748 config_headers="$ac_config_headers"
26749 config_commands="$ac_config_commands"
26753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26755 \`$as_me' instantiates files and other configuration actions
26756 from templates according to the current configuration. Unless the files
26757 and actions are specified as TAGs, all are instantiated by default.
26759 Usage: $0 [OPTION]... [TAG]...
26761 -h, --help print this help, then exit
26762 -V, --version print version number and configuration settings, then exit
26763 --config print configuration, then exit
26764 -q, --quiet, --silent
26765 do not print progress messages
26766 -d, --debug don't remove temporary files
26767 --recheck update $as_me by reconfiguring in the same conditions
26768 --file=FILE[:TEMPLATE]
26769 instantiate the configuration file FILE
26770 --header=FILE[:TEMPLATE]
26771 instantiate the configuration header FILE
26773 Configuration files:
26776 Configuration headers:
26779 Configuration commands:
26782 Report bugs to the package provider."
26785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26786 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26789 configured by $0, generated by GNU Autoconf 2.69,
26790 with options \\"\$ac_cs_config\\"
26792 Copyright (C) 2012 Free Software Foundation, Inc.
26793 This config.status script is free software; the Free Software Foundation
26794 gives unlimited permission to copy, distribute and modify it."
26800 test -n "\$AWK" || AWK=awk
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26815 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26827 # Handling of the options.
26828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26831 $as_echo "$ac_cs_version"; exit ;;
26832 --config | --confi | --conf | --con | --co | --c )
26833 $as_echo "$ac_cs_config"; exit ;;
26834 --debug | --debu | --deb | --de | --d | -d )
26836 --file | --fil | --fi | --f )
26839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26840 '') as_fn_error $? "missing file argument" ;;
26842 as_fn_append CONFIG_FILES " '$ac_optarg'"
26843 ac_need_defaults=false;;
26844 --header | --heade | --head | --hea )
26847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26849 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26850 ac_need_defaults=false;;
26852 # Conflict between --help and --header
26853 as_fn_error $? "ambiguous option: \`$1'
26854 Try \`$0 --help' for more information.";;
26855 --help | --hel | -h )
26856 $as_echo "$ac_cs_usage"; exit ;;
26857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26861 # This is an error.
26862 -*) as_fn_error $? "unrecognized option: \`$1'
26863 Try \`$0 --help' for more information." ;;
26865 *) as_fn_append ac_config_targets " $1"
26866 ac_need_defaults=false ;;
26872 ac_configure_extra_args=
26874 if $ac_cs_silent; then
26876 ac_configure_extra_args="$ac_configure_extra_args --silent"
26880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26881 if \$ac_cs_recheck; then
26882 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26885 CONFIG_SHELL='$SHELL'
26886 export CONFIG_SHELL
26891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26896 ## Running $as_me. ##
26902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26908 # The HP-UX ksh and POSIX shell print the target directory to stdout
26909 # if CDPATH is set.
26910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26912 sed_quote_subst='$sed_quote_subst'
26913 double_quote_subst='$double_quote_subst'
26914 delay_variable_subst='$delay_variable_subst'
26915 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26916 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26917 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26918 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26919 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26920 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26921 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26922 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26923 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26924 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26925 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26926 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26927 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26928 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26929 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26930 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26931 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26932 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26933 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26934 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26935 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26936 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26937 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26938 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26939 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26940 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26941 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26942 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26943 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26944 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26945 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26946 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26947 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26948 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26949 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26950 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26951 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26952 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26953 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26954 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26957 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26958 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26972 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"`'
26973 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26974 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26975 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26976 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26977 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26978 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26979 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26980 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26981 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26982 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26983 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26984 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26985 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26986 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26987 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26988 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26989 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26990 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26991 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26992 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26993 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26994 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26995 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26996 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26997 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26998 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26999 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27000 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27001 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27002 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27003 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27004 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27005 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27006 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27007 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27008 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27009 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27010 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27011 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27012 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27013 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27014 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27015 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27016 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27017 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27018 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27019 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27020 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27021 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27022 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27023 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27024 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27025 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27026 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27027 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27028 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27029 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27030 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27031 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27032 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27033 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27034 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27035 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27036 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27037 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27038 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27039 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27040 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27041 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27042 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27043 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27044 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27045 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27046 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27047 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27048 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27049 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27050 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27051 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27052 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27053 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27054 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27055 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27056 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27057 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27058 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27059 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27060 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27061 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27062 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27063 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27064 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27065 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27066 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27067 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27068 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27069 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27070 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27071 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27072 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27073 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27074 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27075 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27076 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27078 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27079 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27080 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27081 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27082 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27083 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27084 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27085 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27086 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27087 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27088 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27089 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27090 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27092 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27093 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27094 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27095 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27096 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27097 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27098 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27099 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27100 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27101 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27102 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27103 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27104 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27105 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27106 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27107 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27108 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27109 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27110 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27111 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27112 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27113 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27114 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27115 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27116 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27117 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27118 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27119 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27120 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27121 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27122 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27123 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27124 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27125 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27126 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27127 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27128 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27129 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27130 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27131 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27132 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27133 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27134 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27135 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27136 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27137 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27138 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27139 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27140 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27141 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27142 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27143 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27144 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27145 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27146 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27147 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27150 LTCFLAGS='$LTCFLAGS'
27151 compiler='$compiler_DEFAULT'
27153 # A function that is used when there is no print builtin or printf.
27154 func_fallback_echo ()
27156 eval 'cat <<_LTECHO_EOF
27161 # Quote evaled strings.
27178 deplibs_check_method \
27182 sharedlib_from_linklib_cmd \
27185 archiver_list_spec \
27191 lt_cv_sys_global_symbol_pipe \
27192 lt_cv_sys_global_symbol_to_cdecl \
27193 lt_cv_sys_global_symbol_to_c_name_address \
27194 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27195 nm_file_list_spec \
27196 lt_prog_compiler_no_builtin_flag \
27197 lt_prog_compiler_pic \
27198 lt_prog_compiler_wl \
27199 lt_prog_compiler_static \
27200 lt_cv_prog_compiler_c_o \
27209 export_dynamic_flag_spec \
27210 whole_archive_flag_spec \
27211 compiler_needs_object \
27213 allow_undefined_flag \
27214 no_undefined_flag \
27215 hardcode_libdir_flag_spec \
27216 hardcode_libdir_separator \
27220 variables_saved_for_relink \
27222 library_names_spec \
27224 install_override_mode \
27228 compiler_lib_search_dirs \
27233 compiler_lib_search_path \
27240 lt_prog_compiler_no_builtin_flag_RC \
27241 lt_prog_compiler_no_builtin_flag_CXX \
27242 lt_prog_compiler_pic_RC \
27243 lt_prog_compiler_pic_CXX \
27244 lt_prog_compiler_wl_RC \
27245 lt_prog_compiler_wl_CXX \
27246 lt_prog_compiler_static_RC \
27247 lt_prog_compiler_static_CXX \
27248 lt_cv_prog_compiler_c_o_RC \
27249 lt_cv_prog_compiler_c_o_CXX \
27250 export_dynamic_flag_spec_RC \
27251 export_dynamic_flag_spec_CXX \
27252 whole_archive_flag_spec_RC \
27253 whole_archive_flag_spec_CXX \
27254 compiler_needs_object_RC \
27255 compiler_needs_object_CXX \
27258 allow_undefined_flag_RC \
27259 allow_undefined_flag_CXX \
27260 no_undefined_flag_RC \
27261 no_undefined_flag_CXX \
27262 hardcode_libdir_flag_spec_RC \
27263 hardcode_libdir_flag_spec_CXX \
27264 hardcode_libdir_separator_RC \
27265 hardcode_libdir_separator_CXX \
27266 exclude_expsyms_RC \
27267 exclude_expsyms_CXX \
27268 include_expsyms_RC \
27269 include_expsyms_CXX \
27270 file_list_spec_RC \
27271 file_list_spec_CXX \
27272 compiler_lib_search_dirs_RC \
27273 compiler_lib_search_dirs_CXX \
27274 predep_objects_RC \
27275 predep_objects_CXX \
27276 postdep_objects_RC \
27277 postdep_objects_CXX \
27282 compiler_lib_search_path_RC \
27283 compiler_lib_search_path_CXX; do
27284 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27285 *[\\\\\\\`\\"\\\$]*)
27286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27294 # Double-quote double-evaled strings.
27295 for var in reload_cmds \
27296 old_postinstall_cmds \
27297 old_postuninstall_cmds \
27299 extract_expsyms_cmds \
27300 old_archive_from_new_cmds \
27301 old_archive_from_expsyms_cmds \
27303 archive_expsym_cmds \
27305 module_expsym_cmds \
27306 export_symbols_cmds \
27310 postuninstall_cmds \
27312 sys_lib_search_path_spec \
27313 sys_lib_dlsearch_path_spec \
27316 old_archive_cmds_RC \
27317 old_archive_cmds_CXX \
27318 old_archive_from_new_cmds_RC \
27319 old_archive_from_new_cmds_CXX \
27320 old_archive_from_expsyms_cmds_RC \
27321 old_archive_from_expsyms_cmds_CXX \
27324 archive_expsym_cmds_RC \
27325 archive_expsym_cmds_CXX \
27328 module_expsym_cmds_RC \
27329 module_expsym_cmds_CXX \
27330 export_symbols_cmds_RC \
27331 export_symbols_cmds_CXX \
27335 postlink_cmds_CXX; do
27336 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27337 *[\\\\\\\`\\"\\\$]*)
27338 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27341 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27346 ac_aux_dir='$ac_aux_dir'
27347 xsi_shell='$xsi_shell'
27348 lt_shell_append='$lt_shell_append'
27350 # See if we are running on zsh, and set the options which allow our
27351 # commands through without removal of \ escapes INIT.
27352 if test -n "\${ZSH_VERSION+set}" ; then
27353 setopt NO_GLOB_SUBST
27359 TIMESTAMP='$TIMESTAMP'
27373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27375 # Handling of arguments.
27376 for ac_config_target in $ac_config_targets
27378 case $ac_config_target in
27379 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
27380 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
27382 "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
27383 "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
27384 "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
27385 "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
27386 "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
27387 "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
27388 "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
27390 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27395 # If the user did not use the arguments to specify the items to instantiate,
27396 # then the envvar interface is used. Set only those that are not.
27397 # We use the long form for the default assignment because of an extremely
27398 # bizarre bug on SunOS 4.1.3.
27399 if $ac_need_defaults; then
27400 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27401 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27402 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27405 # Have a temporary directory for convenience. Make it in the build tree
27406 # simply because there is no reason against having it here, and in addition,
27407 # creating and moving files from /tmp can sometimes cause problems.
27408 # Hook for its removal unless debugging.
27409 # Note that there is a small window in which the directory will not be cleaned:
27410 # after its creation but before its name has been assigned to `$tmp'.
27414 trap 'exit_status=$?
27415 : "${ac_tmp:=$tmp}"
27416 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27418 trap 'as_fn_exit 1' 1 2 13 15
27420 # Create a (secure) tmp directory for tmp files.
27423 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27427 tmp=./conf$$-$RANDOM
27428 (umask 077 && mkdir "$tmp")
27429 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27432 # Set up the scripts for CONFIG_FILES section.
27433 # No need to generate them if there are no CONFIG_FILES.
27434 # This happens for instance with `./config.status config.h'.
27435 if test -n "$CONFIG_FILES"; then
27438 ac_cr=`echo X | tr X '\015'`
27439 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27440 # But we know of no other shell where ac_cr would be empty at this
27441 # point, so we can use a bashism as a fallback.
27442 if test "x$ac_cr" = x; then
27443 eval ac_cr=\$\'\\r\'
27445 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27446 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27449 ac_cs_awk_cr=$ac_cr
27452 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27457 echo "cat >conf$$subs.awk <<_ACEOF" &&
27458 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27460 } >conf$$subs.sh ||
27461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27462 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27464 for ac_last_try in false false false false false :; do
27465 . ./conf$$subs.sh ||
27466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27468 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27469 if test $ac_delim_n = $ac_delim_num; then
27471 elif $ac_last_try; then
27472 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27477 rm -f conf$$subs.sh
27479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27480 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27484 s/^/S["/; s/!.*/"]=/
27494 s/\(.\{148\}\)..*/\1/
27496 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27508 s/\(.\{148\}\)..*/\1/
27510 s/["\\]/\\&/g; s/^/"/; s/$/"/
27514 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27519 ' <conf$$subs.awk | sed '
27524 ' >>$CONFIG_STATUS || ac_write_fail=1
27525 rm -f conf$$subs.awk
27526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27528 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27529 for (key in S) S_is_set[key] = 1
27535 nfields = split(line, field, "@")
27537 len = length(field[1])
27538 for (i = 2; i < nfields; i++) {
27540 keylen = length(key)
27541 if (S_is_set[key]) {
27543 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27544 len += length(value) + length(field[++i])
27555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27557 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27560 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27561 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27566 # trailing colons and then remove the whole line if VPATH becomes empty
27567 # (actually we leave an empty line to preserve line numbers).
27568 if test "x$srcdir" = x.; then
27569 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27588 fi # test -n "$CONFIG_FILES"
27590 # Set up the scripts for CONFIG_HEADERS section.
27591 # No need to generate them if there are no CONFIG_HEADERS.
27592 # This happens for instance with `./config.status Makefile'.
27593 if test -n "$CONFIG_HEADERS"; then
27594 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27598 # Transform confdefs.h into an awk script `defines.awk', embedded as
27599 # here-document in config.status, that substitutes the proper values into
27600 # config.h.in to produce config.h.
27602 # Create a delimiter string that does not exist in confdefs.h, to ease
27603 # handling of long lines.
27605 for ac_last_try in false false :; do
27606 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27607 if test -z "$ac_tt"; then
27609 elif $ac_last_try; then
27610 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27616 # For the awk script, D is an array of macro values keyed by name,
27617 # likewise P contains macro parameters if any. Preserve backslash
27618 # newline sequences.
27620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27622 s/.\{148\}/&'"$ac_delim"'/g
27625 s/^[ ]*#[ ]*define[ ][ ]*/ /
27632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27634 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27639 D["\1"]=" \3\\\\\\n"\\/p
27641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27646 s/.\{148\}/&'"$ac_delim"'/g
27651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27656 ' <confdefs.h | sed '
27657 s/'"$ac_delim"'/"\\\
27658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27661 for (key in D) D_is_set[key] = 1
27664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27666 split(line, arg, " ")
27667 if (arg[1] == "#") {
27671 defundef = substr(arg[1], 2)
27674 split(mac1, mac2, "(") #)
27676 prefix = substr(line, 1, index(line, defundef) - 1)
27677 if (D_is_set[macro]) {
27678 # Preserve the white space surrounding the "#".
27679 print prefix "define", macro P[macro] D[macro]
27682 # Replace #undef with comments. This is necessary, for example,
27683 # in the case of _POSIX_SOURCE, which is predefined and required
27684 # on some systems where configure will not decide to define it.
27685 if (defundef == "undef") {
27686 print "/*", prefix defundef, macro, "*/"
27694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27695 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27696 fi # test -n "$CONFIG_HEADERS"
27699 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27704 :[FHLC]) ac_mode=$ac_tag; continue;;
27706 case $ac_mode$ac_tag in
27708 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27709 :[FH]-) ac_tag=-:-;;
27710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27727 -) ac_f="$ac_tmp/stdin";;
27728 *) # Look for the file first in the build tree, then in the source tree
27729 # (if the path is not absolute). The absolute path cannot be DOS-style,
27730 # because $ac_f cannot contain `:'.
27734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27736 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27739 as_fn_append ac_file_inputs " '$ac_f'"
27742 # Let's still pretend it is `configure' which instantiates (i.e., don't
27743 # use $as_me), people would be surprised to read:
27744 # /* config.h. Generated by config.status. */
27745 configure_input='Generated from '`
27746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27748 if test x"$ac_file" != x-; then
27749 configure_input="$ac_file. $configure_input"
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27751 $as_echo "$as_me: creating $ac_file" >&6;}
27753 # Neutralize special characters interpreted by sed in replacement strings.
27754 case $configure_input in #(
27755 *\&* | *\|* | *\\* )
27756 ac_sed_conf_input=`$as_echo "$configure_input" |
27757 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27758 *) ac_sed_conf_input=$configure_input;;
27762 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27768 ac_dir=`$as_dirname -- "$ac_file" ||
27769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27770 X"$ac_file" : 'X\(//\)[^/]' \| \
27771 X"$ac_file" : 'X\(//\)$' \| \
27772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27773 $as_echo X"$ac_file" |
27774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27778 /^X\(\/\/\)[^/].*/{
27791 as_dir="$ac_dir"; as_fn_mkdir_p
27795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27798 # A ".." for each directory in $ac_dir_suffix.
27799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27800 case $ac_top_builddir_sub in
27801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27805 ac_abs_top_builddir=$ac_pwd
27806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27807 # for backward compatibility:
27808 ac_top_builddir=$ac_top_build_prefix
27811 .) # We are building in place.
27813 ac_top_srcdir=$ac_top_builddir_sub
27814 ac_abs_top_srcdir=$ac_pwd ;;
27815 [\\/]* | ?:[\\/]* ) # Absolute name.
27816 ac_srcdir=$srcdir$ac_dir_suffix;
27817 ac_top_srcdir=$srcdir
27818 ac_abs_top_srcdir=$srcdir ;;
27819 *) # Relative name.
27820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27821 ac_top_srcdir=$ac_top_build_prefix$srcdir
27822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27840 # If the template does not know about datarootdir, expand it.
27841 # FIXME: This hack should be removed a few years after 2.60.
27842 ac_datarootdir_hack=; ac_datarootdir_seen=
27853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27854 *datarootdir*) ac_datarootdir_seen=yes;;
27855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27860 ac_datarootdir_hack='
27861 s&@datadir@&$datadir&g
27862 s&@docdir@&$docdir&g
27863 s&@infodir@&$infodir&g
27864 s&@localedir@&$localedir&g
27865 s&@mandir@&$mandir&g
27866 s&\\\${datarootdir}&$datarootdir&g' ;;
27870 # Neutralize VPATH when `$srcdir' = `.'.
27871 # Shell code in configure.ac might set extrasub.
27872 # FIXME: do we really want to maintain this feature?
27873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27874 ac_sed_extra="$ac_vpsub
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27880 s|@configure_input@|$ac_sed_conf_input|;t t
27881 s&@top_builddir@&$ac_top_builddir_sub&;t t
27882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27883 s&@srcdir@&$ac_srcdir&;t t
27884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27885 s&@top_srcdir@&$ac_top_srcdir&;t t
27886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27887 s&@builddir@&$ac_builddir&;t t
27888 s&@abs_builddir@&$ac_abs_builddir&;t t
27889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27890 s&@INSTALL@&$ac_INSTALL&;t t
27891 $ac_datarootdir_hack
27893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27894 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27899 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27901 which seems to be undefined. Please make sure it is defined" >&5
27902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27903 which seems to be undefined. Please make sure it is defined" >&2;}
27905 rm -f "$ac_tmp/stdin"
27907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27916 if test x"$ac_file" != x-; then
27918 $as_echo "/* $configure_input */" \
27919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27920 } >"$ac_tmp/config.h" \
27921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27922 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27927 mv "$ac_tmp/config.h" "$ac_file" \
27928 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27931 $as_echo "/* $configure_input */" \
27932 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27933 || as_fn_error $? "could not create -" "$LINENO" 5
27937 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27938 $as_echo "$as_me: executing $ac_file commands" >&6;}
27943 case $ac_file$ac_mode in
27946 # See if we are running on zsh, and set the options which allow our
27947 # commands through without removal of \ escapes.
27948 if test -n "${ZSH_VERSION+set}" ; then
27949 setopt NO_GLOB_SUBST
27952 cfgfile="${ofile}T"
27953 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27956 cat <<_LT_EOF >> "$cfgfile"
27959 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27960 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27961 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27964 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27965 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27967 # Written by Gordon Matzigkeit, 1996
27969 # This file is part of GNU Libtool.
27971 # GNU Libtool is free software; you can redistribute it and/or
27972 # modify it under the terms of the GNU General Public License as
27973 # published by the Free Software Foundation; either version 2 of
27974 # the License, or (at your option) any later version.
27976 # As a special exception to the GNU General Public License,
27977 # if you distribute this file as part of a program or library that
27978 # is built using GNU Libtool, you may include this file under the
27979 # same distribution terms that you use for the rest of that program.
27981 # GNU Libtool is distributed in the hope that it will be useful,
27982 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27983 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27984 # GNU General Public License for more details.
27986 # You should have received a copy of the GNU General Public License
27987 # along with GNU Libtool; see the file COPYING. If not, a copy
27988 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27989 # obtained by writing to the Free Software Foundation, Inc.,
27990 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27993 # The names of the tagged configurations supported by this script.
27994 available_tags="RC CXX "
27996 # ### BEGIN LIBTOOL CONFIG
27998 # Which release of libtool.m4 was used?
27999 macro_version=$macro_version
28000 macro_revision=$macro_revision
28002 # Assembler program.
28005 # DLL creation program.
28006 DLLTOOL=$lt_DLLTOOL
28008 # Object dumper program.
28009 OBJDUMP=$lt_OBJDUMP
28011 # Whether or not to build shared libraries.
28012 build_libtool_libs=$enable_shared
28014 # Whether or not to build static libraries.
28015 build_old_libs=$enable_static
28017 # What type of objects to build.
28020 # Whether or not to optimize for fast installation.
28021 fast_install=$enable_fast_install
28023 # Shell to use when invoking shell scripts.
28026 # An echo program that protects backslashes.
28029 # The PATH separator for the build system.
28030 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28033 host_alias=$host_alias
28037 # The build system.
28038 build_alias=$build_alias
28042 # A sed program that does not truncate output.
28045 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28046 Xsed="\$SED -e 1s/^X//"
28048 # A grep program that handles long lines.
28054 # A literal string matcher.
28057 # A BSD- or MS-compatible name lister.
28060 # Whether we need soft or hard links.
28063 # What is the maximum length of a command?
28064 max_cmd_len=$max_cmd_len
28066 # Object file suffix (normally "o").
28069 # Executable file suffix (normally "").
28072 # whether the shell understands "unset".
28075 # turn spaces into newlines.
28078 # turn newlines into spaces.
28081 # convert \$build file names to \$host format.
28082 to_host_file_cmd=$lt_cv_to_host_file_cmd
28084 # convert \$build files to toolchain format.
28085 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28087 # Method to check whether dependent libraries are shared objects.
28088 deplibs_check_method=$lt_deplibs_check_method
28090 # Command to use when deplibs_check_method = "file_magic".
28091 file_magic_cmd=$lt_file_magic_cmd
28093 # How to find potential files when deplibs_check_method = "file_magic".
28094 file_magic_glob=$lt_file_magic_glob
28096 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28097 want_nocaseglob=$lt_want_nocaseglob
28099 # Command to associate shared and link libraries.
28100 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28105 # Flags to create an archive.
28106 AR_FLAGS=$lt_AR_FLAGS
28108 # How to feed a file listing to the archiver.
28109 archiver_list_spec=$lt_archiver_list_spec
28111 # A symbol stripping program.
28114 # Commands used to install an old-style archive.
28116 old_postinstall_cmds=$lt_old_postinstall_cmds
28117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28119 # Whether to use a lock for old archive extraction.
28120 lock_old_archive_extraction=$lock_old_archive_extraction
28125 # LTCC compiler flags.
28126 LTCFLAGS=$lt_CFLAGS
28128 # Take the output of nm and produce a listing of raw symbols and C names.
28129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28131 # Transform the output of nm in a proper C declaration.
28132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28134 # Transform the output of nm in a C name address pair.
28135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28137 # Transform the output of nm in a C name address pair when lib prefix is needed.
28138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28140 # Specify filename containing input files for \$NM.
28141 nm_file_list_spec=$lt_nm_file_list_spec
28143 # The root where to search for dependent libraries,and in which our libraries should be installed.
28144 lt_sysroot=$lt_sysroot
28146 # The name of the directory that contains temporary libtool files.
28149 # Used to examine libraries when file_magic_cmd begins with "file".
28150 MAGIC_CMD=$MAGIC_CMD
28152 # Must we lock files when doing compilation?
28153 need_locks=$lt_need_locks
28156 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28158 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28159 DSYMUTIL=$lt_DSYMUTIL
28161 # Tool to change global to local symbols on Mac OS X.
28164 # Tool to manipulate fat objects and archives on Mac OS X.
28167 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28170 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28171 OTOOL64=$lt_OTOOL64
28173 # Old archive suffix (normally "a").
28176 # Shared library suffix (normally ".so").
28177 shrext_cmds=$lt_shrext_cmds
28179 # The commands to extract the exported symbol list from a shared archive.
28180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28182 # Variables whose values should be saved in libtool wrapper scripts and
28183 # restored at link time.
28184 variables_saved_for_relink=$lt_variables_saved_for_relink
28186 # Do we need the "lib" prefix for modules?
28187 need_lib_prefix=$need_lib_prefix
28189 # Do we need a version for libraries?
28190 need_version=$need_version
28192 # Library versioning type.
28193 version_type=$version_type
28195 # Shared library runtime path variable.
28196 runpath_var=$runpath_var
28198 # Shared library path variable.
28199 shlibpath_var=$shlibpath_var
28201 # Is shlibpath searched before the hard-coded library search path?
28202 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28204 # Format of library name prefix.
28205 libname_spec=$lt_libname_spec
28207 # List of archive names. First name is the real one, the rest are links.
28208 # The last name is the one that the linker finds with -lNAME
28209 library_names_spec=$lt_library_names_spec
28211 # The coded name of the library, if different from the real name.
28212 soname_spec=$lt_soname_spec
28214 # Permission mode override for installation of shared libraries.
28215 install_override_mode=$lt_install_override_mode
28217 # Command to use after installation of a shared archive.
28218 postinstall_cmds=$lt_postinstall_cmds
28220 # Command to use after uninstallation of a shared archive.
28221 postuninstall_cmds=$lt_postuninstall_cmds
28223 # Commands used to finish a libtool library installation in a directory.
28224 finish_cmds=$lt_finish_cmds
28226 # As "finish_cmds", except a single script fragment to be evaled but
28228 finish_eval=$lt_finish_eval
28230 # Whether we should hardcode library paths into libraries.
28231 hardcode_into_libs=$hardcode_into_libs
28233 # Compile-time system search path for libraries.
28234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28236 # Run-time system search path for libraries.
28237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28239 # Whether dlopen is supported.
28240 dlopen_support=$enable_dlopen
28242 # Whether dlopen of programs is supported.
28243 dlopen_self=$enable_dlopen_self
28245 # Whether dlopen of statically linked programs is supported.
28246 dlopen_self_static=$enable_dlopen_self_static
28248 # Commands to strip libraries.
28249 old_striplib=$lt_old_striplib
28250 striplib=$lt_striplib
28253 # The linker used to build libraries.
28256 # How to create reloadable object files.
28257 reload_flag=$lt_reload_flag
28258 reload_cmds=$lt_reload_cmds
28260 # Commands used to build an old-style archive.
28261 old_archive_cmds=$lt_old_archive_cmds
28263 # A language specific compiler.
28266 # Is the compiler the GNU compiler?
28269 # Compiler flag to turn off builtin functions.
28270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28272 # Additional compiler flags for building library objects.
28273 pic_flag=$lt_lt_prog_compiler_pic
28275 # How to pass a linker flag through the compiler.
28276 wl=$lt_lt_prog_compiler_wl
28278 # Compiler flag to prevent dynamic linking.
28279 link_static_flag=$lt_lt_prog_compiler_static
28281 # Does compiler simultaneously support -c and -o options?
28282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28284 # Whether or not to add -lc for building shared libraries.
28285 build_libtool_need_lc=$archive_cmds_need_lc
28287 # Whether or not to disallow shared libs when runtime libs are static.
28288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28290 # Compiler flag to allow reflexive dlopens.
28291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28293 # Compiler flag to generate shared objects directly from archives.
28294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28296 # Whether the compiler copes with passing no objects directly.
28297 compiler_needs_object=$lt_compiler_needs_object
28299 # Create an old-style archive from a shared archive.
28300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28302 # Create a temporary old-style archive to link instead of a shared archive.
28303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28305 # Commands used to build a shared archive.
28306 archive_cmds=$lt_archive_cmds
28307 archive_expsym_cmds=$lt_archive_expsym_cmds
28309 # Commands used to build a loadable module if different from building
28310 # a shared archive.
28311 module_cmds=$lt_module_cmds
28312 module_expsym_cmds=$lt_module_expsym_cmds
28314 # Whether we are building with GNU ld or not.
28315 with_gnu_ld=$lt_with_gnu_ld
28317 # Flag that allows shared libraries with undefined symbols to be built.
28318 allow_undefined_flag=$lt_allow_undefined_flag
28320 # Flag that enforces no undefined symbols.
28321 no_undefined_flag=$lt_no_undefined_flag
28323 # Flag to hardcode \$libdir into a binary during linking.
28324 # This must work even if \$libdir does not exist
28325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28327 # Whether we need a single "-rpath" flag with a separated argument.
28328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28331 # DIR into the resulting binary.
28332 hardcode_direct=$hardcode_direct
28334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28335 # DIR into the resulting binary and the resulting library dependency is
28336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28337 # library is relocated.
28338 hardcode_direct_absolute=$hardcode_direct_absolute
28340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28341 # into the resulting binary.
28342 hardcode_minus_L=$hardcode_minus_L
28344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28345 # into the resulting binary.
28346 hardcode_shlibpath_var=$hardcode_shlibpath_var
28348 # Set to "yes" if building a shared library automatically hardcodes DIR
28349 # into the library and all subsequent libraries and executables linked
28351 hardcode_automatic=$hardcode_automatic
28353 # Set to yes if linker adds runtime paths of dependent libraries
28354 # to runtime path list.
28355 inherit_rpath=$inherit_rpath
28357 # Whether libtool must link a program against all its dependency libraries.
28358 link_all_deplibs=$link_all_deplibs
28360 # Set to "yes" if exported symbols are required.
28361 always_export_symbols=$always_export_symbols
28363 # The commands to list exported symbols.
28364 export_symbols_cmds=$lt_export_symbols_cmds
28366 # Symbols that should not be listed in the preloaded symbols.
28367 exclude_expsyms=$lt_exclude_expsyms
28369 # Symbols that must always be exported.
28370 include_expsyms=$lt_include_expsyms
28372 # Commands necessary for linking programs (against libraries) with templates.
28373 prelink_cmds=$lt_prelink_cmds
28375 # Commands necessary for finishing linking programs.
28376 postlink_cmds=$lt_postlink_cmds
28378 # Specify filename containing input files.
28379 file_list_spec=$lt_file_list_spec
28381 # How to hardcode a shared library path into an executable.
28382 hardcode_action=$hardcode_action
28384 # The directories searched by this compiler when creating a shared library.
28385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28387 # Dependencies to place before and after the objects being linked to
28388 # create a shared library.
28389 predep_objects=$lt_predep_objects
28390 postdep_objects=$lt_postdep_objects
28391 predeps=$lt_predeps
28392 postdeps=$lt_postdeps
28394 # The library search path used internally by the compiler when linking
28395 # a shared library.
28396 compiler_lib_search_path=$lt_compiler_lib_search_path
28398 # ### END LIBTOOL CONFIG
28404 cat <<\_LT_EOF >> "$cfgfile"
28405 # AIX sometimes has problems with the GCC collect2 program. For some
28406 # reason, if we set the COLLECT_NAMES environment variable, the problems
28407 # vanish in a puff of smoke.
28408 if test "X${COLLECT_NAMES+set}" != Xset; then
28410 export COLLECT_NAMES
28417 ltmain="$ac_aux_dir/ltmain.sh"
28420 # We use sed instead of cat because bash on DJGPP gets confused if
28421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28422 # text mode, it properly converts lines to CR/LF. This bash problem
28423 # is reportedly fixed, but why not run on old versions too?
28424 sed '$q' "$ltmain" >> "$cfgfile" \
28425 || (rm -f "$cfgfile"; exit 1)
28427 if test x"$xsi_shell" = xyes; then
28428 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28432 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28433 \ * ) func_dirname_result="${3}" ;;\
28435 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28436 && mv -f "$cfgfile.tmp" "$cfgfile" \
28437 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28438 test 0 -eq $? || _lt_function_replace_fail=:
28441 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28444 \ func_basename_result="${1##*/}"\
28445 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28446 && mv -f "$cfgfile.tmp" "$cfgfile" \
28447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28448 test 0 -eq $? || _lt_function_replace_fail=:
28451 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28452 func_dirname_and_basename ()\
28455 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28456 \ * ) func_dirname_result="${3}" ;;\
28458 \ func_basename_result="${1##*/}"\
28459 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28460 && mv -f "$cfgfile.tmp" "$cfgfile" \
28461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28462 test 0 -eq $? || _lt_function_replace_fail=:
28465 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28468 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28469 \ # positional parameters, so assign one to ordinary parameter first.\
28470 \ func_stripname_result=${3}\
28471 \ func_stripname_result=${func_stripname_result#"${1}"}\
28472 \ func_stripname_result=${func_stripname_result%"${2}"}\
28473 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28474 && mv -f "$cfgfile.tmp" "$cfgfile" \
28475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28476 test 0 -eq $? || _lt_function_replace_fail=:
28479 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28480 func_split_long_opt ()\
28482 \ func_split_long_opt_name=${1%%=*}\
28483 \ func_split_long_opt_arg=${1#*=}\
28484 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28485 && mv -f "$cfgfile.tmp" "$cfgfile" \
28486 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28487 test 0 -eq $? || _lt_function_replace_fail=:
28490 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28491 func_split_short_opt ()\
28493 \ func_split_short_opt_arg=${1#??}\
28494 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28495 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28496 && mv -f "$cfgfile.tmp" "$cfgfile" \
28497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28498 test 0 -eq $? || _lt_function_replace_fail=:
28501 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28505 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28506 \ *) func_lo2o_result=${1} ;;\
28508 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28509 && mv -f "$cfgfile.tmp" "$cfgfile" \
28510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28511 test 0 -eq $? || _lt_function_replace_fail=:
28514 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28517 func_xform_result=${1%.*}.lo\
28518 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28519 && mv -f "$cfgfile.tmp" "$cfgfile" \
28520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28521 test 0 -eq $? || _lt_function_replace_fail=:
28524 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28527 func_arith_result=$(( $* ))\
28528 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28529 && mv -f "$cfgfile.tmp" "$cfgfile" \
28530 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28531 test 0 -eq $? || _lt_function_replace_fail=:
28534 sed -e '/^func_len ()$/,/^} # func_len /c\
28537 func_len_result=${#1}\
28538 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28539 && mv -f "$cfgfile.tmp" "$cfgfile" \
28540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28541 test 0 -eq $? || _lt_function_replace_fail=:
28545 if test x"$lt_shell_append" = xyes; then
28546 sed -e '/^func_append ()$/,/^} # func_append /c\
28549 eval "${1}+=\\${2}"\
28550 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28551 && mv -f "$cfgfile.tmp" "$cfgfile" \
28552 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28553 test 0 -eq $? || _lt_function_replace_fail=:
28556 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28557 func_append_quoted ()\
28559 \ func_quote_for_eval "${2}"\
28560 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28561 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28562 && mv -f "$cfgfile.tmp" "$cfgfile" \
28563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28564 test 0 -eq $? || _lt_function_replace_fail=:
28567 # Save a `func_append' function call where possible by direct use of '+='
28568 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28569 && mv -f "$cfgfile.tmp" "$cfgfile" \
28570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28571 test 0 -eq $? || _lt_function_replace_fail=:
28573 # Save a `func_append' function call even when '+=' is not available
28574 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28575 && mv -f "$cfgfile.tmp" "$cfgfile" \
28576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28577 test 0 -eq $? || _lt_function_replace_fail=:
28580 if test x"$_lt_function_replace_fail" = x":"; then
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28582 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28586 mv -f "$cfgfile" "$ofile" ||
28587 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28591 cat <<_LT_EOF >> "$ofile"
28593 # ### BEGIN LIBTOOL TAG CONFIG: RC
28595 # The linker used to build libraries.
28598 # How to create reloadable object files.
28599 reload_flag=$lt_reload_flag_RC
28600 reload_cmds=$lt_reload_cmds_RC
28602 # Commands used to build an old-style archive.
28603 old_archive_cmds=$lt_old_archive_cmds_RC
28605 # A language specific compiler.
28608 # Is the compiler the GNU compiler?
28611 # Compiler flag to turn off builtin functions.
28612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28614 # Additional compiler flags for building library objects.
28615 pic_flag=$lt_lt_prog_compiler_pic_RC
28617 # How to pass a linker flag through the compiler.
28618 wl=$lt_lt_prog_compiler_wl_RC
28620 # Compiler flag to prevent dynamic linking.
28621 link_static_flag=$lt_lt_prog_compiler_static_RC
28623 # Does compiler simultaneously support -c and -o options?
28624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28626 # Whether or not to add -lc for building shared libraries.
28627 build_libtool_need_lc=$archive_cmds_need_lc_RC
28629 # Whether or not to disallow shared libs when runtime libs are static.
28630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28632 # Compiler flag to allow reflexive dlopens.
28633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28635 # Compiler flag to generate shared objects directly from archives.
28636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28638 # Whether the compiler copes with passing no objects directly.
28639 compiler_needs_object=$lt_compiler_needs_object_RC
28641 # Create an old-style archive from a shared archive.
28642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28644 # Create a temporary old-style archive to link instead of a shared archive.
28645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28647 # Commands used to build a shared archive.
28648 archive_cmds=$lt_archive_cmds_RC
28649 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28651 # Commands used to build a loadable module if different from building
28652 # a shared archive.
28653 module_cmds=$lt_module_cmds_RC
28654 module_expsym_cmds=$lt_module_expsym_cmds_RC
28656 # Whether we are building with GNU ld or not.
28657 with_gnu_ld=$lt_with_gnu_ld_RC
28659 # Flag that allows shared libraries with undefined symbols to be built.
28660 allow_undefined_flag=$lt_allow_undefined_flag_RC
28662 # Flag that enforces no undefined symbols.
28663 no_undefined_flag=$lt_no_undefined_flag_RC
28665 # Flag to hardcode \$libdir into a binary during linking.
28666 # This must work even if \$libdir does not exist
28667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28669 # Whether we need a single "-rpath" flag with a separated argument.
28670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28673 # DIR into the resulting binary.
28674 hardcode_direct=$hardcode_direct_RC
28676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28677 # DIR into the resulting binary and the resulting library dependency is
28678 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28679 # library is relocated.
28680 hardcode_direct_absolute=$hardcode_direct_absolute_RC
28682 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28683 # into the resulting binary.
28684 hardcode_minus_L=$hardcode_minus_L_RC
28686 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28687 # into the resulting binary.
28688 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28690 # Set to "yes" if building a shared library automatically hardcodes DIR
28691 # into the library and all subsequent libraries and executables linked
28693 hardcode_automatic=$hardcode_automatic_RC
28695 # Set to yes if linker adds runtime paths of dependent libraries
28696 # to runtime path list.
28697 inherit_rpath=$inherit_rpath_RC
28699 # Whether libtool must link a program against all its dependency libraries.
28700 link_all_deplibs=$link_all_deplibs_RC
28702 # Set to "yes" if exported symbols are required.
28703 always_export_symbols=$always_export_symbols_RC
28705 # The commands to list exported symbols.
28706 export_symbols_cmds=$lt_export_symbols_cmds_RC
28708 # Symbols that should not be listed in the preloaded symbols.
28709 exclude_expsyms=$lt_exclude_expsyms_RC
28711 # Symbols that must always be exported.
28712 include_expsyms=$lt_include_expsyms_RC
28714 # Commands necessary for linking programs (against libraries) with templates.
28715 prelink_cmds=$lt_prelink_cmds_RC
28717 # Commands necessary for finishing linking programs.
28718 postlink_cmds=$lt_postlink_cmds_RC
28720 # Specify filename containing input files.
28721 file_list_spec=$lt_file_list_spec_RC
28723 # How to hardcode a shared library path into an executable.
28724 hardcode_action=$hardcode_action_RC
28726 # The directories searched by this compiler when creating a shared library.
28727 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
28729 # Dependencies to place before and after the objects being linked to
28730 # create a shared library.
28731 predep_objects=$lt_predep_objects_RC
28732 postdep_objects=$lt_postdep_objects_RC
28733 predeps=$lt_predeps_RC
28734 postdeps=$lt_postdeps_RC
28736 # The library search path used internally by the compiler when linking
28737 # a shared library.
28738 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28740 # ### END LIBTOOL TAG CONFIG: RC
28744 cat <<_LT_EOF >> "$ofile"
28746 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28748 # The linker used to build libraries.
28751 # How to create reloadable object files.
28752 reload_flag=$lt_reload_flag_CXX
28753 reload_cmds=$lt_reload_cmds_CXX
28755 # Commands used to build an old-style archive.
28756 old_archive_cmds=$lt_old_archive_cmds_CXX
28758 # A language specific compiler.
28759 CC=$lt_compiler_CXX
28761 # Is the compiler the GNU compiler?
28764 # Compiler flag to turn off builtin functions.
28765 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28767 # Additional compiler flags for building library objects.
28768 pic_flag=$lt_lt_prog_compiler_pic_CXX
28770 # How to pass a linker flag through the compiler.
28771 wl=$lt_lt_prog_compiler_wl_CXX
28773 # Compiler flag to prevent dynamic linking.
28774 link_static_flag=$lt_lt_prog_compiler_static_CXX
28776 # Does compiler simultaneously support -c and -o options?
28777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28779 # Whether or not to add -lc for building shared libraries.
28780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28782 # Whether or not to disallow shared libs when runtime libs are static.
28783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28785 # Compiler flag to allow reflexive dlopens.
28786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28788 # Compiler flag to generate shared objects directly from archives.
28789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28791 # Whether the compiler copes with passing no objects directly.
28792 compiler_needs_object=$lt_compiler_needs_object_CXX
28794 # Create an old-style archive from a shared archive.
28795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28797 # Create a temporary old-style archive to link instead of a shared archive.
28798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28800 # Commands used to build a shared archive.
28801 archive_cmds=$lt_archive_cmds_CXX
28802 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28804 # Commands used to build a loadable module if different from building
28805 # a shared archive.
28806 module_cmds=$lt_module_cmds_CXX
28807 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28809 # Whether we are building with GNU ld or not.
28810 with_gnu_ld=$lt_with_gnu_ld_CXX
28812 # Flag that allows shared libraries with undefined symbols to be built.
28813 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28815 # Flag that enforces no undefined symbols.
28816 no_undefined_flag=$lt_no_undefined_flag_CXX
28818 # Flag to hardcode \$libdir into a binary during linking.
28819 # This must work even if \$libdir does not exist
28820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28822 # Whether we need a single "-rpath" flag with a separated argument.
28823 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28826 # DIR into the resulting binary.
28827 hardcode_direct=$hardcode_direct_CXX
28829 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28830 # DIR into the resulting binary and the resulting library dependency is
28831 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28832 # library is relocated.
28833 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28835 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28836 # into the resulting binary.
28837 hardcode_minus_L=$hardcode_minus_L_CXX
28839 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28840 # into the resulting binary.
28841 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28843 # Set to "yes" if building a shared library automatically hardcodes DIR
28844 # into the library and all subsequent libraries and executables linked
28846 hardcode_automatic=$hardcode_automatic_CXX
28848 # Set to yes if linker adds runtime paths of dependent libraries
28849 # to runtime path list.
28850 inherit_rpath=$inherit_rpath_CXX
28852 # Whether libtool must link a program against all its dependency libraries.
28853 link_all_deplibs=$link_all_deplibs_CXX
28855 # Set to "yes" if exported symbols are required.
28856 always_export_symbols=$always_export_symbols_CXX
28858 # The commands to list exported symbols.
28859 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28861 # Symbols that should not be listed in the preloaded symbols.
28862 exclude_expsyms=$lt_exclude_expsyms_CXX
28864 # Symbols that must always be exported.
28865 include_expsyms=$lt_include_expsyms_CXX
28867 # Commands necessary for linking programs (against libraries) with templates.
28868 prelink_cmds=$lt_prelink_cmds_CXX
28870 # Commands necessary for finishing linking programs.
28871 postlink_cmds=$lt_postlink_cmds_CXX
28873 # Specify filename containing input files.
28874 file_list_spec=$lt_file_list_spec_CXX
28876 # How to hardcode a shared library path into an executable.
28877 hardcode_action=$hardcode_action_CXX
28879 # The directories searched by this compiler when creating a shared library.
28880 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28882 # Dependencies to place before and after the objects being linked to
28883 # create a shared library.
28884 predep_objects=$lt_predep_objects_CXX
28885 postdep_objects=$lt_postdep_objects_CXX
28886 predeps=$lt_predeps_CXX
28887 postdeps=$lt_postdeps_CXX
28889 # The library search path used internally by the compiler when linking
28890 # a shared library.
28891 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28893 # ### END LIBTOOL TAG CONFIG: CXX
28897 "sdl2_config":C) chmod a+x sdl2-config ;;
28898 "summary":C) echo -en "$SUMMARY" ;;
28906 ac_clean_files=$ac_clean_files_save
28908 test $ac_write_fail = 0 ||
28909 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28912 # configure is writing to config.log, and then calls config.status.
28913 # config.status does its own redirection, appending to config.log.
28914 # Unfortunately, on DOS this fails, as config.log is still kept open
28915 # by configure, so config.status won't be able to write to it; its
28916 # output is simply discarded. So we exec the FD to /dev/null,
28917 # effectively closing config.log, so it can be properly (re)opened and
28918 # appended to by config.status. When coming back to configure, we
28919 # need to make the FD available again.
28920 if test "$no_create" != yes; then
28922 ac_config_status_args=
28923 test "$silent" = yes &&
28924 ac_config_status_args="$ac_config_status_args --quiet"
28926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28929 # would make configure fail if this is the last instruction.
28930 $ac_cs_success || as_fn_exit 1
28932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}