2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="README"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
901 ac_precious_vars='build_alias
917 # Initialize some variables set by options.
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
929 program_transform_name=s,x,x,
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE}'
954 infodir='${datarootdir}/info'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
975 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990 -build | --build | --buil | --bui | --bu)
991 ac_prev=build_alias ;;
992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993 build_alias=$ac_optarg ;;
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000 cache_file=$ac_optarg ;;
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
1005 -datadir | --datadir | --datadi | --datad)
1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008 datadir=$ac_optarg ;;
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1017 -disable-* | --disable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=no ;;
1026 -docdir | --docdir | --docdi | --doc | --do)
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
1036 -enable-* | --enable-*)
1037 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043 eval enable_$ac_feature=\$ac_optarg ;;
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
1052 exec_prefix=$ac_optarg ;;
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
1065 -host | --host | --hos | --ho)
1066 ac_prev=host_alias ;;
1067 -host=* | --host=* | --hos=* | --ho=*)
1068 host_alias=$ac_optarg ;;
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 htmldir=$ac_optarg ;;
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
1081 includedir=$ac_optarg ;;
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086 infodir=$ac_optarg ;;
1088 -libdir | --libdir | --libdi | --libd)
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091 libdir=$ac_optarg ;;
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
1098 libexecdir=$ac_optarg ;;
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
1106 | --localstate | --localstat | --localsta | --localst | --locals)
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110 localstatedir=$ac_optarg ;;
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115 mandir=$ac_optarg ;;
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122 | --no-cr | --no-c | -n)
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136 oldincludedir=$ac_optarg ;;
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141 prefix=$ac_optarg ;;
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148 program_prefix=$ac_optarg ;;
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155 program_suffix=$ac_optarg ;;
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
1172 program_transform_name=$ac_optarg ;;
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1179 -psdir | --psdir | --psdi | --psd | --ps)
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 sbindir=$ac_optarg ;;
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 sharedstatedir=$ac_optarg ;;
1205 -site | --site | --sit)
1207 -site=* | --site=* | --sit=*)
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213 srcdir=$ac_optarg ;;
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220 sysconfdir=$ac_optarg ;;
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
1223 ac_prev=target_alias ;;
1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225 target_alias=$ac_optarg ;;
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
1234 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 { echo "$as_me: error: invalid package name: $ac_package" >&2
1247 { (exit 1); exit 1; }; }
1248 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249 eval with_$ac_package=no ;;
1252 # Obsolete; use --with-x.
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1269 -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271 { (exit 1); exit 1; }; }
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279 { (exit 1); exit 1; }; }
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1284 # FIXME: should be removed in autoconf 3.0.
1285 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 { echo "$as_me: error: missing argument to $ac_option" >&2
1297 { (exit 1); exit 1; }; }
1300 # Be sure to have absolute directory names.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { echo "$as_me: error: Working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$0" : 'X\(//\)[^/]' \| \
1356 X"$0" : 'X\(//\)$' \| \
1357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --x-includes=DIR X include files are in DIR
1476 --x-libraries=DIR X library files are in DIR
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 if test -n "$ac_init_help"; then
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-libc Use the system C library [default=yes]
1497 --enable-audio Enable the audio subsystem [default=yes]
1498 --enable-video Enable the video subsystem [default=yes]
1499 --enable-events Enable the events subsystem [default=yes]
1500 --enable-joystick Enable the joystick subsystem [default=yes]
1501 --enable-cdrom Enable the cdrom subsystem [default=yes]
1502 --enable-threads Enable the threading subsystem [default=yes]
1503 --enable-timers Enable the timer subsystem [default=yes]
1504 --enable-file Enable the file subsystem [default=yes]
1505 --enable-loadso Enable the shared object loading subsystem
1507 --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
1508 --enable-assembly Enable assembly routines [default=yes]
1509 --enable-oss support the OSS audio API [default=yes]
1510 --enable-alsa support the ALSA audio API [default=yes]
1511 --disable-alsatest Do not try to compile and run a test Alsa program
1512 --enable-alsa-shared dynamically load ALSA audio support [default=yes]
1513 --enable-esd support the Enlightened Sound Daemon [default=yes]
1514 --disable-esdtest Do not try to compile and run a test ESD program
1515 --enable-esd-shared dynamically load ESD audio support [default=yes]
1516 --enable-pulseaudio use PulseAudio [default=yes]
1517 --enable-pulseaudio-shared
1518 dynamically load PulseAudio support [default=yes]
1519 --enable-arts support the Analog Real Time Synthesizer
1521 --enable-arts-shared dynamically load aRts audio support [default=yes]
1522 --enable-nas support the NAS audio API [default=yes]
1523 --enable-nas-shared dynamically load NAS audio support [default=yes]
1524 --enable-diskaudio support the disk writer audio driver [default=yes]
1525 --enable-dummyaudio support the dummy audio driver [default=yes]
1526 --enable-mintaudio support Atari audio driver [default=yes]
1527 --enable-nasm use nasm assembly blitters on x86 [default=yes]
1528 --enable-altivec use altivec assembly blitters on PPC [default=yes]
1529 --enable-ipod configure SDL to work with iPodLinux [default=no]
1530 --enable-video-nanox use nanox video driver [default=no]
1531 --enable-nanox-debug print debug messages [default=no]
1532 --enable-nanox-share-memory
1533 use share memory [default=no]
1534 --enable-nanox-direct-fb
1535 use direct framebuffer access [default=no]
1536 --enable-video-x11 use X11 video driver [default=yes]
1537 --enable-x11-shared dynamically load X11 support [default=maybe]
1538 --enable-dga allow use of X11 DGA code [default=yes]
1539 --enable-video-dga use DGA 2.0 video driver [default=yes]
1540 --enable-video-x11-dgamouse
1541 use X11 DGA for mouse events [default=yes]
1542 --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
1543 --enable-video-x11-xv use X11 XvImage extension for video [default=yes]
1544 --enable-video-x11-xinerama
1545 enable X11 Xinerama support [default=yes]
1546 --enable-video-x11-xme enable Xi Graphics XME for fullscreen
1548 --enable-video-x11-xrandr
1549 enable X11 Xrandr extension for fullscreen
1551 --enable-video-photon use QNX Photon video driver [default=yes]
1552 --enable-video-carbon use Carbon/QuickDraw video driver [default=no]
1553 --enable-video-cocoa use Cocoa/Quartz video driver [default=yes]
1554 --enable-video-fbcon use framebuffer console video driver [default=yes]
1555 --enable-video-directfb use DirectFB video driver [default=yes]
1556 --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]
1557 --enable-video-ps3 use PlayStation 3 Cell driver [default=yes]
1558 --enable-video-ggi use GGI video driver [default=no]
1559 --enable-video-svga use SVGAlib video driver [default=yes]
1560 --enable-video-vgl use VGL video driver [default=yes]
1561 --enable-video-wscons use wscons video driver [default=yes]
1562 --enable-video-aalib use AAlib video driver [default=no]
1563 --enable-video-caca use libcaca video driver [default=no]
1564 --enable-video-qtopia use Qtopia video driver [default=no]
1565 --enable-video-picogui use PicoGUI video driver [default=no]
1566 --enable-video-xbios use Atari Xbios video driver [default=yes]
1567 --enable-video-gem use Atari Gem video driver [default=yes]
1568 --enable-video-dummy use dummy video driver [default=yes]
1569 --enable-video-opengl include OpenGL context creation [default=yes]
1570 --enable-osmesa-shared dynamically load OSMesa OpenGL support
1572 --enable-screensaver enable screensaver by default while any SDL
1573 application is running [default=no]
1574 --enable-input-events use Linux 2.4 unified input interface
1576 --enable-input-tslib use the Touchscreen library for input
1578 --enable-pth use GNU pth library for multi-threading
1580 --enable-pthreads use POSIX threads for multi-threading
1582 --enable-pthread-sem use pthread semaphores [default=yes]
1583 --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]
1584 --enable-directx use DirectX for Win32 audio/video [default=yes]
1585 --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
1586 --enable-atari-ldg use Atari LDG for shared object loading
1588 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1590 --enable-rpath use an rpath when linking SDL [default=yes]
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1597 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1598 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1599 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1600 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1601 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1602 --with-x use the X Window System
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1613 CXX C++ compiler command
1614 CXXFLAGS C++ compiler flags
1615 CXXCPP C++ preprocessor
1616 XMKMF Path to xmkmf, Makefile generator for X Window System
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" || continue
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1682 generated by GNU Autoconf 2.61
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1695 It was created by $as_me, which was
1696 generated by GNU Autoconf 2.61. Invocation command line was
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_must_keep_next=false
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 -* ) ac_must_keep_next=true ;;
1788 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1812 # The following way of writing the cache mishandles newlines in values,
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1849 for ac_var in $ac_subst_vars
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1859 if test -n "$ac_subst_files"; then
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1866 for ac_var in $ac_subst_files
1868 eval ac_val=\$$ac_var
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 echo "$ac_var='\''$ac_val'\''"
1877 if test -s confdefs.h; then
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1903 # Predefined preprocessor variables.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
1943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1991 echo "$as_me: former value: $ac_old_val" >&2;}
1992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1993 echo "$as_me: current value: $ac_new_val" >&2;}
1994 ac_cache_corrupted=:
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
2000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 ac_config_headers="$ac_config_headers include/SDL_config.h"
2043 cat >>confdefs.h <<\_ACEOF
2044 #define _GNU_SOURCE 1
2049 for ac_dir in $srcdir/build-scripts; do
2050 if test -f "$ac_dir/install-sh"; then
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2054 elif test -f "$ac_dir/install.sh"; then
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2058 elif test -f "$ac_dir/shtool"; then
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2064 if test -z "$ac_aux_dir"; then
2065 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2067 { (exit 1); exit 1; }; }
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2082 # Edit include/SDL/SDL_version.h and change the version, then:
2083 # SDL_MICRO_VERSION += 1;
2084 # SDL_INTERFACE_AGE += 1;
2085 # SDL_BINARY_AGE += 1;
2086 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2087 # if backwards compatibility has been broken,
2088 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2092 SDL_MICRO_VERSION=15
2095 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2104 # libtool versioning
2107 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2108 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2113 macro_version='2.2.6'
2114 macro_revision='1.3012'
2128 ltmain="$ac_aux_dir/ltmain.sh"
2130 # Make sure we can run config.sub.
2131 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2132 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2133 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2134 { (exit 1); exit 1; }; }
2136 { echo "$as_me:$LINENO: checking build system type" >&5
2137 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_build+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 ac_build_alias=$build_alias
2142 test "x$ac_build_alias" = x &&
2143 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2144 test "x$ac_build_alias" = x &&
2145 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2146 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2147 { (exit 1); exit 1; }; }
2148 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2149 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2151 { (exit 1); exit 1; }; }
2154 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2155 echo "${ECHO_T}$ac_cv_build" >&6; }
2156 case $ac_cv_build in
2158 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2159 echo "$as_me: error: invalid value of canonical build" >&2;}
2160 { (exit 1); exit 1; }; };;
2163 ac_save_IFS=$IFS; IFS='-'
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2176 { echo "$as_me:$LINENO: checking host system type" >&5
2177 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2178 if test "${ac_cv_host+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 if test "x$host_alias" = x; then
2182 ac_cv_host=$ac_cv_build
2184 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2185 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2186 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2187 { (exit 1); exit 1; }; }
2191 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2192 echo "${ECHO_T}$ac_cv_host" >&6; }
2195 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2196 echo "$as_me: error: invalid value of canonical host" >&2;}
2197 { (exit 1); exit 1; }; };;
2200 ac_save_IFS=$IFS; IFS='-'
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2210 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2218 if test -n "$ac_tool_prefix"; then
2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 if test -n "$CC"; then
2227 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test -n "$CC"; then
2248 { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2251 { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2257 if test -z "$ac_cv_prog_CC"; then
2259 # Extract the first word of "gcc", so it can be a program name with args.
2260 set dummy gcc; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 if test -n "$ac_ct_CC"; then
2267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir=.
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276 ac_cv_prog_ac_ct_CC="gcc"
2277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6; }
2291 { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2295 if test "x$ac_ct_CC" = x; then
2298 case $cross_compiling:$ac_tool_warned in
2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet. If you think this
2302 configuration is useful to you, please write to autoconf@gnu.org." >&5
2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2304 whose name does not start with the host triplet. If you think this
2305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2306 ac_tool_warned=yes ;;
2314 if test -z "$CC"; then
2315 if test -n "$ac_tool_prefix"; then
2316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}cc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 if test -n "$CC"; then
2324 ac_cv_prog_CC="$CC" # Let the user override the test.
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333 ac_cv_prog_CC="${ac_tool_prefix}cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 if test -n "$CC"; then
2345 { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2348 { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2355 if test -z "$CC"; then
2356 # Extract the first word of "cc", so it can be a program name with args.
2357 set dummy cc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2375 ac_prog_rejected=yes
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test $ac_prog_rejected = yes; then
2387 # We found a bogon in the path, so make sure we never use it.
2388 set dummy $ac_cv_prog_CC
2390 if test $# != 0; then
2391 # We chose a different compiler from the bogus one.
2392 # However, it has the same basename, so the bogon will be chosen
2393 # first if we set CC to just the basename; use the full file name.
2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2401 if test -n "$CC"; then
2402 { echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6; }
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 for ac_prog in cl.exe
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 if test -n "$CC"; then
2444 { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2452 test -n "$CC" && break
2455 if test -z "$CC"; then
2457 for ac_prog in cl.exe
2459 # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$ac_ct_CC"; then
2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_ac_ct_CC="$ac_prog"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 if test -n "$ac_ct_CC"; then
2488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 echo "${ECHO_T}$ac_ct_CC" >&6; }
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2496 test -n "$ac_ct_CC" && break
2499 if test "x$ac_ct_CC" = x; then
2502 case $cross_compiling:$ac_tool_warned in
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet. If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2519 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&2;}
2523 { (exit 1); exit 1; }; }
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO: checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (ac_try="$ac_compiler --version >&5"
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534 (eval "$ac_compiler --version >&5") 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (ac_try="$ac_compiler -v >&5"
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compiler -v >&5") 2>&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
2548 { (ac_try="$ac_compiler -V >&5"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compiler -V >&5") 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 ac_clean_files_save=$ac_clean_files
2575 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2576 # Try to create an executable without -o first, disregard a.out.
2577 # It will help us diagnose broken compilers, and finding out an intuition
2579 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2580 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2581 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2583 # List of possible output files, starting from the most likely.
2584 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2585 # only as a last resort. b.out is created by i960 compilers.
2586 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2588 # The IRIX 6 linker writes into existing files which may not be
2589 # executable, retaining their permissions. Remove them first so a
2590 # subsequent execution test works.
2592 for ac_file in $ac_files
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2601 if { (ac_try="$ac_link_default"
2603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604 *) ac_try_echo=$ac_try;;
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607 (eval "$ac_link_default") 2>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; then
2611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2613 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2614 # so that the user can short-circuit this test for compilers unknown to
2616 for ac_file in $ac_files ''
2618 test -f "$ac_file" || continue
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2623 # We found the default executable, but exeext='' is most
2627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2631 # We set ac_cv_exeext here because the later test for it is not
2632 # safe: cross compilers may not add the suffix if given an `-o'
2633 # argument, so we may need to know it at that point already.
2634 # Even if this section looks crufty: it has the advantage of
2641 test "$ac_cv_exeext" = no && ac_cv_exeext=
2647 { echo "$as_me:$LINENO: result: $ac_file" >&5
2648 echo "${ECHO_T}$ac_file" >&6; }
2649 if test -z "$ac_file"; then
2650 echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&2;}
2657 { (exit 77); exit 77; }; }
2660 ac_exeext=$ac_cv_exeext
2662 # Check that the compiler produces executables we can run. If not, either
2663 # the compiler is broken, or we cross compile.
2664 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669 if { ac_try='./$ac_file'
2670 { (case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_try") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 if test "$cross_compiling" = maybe; then
2684 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2685 If you meant to cross compile, use \`--host'.
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2694 { echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6; }
2697 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2698 ac_clean_files=$ac_clean_files_save
2699 # Check that the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2703 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6; }
2706 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2708 if { (ac_try="$ac_link"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_link") 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2719 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2720 # work properly (i.e., refer to `conftest.exe'), while it won't with
2722 for ac_file in conftest.exe conftest conftest.*; do
2723 test -f "$ac_file" || continue
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2726 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736 { (exit 1); exit 1; }; }
2739 rm -f conftest$ac_cv_exeext
2740 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2746 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2748 if test "${ac_cv_objext+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 rm -f conftest.o conftest.obj
2767 if { (ac_try="$ac_compile"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 for ac_file in conftest.o conftest.obj conftest.*; do
2778 test -f "$ac_file" || continue;
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2781 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2798 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2799 echo "${ECHO_T}$ac_cv_objext" >&6; }
2800 OBJEXT=$ac_cv_objext
2802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 cat >conftest.$ac_ext <<_ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2844 echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2856 GCC=`test $ac_compiler_gnu = yes && echo yes`
2857 ac_test_CFLAGS=${CFLAGS+set}
2858 ac_save_CFLAGS=$CFLAGS
2859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_cc_g+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 ac_save_c_werror_flag=$ac_c_werror_flag
2865 ac_c_werror_flag=yes
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } && {
2897 test -z "$ac_c_werror_flag" ||
2898 test ! -s conftest.err
2899 } && test -s conftest.$ac_objext; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 ac_c_werror_flag=$ac_save_c_werror_flag
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2979 echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_c_werror_flag=$ac_save_c_werror_flag
2994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2996 if test "$ac_test_CFLAGS" = set; then
2997 CFLAGS=$ac_save_CFLAGS
2998 elif test $ac_cv_prog_cc_g = yes; then
2999 if test "$GCC" = yes; then
3005 if test "$GCC" = yes; then
3011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_c89+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_cv_prog_cc_c89=no
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3026 #include <sys/types.h>
3027 #include <sys/stat.h>
3028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3029 struct buf { int x; };
3030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3031 static char *e (p, i)
3037 static char *f (char * (*g) (char **, int), char **p, ...)
3042 s = g (p, va_arg (v,int));
3047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3048 function prototypes and stuff, but not '\xHH' hex character constants.
3049 These don't provoke an error unfortunately, instead are silently treated
3050 as 'x'. The following induces an error, until -std is added to get
3051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3052 array size at least. It's necessary to write '\x00'==0 to get something
3053 that's true only with -std. */
3054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3057 inside strings and character constants. */
3059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3061 int test (int i, double x);
3062 struct s1 {int (*f) (int a);};
3063 struct s2 {int (*f) (double a);};
3064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3070 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3078 CC="$ac_save_CC $ac_arg"
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } && {
3093 test -z "$ac_c_werror_flag" ||
3094 test ! -s conftest.err
3095 } && test -s conftest.$ac_objext; then
3096 ac_cv_prog_cc_c89=$ac_arg
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3104 rm -f core conftest.err conftest.$ac_objext
3105 test "x$ac_cv_prog_cc_c89" != "xno" && break
3107 rm -f conftest.$ac_ext
3112 case "x$ac_cv_prog_cc_c89" in
3114 { echo "$as_me:$LINENO: result: none needed" >&5
3115 echo "${ECHO_T}none needed" >&6; } ;;
3117 { echo "$as_me:$LINENO: result: unsupported" >&5
3118 echo "${ECHO_T}unsupported" >&6; } ;;
3120 CC="$CC $ac_cv_prog_cc_c89"
3121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3133 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3134 if test "${ac_cv_path_SED+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3138 for ac_i in 1 2 3 4 5 6 7; do
3139 ac_script="$ac_script$as_nl$ac_script"
3141 echo "$ac_script" | sed 99q >conftest.sed
3142 $as_unset ac_script || ac_script=
3143 # Extract the first word of "sed gsed" to use in msg output
3144 if test -z "$SED"; then
3145 set dummy sed gsed; ac_prog_name=$2
3146 if test "${ac_cv_path_SED+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 ac_path_SED_found=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_prog in sed gsed; do
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3160 # Check for GNU ac_path_SED and select it if it is found.
3161 # Check for GNU $ac_path_SED
3162 case `"$ac_path_SED" --version 2>&1` in
3164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3167 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
3171 mv "conftest.tmp" "conftest.in"
3172 cp "conftest.in" "conftest.nl"
3173 echo '' >> "conftest.nl"
3174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3176 ac_count=`expr $ac_count + 1`
3177 if test $ac_count -gt ${ac_path_SED_max-0}; then
3178 # Best one so far, save it but keep looking for a better one
3179 ac_cv_path_SED="$ac_path_SED"
3180 ac_path_SED_max=$ac_count
3182 # 10*(2^10) chars as input seems more than enough
3183 test $ac_count -gt 10 && break
3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3189 $ac_path_SED_found && break 3
3199 SED="$ac_cv_path_SED"
3200 if test -z "$SED"; then
3201 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3202 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3203 { (exit 1); exit 1; }; }
3211 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3212 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3213 SED="$ac_cv_path_SED"
3216 test -z "$SED" && SED=sed
3217 Xsed="$SED -e 1s/^X//"
3229 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3230 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3231 if test "${ac_cv_path_GREP+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 # Extract the first word of "grep ggrep" to use in msg output
3235 if test -z "$GREP"; then
3236 set dummy grep ggrep; ac_prog_name=$2
3237 if test "${ac_cv_path_GREP+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 ac_path_GREP_found=false
3241 # Loop through the user's path and test for each of PROGNAME-LIST
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3246 test -z "$as_dir" && as_dir=.
3247 for ac_prog in grep ggrep; do
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3250 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3251 # Check for GNU ac_path_GREP and select it if it is found.
3252 # Check for GNU $ac_path_GREP
3253 case `"$ac_path_GREP" --version 2>&1` in
3255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3258 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3261 cat "conftest.in" "conftest.in" >"conftest.tmp"
3262 mv "conftest.tmp" "conftest.in"
3263 cp "conftest.in" "conftest.nl"
3264 echo 'GREP' >> "conftest.nl"
3265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3267 ac_count=`expr $ac_count + 1`
3268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3269 # Best one so far, save it but keep looking for a better one
3270 ac_cv_path_GREP="$ac_path_GREP"
3271 ac_path_GREP_max=$ac_count
3273 # 10*(2^10) chars as input seems more than enough
3274 test $ac_count -gt 10 && break
3276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3280 $ac_path_GREP_found && break 3
3290 GREP="$ac_cv_path_GREP"
3291 if test -z "$GREP"; then
3292 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3293 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3294 { (exit 1); exit 1; }; }
3298 ac_cv_path_GREP=$GREP
3303 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3304 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3305 GREP="$ac_cv_path_GREP"
3308 { echo "$as_me:$LINENO: checking for egrep" >&5
3309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3310 if test "${ac_cv_path_EGREP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3314 then ac_cv_path_EGREP="$GREP -E"
3316 # Extract the first word of "egrep" to use in msg output
3317 if test -z "$EGREP"; then
3318 set dummy egrep; ac_prog_name=$2
3319 if test "${ac_cv_path_EGREP+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 ac_path_EGREP_found=false
3323 # Loop through the user's path and test for each of PROGNAME-LIST
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3328 test -z "$as_dir" && as_dir=.
3329 for ac_prog in egrep; do
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3332 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3333 # Check for GNU ac_path_EGREP and select it if it is found.
3334 # Check for GNU $ac_path_EGREP
3335 case `"$ac_path_EGREP" --version 2>&1` in
3337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3340 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3343 cat "conftest.in" "conftest.in" >"conftest.tmp"
3344 mv "conftest.tmp" "conftest.in"
3345 cp "conftest.in" "conftest.nl"
3346 echo 'EGREP' >> "conftest.nl"
3347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3349 ac_count=`expr $ac_count + 1`
3350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3351 # Best one so far, save it but keep looking for a better one
3352 ac_cv_path_EGREP="$ac_path_EGREP"
3353 ac_path_EGREP_max=$ac_count
3355 # 10*(2^10) chars as input seems more than enough
3356 test $ac_count -gt 10 && break
3358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3362 $ac_path_EGREP_found && break 3
3372 EGREP="$ac_cv_path_EGREP"
3373 if test -z "$EGREP"; then
3374 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3375 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3376 { (exit 1); exit 1; }; }
3380 ac_cv_path_EGREP=$EGREP
3386 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3387 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3388 EGREP="$ac_cv_path_EGREP"
3391 { echo "$as_me:$LINENO: checking for fgrep" >&5
3392 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3393 if test "${ac_cv_path_FGREP+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3397 then ac_cv_path_FGREP="$GREP -F"
3399 # Extract the first word of "fgrep" to use in msg output
3400 if test -z "$FGREP"; then
3401 set dummy fgrep; ac_prog_name=$2
3402 if test "${ac_cv_path_FGREP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 ac_path_FGREP_found=false
3406 # Loop through the user's path and test for each of PROGNAME-LIST
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3411 test -z "$as_dir" && as_dir=.
3412 for ac_prog in fgrep; do
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3415 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3416 # Check for GNU ac_path_FGREP and select it if it is found.
3417 # Check for GNU $ac_path_FGREP
3418 case `"$ac_path_FGREP" --version 2>&1` in
3420 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3423 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3426 cat "conftest.in" "conftest.in" >"conftest.tmp"
3427 mv "conftest.tmp" "conftest.in"
3428 cp "conftest.in" "conftest.nl"
3429 echo 'FGREP' >> "conftest.nl"
3430 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3432 ac_count=`expr $ac_count + 1`
3433 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3434 # Best one so far, save it but keep looking for a better one
3435 ac_cv_path_FGREP="$ac_path_FGREP"
3436 ac_path_FGREP_max=$ac_count
3438 # 10*(2^10) chars as input seems more than enough
3439 test $ac_count -gt 10 && break
3441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3445 $ac_path_FGREP_found && break 3
3455 FGREP="$ac_cv_path_FGREP"
3456 if test -z "$FGREP"; then
3457 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3458 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3459 { (exit 1); exit 1; }; }
3463 ac_cv_path_FGREP=$FGREP
3469 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3470 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3471 FGREP="$ac_cv_path_FGREP"
3474 test -z "$GREP" && GREP=grep
3494 # Check whether --with-gnu-ld was given.
3495 if test "${with_gnu_ld+set}" = set; then
3496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3502 if test "$GCC" = yes; then
3503 # Check if gcc -print-prog-name=ld gives a path.
3504 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3505 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3508 # gcc leaves a trailing carriage return which upsets mingw
3509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3514 # Accept absolute paths.
3516 re_direlt='/[^/][^/]*/\.\./'
3517 # Canonicalize the pathname of ld
3518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3522 test -z "$LD" && LD="$ac_prog"
3525 # If it fails, then pretend we aren't using GCC.
3529 # If it is relative, then search for the first ld in PATH.
3533 elif test "$with_gnu_ld" = yes; then
3534 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3537 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3540 if test "${lt_cv_path_LD+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 if test -z "$LD"; then
3544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3545 for ac_dir in $PATH; do
3547 test -z "$ac_dir" && ac_dir=.
3548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3549 lt_cv_path_LD="$ac_dir/$ac_prog"
3550 # Check to see if the program is GNU ld. I'd rather use --version,
3551 # but apparently some variants of GNU ld only accept -v.
3552 # Break only if it was the GNU/non-GNU ld that we prefer.
3553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3554 *GNU* | *'with BFD'*)
3555 test "$with_gnu_ld" != no && break
3558 test "$with_gnu_ld" != yes && break
3565 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3570 if test -n "$LD"; then
3571 { echo "$as_me:$LINENO: result: $LD" >&5
3572 echo "${ECHO_T}$LD" >&6; }
3574 { echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6; }
3577 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3578 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3579 { (exit 1); exit 1; }; }
3580 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3581 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3582 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3586 case `$LD -v 2>&1 </dev/null` in
3587 *GNU* | *'with BFD'*)
3588 lt_cv_prog_gnu_ld=yes
3591 lt_cv_prog_gnu_ld=no
3595 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3597 with_gnu_ld=$lt_cv_prog_gnu_ld
3607 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3608 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3609 if test "${lt_cv_path_NM+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 if test -n "$NM"; then
3613 # Let the user override the test.
3616 lt_nm_to_check="${ac_tool_prefix}nm"
3617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3618 lt_nm_to_check="$lt_nm_to_check nm"
3620 for lt_tmp_nm in $lt_nm_to_check; do
3621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3624 test -z "$ac_dir" && ac_dir=.
3625 tmp_nm="$ac_dir/$lt_tmp_nm"
3626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3627 # Check to see if the nm accepts a BSD-compat flag.
3628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629 # nm: unknown option "B" ignored
3630 # Tru64's nm complains that /dev/null is an invalid object file
3631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3632 */dev/null* | *'Invalid file or object type'*)
3633 lt_cv_path_NM="$tmp_nm -B"
3637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3639 lt_cv_path_NM="$tmp_nm -p"
3643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3644 continue # so that we can try to find one that supports BSD flags
3653 : ${lt_cv_path_NM=no}
3656 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3657 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3658 if test "$lt_cv_path_NM" != "no"; then
3661 # Didn't find any BSD compatible name lister, look for dumpbin.
3662 if test -n "$ac_tool_prefix"; then
3663 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$DUMPBIN"; then
3673 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 DUMPBIN=$ac_cv_prog_DUMPBIN
3693 if test -n "$DUMPBIN"; then
3694 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3695 echo "${ECHO_T}$DUMPBIN" >&6; }
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3702 test -n "$DUMPBIN" && break
3705 if test -z "$DUMPBIN"; then
3706 ac_ct_DUMPBIN=$DUMPBIN
3707 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 if test -n "$ac_ct_DUMPBIN"; then
3717 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3737 if test -n "$ac_ct_DUMPBIN"; then
3738 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3739 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3746 test -n "$ac_ct_DUMPBIN" && break
3749 if test "x$ac_ct_DUMPBIN" = x; then
3752 case $cross_compiling:$ac_tool_warned in
3754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3755 whose name does not start with the host triplet. If you think this
3756 configuration is useful to you, please write to autoconf@gnu.org." >&5
3757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet. If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3760 ac_tool_warned=yes ;;
3762 DUMPBIN=$ac_ct_DUMPBIN
3767 if test "$DUMPBIN" != ":"; then
3771 test -z "$NM" && NM=nm
3778 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3779 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3780 if test "${lt_cv_nm_interface+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 lt_cv_nm_interface="BSD nm"
3784 echo "int some_variable = 0;" > conftest.$ac_ext
3785 (eval echo "\"\$as_me:3785: $ac_compile\"" >&5)
3786 (eval "$ac_compile" 2>conftest.err)
3787 cat conftest.err >&5
3788 (eval echo "\"\$as_me:3788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3790 cat conftest.err >&5
3791 (eval echo "\"\$as_me:3791: output\"" >&5)
3792 cat conftest.out >&5
3793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3794 lt_cv_nm_interface="MS dumpbin"
3798 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3799 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3804 if test "$LN_S" = "ln -s"; then
3805 { echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6; }
3808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3809 echo "${ECHO_T}no, using $LN_S" >&6; }
3812 # find the maximum length of command line arguments
3813 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3814 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 # On DJGPP, this test can blow up pretty badly due to problems in libc
3824 # (any single argument exceeding 2000 bytes causes a buffer overrun
3825 # during glob expansion). Even if it were fixed, the result of this
3826 # check would be larger than it should be.
3827 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3831 # Under GNU Hurd, this test is not required because there is
3832 # no limit to the length of command line arguments.
3833 # Libtool will interpret -1 as no limit whatsoever
3834 lt_cv_sys_max_cmd_len=-1;
3837 cygwin* | mingw* | cegcc*)
3838 # On Win9x/ME, this test blows up -- it succeeds, but takes
3839 # about 5 minutes as the teststring grows exponentially.
3840 # Worse, since 9x/ME are not pre-emptively multitasking,
3841 # you end up with a "frozen" computer, even though with patience
3842 # the test eventually succeeds (with a max line length of 256k).
3843 # Instead, let's just punt: use the minimum linelength reported by
3844 # all of the supported platforms: 8192 (on NT/2K/XP).
3845 lt_cv_sys_max_cmd_len=8192;
3849 # On BeOS, this test takes a really really long time.
3850 # So we just punt and use a minimum line length of 8192.
3851 lt_cv_sys_max_cmd_len=8192;
3855 # On AmigaOS with pdksh, this test takes hours, literally.
3856 # So we just punt and use a minimum line length of 8192.
3857 lt_cv_sys_max_cmd_len=8192;
3860 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3861 # This has been around since 386BSD, at least. Likely further.
3862 if test -x /sbin/sysctl; then
3863 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3864 elif test -x /usr/sbin/sysctl; then
3865 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3867 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3869 # And add a safety zone
3870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3875 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3876 lt_cv_sys_max_cmd_len=196608
3880 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3881 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3882 # nice to cause kernel panics so lets avoid the loop below.
3883 # First set a reasonable default.
3884 lt_cv_sys_max_cmd_len=16384
3886 if test -x /sbin/sysconfig; then
3887 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3888 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3893 lt_cv_sys_max_cmd_len=102400
3895 sysv5* | sco5v6* | sysv4.2uw2*)
3896 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3897 if test -n "$kargmax"; then
3898 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3900 lt_cv_sys_max_cmd_len=32768
3904 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3905 if test -n "$lt_cv_sys_max_cmd_len"; then
3906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3909 # Make teststring a little bigger before we do anything with it.
3910 # a 1K string should be a reasonable start.
3911 for i in 1 2 3 4 5 6 7 8 ; do
3912 teststring=$teststring$teststring
3914 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3915 # If test is not a shell built-in, we'll probably end up computing a
3916 # maximum length that is only half of the actual maximum length, but
3918 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3919 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3920 test $i != 17 # 1/2 MB should be enough
3923 teststring=$teststring$teststring
3925 # Only check the string length outside the loop.
3926 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3928 # Add a significant safety factor because C++ compilers can tack on
3929 # massive amounts of additional arguments before passing them to the
3930 # linker. It appears as though 1/2 is a usable value.
3931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3938 if test -n $lt_cv_sys_max_cmd_len ; then
3939 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3940 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3942 { echo "$as_me:$LINENO: result: none" >&5
3943 echo "${ECHO_T}none" >&6; }
3945 max_cmd_len=$lt_cv_sys_max_cmd_len
3956 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3957 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3958 # Try some XSI features
3961 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3963 && eval 'test $(( 1 + 1 )) -eq 2 \
3964 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3966 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
3967 echo "${ECHO_T}$xsi_shell" >&6; }
3970 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3971 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3973 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3975 && lt_shell_append=yes
3976 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3977 echo "${ECHO_T}$lt_shell_append" >&6; }
3980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3990 # test EBCDIC or ASCII
3991 case `echo X|tr X '\101'` in
3992 A) # ASCII based system
3993 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3994 lt_SP2NL='tr \040 \012'
3995 lt_NL2SP='tr \015\012 \040\040'
3997 *) # EBCDIC based system
3998 lt_SP2NL='tr \100 \n'
3999 lt_NL2SP='tr \r\n \100\100'
4011 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4012 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4013 if test "${lt_cv_ld_reload_flag+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 lt_cv_ld_reload_flag='-r'
4018 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4019 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4020 reload_flag=$lt_cv_ld_reload_flag
4021 case $reload_flag in
4023 *) reload_flag=" $reload_flag" ;;
4025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4028 if test "$GCC" = yes; then
4029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4049 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$OBJDUMP"; then
4053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 OBJDUMP=$ac_cv_prog_OBJDUMP
4073 if test -n "$OBJDUMP"; then
4074 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4075 echo "${ECHO_T}$OBJDUMP" >&6; }
4077 { echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6; }
4083 if test -z "$ac_cv_prog_OBJDUMP"; then
4084 ac_ct_OBJDUMP=$OBJDUMP
4085 # Extract the first word of "objdump", so it can be a program name with args.
4086 set dummy objdump; ac_word=$2
4087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4089 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 if test -n "$ac_ct_OBJDUMP"; then
4093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4113 if test -n "$ac_ct_OBJDUMP"; then
4114 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4115 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4117 { echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6; }
4121 if test "x$ac_ct_OBJDUMP" = x; then
4124 case $cross_compiling:$ac_tool_warned in
4126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4127 whose name does not start with the host triplet. If you think this
4128 configuration is useful to you, please write to autoconf@gnu.org." >&5
4129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4130 whose name does not start with the host triplet. If you think this
4131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4132 ac_tool_warned=yes ;;
4134 OBJDUMP=$ac_ct_OBJDUMP
4137 OBJDUMP="$ac_cv_prog_OBJDUMP"
4140 test -z "$OBJDUMP" && OBJDUMP=objdump
4147 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4148 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4149 if test "${lt_cv_deplibs_check_method+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 lt_cv_file_magic_cmd='$MAGIC_CMD'
4153 lt_cv_file_magic_test_file=
4154 lt_cv_deplibs_check_method='unknown'
4155 # Need to set the preceding variable on all platforms that support
4156 # interlibrary dependencies.
4157 # 'none' -- dependencies not supported.
4158 # `unknown' -- same as none, but documents that we really don't know.
4159 # 'pass_all' -- all dependencies passed with no checks.
4160 # 'test_compile' -- check by making test program.
4161 # 'file_magic [[regex]]' -- check by looking for files in library path
4162 # which responds to the $file_magic_cmd with a given extended regex.
4163 # If you have `file' or equivalent on your system and you're not sure
4164 # whether `pass_all' will *always* work, you probably want this one.
4168 lt_cv_deplibs_check_method=pass_all
4172 lt_cv_deplibs_check_method=pass_all
4176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4177 lt_cv_file_magic_cmd='/usr/bin/file -L'
4178 lt_cv_file_magic_test_file=/shlib/libc.so
4182 # func_win32_libid is a shell function defined in ltmain.sh
4183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4184 lt_cv_deplibs_check_method=pass_all
4185 lt_cv_file_magic_cmd='func_win32_libid'
4189 # Base MSYS/MinGW do not provide the 'file' command needed by
4190 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4191 # unless we find 'file', for example because we are cross-compiling.
4192 if ( file / ) >/dev/null 2>&1; then
4193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4194 lt_cv_file_magic_cmd='func_win32_libid'
4196 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4197 lt_cv_file_magic_cmd='$OBJDUMP -f'
4199 lt_cv_deplibs_check_method=pass_all
4203 # use the weaker test based on 'objdump'. See mingw*.
4204 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4205 lt_cv_file_magic_cmd='$OBJDUMP -f'
4208 darwin* | rhapsody*)
4209 lt_cv_deplibs_check_method=pass_all
4212 freebsd* | dragonfly*)
4213 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4216 # Not sure whether the presence of OpenBSD here was a mistake.
4217 # Let's accept both of them until this is cleared up.
4218 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4219 lt_cv_file_magic_cmd=/usr/bin/file
4220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4224 lt_cv_deplibs_check_method=pass_all
4229 lt_cv_deplibs_check_method=pass_all
4232 hpux10.20* | hpux11*)
4233 lt_cv_file_magic_cmd=/usr/bin/file
4236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4237 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4241 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4245 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4251 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4255 irix5* | irix6* | nonstopux*)
4257 *-32|*"-32 ") libmagic=32-bit;;
4258 *-n32|*"-n32 ") libmagic=N32;;
4259 *-64|*"-64 ") libmagic=64-bit;;
4260 *) libmagic=never-match;;
4262 lt_cv_deplibs_check_method=pass_all
4265 # This must be Linux ELF.
4266 linux* | k*bsd*-gnu)
4267 lt_cv_deplibs_check_method=pass_all
4271 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4280 lt_cv_file_magic_cmd=/usr/bin/file
4281 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285 lt_cv_deplibs_check_method=pass_all
4289 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296 osf3* | osf4* | osf5*)
4297 lt_cv_deplibs_check_method=pass_all
4301 lt_cv_deplibs_check_method=pass_all
4305 lt_cv_deplibs_check_method=pass_all
4308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4309 lt_cv_deplibs_check_method=pass_all
4313 case $host_vendor in
4315 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]'
4316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4319 lt_cv_deplibs_check_method=pass_all
4322 lt_cv_file_magic_cmd='/bin/file'
4323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4326 lt_cv_file_magic_cmd='/bin/file'
4327 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4328 lt_cv_file_magic_test_file=/lib/libc.so
4331 lt_cv_deplibs_check_method=pass_all
4334 lt_cv_deplibs_check_method=pass_all
4340 lt_cv_deplibs_check_method=pass_all
4345 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4346 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4347 file_magic_cmd=$lt_cv_file_magic_cmd
4348 deplibs_check_method=$lt_cv_deplibs_check_method
4349 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4362 if test -n "$ac_tool_prefix"; then
4363 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4364 set dummy ${ac_tool_prefix}ar; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_prog_AR+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 if test -n "$AR"; then
4371 ac_cv_prog_AR="$AR" # Let the user override the test.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_AR="${ac_tool_prefix}ar"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 if test -n "$AR"; then
4392 { echo "$as_me:$LINENO: result: $AR" >&5
4393 echo "${ECHO_T}$AR" >&6; }
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4401 if test -z "$ac_cv_prog_AR"; then
4403 # Extract the first word of "ar", so it can be a program name with args.
4404 set dummy ar; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 if test -n "$ac_ct_AR"; then
4411 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_AR="ar"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4431 if test -n "$ac_ct_AR"; then
4432 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4433 echo "${ECHO_T}$ac_ct_AR" >&6; }
4435 { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4439 if test "x$ac_ct_AR" = x; then
4442 case $cross_compiling:$ac_tool_warned in
4444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4445 whose name does not start with the host triplet. If you think this
4446 configuration is useful to you, please write to autoconf@gnu.org." >&5
4447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet. If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4450 ac_tool_warned=yes ;;
4458 test -z "$AR" && AR=ar
4459 test -z "$AR_FLAGS" && AR_FLAGS=cru
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}strip; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_STRIP+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 if test -n "$STRIP"; then
4480 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 STRIP=$ac_cv_prog_STRIP
4500 if test -n "$STRIP"; then
4501 { echo "$as_me:$LINENO: result: $STRIP" >&5
4502 echo "${ECHO_T}$STRIP" >&6; }
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4510 if test -z "$ac_cv_prog_STRIP"; then
4512 # Extract the first word of "strip", so it can be a program name with args.
4513 set dummy strip; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 if test -n "$ac_ct_STRIP"; then
4520 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_ac_ct_STRIP="strip"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4540 if test -n "$ac_ct_STRIP"; then
4541 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4544 { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }
4548 if test "x$ac_ct_STRIP" = x; then
4551 case $cross_compiling:$ac_tool_warned in
4553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4554 whose name does not start with the host triplet. If you think this
4555 configuration is useful to you, please write to autoconf@gnu.org." >&5
4556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4557 whose name does not start with the host triplet. If you think this
4558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4559 ac_tool_warned=yes ;;
4564 STRIP="$ac_cv_prog_STRIP"
4567 test -z "$STRIP" && STRIP=:
4574 if test -n "$ac_tool_prefix"; then
4575 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_RANLIB+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 if test -n "$RANLIB"; then
4583 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 RANLIB=$ac_cv_prog_RANLIB
4603 if test -n "$RANLIB"; then
4604 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4605 echo "${ECHO_T}$RANLIB" >&6; }
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4613 if test -z "$ac_cv_prog_RANLIB"; then
4614 ac_ct_RANLIB=$RANLIB
4615 # Extract the first word of "ranlib", so it can be a program name with args.
4616 set dummy ranlib; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$ac_ct_RANLIB"; then
4623 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_ac_ct_RANLIB="ranlib"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4643 if test -n "$ac_ct_RANLIB"; then
4644 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4645 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4651 if test "x$ac_ct_RANLIB" = x; then
4654 case $cross_compiling:$ac_tool_warned in
4656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4657 whose name does not start with the host triplet. If you think this
4658 configuration is useful to you, please write to autoconf@gnu.org." >&5
4659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet. If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4662 ac_tool_warned=yes ;;
4664 RANLIB=$ac_ct_RANLIB
4667 RANLIB="$ac_cv_prog_RANLIB"
4670 test -z "$RANLIB" && RANLIB=:
4677 # Determine commands to create old-style static archives.
4678 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4679 old_postinstall_cmds='chmod 644 $oldlib'
4680 old_postuninstall_cmds=
4682 if test -n "$RANLIB"; then
4685 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4688 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4691 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4727 # If no C compiler was specified, use CC.
4730 # If no C compiler flags were specified, use CFLAGS.
4731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4733 # Allow CC to be a program name with arguments.
4737 # Check for command to grab the raw symbol name followed by C symbol from nm.
4738 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4739 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4740 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 # These are sane defaults that work on at least a few old systems.
4745 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4747 # Character class describing NM global symbol codes.
4748 symcode='[BCDEGRST]'
4750 # Regexp to match symbols that can be accessed directly from C.
4751 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4753 # Define system-specific variables.
4758 cygwin* | mingw* | pw32* | cegcc*)
4759 symcode='[ABCDGISTW]'
4762 if test "$host_cpu" = ia64; then
4763 symcode='[ABCDEGRST]'
4767 symcode='[BCDEGRST]'
4770 symcode='[BCDEGQRST]'
4781 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4789 # If we're using GNU nm, then use its standard symbol codes.
4790 case `$NM -V 2>&1` in
4791 *GNU* | *'with BFD'*)
4792 symcode='[ABCDGIRSTW]' ;;
4795 # Transform an extracted symbol line into a proper C declaration.
4796 # Some systems (esp. on ia64) link data and code symbols differently,
4797 # so use this general approach.
4798 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4800 # Transform an extracted symbol line into symbol name and symbol address
4801 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4802 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'"
4804 # Handle CRLF in mingw tool chain
4808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4812 # Try without a prefix underscore, then with it.
4813 for ac_symprfx in "" "_"; do
4815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4816 symxfrm="\\1 $ac_symprfx\\2 \\2"
4818 # Write the raw and C identifiers.
4819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4820 # Fake it for dumpbin and say T for any non-static function
4821 # and D for any global variable.
4822 # Also find C++ and __fastcall symbols from MSVC++,
4823 # which start with @ or ?.
4824 lt_cv_sys_global_symbol_pipe="$AWK '"\
4825 " {last_section=section; section=\$ 3};"\
4826 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4827 " \$ 0!~/External *\|/{next};"\
4828 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4829 " {if(hide[section]) next};"\
4830 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4831 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4832 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4833 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4834 " ' prfx=^$ac_symprfx"
4836 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4839 # Check to see that the pipe works correctly.
4843 cat > conftest.$ac_ext <<_LT_EOF
4848 void nm_test_func(void);
4849 void nm_test_func(void){}
4853 int main(){nm_test_var='a';nm_test_func();return(0);}
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; then
4861 # Now try to grab the symbols.
4863 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4864 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && test -s "$nlist"; then
4868 # Try sorting and uniquifying the output.
4869 if sort "$nlist" | uniq > "$nlist"T; then
4870 mv -f "$nlist"T "$nlist"
4875 # Make sure that we snagged all the symbols we need.
4876 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4877 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4878 cat <<_LT_EOF > conftest.$ac_ext
4884 # Now generate the symbol file.
4885 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4887 cat <<_LT_EOF >> conftest.$ac_ext
4889 /* The mapping between symbol names and symbols. */
4894 lt__PROGRAM__LTX_preloaded_symbols[] =
4896 { "@PROGRAM@", (void *) 0 },
4898 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4899 cat <<\_LT_EOF >> conftest.$ac_ext
4903 /* This works around a problem in FreeBSD linker */
4904 #ifdef FREEBSD_WORKAROUND
4905 static const void *lt_preloaded_setup() {
4906 return lt__PROGRAM__LTX_preloaded_symbols;
4914 # Now try linking the two files.
4915 mv conftest.$ac_objext conftstm.$ac_objext
4916 lt_save_LIBS="$LIBS"
4917 lt_save_CFLAGS="$CFLAGS"
4918 LIBS="conftstm.$ac_objext"
4919 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4927 LIBS="$lt_save_LIBS"
4928 CFLAGS="$lt_save_CFLAGS"
4930 echo "cannot find nm_test_func in $nlist" >&5
4933 echo "cannot find nm_test_var in $nlist" >&5
4936 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4939 echo "$progname: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 rm -rf conftest* conftst*
4944 # Do not use the global_symbol_pipe unless it works.
4945 if test "$pipe_works" = yes; then
4948 lt_cv_sys_global_symbol_pipe=
4954 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4955 lt_cv_sys_global_symbol_to_cdecl=
4957 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4958 { echo "$as_me:$LINENO: result: failed" >&5
4959 echo "${ECHO_T}failed" >&6; }
4961 { echo "$as_me:$LINENO: result: ok" >&5
4962 echo "${ECHO_T}ok" >&6; }
4987 # Check whether --enable-libtool-lock was given.
4988 if test "${enable_libtool_lock+set}" = set; then
4989 enableval=$enable_libtool_lock;
4992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4994 # Some flags need to be propagated to the compiler or linker for good
4998 # Find out which ABI we are using.
4999 echo 'int i;' > conftest.$ac_ext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001 (eval $ac_compile) 2>&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; then
5005 case `/usr/bin/file conftest.$ac_objext` in
5017 # Find out which ABI we are using.
5018 echo '#line 5018 "configure"' > conftest.$ac_ext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020 (eval $ac_compile) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; then
5024 if test "$lt_cv_prog_gnu_ld" = yes; then
5025 case `/usr/bin/file conftest.$ac_objext` in
5027 LD="${LD-ld} -melf32bsmip"
5030 LD="${LD-ld} -melf32bmipn32"
5033 LD="${LD-ld} -melf64bmip"
5037 case `/usr/bin/file conftest.$ac_objext` in
5053 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5054 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5055 # Find out which ABI we are using.
5056 echo 'int i;' > conftest.$ac_ext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; then
5062 case `/usr/bin/file conftest.o` in
5065 x86_64-*kfreebsd*-gnu)
5066 LD="${LD-ld} -m elf_i386_fbsd"
5069 LD="${LD-ld} -m elf_i386"
5071 ppc64-*linux*|powerpc64-*linux*)
5072 LD="${LD-ld} -m elf32ppclinux"
5075 LD="${LD-ld} -m elf_s390"
5078 LD="${LD-ld} -m elf32_sparc"
5084 x86_64-*kfreebsd*-gnu)
5085 LD="${LD-ld} -m elf_x86_64_fbsd"
5088 LD="${LD-ld} -m elf_x86_64"
5090 ppc*-*linux*|powerpc*-*linux*)
5091 LD="${LD-ld} -m elf64ppc"
5093 s390*-*linux*|s390*-*tpf*)
5094 LD="${LD-ld} -m elf64_s390"
5097 LD="${LD-ld} -m elf64_sparc"
5107 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5108 SAVE_CFLAGS="$CFLAGS"
5109 CFLAGS="$CFLAGS -belf"
5110 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5111 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5112 if test "${lt_cv_cc_needs_belf+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (ac_try="$ac_link"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_link") 2>conftest.er1
5145 grep -v '^ *+' conftest.er1 >conftest.err
5147 cat conftest.err >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && {
5150 test -z "$ac_c_werror_flag" ||
5151 test ! -s conftest.err
5152 } && test -s conftest$ac_exeext &&
5153 $as_test_x conftest$ac_exeext; then
5154 lt_cv_cc_needs_belf=yes
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 lt_cv_cc_needs_belf=no
5162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5163 conftest$ac_exeext conftest.$ac_ext
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5172 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5173 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5174 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5175 CFLAGS="$SAVE_CFLAGS"
5179 # Find out which ABI we are using.
5180 echo 'int i;' > conftest.$ac_ext
5181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182 (eval $ac_compile) 2>&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); }; then
5186 case `/usr/bin/file conftest.o` in
5188 case $lt_cv_prog_gnu_ld in
5189 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5191 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5203 need_locks="$enable_libtool_lock"
5207 rhapsody* | darwin*)
5208 if test -n "$ac_tool_prefix"; then
5209 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5210 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 if test -n "$DSYMUTIL"; then
5217 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5237 if test -n "$DSYMUTIL"; then
5238 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5239 echo "${ECHO_T}$DSYMUTIL" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5247 if test -z "$ac_cv_prog_DSYMUTIL"; then
5248 ac_ct_DSYMUTIL=$DSYMUTIL
5249 # Extract the first word of "dsymutil", so it can be a program name with args.
5250 set dummy dsymutil; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$ac_ct_DSYMUTIL"; then
5257 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5277 if test -n "$ac_ct_DSYMUTIL"; then
5278 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5279 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5285 if test "x$ac_ct_DSYMUTIL" = x; then
5288 case $cross_compiling:$ac_tool_warned in
5290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5291 whose name does not start with the host triplet. If you think this
5292 configuration is useful to you, please write to autoconf@gnu.org." >&5
5293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5294 whose name does not start with the host triplet. If you think this
5295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5296 ac_tool_warned=yes ;;
5298 DSYMUTIL=$ac_ct_DSYMUTIL
5301 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5304 if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 if test -n "$NMEDIT"; then
5313 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 NMEDIT=$ac_cv_prog_NMEDIT
5333 if test -n "$NMEDIT"; then
5334 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5335 echo "${ECHO_T}$NMEDIT" >&6; }
5337 { echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6; }
5343 if test -z "$ac_cv_prog_NMEDIT"; then
5344 ac_ct_NMEDIT=$NMEDIT
5345 # Extract the first word of "nmedit", so it can be a program name with args.
5346 set dummy nmedit; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 if test -n "$ac_ct_NMEDIT"; then
5353 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5373 if test -n "$ac_ct_NMEDIT"; then
5374 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5375 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5377 { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5381 if test "x$ac_ct_NMEDIT" = x; then
5384 case $cross_compiling:$ac_tool_warned in
5386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet. If you think this
5388 configuration is useful to you, please write to autoconf@gnu.org." >&5
5389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet. If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5392 ac_tool_warned=yes ;;
5394 NMEDIT=$ac_ct_NMEDIT
5397 NMEDIT="$ac_cv_prog_NMEDIT"
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5405 if test "${ac_cv_prog_LIPO+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 if test -n "$LIPO"; then
5409 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 LIPO=$ac_cv_prog_LIPO
5429 if test -n "$LIPO"; then
5430 { echo "$as_me:$LINENO: result: $LIPO" >&5
5431 echo "${ECHO_T}$LIPO" >&6; }
5433 { echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6; }
5439 if test -z "$ac_cv_prog_LIPO"; then
5441 # Extract the first word of "lipo", so it can be a program name with args.
5442 set dummy lipo; ac_word=$2
5443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5445 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 if test -n "$ac_ct_LIPO"; then
5449 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_LIPO="lipo"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5469 if test -n "$ac_ct_LIPO"; then
5470 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5471 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5473 { echo "$as_me:$LINENO: result: no" >&5
5474 echo "${ECHO_T}no" >&6; }
5477 if test "x$ac_ct_LIPO" = x; then
5480 case $cross_compiling:$ac_tool_warned in
5482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5483 whose name does not start with the host triplet. If you think this
5484 configuration is useful to you, please write to autoconf@gnu.org." >&5
5485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5486 whose name does not start with the host triplet. If you think this
5487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5488 ac_tool_warned=yes ;;
5493 LIPO="$ac_cv_prog_LIPO"
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}otool; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_OTOOL+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if test -n "$OTOOL"; then
5505 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 OTOOL=$ac_cv_prog_OTOOL
5525 if test -n "$OTOOL"; then
5526 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5527 echo "${ECHO_T}$OTOOL" >&6; }
5529 { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5535 if test -z "$ac_cv_prog_OTOOL"; then
5537 # Extract the first word of "otool", so it can be a program name with args.
5538 set dummy otool; ac_word=$2
5539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 if test -n "$ac_ct_OTOOL"; then
5545 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_ac_ct_OTOOL="otool"
5555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5565 if test -n "$ac_ct_OTOOL"; then
5566 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5567 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5569 { echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6; }
5573 if test "x$ac_ct_OTOOL" = x; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet. If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet. If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned=yes ;;
5589 OTOOL="$ac_cv_prog_OTOOL"
5592 if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 if test -n "$OTOOL64"; then
5601 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 OTOOL64=$ac_cv_prog_OTOOL64
5621 if test -n "$OTOOL64"; then
5622 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5623 echo "${ECHO_T}$OTOOL64" >&6; }
5625 { echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6; }
5631 if test -z "$ac_cv_prog_OTOOL64"; then
5632 ac_ct_OTOOL64=$OTOOL64
5633 # Extract the first word of "otool64", so it can be a program name with args.
5634 set dummy otool64; ac_word=$2
5635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5637 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 if test -n "$ac_ct_OTOOL64"; then
5641 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_OTOOL64="otool64"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5661 if test -n "$ac_ct_OTOOL64"; then
5662 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5663 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5665 { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5669 if test "x$ac_ct_OTOOL64" = x; then
5672 case $cross_compiling:$ac_tool_warned in
5674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5675 whose name does not start with the host triplet. If you think this
5676 configuration is useful to you, please write to autoconf@gnu.org." >&5
5677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet. If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5680 ac_tool_warned=yes ;;
5682 OTOOL64=$ac_ct_OTOOL64
5685 OTOOL64="$ac_cv_prog_OTOOL64"
5714 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5715 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5716 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 lt_cv_apple_cc_single_mod=no
5720 if test -z "${LT_MULTI_MODULE}"; then
5721 # By default we will add the -single_module flag. You can override
5722 # by either setting the environment variable LT_MULTI_MODULE
5723 # non-empty at configure time, or by adding -multi_module to the
5725 rm -rf libconftest.dylib*
5726 echo "int foo(void){return 1;}" > conftest.c
5727 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5728 -dynamiclib -Wl,-single_module conftest.c" >&5
5729 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5730 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5732 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5733 lt_cv_apple_cc_single_mod=yes
5735 cat conftest.err >&5
5737 rm -rf libconftest.dylib*
5741 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5742 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5743 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5744 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5745 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 lt_cv_ld_exported_symbols_list=no
5749 save_LDFLAGS=$LDFLAGS
5750 echo "_main" > conftest.sym
5751 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_link") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_c_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest$ac_exeext &&
5784 $as_test_x conftest$ac_exeext; then
5785 lt_cv_ld_exported_symbols_list=yes
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 lt_cv_ld_exported_symbols_list=no
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794 conftest$ac_exeext conftest.$ac_ext
5795 LDFLAGS="$save_LDFLAGS"
5798 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5799 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5801 rhapsody* | darwin1.[012])
5802 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5804 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5805 darwin*) # darwin 5.x on
5806 # if running on 10.5 or later, the deployment target defaults
5807 # to the OS version, if on x86, and 10.4, the deployment
5808 # target defaults to 10.4. Don't you love it?
5809 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5810 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5813 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5815 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5819 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5820 _lt_dar_single_mod='$single_module'
5822 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5823 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5825 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5827 if test "$DSYMUTIL" != ":"; then
5828 _lt_dsymutil='~$DSYMUTIL $lib || :'
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5841 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5842 # On Suns, sometimes $CPP names a directory.
5843 if test -n "$CPP" && test -d "$CPP"; then
5846 if test -z "$CPP"; then
5847 if test "${ac_cv_prog_CPP+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 # Double quotes because CPP needs to be expanded
5851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5854 for ac_c_preproc_warn_flag in '' yes
5856 # Use a header file that comes with gcc, so configuring glibc
5857 # with a fresh cross-compiler works.
5858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 # <limits.h> exists even on freestanding compilers.
5860 # On the NeXT, cc -E runs the code through the compiler's parser,
5861 # not just through cpp. "Syntax error" is here to catch this case.
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5869 # include <limits.h>
5871 # include <assert.h>
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } >/dev/null && {
5888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889 test ! -s conftest.err
5893 echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 # Broken: fails on valid input.
5900 rm -f conftest.err conftest.$ac_ext
5902 # OK, works on sane cases. Now check whether nonexistent headers
5903 # can be detected and how.
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 #include <ac_nonexistent.h>
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } >/dev/null && {
5925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5928 # Broken: success on invalid input.
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 # Passes both tests.
5939 rm -f conftest.err conftest.$ac_ext
5942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943 rm -f conftest.err conftest.$ac_ext
5944 if $ac_preproc_ok; then
5956 { echo "$as_me:$LINENO: result: $CPP" >&5
5957 echo "${ECHO_T}$CPP" >&6; }
5959 for ac_c_preproc_warn_flag in '' yes
5961 # Use a header file that comes with gcc, so configuring glibc
5962 # with a fresh cross-compiler works.
5963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5964 # <limits.h> exists even on freestanding compilers.
5965 # On the NeXT, cc -E runs the code through the compiler's parser,
5966 # not just through cpp. "Syntax error" is here to catch this case.
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5974 # include <limits.h>
5976 # include <assert.h>
5980 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 # Broken: fails on valid input.
6005 rm -f conftest.err conftest.$ac_ext
6007 # OK, works on sane cases. Now check whether nonexistent headers
6008 # can be detected and how.
6009 cat >conftest.$ac_ext <<_ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 #include <ac_nonexistent.h>
6017 if { (ac_try="$ac_cpp conftest.$ac_ext"
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6025 grep -v '^ *+' conftest.er1 >conftest.err
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null && {
6030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6031 test ! -s conftest.err
6033 # Broken: success on invalid input.
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 # Passes both tests.
6044 rm -f conftest.err conftest.$ac_ext
6047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048 rm -f conftest.err conftest.$ac_ext
6049 if $ac_preproc_ok; then
6052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." >&5
6054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055 See \`config.log' for more details." >&2;}
6056 { (exit 1); exit 1; }; }
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_stdc+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6107 ac_cv_header_stdc=yes
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_header_stdc=no
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117 if test $ac_cv_header_stdc = yes; then
6118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "memchr" >/dev/null 2>&1; then
6132 ac_cv_header_stdc=no
6138 if test $ac_cv_header_stdc = yes; then
6139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150 $EGREP "free" >/dev/null 2>&1; then
6153 ac_cv_header_stdc=no
6159 if test $ac_cv_header_stdc = yes; then
6160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161 if test "$cross_compiling" = yes; then
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6172 #if ((' ' & 0x0FF) == 0x020)
6173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6176 # define ISLOWER(c) \
6177 (('a' <= (c) && (c) <= 'i') \
6178 || ('j' <= (c) && (c) <= 'r') \
6179 || ('s' <= (c) && (c) <= 'z'))
6180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6188 for (i = 0; i < 256; i++)
6189 if (XOR (islower (i), ISLOWER (i))
6190 || toupper (i) != TOUPPER (i))
6195 rm -f conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206 { (case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_try") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; }; then
6217 echo "$as_me: program exited with status $ac_status" >&5
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6222 ac_cv_header_stdc=no
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6230 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6231 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6232 if test $ac_cv_header_stdc = yes; then
6234 cat >>confdefs.h <<\_ACEOF
6235 #define STDC_HEADERS 1
6240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6251 inttypes.h stdint.h unistd.h
6253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6267 #include <$ac_header>
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_compile") 2>conftest.er1
6278 grep -v '^ *+' conftest.er1 >conftest.err
6280 cat conftest.err >&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); } && {
6283 test -z "$ac_c_werror_flag" ||
6284 test ! -s conftest.err
6285 } && test -s conftest.$ac_objext; then
6286 eval "$as_ac_Header=yes"
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 eval "$as_ac_Header=no"
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_res=`eval echo '${'$as_ac_Header'}'`
6297 { echo "$as_me:$LINENO: result: $ac_res" >&5
6298 echo "${ECHO_T}$ac_res" >&6; }
6299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6300 cat >>confdefs.h <<_ACEOF
6301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6310 for ac_header in dlfcn.h
6312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 cat >conftest.$ac_ext <<_ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 $ac_includes_default
6326 #include <$ac_header>
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.$ac_objext; then
6345 eval "$as_ac_Header=yes"
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6350 eval "$as_ac_Header=no"
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 ac_res=`eval echo '${'$as_ac_Header'}'`
6356 { echo "$as_me:$LINENO: result: $ac_res" >&5
6357 echo "${ECHO_T}$ac_res" >&6; }
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359 cat >>confdefs.h <<_ACEOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6370 enable_win32_dll=yes
6373 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6374 if test -n "$ac_tool_prefix"; then
6375 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}as; ac_word=$2
6377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6379 if test "${ac_cv_prog_AS+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 if test -n "$AS"; then
6383 ac_cv_prog_AS="$AS" # Let the user override the test.
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_prog_AS="${ac_tool_prefix}as"
6393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 if test -n "$AS"; then
6404 { echo "$as_me:$LINENO: result: $AS" >&5
6405 echo "${ECHO_T}$AS" >&6; }
6407 { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6413 if test -z "$ac_cv_prog_AS"; then
6415 # Extract the first word of "as", so it can be a program name with args.
6416 set dummy as; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 if test -n "$ac_ct_AS"; then
6423 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_ac_ct_AS="as"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6443 if test -n "$ac_ct_AS"; then
6444 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6445 echo "${ECHO_T}$ac_ct_AS" >&6; }
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6451 if test "x$ac_ct_AS" = x; then
6454 case $cross_compiling:$ac_tool_warned in
6456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet. If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&5
6459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet. If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462 ac_tool_warned=yes ;;
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 if test -n "$DLLTOOL"; then
6479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 DLLTOOL=$ac_cv_prog_DLLTOOL
6499 if test -n "$DLLTOOL"; then
6500 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6501 echo "${ECHO_T}$DLLTOOL" >&6; }
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6509 if test -z "$ac_cv_prog_DLLTOOL"; then
6510 ac_ct_DLLTOOL=$DLLTOOL
6511 # Extract the first word of "dlltool", so it can be a program name with args.
6512 set dummy dlltool; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 if test -n "$ac_ct_DLLTOOL"; then
6519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6539 if test -n "$ac_ct_DLLTOOL"; then
6540 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6541 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6547 if test "x$ac_ct_DLLTOOL" = x; then
6550 case $cross_compiling:$ac_tool_warned in
6552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6553 whose name does not start with the host triplet. If you think this
6554 configuration is useful to you, please write to autoconf@gnu.org." >&5
6555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet. If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6558 ac_tool_warned=yes ;;
6560 DLLTOOL=$ac_ct_DLLTOOL
6563 DLLTOOL="$ac_cv_prog_DLLTOOL"
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 if test -n "$OBJDUMP"; then
6575 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 OBJDUMP=$ac_cv_prog_OBJDUMP
6595 if test -n "$OBJDUMP"; then
6596 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6597 echo "${ECHO_T}$OBJDUMP" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6605 if test -z "$ac_cv_prog_OBJDUMP"; then
6606 ac_ct_OBJDUMP=$OBJDUMP
6607 # Extract the first word of "objdump", so it can be a program name with args.
6608 set dummy objdump; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$ac_ct_OBJDUMP"; then
6615 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6635 if test -n "$ac_ct_OBJDUMP"; then
6636 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6637 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6643 if test "x$ac_ct_OBJDUMP" = x; then
6646 case $cross_compiling:$ac_tool_warned in
6648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet. If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6656 OBJDUMP=$ac_ct_OBJDUMP
6659 OBJDUMP="$ac_cv_prog_OBJDUMP"
6665 test -z "$AS" && AS=as
6671 test -z "$DLLTOOL" && DLLTOOL=dlltool
6677 test -z "$OBJDUMP" && OBJDUMP=objdump
6689 # Check whether --enable-shared was given.
6690 if test "${enable_shared+set}" = set; then
6691 enableval=$enable_shared; p=${PACKAGE-default}
6693 yes) enable_shared=yes ;;
6694 no) enable_shared=no ;;
6697 # Look at the argument we got. We use all the common list separators.
6698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6699 for pkg in $enableval; do
6701 if test "X$pkg" = "X$p"; then
6720 # Check whether --enable-static was given.
6721 if test "${enable_static+set}" = set; then
6722 enableval=$enable_static; p=${PACKAGE-default}
6724 yes) enable_static=yes ;;
6725 no) enable_static=no ;;
6728 # Look at the argument we got. We use all the common list separators.
6729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6730 for pkg in $enableval; do
6732 if test "X$pkg" = "X$p"; then
6752 # Check whether --with-pic was given.
6753 if test "${with_pic+set}" = set; then
6754 withval=$with_pic; pic_mode="$withval"
6760 test -z "$pic_mode" && pic_mode=default
6768 # Check whether --enable-fast-install was given.
6769 if test "${enable_fast_install+set}" = set; then
6770 enableval=$enable_fast_install; p=${PACKAGE-default}
6772 yes) enable_fast_install=yes ;;
6773 no) enable_fast_install=no ;;
6775 enable_fast_install=no
6776 # Look at the argument we got. We use all the common list separators.
6777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6778 for pkg in $enableval; do
6780 if test "X$pkg" = "X$p"; then
6781 enable_fast_install=yes
6788 enable_fast_install=yes
6801 # This can be used to rebuild libtool when needed
6802 LIBTOOL_DEPS="$ltmain"
6804 # Always use our own libtool.
6805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6831 test -z "$LN_S" && LN_S="ln -s"
6846 if test -n "${ZSH_VERSION+set}" ; then
6847 setopt NO_GLOB_SUBST
6850 { echo "$as_me:$LINENO: checking for objdir" >&5
6851 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6852 if test "${lt_cv_objdir+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 rm -f .libs 2>/dev/null
6856 mkdir .libs 2>/dev/null
6857 if test -d .libs; then
6860 # MS-DOS does not allow filenames that begin with a dot.
6863 rmdir .libs 2>/dev/null
6865 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6866 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6867 objdir=$lt_cv_objdir
6873 cat >>confdefs.h <<_ACEOF
6874 #define LT_OBJDIR "$lt_cv_objdir/"
6895 # AIX sometimes has problems with the GCC collect2 program. For some
6896 # reason, if we set the COLLECT_NAMES environment variable, the problems
6897 # vanish in a puff of smoke.
6898 if test "X${COLLECT_NAMES+set}" != Xset; then
6900 export COLLECT_NAMES
6905 # Sed substitution that helps us do robust quoting. It backslashifies
6906 # metacharacters that are still active within double-quoted strings.
6907 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6909 # Same as above, but do not quote variable references.
6910 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6912 # Sed substitution to delay expansion of an escaped shell variable in a
6913 # double_quote_subst'ed string.
6914 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6916 # Sed substitution to delay expansion of an escaped single quote.
6917 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6919 # Sed substitution to avoid accidental globbing in evaled expressions
6920 no_glob_subst='s/\*/\\\*/g'
6924 can_build_shared=yes
6926 # All known linkers require a `.a' archive for static linking (except MSVC,
6927 # which needs '.lib').
6930 with_gnu_ld="$lt_cv_prog_gnu_ld"
6933 old_CFLAGS="$CFLAGS"
6935 # Set sane defaults for various variables
6936 test -z "$CC" && CC=cc
6937 test -z "$LTCC" && LTCC=$CC
6938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6939 test -z "$LD" && LD=ld
6940 test -z "$ac_objext" && ac_objext=o
6942 for cc_temp in $compiler""; do
6944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6950 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6953 # Only perform the check for file, if the check method requires it
6954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6955 case $deplibs_check_method in
6957 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6958 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6959 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961 echo $ECHO_N "(cached) $ECHO_C" >&6
6965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6968 lt_save_MAGIC_CMD="$MAGIC_CMD"
6969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971 for ac_dir in $ac_dummy; do
6973 test -z "$ac_dir" && ac_dir=.
6974 if test -f $ac_dir/${ac_tool_prefix}file; then
6975 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6976 if test -n "$file_magic_test_file"; then
6977 case $deplibs_check_method in
6979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982 $EGREP "$file_magic_regex" > /dev/null; then
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such. This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem. Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
7004 MAGIC_CMD="$lt_save_MAGIC_CMD"
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7014 { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7022 if test -z "$lt_cv_path_MAGIC_CMD"; then
7023 if test -n "$ac_tool_prefix"; then
7024 { echo "$as_me:$LINENO: checking for file" >&5
7025 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034 lt_save_MAGIC_CMD="$MAGIC_CMD"
7035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7037 for ac_dir in $ac_dummy; do
7039 test -z "$ac_dir" && ac_dir=.
7040 if test -f $ac_dir/file; then
7041 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7042 if test -n "$file_magic_test_file"; then
7043 case $deplibs_check_method in
7045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7046 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7048 $EGREP "$file_magic_regex" > /dev/null; then
7053 *** Warning: the command libtool uses to detect shared libraries,
7054 *** $file_magic_cmd, produces output that libtool cannot recognize.
7055 *** The result is that libtool may fail to recognize shared libraries
7056 *** as such. This will affect the creation of libtool libraries that
7057 *** depend on shared libraries, but programs linked with such libtool
7058 *** libraries will work regardless of this problem. Nevertheless, you
7059 *** may want to report the problem to your system manager and/or to
7060 *** bug-libtool@gnu.org
7070 MAGIC_CMD="$lt_save_MAGIC_CMD"
7075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7076 if test -n "$MAGIC_CMD"; then
7077 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7078 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7080 { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7094 # Use C for the default configuration in the libtool script
7098 ac_cpp='$CPP $CPPFLAGS'
7099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104 # Source file extension for C test sources.
7107 # Object file extension for compiled C test sources.
7111 # Code to be used in simple compile tests
7112 lt_simple_compile_test_code="int some_variable = 0;"
7114 # Code to be used in simple link tests
7115 lt_simple_link_test_code='int main(){return(0);}'
7123 # If no C compiler was specified, use CC.
7126 # If no C compiler flags were specified, use CFLAGS.
7127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7129 # Allow CC to be a program name with arguments.
7132 # Save the default compiler, since it gets overwritten when the other
7133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7134 compiler_DEFAULT=$CC
7136 # save warnings/boilerplate of simple test code
7137 ac_outfile=conftest.$ac_objext
7138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140 _lt_compiler_boilerplate=`cat conftest.err`
7143 ac_outfile=conftest.$ac_objext
7144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7146 _lt_linker_boilerplate=`cat conftest.err`
7151 ## There is no encapsulation within the following macros, do not change
7152 ## the running order or otherwise move them around unless you know exactly
7153 ## what you are doing...
7154 if test -n "$compiler"; then
7156 lt_prog_compiler_no_builtin_flag=
7158 if test "$GCC" = yes; then
7159 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7161 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7162 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7163 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 lt_cv_prog_compiler_rtti_exceptions=no
7167 ac_outfile=conftest.$ac_objext
7168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7169 lt_compiler_flag="-fno-rtti -fno-exceptions"
7170 # Insert the option either (1) after the last *FLAGS variable, or
7171 # (2) before a word containing "conftest.", or (3) at the end.
7172 # Note that $ac_compile itself does not contain backslashes and begins
7173 # with a dollar sign (not a hyphen), so the echo should work correctly.
7174 # The option is referenced via a variable to avoid confusing sed.
7175 lt_compile=`echo "$ac_compile" | $SED \
7176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7178 -e 's:$: $lt_compiler_flag:'`
7179 (eval echo "\"\$as_me:7179: $lt_compile\"" >&5)
7180 (eval "$lt_compile" 2>conftest.err)
7182 cat conftest.err >&5
7183 echo "$as_me:7183: \$? = $ac_status" >&5
7184 if (exit $ac_status) && test -s "$ac_outfile"; then
7185 # The compiler can only warn and ignore the option if not recognized
7186 # So say no if there are warnings other than the usual output.
7187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7190 lt_cv_prog_compiler_rtti_exceptions=yes
7196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7197 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7200 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7212 lt_prog_compiler_wl=
7213 lt_prog_compiler_pic=
7214 lt_prog_compiler_static=
7216 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7219 if test "$GCC" = yes; then
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_static='-static'
7225 # All AIX code is PIC.
7226 if test "$host_cpu" = ia64; then
7227 # AIX 5 now supports IA64 processor
7228 lt_prog_compiler_static='-Bstatic'
7235 # see comment about AmigaOS4 .so support
7236 lt_prog_compiler_pic='-fPIC'
7239 # FIXME: we need at least 68020 code to build shared libraries, but
7240 # adding the `-m68020' flag to GCC prevents building anything better,
7242 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7247 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7248 # PIC is the default for these OSes.
7251 mingw* | cygwin* | pw32* | os2* | cegcc*)
7252 # This hack is so that the source file can tell whether it is being
7253 # built for inclusion in a dll (and should export symbols for example).
7254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7255 # (--disable-auto-import) libraries
7256 lt_prog_compiler_pic='-DDLL_EXPORT'
7259 darwin* | rhapsody*)
7260 # PIC is the default on this platform
7261 # Common symbols not allowed in MH_DYLIB files
7262 lt_prog_compiler_pic='-fno-common'
7266 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7267 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7268 # sets the default TLS model and affects inlining.
7274 lt_prog_compiler_pic='-fPIC'
7280 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7281 # Instead, we relocate shared libraries at runtime.
7285 # Just because we use GCC doesn't mean we suddenly get shared libraries
7286 # on systems that don't support them.
7287 lt_prog_compiler_can_build_shared=no
7292 # QNX uses GNU C++, but need to define -shared option too, otherwise
7294 lt_prog_compiler_pic='-fPIC -shared'
7298 if test -d /usr/nec; then
7299 lt_prog_compiler_pic=-Kconform_pic
7304 lt_prog_compiler_pic='-fPIC'
7308 # PORTME Check for flag to pass linker flags through the system compiler.
7311 lt_prog_compiler_wl='-Wl,'
7312 if test "$host_cpu" = ia64; then
7313 # AIX 5 now supports IA64 processor
7314 lt_prog_compiler_static='-Bstatic'
7316 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7320 mingw* | cygwin* | pw32* | os2* | cegcc*)
7321 # This hack is so that the source file can tell whether it is being
7322 # built for inclusion in a dll (and should export symbols for example).
7323 lt_prog_compiler_pic='-DDLL_EXPORT'
7326 hpux9* | hpux10* | hpux11*)
7327 lt_prog_compiler_wl='-Wl,'
7328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7335 lt_prog_compiler_pic='+Z'
7338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7339 lt_prog_compiler_static='${wl}-a ${wl}archive'
7342 irix5* | irix6* | nonstopux*)
7343 lt_prog_compiler_wl='-Wl,'
7344 # PIC (with -KPIC) is the default.
7345 lt_prog_compiler_static='-non_shared'
7348 linux* | k*bsd*-gnu)
7349 case $cc_basename in
7350 # old Intel for x86_64 which still supported -KPIC.
7352 lt_prog_compiler_wl='-Wl,'
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-static'
7356 # icc used to be incompatible with GCC.
7357 # ICC 10 doesn't accept -KPIC any more.
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_pic='-fPIC'
7361 lt_prog_compiler_static='-static'
7363 # Lahey Fortran 8.1.
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='--shared'
7367 lt_prog_compiler_static='--static'
7369 pgcc* | pgf77* | pgf90* | pgf95*)
7370 # Portland Group compilers (*not* the Pentium gcc compiler,
7371 # which looks to be a dead project)
7372 lt_prog_compiler_wl='-Wl,'
7373 lt_prog_compiler_pic='-fpic'
7374 lt_prog_compiler_static='-Bstatic'
7377 lt_prog_compiler_wl='-Wl,'
7378 # All Alpha code is PIC.
7379 lt_prog_compiler_static='-non_shared'
7382 # IBM XL C 8.0/Fortran 10.1 on PPC
7383 lt_prog_compiler_wl='-Wl,'
7384 lt_prog_compiler_pic='-qpic'
7385 lt_prog_compiler_static='-qstaticlink'
7388 case `$CC -V 2>&1 | sed 5q` in
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7393 lt_prog_compiler_wl='-Wl,'
7396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7397 lt_prog_compiler_pic='-KPIC'
7398 lt_prog_compiler_static='-Bstatic'
7399 lt_prog_compiler_wl=''
7407 lt_prog_compiler_pic='-KPIC'
7408 lt_prog_compiler_static='-Bstatic'
7412 # QNX uses GNU C++, but need to define -shared option too, otherwise
7414 lt_prog_compiler_pic='-fPIC -shared'
7417 osf3* | osf4* | osf5*)
7418 lt_prog_compiler_wl='-Wl,'
7419 # All OSF/1 code is PIC.
7420 lt_prog_compiler_static='-non_shared'
7424 lt_prog_compiler_static='-non_shared'
7428 lt_prog_compiler_pic='-KPIC'
7429 lt_prog_compiler_static='-Bstatic'
7430 case $cc_basename in
7432 lt_prog_compiler_wl='-Qoption ld ';;
7434 lt_prog_compiler_wl='-Wl,';;
7439 lt_prog_compiler_wl='-Qoption ld '
7440 lt_prog_compiler_pic='-PIC'
7441 lt_prog_compiler_static='-Bstatic'
7444 sysv4 | sysv4.2uw2* | sysv4.3*)
7445 lt_prog_compiler_wl='-Wl,'
7446 lt_prog_compiler_pic='-KPIC'
7447 lt_prog_compiler_static='-Bstatic'
7451 if test -d /usr/nec ;then
7452 lt_prog_compiler_pic='-Kconform_pic'
7453 lt_prog_compiler_static='-Bstatic'
7457 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7458 lt_prog_compiler_wl='-Wl,'
7459 lt_prog_compiler_pic='-KPIC'
7460 lt_prog_compiler_static='-Bstatic'
7464 lt_prog_compiler_wl='-Wl,'
7465 lt_prog_compiler_can_build_shared=no
7469 lt_prog_compiler_pic='-pic'
7470 lt_prog_compiler_static='-Bstatic'
7474 lt_prog_compiler_can_build_shared=no
7480 # For platforms which do not support PIC, -DPIC is meaningless:
7482 lt_prog_compiler_pic=
7485 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7489 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7497 # Check to make sure the PIC flag actually works.
7499 if test -n "$lt_prog_compiler_pic"; then
7500 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7501 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7502 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 lt_cv_prog_compiler_pic_works=no
7506 ac_outfile=conftest.$ac_objext
7507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7508 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7509 # Insert the option either (1) after the last *FLAGS variable, or
7510 # (2) before a word containing "conftest.", or (3) at the end.
7511 # Note that $ac_compile itself does not contain backslashes and begins
7512 # with a dollar sign (not a hyphen), so the echo should work correctly.
7513 # The option is referenced via a variable to avoid confusing sed.
7514 lt_compile=`echo "$ac_compile" | $SED \
7515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7517 -e 's:$: $lt_compiler_flag:'`
7518 (eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
7519 (eval "$lt_compile" 2>conftest.err)
7521 cat conftest.err >&5
7522 echo "$as_me:7522: \$? = $ac_status" >&5
7523 if (exit $ac_status) && test -s "$ac_outfile"; then
7524 # The compiler can only warn and ignore the option if not recognized
7525 # So say no if there are warnings other than the usual output.
7526 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7529 lt_cv_prog_compiler_pic_works=yes
7535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7536 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7538 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7539 case $lt_prog_compiler_pic in
7541 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7544 lt_prog_compiler_pic=
7545 lt_prog_compiler_can_build_shared=no
7556 # Check to make sure the static flag actually works.
7558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7561 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 lt_cv_prog_compiler_static_works=no
7565 save_LDFLAGS="$LDFLAGS"
7566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7569 # The linker can only warn and ignore the option if not recognized
7570 # So say no if there are warnings
7571 if test -s conftest.err; then
7572 # Append any errors to the config.log.
7573 cat conftest.err 1>&5
7574 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576 if diff conftest.exp conftest.er2 >/dev/null; then
7577 lt_cv_prog_compiler_static_works=yes
7580 lt_cv_prog_compiler_static_works=yes
7584 LDFLAGS="$save_LDFLAGS"
7587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7588 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7590 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7593 lt_prog_compiler_static=
7602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7604 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 lt_cv_prog_compiler_c_o=no
7608 $RM -r conftest 2>/dev/null
7612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7614 lt_compiler_flag="-o out/conftest2.$ac_objext"
7615 # Insert the option either (1) after the last *FLAGS variable, or
7616 # (2) before a word containing "conftest.", or (3) at the end.
7617 # Note that $ac_compile itself does not contain backslashes and begins
7618 # with a dollar sign (not a hyphen), so the echo should work correctly.
7619 lt_compile=`echo "$ac_compile" | $SED \
7620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622 -e 's:$: $lt_compiler_flag:'`
7623 (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624 (eval "$lt_compile" 2>out/conftest.err)
7626 cat out/conftest.err >&5
7627 echo "$as_me:7627: \$? = $ac_status" >&5
7628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7630 # The compiler can only warn and ignore the option if not recognized
7631 # So say no if there are warnings
7632 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7635 lt_cv_prog_compiler_c_o=yes
7640 # SGI C++ compiler will create directory out/ii_files/ for
7641 # template instantiation
7642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7643 $RM out/* && rmdir out
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7657 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7658 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7659 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 lt_cv_prog_compiler_c_o=no
7663 $RM -r conftest 2>/dev/null
7667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7669 lt_compiler_flag="-o out/conftest2.$ac_objext"
7670 # Insert the option either (1) after the last *FLAGS variable, or
7671 # (2) before a word containing "conftest.", or (3) at the end.
7672 # Note that $ac_compile itself does not contain backslashes and begins
7673 # with a dollar sign (not a hyphen), so the echo should work correctly.
7674 lt_compile=`echo "$ac_compile" | $SED \
7675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7677 -e 's:$: $lt_compiler_flag:'`
7678 (eval echo "\"\$as_me:7678: $lt_compile\"" >&5)
7679 (eval "$lt_compile" 2>out/conftest.err)
7681 cat out/conftest.err >&5
7682 echo "$as_me:7682: \$? = $ac_status" >&5
7683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7685 # The compiler can only warn and ignore the option if not recognized
7686 # So say no if there are warnings
7687 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7690 lt_cv_prog_compiler_c_o=yes
7695 # SGI C++ compiler will create directory out/ii_files/ for
7696 # template instantiation
7697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7698 $RM out/* && rmdir out
7704 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7705 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7710 hard_links="nottested"
7711 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7712 # do not overwrite the value of need_locks provided by the user
7713 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7714 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7719 ln conftest.a conftest.b 2>&5 || hard_links=no
7720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7721 { echo "$as_me:$LINENO: result: $hard_links" >&5
7722 echo "${ECHO_T}$hard_links" >&6; }
7723 if test "$hard_links" = no; then
7724 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7725 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7737 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7738 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7741 allow_undefined_flag=
7742 always_export_symbols=no
7744 archive_expsym_cmds=
7745 compiler_needs_object=no
7746 enable_shared_with_static_runtimes=no
7747 export_dynamic_flag_spec=
7748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7749 hardcode_automatic=no
7751 hardcode_direct_absolute=no
7752 hardcode_libdir_flag_spec=
7753 hardcode_libdir_flag_spec_ld=
7754 hardcode_libdir_separator=
7756 hardcode_shlibpath_var=unsupported
7758 link_all_deplibs=unknown
7761 old_archive_from_new_cmds=
7762 old_archive_from_expsyms_cmds=
7763 thread_safe_flag_spec=
7764 whole_archive_flag_spec=
7765 # include_expsyms should be a list of space-separated symbols to be *always*
7766 # included in the symbol list
7768 # exclude_expsyms can be an extended regexp of symbols to exclude
7769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7771 # as well as any symbol that contains `d'.
7772 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7774 # platforms (ab)use it in PIC code, but their linkers get confused if
7775 # the symbol is explicitly referenced. Since portable code cannot
7776 # rely on this symbol name, it's probably fine to never include it in
7777 # preloaded symbol tables.
7778 # Exclude shared library initialization/finalization symbols.
7779 extract_expsyms_cmds=
7782 cygwin* | mingw* | pw32* | cegcc*)
7783 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7784 # When not using gcc, we currently assume that we are using
7785 # Microsoft Visual C++.
7786 if test "$GCC" != yes; then
7791 # we just hope/assume this is gcc and not c89 (= MSVC++)
7800 if test "$with_gnu_ld" = yes; then
7801 # If archive_cmds runs LD, not CC, wlarc should be empty
7804 # Set some defaults for GNU ld with shared library support. These
7805 # are reset later if shared libraries are not supported. Putting them
7806 # here allows them to be overridden if necessary.
7807 runpath_var=LD_RUN_PATH
7808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7809 export_dynamic_flag_spec='${wl}--export-dynamic'
7810 # ancient GNU ld didn't support --whole-archive et. al.
7811 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7812 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7814 whole_archive_flag_spec=
7816 supports_anon_versioning=no
7817 case `$LD -v 2>&1` in
7818 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7819 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7820 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7821 *\ 2.11.*) ;; # other 2.11 versions
7822 *) supports_anon_versioning=yes ;;
7825 # See if GNU ld supports shared libraries.
7828 # On AIX/PPC, the GNU linker is very broken
7829 if test "$host_cpu" != ia64; then
7833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7834 *** to be unable to reliably create shared libraries on AIX.
7835 *** Therefore, libtool is disabling shared libraries support. If you
7836 *** really care for shared libraries, you may want to modify your PATH
7837 *** so that a non-GNU linker is found, and then restart.
7846 # see comment about AmigaOS4 .so support
7847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7848 archive_expsym_cmds=''
7851 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)'
7852 hardcode_libdir_flag_spec='-L$libdir'
7853 hardcode_minus_L=yes
7859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7860 allow_undefined_flag=unsupported
7861 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7862 # support --undefined. This deserves some investigation. FIXME
7863 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7869 cygwin* | mingw* | pw32* | cegcc*)
7870 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7871 # as there is no search path for DLLs.
7872 hardcode_libdir_flag_spec='-L$libdir'
7873 allow_undefined_flag=unsupported
7874 always_export_symbols=no
7875 enable_shared_with_static_runtimes=yes
7876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7878 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7880 # If the export-symbols file already is a .def file (1st line
7881 # is EXPORTS), use it as is; otherwise, prepend...
7882 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7883 cp $export_symbols $output_objdir/$soname.def;
7885 echo EXPORTS > $output_objdir/$soname.def;
7886 cat $export_symbols >> $output_objdir/$soname.def;
7888 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7896 hardcode_shlibpath_var=no
7897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7898 export_dynamic_flag_spec='${wl}-E'
7899 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7900 # Instead, shared libraries are loaded at an image base (0x10000000 by
7901 # default) and relocated if they conflict, which is a slow very memory
7902 # consuming and fragmenting process. To avoid this, we pick a random,
7903 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7904 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7906 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'
7909 gnu* | linux* | tpf* | k*bsd*-gnu)
7911 if test "$host_os" = linux-dietlibc; then
7912 case $cc_basename in
7913 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7916 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7917 && test "$tmp_diet" = no
7920 tmp_sharedflag='-shared'
7921 case $cc_basename,$host_cpu in
7922 pgcc*) # Portland Group C compiler
7923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7924 tmp_addflag=' $pic_flag'
7926 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7927 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7928 tmp_addflag=' $pic_flag -Mnomain' ;;
7929 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7930 tmp_addflag=' -i_dynamic' ;;
7931 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7932 tmp_addflag=' -i_dynamic -nofor_main' ;;
7933 ifc* | ifort*) # Intel Fortran compiler
7934 tmp_addflag=' -nofor_main' ;;
7935 lf95*) # Lahey Fortran 8.1
7936 whole_archive_flag_spec=
7937 tmp_sharedflag='--shared' ;;
7938 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7939 tmp_sharedflag='-qmkshrobj'
7942 case `$CC -V 2>&1 | sed 5q` in
7943 *Sun\ C*) # Sun C 5.9
7944 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7945 compiler_needs_object=yes
7946 tmp_sharedflag='-G' ;;
7947 *Sun\ F*) # Sun Fortran 8.3
7948 tmp_sharedflag='-G' ;;
7950 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7952 if test "x$supports_anon_versioning" = xyes; then
7953 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7955 echo "local: *; };" >> $output_objdir/$libname.ver~
7956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7959 case $cc_basename in
7961 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7962 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7963 hardcode_libdir_flag_spec=
7964 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7965 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7966 if test "x$supports_anon_versioning" = xyes; then
7967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7969 echo "local: *; };" >> $output_objdir/$libname.ver~
7970 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7995 *** create shared libraries on Solaris systems. Therefore, libtool
7996 *** is disabling shared libraries support. We urge you to upgrade GNU
7997 *** binutils to release 2.9.1 or newer. Another option is to modify
7998 *** your PATH or compiler configuration so that the native linker is
7999 *** used, and then restart.
8002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8011 case `$LD -v 2>&1` in
8012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8017 *** reliably create shared libraries on SCO systems. Therefore, libtool
8018 *** is disabling shared libraries support. We urge you to upgrade GNU
8019 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8020 *** your PATH or compiler configuration so that the native linker is
8021 *** used, and then restart.
8026 # For security reasons, it is highly recommended that you always
8027 # use absolute paths for naming shared libraries, and exclude the
8028 # DT_RUNPATH tag from executables and libraries. But doing so
8029 # requires that you compile everything twice, which is a pain.
8030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_shlibpath_var=no
8049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8058 if test "$ld_shlibs" = no; then
8060 hardcode_libdir_flag_spec=
8061 export_dynamic_flag_spec=
8062 whole_archive_flag_spec=
8065 # PORTME fill in a description of your system's linker (not GNU ld)
8068 allow_undefined_flag=unsupported
8069 always_export_symbols=yes
8070 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'
8071 # Note: this linker hardcodes the directories in LIBPATH if there
8072 # are no directories specified by -L.
8073 hardcode_minus_L=yes
8074 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8075 # Neither direct hardcoding nor static linking is supported with a
8077 hardcode_direct=unsupported
8082 if test "$host_cpu" = ia64; then
8083 # On IA64, the linker does run time linking by default, so we don't
8084 # have to do anything special.
8085 aix_use_runtimelinking=no
8086 exp_sym_flag='-Bexport'
8089 # If we're using GNU nm, then we don't want the "-C" option.
8090 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8092 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8094 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'
8096 aix_use_runtimelinking=no
8098 # Test if we are trying to use run time linking or normal
8099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8100 # need to do runtime linking.
8101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8102 for ld_flag in $LDFLAGS; do
8103 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8104 aix_use_runtimelinking=yes
8111 exp_sym_flag='-bexport'
8112 no_entry_flag='-bnoentry'
8115 # When large executables or shared objects are built, AIX ld can
8116 # have problems creating the table of contents. If linking a library
8117 # or program results in "error TOC overflow" add -mminimal-toc to
8118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8123 hardcode_direct_absolute=yes
8124 hardcode_libdir_separator=':'
8125 link_all_deplibs=yes
8126 file_list_spec='${wl}-f,'
8128 if test "$GCC" = yes; then
8129 case $host_os in aix4.[012]|aix4.[012].*)
8130 # We only want to do this on AIX 4.2 and lower, the check
8131 # below for broken collect2 doesn't work under 4.3+
8132 collect2name=`${CC} -print-prog-name=collect2`
8133 if test -f "$collect2name" &&
8134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8136 # We have reworked collect2
8139 # We have old collect2
8140 hardcode_direct=unsupported
8141 # It fails to find uninstalled libraries when the uninstalled
8142 # path is not listed in the libpath. Setting hardcode_minus_L
8143 # to unsupported forces relinking
8144 hardcode_minus_L=yes
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_libdir_separator=
8150 shared_flag='-shared'
8151 if test "$aix_use_runtimelinking" = yes; then
8152 shared_flag="$shared_flag "'${wl}-G'
8156 if test "$host_cpu" = ia64; then
8157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8158 # chokes on -Wl,-G. The following line is correct:
8161 if test "$aix_use_runtimelinking" = yes; then
8162 shared_flag='${wl}-G'
8164 shared_flag='${wl}-bM:SRE'
8169 export_dynamic_flag_spec='${wl}-bexpall'
8170 # It seems that -bexpall does not export symbols beginning with
8171 # underscore (_), so it is better to generate a list of symbols to export.
8172 always_export_symbols=yes
8173 if test "$aix_use_runtimelinking" = yes; then
8174 # Warning - without using the other runtime loading flags (-brtl),
8175 # -berok will link without error, but may produce a broken library.
8176 allow_undefined_flag='-berok'
8177 # Determine the default libpath from the value encoded in an
8179 cat >conftest.$ac_ext <<_ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_link") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1 >conftest.err
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest$ac_exeext &&
8211 $as_test_x conftest$ac_exeext; then
8213 lt_aix_libpath_sed='
8214 /Import File Strings/,/^$/ {
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8221 # Check for a 64-bit object if we didn't find anything.
8222 if test -z "$aix_libpath"; then
8223 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8239 if test "$host_cpu" = ia64; then
8240 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241 allow_undefined_flag="-z nodefs"
8242 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"
8244 # Determine the default libpath from the value encoded in an
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_link") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest$ac_exeext &&
8278 $as_test_x conftest$ac_exeext; then
8280 lt_aix_libpath_sed='
8281 /Import File Strings/,/^$/ {
8287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8288 # Check for a 64-bit object if we didn't find anything.
8289 if test -z "$aix_libpath"; then
8290 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300 conftest$ac_exeext conftest.$ac_ext
8301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8303 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8304 # Warning - without using the other run time loading flags,
8305 # -berok will link without error, but may produce a broken library.
8306 no_undefined_flag=' ${wl}-bernotok'
8307 allow_undefined_flag=' ${wl}-berok'
8308 # Exported symbols can be pulled into shared objects from archives
8309 whole_archive_flag_spec='$convenience'
8310 archive_cmds_need_lc=yes
8311 # This is similar to how AIX traditionally builds its shared libraries.
8312 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'
8320 # see comment about AmigaOS4 .so support
8321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322 archive_expsym_cmds=''
8325 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)'
8326 hardcode_libdir_flag_spec='-L$libdir'
8327 hardcode_minus_L=yes
8333 export_dynamic_flag_spec=-rdynamic
8336 cygwin* | mingw* | pw32* | cegcc*)
8337 # When not using gcc, we currently assume that we are using
8338 # Microsoft Visual C++.
8339 # hardcode_libdir_flag_spec is actually meaningless, as there is
8340 # no search path for DLLs.
8341 hardcode_libdir_flag_spec=' '
8342 allow_undefined_flag=unsupported
8343 # Tell ltmain to make .lib files, not .a files.
8345 # Tell ltmain to make .dll files, not .so files.
8347 # FIXME: Setting linknames here is a bad hack.
8348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8349 # The linker will automatically build a .lib file if we build a DLL.
8350 old_archive_from_new_cmds='true'
8351 # FIXME: Should let the user specify the lib program.
8352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8353 fix_srcfile_path='`cygpath -w "$srcfile"`'
8354 enable_shared_with_static_runtimes=yes
8357 darwin* | rhapsody*)
8360 archive_cmds_need_lc=no
8362 hardcode_automatic=yes
8363 hardcode_shlibpath_var=unsupported
8364 whole_archive_flag_spec=''
8365 link_all_deplibs=yes
8366 allow_undefined_flag="$_lt_dar_allow_undefined"
8367 case $cc_basename in
8368 ifort*) _lt_dar_can_shared=yes ;;
8369 *) _lt_dar_can_shared=$GCC ;;
8371 if test "$_lt_dar_can_shared" = "yes"; then
8372 output_verbose_link_cmd=echo
8373 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8374 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8375 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}"
8376 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}"
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386 hardcode_libdir_flag_spec='-L$libdir'
8387 hardcode_shlibpath_var=no
8394 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8395 # support. Future versions do this automatically, but an explicit c++rt0.o
8396 # does not break anything, and helps significantly (at the cost of a little
8399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8400 hardcode_libdir_flag_spec='-R$libdir'
8402 hardcode_shlibpath_var=no
8405 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_minus_L=yes
8410 hardcode_shlibpath_var=no
8413 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8414 freebsd* | dragonfly*)
8415 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8416 hardcode_libdir_flag_spec='-R$libdir'
8418 hardcode_shlibpath_var=no
8422 if test "$GCC" = yes; then
8423 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8425 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'
8427 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8428 hardcode_libdir_separator=:
8431 # hardcode_minus_L: Not really in the search PATH,
8432 # but as the default location of the library.
8433 hardcode_minus_L=yes
8434 export_dynamic_flag_spec='${wl}-E'
8438 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8443 if test "$with_gnu_ld" = no; then
8444 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8445 hardcode_libdir_flag_spec_ld='+b $libdir'
8446 hardcode_libdir_separator=:
8448 hardcode_direct_absolute=yes
8449 export_dynamic_flag_spec='${wl}-E'
8450 # hardcode_minus_L: Not really in the search PATH,
8451 # but as the default location of the library.
8452 hardcode_minus_L=yes
8457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8460 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8472 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8482 if test "$with_gnu_ld" = no; then
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_separator=:
8489 hardcode_shlibpath_var=no
8493 hardcode_direct_absolute=yes
8494 export_dynamic_flag_spec='${wl}-E'
8496 # hardcode_minus_L: Not really in the search PATH,
8497 # but as the default location of the library.
8498 hardcode_minus_L=yes
8504 irix5* | irix6* | nonstopux*)
8505 if test "$GCC" = yes; then
8506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8507 # Try to use the -exported_symbol ld option, if it does not
8508 # work, assume that -exports_file does not work either and
8509 # implicitly export all symbols.
8510 save_LDFLAGS="$LDFLAGS"
8511 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8512 cat >conftest.$ac_ext <<_ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (ac_try="$ac_link"
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_link") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1 >conftest.err
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest$ac_exeext &&
8532 $as_test_x conftest$ac_exeext; then
8533 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8543 conftest$ac_exeext conftest.$ac_ext
8544 LDFLAGS="$save_LDFLAGS"
8546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8549 archive_cmds_need_lc='no'
8550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551 hardcode_libdir_separator=:
8553 link_all_deplibs=yes
8557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8562 hardcode_libdir_flag_spec='-R$libdir'
8564 hardcode_shlibpath_var=no
8568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8571 hardcode_libdir_separator=:
8572 hardcode_shlibpath_var=no
8579 if test -f /usr/libexec/ld.so; then
8581 hardcode_shlibpath_var=no
8582 hardcode_direct_absolute=yes
8583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587 export_dynamic_flag_spec='${wl}-E'
8590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8592 hardcode_libdir_flag_spec='-R$libdir'
8595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606 hardcode_libdir_flag_spec='-L$libdir'
8607 hardcode_minus_L=yes
8608 allow_undefined_flag=unsupported
8609 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'
8610 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8614 if test "$GCC" = yes; then
8615 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8616 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8618 allow_undefined_flag=' -expect_unresolved \*'
8619 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8621 archive_cmds_need_lc='no'
8622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623 hardcode_libdir_separator=:
8626 osf4* | osf5*) # as osf3* with the addition of -msym flag
8627 if test "$GCC" = yes; then
8628 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8632 allow_undefined_flag=' -expect_unresolved \*'
8633 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8634 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~
8635 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8637 # Both c and cxx compiler support -rpath directly
8638 hardcode_libdir_flag_spec='-rpath $libdir'
8640 archive_cmds_need_lc='no'
8641 hardcode_libdir_separator=:
8645 no_undefined_flag=' -z defs'
8646 if test "$GCC" = yes; then
8648 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8650 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8652 case `$CC -V 2>&1` in
8655 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8661 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8663 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8667 hardcode_libdir_flag_spec='-R$libdir'
8668 hardcode_shlibpath_var=no
8670 solaris2.[0-5] | solaris2.[0-5].*) ;;
8672 # The compiler driver will combine and reorder linker options,
8673 # but understands `-z linker_flag'. GCC discards it without `$wl',
8674 # but is careful enough not to reorder.
8675 # Supported since Solaris 2.6 (maybe 2.5.1?)
8676 if test "$GCC" = yes; then
8677 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8679 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8683 link_all_deplibs=yes
8687 if test "x$host_vendor" = xsequent; then
8688 # Use $CC to link under sequent, because it throws in some extra .o
8689 # files that make .init and .fini sections work.
8690 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8692 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8694 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_minus_L=yes
8697 hardcode_shlibpath_var=no
8701 case $host_vendor in
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_direct=yes # is this really true???
8707 ## LD is ld it makes a PLAMLIB
8708 ## CC just makes a GrossModule.
8709 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8710 reload_cmds='$CC -r -o $output$reload_objs'
8714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8718 runpath_var='LD_RUN_PATH'
8719 hardcode_shlibpath_var=no
8723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_shlibpath_var=no
8725 export_dynamic_flag_spec='-Bexport'
8729 if test -d /usr/nec; then
8730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731 hardcode_shlibpath_var=no
8732 runpath_var=LD_RUN_PATH
8733 hardcode_runpath_var=yes
8738 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8739 no_undefined_flag='${wl}-z,text'
8740 archive_cmds_need_lc=no
8741 hardcode_shlibpath_var=no
8742 runpath_var='LD_RUN_PATH'
8744 if test "$GCC" = yes; then
8745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 sysv5* | sco3.2v5* | sco5v6*)
8754 # Note: We can NOT use -z defs as we might desire, because we do not
8755 # link with -lc, and that would cause any symbols used from libc to
8756 # always be unresolved, which means just about no library would
8757 # ever link correctly. If we're not using GNU ld we use -z text
8758 # though, which does catch some bad symbols but isn't as heavy-handed
8760 no_undefined_flag='${wl}-z,text'
8761 allow_undefined_flag='${wl}-z,nodefs'
8762 archive_cmds_need_lc=no
8763 hardcode_shlibpath_var=no
8764 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8765 hardcode_libdir_separator=':'
8766 link_all_deplibs=yes
8767 export_dynamic_flag_spec='${wl}-Bexport'
8768 runpath_var='LD_RUN_PATH'
8770 if test "$GCC" = yes; then
8771 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8772 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-L$libdir'
8782 hardcode_shlibpath_var=no
8790 if test x$host_vendor = xsni; then
8792 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8793 export_dynamic_flag_spec='${wl}-Blargedynsym'
8799 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8800 echo "${ECHO_T}$ld_shlibs" >&6; }
8801 test "$ld_shlibs" = no && can_build_shared=no
8803 with_gnu_ld=$with_gnu_ld
8820 # Do we need to explicitly link libc?
8822 case "x$archive_cmds_need_lc" in
8824 # Assume -lc should be added
8825 archive_cmds_need_lc=yes
8827 if test "$enable_shared" = yes && test "$GCC" = yes; then
8828 case $archive_cmds in
8830 # FIXME: we may have to deal with multi-command sequences.
8833 # Test whether the compiler implicitly links with -lc since on some
8834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8835 # to ld, don't add -lc before -lgcc.
8836 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8837 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842 (eval $ac_compile) 2>&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } 2>conftest.err; then
8848 libobjs=conftest.$ac_objext
8850 wl=$lt_prog_compiler_wl
8851 pic_flag=$lt_prog_compiler_pic
8857 lt_save_allow_undefined_flag=$allow_undefined_flag
8858 allow_undefined_flag=
8859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }
8865 archive_cmds_need_lc=no
8867 archive_cmds_need_lc=yes
8869 allow_undefined_flag=$lt_save_allow_undefined_flag
8871 cat conftest.err 1>&5
8874 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8875 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9041 if test "$GCC" = yes; then
9043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9044 *) lt_awk_arg="/^libraries:/" ;;
9046 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9047 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9048 # if the path contains ";" then we assume it to be the separator
9049 # otherwise default to the standard path separator (i.e. ":") - it is
9050 # assumed that no part of a normal pathname contains ";" but that should
9051 # okay in the real world where ";" in dirpaths is itself problematic.
9052 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9056 # Ok, now we have the path, separated by spaces, we can step through it
9057 # and add multilib dir if necessary.
9058 lt_tmp_lt_search_path_spec=
9059 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9060 for lt_sys_path in $lt_search_path_spec; do
9061 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9064 test -d "$lt_sys_path" && \
9065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9068 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9069 BEGIN {RS=" "; FS="/|\n";} {
9072 for (lt_i = NF; lt_i > 0; lt_i--) {
9073 if ($lt_i != "" && $lt_i != ".") {
9074 if ($lt_i == "..") {
9077 if (lt_count == 0) {
9078 lt_foo="/" $lt_i lt_foo;
9085 if (lt_foo != "") { lt_freq[lt_foo]++; }
9086 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9088 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9093 libname_spec='lib$name'
9101 shlibpath_overrides_runpath=unknown
9103 dynamic_linker="$host_os ld.so"
9104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9105 need_lib_prefix=unknown
9106 hardcode_into_libs=no
9108 # when you set need_version to no, make sure it does not cause -set_version
9109 # flags to be left without arguments
9110 need_version=unknown
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9116 shlibpath_var=LIBPATH
9118 # AIX 3 has no versioning support, so we append a major version to the name.
9119 soname_spec='${libname}${release}${shared_ext}$major'
9126 hardcode_into_libs=yes
9127 if test "$host_cpu" = ia64; then
9128 # AIX 5 supports IA64
9129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9130 shlibpath_var=LD_LIBRARY_PATH
9132 # With GCC up to 2.95.x, collect2 would create an import file
9133 # for dependence libraries. The import file would start with
9134 # the line `#! .'. This would cause the generated library to
9135 # depend on `.', always an invalid library. This was fixed in
9136 # development snapshots of GCC prior to 3.0.
9138 aix4 | aix4.[01] | aix4.[01].*)
9139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9149 # soname into executable. Probably we can add versioning support to
9150 # collect2, so additional links can be useful in future.
9151 if test "$aix_use_runtimelinking" = yes; then
9152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9153 # instead of lib<name>.a to let people know that these are not
9154 # typical AIX shared libraries.
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 # We preserve .a as extension for shared libraries through AIX4.2
9158 # and later when we are not doing run time linking.
9159 library_names_spec='${libname}${release}.a $libname.a'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LIBPATH
9169 # Since July 2007 AmigaOS4 officially supports .so libraries.
9170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 library_names_spec='$libname.ixlibrary $libname.a'
9175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9176 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9182 library_names_spec='${libname}${shared_ext}'
9183 dynamic_linker="$host_os ld.so"
9184 shlibpath_var=LIBRARY_PATH
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9193 shlibpath_var=LD_LIBRARY_PATH
9194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9196 # the default ld.so.conf also contains /usr/contrib/lib and
9197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9198 # libtool to hard-code these into programs
9201 cygwin* | mingw* | pw32* | cegcc*)
9202 version_type=windows
9207 case $GCC,$host_os in
9208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9209 library_names_spec='$libname.dll.a'
9210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9211 postinstall_cmds='base_file=`basename \${file}`~
9212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9213 dldir=$destdir/`dirname \$dlpath`~
9214 test -d \$dldir || mkdir -p \$dldir~
9215 $install_prog $dir/$dlname \$dldir/$dlname~
9216 chmod a+x \$dldir/$dlname~
9217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9221 dlpath=$dir/\$dldll~
9223 shlibpath_overrides_runpath=yes
9227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9228 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9229 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9230 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9233 # MinGW DLLs use traditional 'lib' prefix
9234 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9235 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9236 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9238 # It is most probably a Windows format PATH printed by
9239 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9240 # path with ; separators, and with drive letters. We can handle the
9241 # drive letters (cygwin fileutils understands them), so leave them,
9242 # especially as we might pass files found there to a mingw objdump,
9243 # which wouldn't understand a cygwinified path. Ahh.
9244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9250 # pw32 DLLs use 'pw' prefix rather than 'lib'
9251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9260 dynamic_linker='Win32 ld.exe'
9261 # FIXME: first we should search . and the directory the executable is in
9265 darwin* | rhapsody*)
9266 dynamic_linker="$host_os dyld"
9270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9271 soname_spec='${libname}${release}${major}$shared_ext'
9272 shlibpath_overrides_runpath=yes
9273 shlibpath_var=DYLD_LIBRARY_PATH
9274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 shlibpath_var=LD_LIBRARY_PATH
9293 freebsd* | dragonfly*)
9294 # DragonFly does not have aout. When/if they implement a new
9295 # versioning mechanism, adjust this.
9296 if test -x /usr/bin/objformat; then
9297 objformat=`/usr/bin/objformat`
9300 freebsd[123]*) objformat=aout ;;
9304 version_type=freebsd-$objformat
9305 case $version_type in
9307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9316 shlibpath_var=LD_LIBRARY_PATH
9319 shlibpath_overrides_runpath=yes
9321 freebsd3.[01]* | freebsdelf3.[01]*)
9322 shlibpath_overrides_runpath=yes
9323 hardcode_into_libs=yes
9325 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9326 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9327 shlibpath_overrides_runpath=no
9328 hardcode_into_libs=yes
9330 *) # from 4.6 on, and DragonFly
9331 shlibpath_overrides_runpath=yes
9332 hardcode_into_libs=yes
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 shlibpath_var=LD_LIBRARY_PATH
9344 hardcode_into_libs=yes
9347 hpux9* | hpux10* | hpux11*)
9348 # Give a soname corresponding to the major version so that dld.sl refuses to
9349 # link against other versions.
9356 hardcode_into_libs=yes
9357 dynamic_linker="$host_os dld.so"
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 if test "X$HPUX_IA64_MODE" = X32; then
9363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9371 hardcode_into_libs=yes
9372 dynamic_linker="$host_os dld.sl"
9373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9382 dynamic_linker="$host_os dld.sl"
9383 shlibpath_var=SHLIB_PATH
9384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9389 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9390 postinstall_cmds='chmod 555 $lib'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=no
9402 hardcode_into_libs=yes
9405 irix5* | irix6* | nonstopux*)
9407 nonstopux*) version_type=nonstopux ;;
9409 if test "$lt_cv_prog_gnu_ld" = yes; then
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9420 irix5* | nonstopux*)
9424 case $LD in # libtool.m4 will add one of these switches to LD
9425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9426 libsuff= shlibsuff= libmagic=32-bit;;
9427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9428 libsuff=32 shlibsuff=N32 libmagic=N32;;
9429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9430 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9431 *) libsuff= shlibsuff= libmagic=never-match;;
9435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9436 shlibpath_overrides_runpath=no
9437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9439 hardcode_into_libs=yes
9442 # No shared lib support for Linux oldld, aout, or coff.
9443 linux*oldld* | linux*aout* | linux*coff*)
9447 # This must be Linux ELF.
9448 linux* | k*bsd*-gnu)
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath=no
9457 # Some binutils ld are patched to set DT_RUNPATH
9458 save_LDFLAGS=$LDFLAGS
9460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (ac_try="$ac_link"
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest$ac_exeext &&
9494 $as_test_x conftest$ac_exeext; then
9495 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9496 shlibpath_overrides_runpath=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LDFLAGS=$save_LDFLAGS
9511 # This implies no fast_install, which is unacceptable.
9512 # Some rework will be needed to allow for fast_install
9513 # before this can be enabled.
9514 hardcode_into_libs=yes
9516 # Append ld.so.conf contents to the search path
9517 if test -f /etc/ld.so.conf; then
9518 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;/^$/d' | tr '\n' ' '`
9519 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9522 # We used to test for /lib/ld.so.1 and disable shared libraries on
9523 # powerpc, because MkLinux only supported shared libraries with the
9524 # GNU dynamic linker. Since this was broken with cross compilers,
9525 # most powerpc-linux boxes support dynamic linking these days and
9526 # people can always --disable-shared, the test was removed, and we
9527 # assume the GNU/Linux dynamic linker is in use.
9528 dynamic_linker='GNU/Linux ld.so'
9535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9538 dynamic_linker='NetBSD (a.out) ld.so'
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 dynamic_linker='NetBSD ld.elf_so'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=yes
9546 hardcode_into_libs=yes
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=yes
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 soname_spec='${libname}${release}${shared_ext}$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=no
9564 hardcode_into_libs=yes
9565 dynamic_linker='ldqnx.so'
9570 sys_lib_dlsearch_path_spec="/usr/lib"
9572 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9574 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9575 *) need_version=no ;;
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9582 openbsd2.[89] | openbsd2.[89].*)
9583 shlibpath_overrides_runpath=no
9586 shlibpath_overrides_runpath=yes
9590 shlibpath_overrides_runpath=yes
9595 libname_spec='$name'
9598 library_names_spec='$libname${shared_ext} $libname.a'
9599 dynamic_linker='OS/2 ld.exe'
9600 shlibpath_var=LIBPATH
9603 osf3* | osf4* | osf5*)
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9611 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9626 hardcode_into_libs=yes
9627 # ldd complains unless libraries are executable
9628 postinstall_cmds='chmod +x $lib'
9633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9637 if test "$with_gnu_ld" = yes; then
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 case $host_vendor in
9650 shlibpath_overrides_runpath=no
9652 runpath_var=LD_RUN_PATH
9660 shlibpath_overrides_runpath=no
9661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9667 if test -d /usr/nec ;then
9669 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9670 soname_spec='$libname${shared_ext}.$major'
9671 shlibpath_var=LD_LIBRARY_PATH
9675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9676 version_type=freebsd-elf
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=yes
9683 hardcode_into_libs=yes
9684 if test "$with_gnu_ld" = yes; then
9685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9690 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9694 sys_lib_dlsearch_path_spec='/usr/lib'
9698 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9720 echo "${ECHO_T}$dynamic_linker" >&6; }
9721 test "$dynamic_linker" = no && can_build_shared=no
9723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9724 if test "$GCC" = yes; then
9725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9821 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9824 if test -n "$hardcode_libdir_flag_spec" ||
9825 test -n "$runpath_var" ||
9826 test "X$hardcode_automatic" = "Xyes" ; then
9828 # We can hardcode non-existent directories.
9829 if test "$hardcode_direct" != no &&
9830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9831 # have to relink, otherwise we might link with an installed library
9832 # when we should be linking with a yet-to-be-installed one
9833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9834 test "$hardcode_minus_L" != no; then
9835 # Linking always hardcodes the temporary library directory.
9836 hardcode_action=relink
9838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9839 hardcode_action=immediate
9842 # We cannot hardcode anything, or else we can only hardcode existing
9844 hardcode_action=unsupported
9846 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9847 echo "${ECHO_T}$hardcode_action" >&6; }
9849 if test "$hardcode_action" = relink ||
9850 test "$inherit_rpath" = yes; then
9851 # Fast installation is not supported
9852 enable_fast_install=no
9853 elif test "$shlibpath_overrides_runpath" = yes ||
9854 test "$enable_shared" = no; then
9855 # Fast installation is not necessary
9856 enable_fast_install=needless
9864 if test "x$enable_dlopen" != xyes; then
9865 enable_dlopen=unknown
9866 enable_dlopen_self=unknown
9867 enable_dlopen_self_static=unknown
9874 lt_cv_dlopen="load_add_on"
9876 lt_cv_dlopen_self=yes
9879 mingw* | pw32* | cegcc*)
9880 lt_cv_dlopen="LoadLibrary"
9885 lt_cv_dlopen="dlopen"
9890 # if libdl is installed we need to link against it
9891 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 ac_check_lib_save_LIBS=$LIBS
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_link") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest$ac_exeext &&
9937 $as_test_x conftest$ac_exeext; then
9938 ac_cv_lib_dl_dlopen=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_dl_dlopen=no
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9952 if test $ac_cv_lib_dl_dlopen = yes; then
9953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9958 lt_cv_dlopen_self=yes
9965 { echo "$as_me:$LINENO: checking for shl_load" >&5
9966 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_shl_load+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9978 #define shl_load innocuous_shl_load
9980 /* System header to define __stub macros and hopefully few prototypes,
9981 which can conflict with char shl_load (); below.
9982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9983 <limits.h> exists even on freestanding compilers. */
9986 # include <limits.h>
9988 # include <assert.h>
9993 /* Override any GCC internal prototype to avoid an error.
9994 Use char because int might match the return type of a GCC
9995 builtin and then its argument prototype would still apply. */
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined __stub_shl_load || defined __stub___shl_load
10010 return shl_load ();
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019 *) ac_try_echo=$ac_try;;
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022 (eval "$ac_link") 2>conftest.er1
10024 grep -v '^ *+' conftest.er1 >conftest.err
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } && {
10029 test -z "$ac_c_werror_flag" ||
10030 test ! -s conftest.err
10031 } && test -s conftest$ac_exeext &&
10032 $as_test_x conftest$ac_exeext; then
10033 ac_cv_func_shl_load=yes
10035 echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10038 ac_cv_func_shl_load=no
10041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042 conftest$ac_exeext conftest.$ac_ext
10044 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10046 if test $ac_cv_func_shl_load = yes; then
10047 lt_cv_dlopen="shl_load"
10049 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 ac_check_lib_save_LIBS=$LIBS
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10063 /* Override any GCC internal prototype to avoid an error.
10064 Use char because int might match the return type of a GCC
10065 builtin and then its argument prototype would still apply. */
10073 return shl_load ();
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (ac_try="$ac_link"
10080 case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_link") 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest$ac_exeext &&
10095 $as_test_x conftest$ac_exeext; then
10096 ac_cv_lib_dld_shl_load=yes
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 ac_cv_lib_dld_shl_load=no
10104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10110 if test $ac_cv_lib_dld_shl_load = yes; then
10111 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10113 { echo "$as_me:$LINENO: checking for dlopen" >&5
10114 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10115 if test "${ac_cv_func_dlopen+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10126 #define dlopen innocuous_dlopen
10128 /* System header to define __stub macros and hopefully few prototypes,
10129 which can conflict with char dlopen (); below.
10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131 <limits.h> exists even on freestanding compilers. */
10134 # include <limits.h>
10136 # include <assert.h>
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10148 /* The GNU C library defines this for functions which it implements
10149 to always fail with ENOSYS. Some functions are actually named
10150 something starting with __ and the normal name is an alias. */
10151 #if defined __stub_dlopen || defined __stub___dlopen
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1 >conftest.err
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
10181 ac_cv_func_dlopen=yes
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_cv_func_dlopen=no
10189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10190 conftest$ac_exeext conftest.$ac_ext
10192 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10193 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10194 if test $ac_cv_func_dlopen = yes; then
10195 lt_cv_dlopen="dlopen"
10197 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 ac_check_lib_save_LIBS=$LIBS
10204 cat >conftest.$ac_ext <<_ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10235 grep -v '^ *+' conftest.er1 >conftest.err
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest$ac_exeext &&
10243 $as_test_x conftest$ac_exeext; then
10244 ac_cv_lib_dl_dlopen=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_cv_lib_dl_dlopen=no
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10258 if test $ac_cv_lib_dl_dlopen = yes; then
10259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10261 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10262 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10264 echo $ECHO_N "(cached) $ECHO_C" >&6
10266 ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-lsvld $LIBS"
10268 cat >conftest.$ac_ext <<_ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10275 /* Override any GCC internal prototype to avoid an error.
10276 Use char because int might match the return type of a GCC
10277 builtin and then its argument prototype would still apply. */
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_link") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest$ac_exeext &&
10307 $as_test_x conftest$ac_exeext; then
10308 ac_cv_lib_svld_dlopen=yes
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_cv_lib_svld_dlopen=no
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10321 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10322 if test $ac_cv_lib_svld_dlopen = yes; then
10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10325 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS=$LIBS
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10349 return dld_link ();
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest$ac_exeext &&
10371 $as_test_x conftest$ac_exeext; then
10372 ac_cv_lib_dld_dld_link=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ac_cv_lib_dld_dld_link=no
10380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10385 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10386 if test $ac_cv_lib_dld_dld_link = yes; then
10387 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10408 if test "x$lt_cv_dlopen" != xno; then
10414 case $lt_cv_dlopen in
10416 save_CPPFLAGS="$CPPFLAGS"
10417 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10419 save_LDFLAGS="$LDFLAGS"
10420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10423 LIBS="$lt_cv_dlopen_libs $LIBS"
10425 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10426 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10427 if test "${lt_cv_dlopen_self+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 if test "$cross_compiling" = yes; then :
10431 lt_cv_dlopen_self=cross
10433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434 lt_status=$lt_dlunknown
10435 cat > conftest.$ac_ext <<_LT_EOF
10436 #line 10436 "configure"
10437 #include "confdefs.h"
10446 # define LT_DLGLOBAL RTLD_GLOBAL
10449 # define LT_DLGLOBAL DL_GLOBAL
10451 # define LT_DLGLOBAL 0
10455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456 find out it does not work in some platform. */
10457 #ifndef LT_DLLAZY_OR_NOW
10459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10462 # define LT_DLLAZY_OR_NOW DL_LAZY
10465 # define LT_DLLAZY_OR_NOW RTLD_NOW
10468 # define LT_DLLAZY_OR_NOW DL_NOW
10470 # define LT_DLLAZY_OR_NOW 0
10477 void fnord() { int i=42;}
10480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10481 int status = $lt_dlunknown;
10485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10486 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10487 /* dlclose (self); */
10495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496 (eval $ac_link) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10500 (./conftest; exit; ) >&5 2>/dev/null
10502 case x$lt_status in
10503 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10504 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10505 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10508 # compilation failed
10509 lt_cv_dlopen_self=no
10516 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10517 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10519 if test "x$lt_cv_dlopen_self" = xyes; then
10520 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10521 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10522 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10523 if test "${lt_cv_dlopen_self_static+set}" = set; then
10524 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 if test "$cross_compiling" = yes; then :
10527 lt_cv_dlopen_self_static=cross
10529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10530 lt_status=$lt_dlunknown
10531 cat > conftest.$ac_ext <<_LT_EOF
10532 #line 10532 "configure"
10533 #include "confdefs.h"
10542 # define LT_DLGLOBAL RTLD_GLOBAL
10545 # define LT_DLGLOBAL DL_GLOBAL
10547 # define LT_DLGLOBAL 0
10551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10552 find out it does not work in some platform. */
10553 #ifndef LT_DLLAZY_OR_NOW
10555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10558 # define LT_DLLAZY_OR_NOW DL_LAZY
10561 # define LT_DLLAZY_OR_NOW RTLD_NOW
10564 # define LT_DLLAZY_OR_NOW DL_NOW
10566 # define LT_DLLAZY_OR_NOW 0
10573 void fnord() { int i=42;}
10576 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10577 int status = $lt_dlunknown;
10581 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10582 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10583 /* dlclose (self); */
10591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592 (eval $ac_link) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10596 (./conftest; exit; ) >&5 2>/dev/null
10598 case x$lt_status in
10599 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10600 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10601 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10604 # compilation failed
10605 lt_cv_dlopen_self_static=no
10612 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10613 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10616 CPPFLAGS="$save_CPPFLAGS"
10617 LDFLAGS="$save_LDFLAGS"
10622 case $lt_cv_dlopen_self in
10623 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10624 *) enable_dlopen_self=unknown ;;
10627 case $lt_cv_dlopen_self_static in
10628 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10629 *) enable_dlopen_self_static=unknown ;;
10651 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10653 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10655 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10656 { echo "$as_me:$LINENO: result: yes" >&5
10657 echo "${ECHO_T}yes" >&6; }
10659 # FIXME - insert some real tests, host_os isn't really good enough
10662 if test -n "$STRIP" ; then
10663 striplib="$STRIP -x"
10664 old_striplib="$STRIP -S"
10665 { echo "$as_me:$LINENO: result: yes" >&5
10666 echo "${ECHO_T}yes" >&6; }
10668 { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10673 { echo "$as_me:$LINENO: result: no" >&5
10674 echo "${ECHO_T}no" >&6; }
10690 # Report which library types will actually be built
10691 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10692 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10693 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10694 echo "${ECHO_T}$can_build_shared" >&6; }
10696 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10697 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10698 test "$can_build_shared" = "no" && enable_shared=no
10700 # On AIX, shared libraries and static libraries use the same namespace, and
10701 # are all built from PIC.
10704 test "$enable_shared" = yes && enable_static=no
10705 if test -n "$RANLIB"; then
10706 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10707 postinstall_cmds='$RANLIB $lib'
10712 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10713 test "$enable_shared" = yes && enable_static=no
10717 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10718 echo "${ECHO_T}$enable_shared" >&6; }
10720 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10721 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10722 # Make sure either enable_shared or enable_static is yes.
10723 test "$enable_shared" = yes || enable_static=yes
10724 { echo "$as_me:$LINENO: result: $enable_static" >&5
10725 echo "${ECHO_T}$enable_static" >&6; }
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10751 ac_config_commands="$ac_config_commands libtool"
10756 # Only expand once:
10760 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
10761 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
10762 LT_REVISION=$SDL_INTERFACE_AGE
10763 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
10772 for ac_dir in build-scripts "$srcdir"/build-scripts; do
10773 if test -f "$ac_dir/install-sh"; then
10775 ac_install_sh="$ac_aux_dir/install-sh -c"
10777 elif test -f "$ac_dir/install.sh"; then
10779 ac_install_sh="$ac_aux_dir/install.sh -c"
10781 elif test -f "$ac_dir/shtool"; then
10783 ac_install_sh="$ac_aux_dir/shtool install -c"
10787 if test -z "$ac_aux_dir"; then
10788 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&5
10789 echo "$as_me: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&2;}
10790 { (exit 1); exit 1; }; }
10793 # These three variables are undocumented and unsupported,
10794 # and are intended to be withdrawn in a future Autoconf release.
10795 # They can cause serious problems if a builder's source tree is in a directory
10796 # whose full name contains unusual characters.
10797 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
10798 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
10799 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
10802 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10803 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
10804 if test "${ac_cv_c_bigendian+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 # See if sys/param.h defines the BYTE_ORDER macro.
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <sys/types.h>
10815 #include <sys/param.h>
10820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
10821 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
10822 bogus endian macros
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1 >conftest.err
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.$ac_objext; then
10846 # It does; now see whether it defined to BIG_ENDIAN or not.
10847 cat >conftest.$ac_ext <<_ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <sys/types.h>
10854 #include <sys/param.h>
10859 #if BYTE_ORDER != BIG_ENDIAN
10867 rm -f conftest.$ac_objext
10868 if { (ac_try="$ac_compile"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874 (eval "$ac_compile") 2>conftest.er1
10876 grep -v '^ *+' conftest.er1 >conftest.err
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest.$ac_objext; then
10884 ac_cv_c_bigendian=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_c_bigendian=no
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 # It does not; compile a test program.
10898 if test "$cross_compiling" = yes; then
10899 # try to guess the endianness by grepping values into an object file
10900 ac_cv_c_bigendian=unknown
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10908 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10909 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10910 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10911 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10912 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10916 _ascii (); _ebcdic ();
10921 rm -f conftest.$ac_objext
10922 if { (ac_try="$ac_compile"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_compile") 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest.$ac_objext; then
10938 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10939 ac_cv_c_bigendian=yes
10941 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10942 if test "$ac_cv_c_bigendian" = unknown; then
10943 ac_cv_c_bigendian=no
10945 # finding both strings is unlikely to happen, but who knows?
10946 ac_cv_c_bigendian=unknown
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 $ac_includes_default
10969 /* Are we little or big endian? From Harbison&Steele. */
10973 char c[sizeof (long int)];
10976 return u.c[sizeof (long int) - 1] == 1;
10982 rm -f conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_link") 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; }; then
11002 ac_cv_c_bigendian=no
11004 echo "$as_me: program exited with status $ac_status" >&5
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 ( exit $ac_status )
11009 ac_cv_c_bigendian=yes
11011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11020 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11021 case $ac_cv_c_bigendian in
11024 cat >>confdefs.h <<\_ACEOF
11025 #define WORDS_BIGENDIAN 1
11031 { { echo "$as_me:$LINENO: error: unknown endianness
11032 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11033 echo "$as_me: error: unknown endianness
11034 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11035 { (exit 1); exit 1; }; } ;;
11038 if test x$ac_cv_c_bigendian = xyes; then
11039 cat >>confdefs.h <<\_ACEOF
11040 #define SDL_BYTEORDER 4321
11044 cat >>confdefs.h <<\_ACEOF
11045 #define SDL_BYTEORDER 1234
11052 ac_cpp='$CPP $CPPFLAGS'
11053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11056 if test -n "$ac_tool_prefix"; then
11057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11061 if test "${ac_cv_prog_CC+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 if test -n "$CC"; then
11065 ac_cv_prog_CC="$CC" # Let the user override the test.
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11085 if test -n "$CC"; then
11086 { echo "$as_me:$LINENO: result: $CC" >&5
11087 echo "${ECHO_T}$CC" >&6; }
11089 { echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6; }
11095 if test -z "$ac_cv_prog_CC"; then
11097 # Extract the first word of "gcc", so it can be a program name with args.
11098 set dummy gcc; ac_word=$2
11099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 if test -n "$ac_ct_CC"; then
11105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_ac_ct_CC="gcc"
11115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11125 if test -n "$ac_ct_CC"; then
11126 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11127 echo "${ECHO_T}$ac_ct_CC" >&6; }
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11133 if test "x$ac_ct_CC" = x; then
11136 case $cross_compiling:$ac_tool_warned in
11138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11139 whose name does not start with the host triplet. If you think this
11140 configuration is useful to you, please write to autoconf@gnu.org." >&5
11141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11142 whose name does not start with the host triplet. If you think this
11143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11144 ac_tool_warned=yes ;;
11149 CC="$ac_cv_prog_CC"
11152 if test -z "$CC"; then
11153 if test -n "$ac_tool_prefix"; then
11154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11155 set dummy ${ac_tool_prefix}cc; ac_word=$2
11156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11158 if test "${ac_cv_prog_CC+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11161 if test -n "$CC"; then
11162 ac_cv_prog_CC="$CC" # Let the user override the test.
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11168 test -z "$as_dir" && as_dir=.
11169 for ac_exec_ext in '' $ac_executable_extensions; do
11170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171 ac_cv_prog_CC="${ac_tool_prefix}cc"
11172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 if test -n "$CC"; then
11183 { echo "$as_me:$LINENO: result: $CC" >&5
11184 echo "${ECHO_T}$CC" >&6; }
11186 { echo "$as_me:$LINENO: result: no" >&5
11187 echo "${ECHO_T}no" >&6; }
11193 if test -z "$CC"; then
11194 # Extract the first word of "cc", so it can be a program name with args.
11195 set dummy cc; ac_word=$2
11196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11198 if test "${ac_cv_prog_CC+set}" = set; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11201 if test -n "$CC"; then
11202 ac_cv_prog_CC="$CC" # Let the user override the test.
11204 ac_prog_rejected=no
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11209 test -z "$as_dir" && as_dir=.
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11213 ac_prog_rejected=yes
11217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 if test $ac_prog_rejected = yes; then
11225 # We found a bogon in the path, so make sure we never use it.
11226 set dummy $ac_cv_prog_CC
11228 if test $# != 0; then
11229 # We chose a different compiler from the bogus one.
11230 # However, it has the same basename, so the bogon will be chosen
11231 # first if we set CC to just the basename; use the full file name.
11233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11239 if test -n "$CC"; then
11240 { echo "$as_me:$LINENO: result: $CC" >&5
11241 echo "${ECHO_T}$CC" >&6; }
11243 { echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6; }
11249 if test -z "$CC"; then
11250 if test -n "$ac_tool_prefix"; then
11251 for ac_prog in cl.exe
11253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11257 if test "${ac_cv_prog_CC+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test -n "$CC"; then
11261 ac_cv_prog_CC="$CC" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 if test -n "$CC"; then
11282 { echo "$as_me:$LINENO: result: $CC" >&5
11283 echo "${ECHO_T}$CC" >&6; }
11285 { echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6; }
11290 test -n "$CC" && break
11293 if test -z "$CC"; then
11295 for ac_prog in cl.exe
11297 # Extract the first word of "$ac_prog", so it can be a program name with args.
11298 set dummy $ac_prog; ac_word=$2
11299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 if test -n "$ac_ct_CC"; then
11305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314 ac_cv_prog_ac_ct_CC="$ac_prog"
11315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11325 if test -n "$ac_ct_CC"; then
11326 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11327 echo "${ECHO_T}$ac_ct_CC" >&6; }
11329 { echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6; }
11334 test -n "$ac_ct_CC" && break
11337 if test "x$ac_ct_CC" = x; then
11340 case $cross_compiling:$ac_tool_warned in
11342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11343 whose name does not start with the host triplet. If you think this
11344 configuration is useful to you, please write to autoconf@gnu.org." >&5
11345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11346 whose name does not start with the host triplet. If you think this
11347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11348 ac_tool_warned=yes ;;
11357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11358 See \`config.log' for more details." >&5
11359 echo "$as_me: error: no acceptable C compiler found in \$PATH
11360 See \`config.log' for more details." >&2;}
11361 { (exit 1); exit 1; }; }
11363 # Provide some information about the compiler.
11364 echo "$as_me:$LINENO: checking for C compiler version" >&5
11365 ac_compiler=`set X $ac_compile; echo $2`
11366 { (ac_try="$ac_compiler --version >&5"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_compiler --version >&5") 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }
11376 { (ac_try="$ac_compiler -v >&5"
11377 case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compiler -v >&5") 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }
11386 { (ac_try="$ac_compiler -V >&5"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compiler -V >&5") 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }
11397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_compiler_gnu=yes
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11451 GCC=`test $ac_compiler_gnu = yes && echo yes`
11452 ac_test_CFLAGS=${CFLAGS+set}
11453 ac_save_CFLAGS=$CFLAGS
11454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11456 if test "${ac_cv_prog_cc_g+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 ac_save_c_werror_flag=$ac_c_werror_flag
11460 ac_c_werror_flag=yes
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485 (eval "$ac_compile") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } && {
11492 test -z "$ac_c_werror_flag" ||
11493 test ! -s conftest.err
11494 } && test -s conftest.$ac_objext; then
11495 ac_cv_prog_cc_g=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11516 rm -f conftest.$ac_objext
11517 if { (ac_try="$ac_compile"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_compile") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1 >conftest.err
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest.$ac_objext; then
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_c_werror_flag=$ac_save_c_werror_flag
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_compile") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1 >conftest.err
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest.$ac_objext; then
11572 ac_cv_prog_cc_g=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587 ac_c_werror_flag=$ac_save_c_werror_flag
11589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11591 if test "$ac_test_CFLAGS" = set; then
11592 CFLAGS=$ac_save_CFLAGS
11593 elif test $ac_cv_prog_cc_g = yes; then
11594 if test "$GCC" = yes; then
11600 if test "$GCC" = yes; then
11606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11608 if test "${ac_cv_prog_cc_c89+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 ac_cv_prog_cc_c89=no
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 #include <stdarg.h>
11621 #include <sys/types.h>
11622 #include <sys/stat.h>
11623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11624 struct buf { int x; };
11625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11626 static char *e (p, i)
11632 static char *f (char * (*g) (char **, int), char **p, ...)
11637 s = g (p, va_arg (v,int));
11642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11643 function prototypes and stuff, but not '\xHH' hex character constants.
11644 These don't provoke an error unfortunately, instead are silently treated
11645 as 'x'. The following induces an error, until -std is added to get
11646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11647 array size at least. It's necessary to write '\x00'==0 to get something
11648 that's true only with -std. */
11649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11652 inside strings and character constants. */
11654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11656 int test (int i, double x);
11657 struct s1 {int (*f) (int a);};
11658 struct s2 {int (*f) (double a);};
11659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11673 CC="$ac_save_CC $ac_arg"
11674 rm -f conftest.$ac_objext
11675 if { (ac_try="$ac_compile"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_compile") 2>conftest.er1
11683 grep -v '^ *+' conftest.er1 >conftest.err
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && {
11688 test -z "$ac_c_werror_flag" ||
11689 test ! -s conftest.err
11690 } && test -s conftest.$ac_objext; then
11691 ac_cv_prog_cc_c89=$ac_arg
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11699 rm -f core conftest.err conftest.$ac_objext
11700 test "x$ac_cv_prog_cc_c89" != "xno" && break
11702 rm -f conftest.$ac_ext
11707 case "x$ac_cv_prog_cc_c89" in
11709 { echo "$as_me:$LINENO: result: none needed" >&5
11710 echo "${ECHO_T}none needed" >&6; } ;;
11712 { echo "$as_me:$LINENO: result: unsupported" >&5
11713 echo "${ECHO_T}unsupported" >&6; } ;;
11715 CC="$CC $ac_cv_prog_cc_c89"
11716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11722 ac_cpp='$CPP $CPPFLAGS'
11723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11728 ac_cpp='$CXXCPP $CPPFLAGS'
11729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11732 if test -z "$CXX"; then
11733 if test -n "$CCC"; then
11736 if test -n "$ac_tool_prefix"; then
11737 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_CXX+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test -n "$CXX"; then
11747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766 CXX=$ac_cv_prog_CXX
11767 if test -n "$CXX"; then
11768 { echo "$as_me:$LINENO: result: $CXX" >&5
11769 echo "${ECHO_T}$CXX" >&6; }
11771 { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11776 test -n "$CXX" && break
11779 if test -z "$CXX"; then
11781 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11783 # Extract the first word of "$ac_prog", so it can be a program name with args.
11784 set dummy $ac_prog; ac_word=$2
11785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11787 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 if test -n "$ac_ct_CXX"; then
11791 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11797 test -z "$as_dir" && as_dir=.
11798 for ac_exec_ext in '' $ac_executable_extensions; do
11799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800 ac_cv_prog_ac_ct_CXX="$ac_prog"
11801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11811 if test -n "$ac_ct_CXX"; then
11812 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11813 echo "${ECHO_T}$ac_ct_CXX" >&6; }
11815 { echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6; }
11820 test -n "$ac_ct_CXX" && break
11823 if test "x$ac_ct_CXX" = x; then
11826 case $cross_compiling:$ac_tool_warned in
11828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11829 whose name does not start with the host triplet. If you think this
11830 configuration is useful to you, please write to autoconf@gnu.org." >&5
11831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11832 whose name does not start with the host triplet. If you think this
11833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11834 ac_tool_warned=yes ;;
11842 # Provide some information about the compiler.
11843 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11844 ac_compiler=`set X $ac_compile; echo $2`
11845 { (ac_try="$ac_compiler --version >&5"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compiler --version >&5") 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }
11855 { (ac_try="$ac_compiler -v >&5"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_compiler -v >&5") 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }
11865 { (ac_try="$ac_compiler -V >&5"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compiler -V >&5") 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }
11876 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11877 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11878 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 cat >conftest.$ac_ext <<_ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_compile") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && {
11913 test -z "$ac_cxx_werror_flag" ||
11914 test ! -s conftest.err
11915 } && test -s conftest.$ac_objext; then
11916 ac_compiler_gnu=yes
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11928 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11929 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11930 GXX=`test $ac_compiler_gnu = yes && echo yes`
11931 ac_test_CXXFLAGS=${CXXFLAGS+set}
11932 ac_save_CXXFLAGS=$CXXFLAGS
11933 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11934 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11935 if test "${ac_cv_prog_cxx_g+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11939 ac_cxx_werror_flag=yes
11940 ac_cv_prog_cxx_g=no
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11957 rm -f conftest.$ac_objext
11958 if { (ac_try="$ac_compile"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_compile") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } && {
11971 test -z "$ac_cxx_werror_flag" ||
11972 test ! -s conftest.err
11973 } && test -s conftest.$ac_objext; then
11974 ac_cv_prog_cxx_g=yes
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11995 rm -f conftest.$ac_objext
11996 if { (ac_try="$ac_compile"
11997 case "(($ac_try" in
11998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999 *) ac_try_echo=$ac_try;;
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002 (eval "$ac_compile") 2>conftest.er1
12004 grep -v '^ *+' conftest.er1 >conftest.err
12006 cat conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && {
12009 test -z "$ac_cxx_werror_flag" ||
12010 test ! -s conftest.err
12011 } && test -s conftest.$ac_objext; then
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12019 cat >conftest.$ac_ext <<_ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_compile") 2>conftest.er1
12043 grep -v '^ *+' conftest.er1 >conftest.err
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } && {
12048 test -z "$ac_cxx_werror_flag" ||
12049 test ! -s conftest.err
12050 } && test -s conftest.$ac_objext; then
12051 ac_cv_prog_cxx_g=yes
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12068 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12069 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12070 if test "$ac_test_CXXFLAGS" = set; then
12071 CXXFLAGS=$ac_save_CXXFLAGS
12072 elif test $ac_cv_prog_cxx_g = yes; then
12073 if test "$GXX" = yes; then
12079 if test "$GXX" = yes; then
12086 ac_cpp='$CPP $CPPFLAGS'
12087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12093 ac_cpp='$CXXCPP $CPPFLAGS'
12094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12097 if test -z "$CXX"; then
12098 if test -n "$CCC"; then
12101 if test -n "$ac_tool_prefix"; then
12102 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12108 if test "${ac_cv_prog_CXX+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 if test -n "$CXX"; then
12112 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12118 test -z "$as_dir" && as_dir=.
12119 for ac_exec_ext in '' $ac_executable_extensions; do
12120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 CXX=$ac_cv_prog_CXX
12132 if test -n "$CXX"; then
12133 { echo "$as_me:$LINENO: result: $CXX" >&5
12134 echo "${ECHO_T}$CXX" >&6; }
12136 { echo "$as_me:$LINENO: result: no" >&5
12137 echo "${ECHO_T}no" >&6; }
12141 test -n "$CXX" && break
12144 if test -z "$CXX"; then
12146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12148 # Extract the first word of "$ac_prog", so it can be a program name with args.
12149 set dummy $ac_prog; ac_word=$2
12150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12152 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 if test -n "$ac_ct_CXX"; then
12156 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12162 test -z "$as_dir" && as_dir=.
12163 for ac_exec_ext in '' $ac_executable_extensions; do
12164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165 ac_cv_prog_ac_ct_CXX="$ac_prog"
12166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12176 if test -n "$ac_ct_CXX"; then
12177 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12178 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12180 { echo "$as_me:$LINENO: result: no" >&5
12181 echo "${ECHO_T}no" >&6; }
12185 test -n "$ac_ct_CXX" && break
12188 if test "x$ac_ct_CXX" = x; then
12191 case $cross_compiling:$ac_tool_warned in
12193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12194 whose name does not start with the host triplet. If you think this
12195 configuration is useful to you, please write to autoconf@gnu.org." >&5
12196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12197 whose name does not start with the host triplet. If you think this
12198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12199 ac_tool_warned=yes ;;
12207 # Provide some information about the compiler.
12208 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12209 ac_compiler=`set X $ac_compile; echo $2`
12210 { (ac_try="$ac_compiler --version >&5"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compiler --version >&5") 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }
12220 { (ac_try="$ac_compiler -v >&5"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226 (eval "$ac_compiler -v >&5") 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }
12230 { (ac_try="$ac_compiler -V >&5"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compiler -V >&5") 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }
12241 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12242 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 cat >conftest.$ac_ext <<_ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_cxx_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.$ac_objext; then
12281 ac_compiler_gnu=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12293 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12294 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12295 GXX=`test $ac_compiler_gnu = yes && echo yes`
12296 ac_test_CXXFLAGS=${CXXFLAGS+set}
12297 ac_save_CXXFLAGS=$CXXFLAGS
12298 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12299 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12300 if test "${ac_cv_prog_cxx_g+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12304 ac_cxx_werror_flag=yes
12305 ac_cv_prog_cxx_g=no
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_cxx_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_prog_cxx_g=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_cxx_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.$ac_objext; then
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_compile") 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } && {
12413 test -z "$ac_cxx_werror_flag" ||
12414 test ! -s conftest.err
12415 } && test -s conftest.$ac_objext; then
12416 ac_cv_prog_cxx_g=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12433 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12434 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12435 if test "$ac_test_CXXFLAGS" = set; then
12436 CXXFLAGS=$ac_save_CXXFLAGS
12437 elif test $ac_cv_prog_cxx_g = yes; then
12438 if test "$GXX" = yes; then
12444 if test "$GXX" = yes; then
12451 ac_cpp='$CPP $CPPFLAGS'
12452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12458 (test "X$CXX" != "Xg++"))) ; then
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12464 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12465 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12466 if test -z "$CXXCPP"; then
12467 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 # Double quotes because CXXCPP needs to be expanded
12471 for CXXCPP in "$CXX -E" "/lib/cpp"
12473 ac_preproc_ok=false
12474 for ac_cxx_preproc_warn_flag in '' yes
12476 # Use a header file that comes with gcc, so configuring glibc
12477 # with a fresh cross-compiler works.
12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 # <limits.h> exists even on freestanding compilers.
12480 # On the NeXT, cc -E runs the code through the compiler's parser,
12481 # not just through cpp. "Syntax error" is here to catch this case.
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 # include <limits.h>
12491 # include <assert.h>
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } >/dev/null && {
12508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12509 test ! -s conftest.err
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 # Broken: fails on valid input.
12520 rm -f conftest.err conftest.$ac_ext
12522 # OK, works on sane cases. Now check whether nonexistent headers
12523 # can be detected and how.
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <ac_nonexistent.h>
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null && {
12545 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12546 test ! -s conftest.err
12548 # Broken: success on invalid input.
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 # Passes both tests.
12559 rm -f conftest.err conftest.$ac_ext
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12569 ac_cv_prog_CXXCPP=$CXXCPP
12572 CXXCPP=$ac_cv_prog_CXXCPP
12574 ac_cv_prog_CXXCPP=$CXXCPP
12576 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12577 echo "${ECHO_T}$CXXCPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_cxx_preproc_warn_flag in '' yes
12581 # Use a header file that comes with gcc, so configuring glibc
12582 # with a fresh cross-compiler works.
12583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 # <limits.h> exists even on freestanding compilers.
12585 # On the NeXT, cc -E runs the code through the compiler's parser,
12586 # not just through cpp. "Syntax error" is here to catch this case.
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 # include <limits.h>
12596 # include <assert.h>
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } >/dev/null && {
12613 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12614 test ! -s conftest.err
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 # Broken: fails on valid input.
12625 rm -f conftest.err conftest.$ac_ext
12627 # OK, works on sane cases. Now check whether nonexistent headers
12628 # can be detected and how.
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <ac_nonexistent.h>
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } >/dev/null && {
12650 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12651 test ! -s conftest.err
12653 # Broken: success on invalid input.
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 # Passes both tests.
12664 rm -f conftest.err conftest.$ac_ext
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12672 _lt_caught_CXX_error=yes
12676 ac_cpp='$CPP $CPPFLAGS'
12677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682 _lt_caught_CXX_error=yes
12689 ac_cpp='$CXXCPP $CPPFLAGS'
12690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12694 archive_cmds_need_lc_CXX=no
12695 allow_undefined_flag_CXX=
12696 always_export_symbols_CXX=no
12697 archive_expsym_cmds_CXX=
12698 compiler_needs_object_CXX=no
12699 export_dynamic_flag_spec_CXX=
12700 hardcode_direct_CXX=no
12701 hardcode_direct_absolute_CXX=no
12702 hardcode_libdir_flag_spec_CXX=
12703 hardcode_libdir_flag_spec_ld_CXX=
12704 hardcode_libdir_separator_CXX=
12705 hardcode_minus_L_CXX=no
12706 hardcode_shlibpath_var_CXX=unsupported
12707 hardcode_automatic_CXX=no
12708 inherit_rpath_CXX=no
12710 module_expsym_cmds_CXX=
12711 link_all_deplibs_CXX=unknown
12712 old_archive_cmds_CXX=$old_archive_cmds
12713 no_undefined_flag_CXX=
12714 whole_archive_flag_spec_CXX=
12715 enable_shared_with_static_runtimes_CXX=no
12717 # Source file extension for C++ test sources.
12720 # Object file extension for compiled C++ test sources.
12724 # No sense in running all these tests if we already determined that
12725 # the CXX compiler isn't working. Some variables (like enable_shared)
12726 # are currently assumed to apply to all compilers on this platform,
12727 # and will be corrupted by setting them based on a non-working compiler.
12728 if test "$_lt_caught_CXX_error" != yes; then
12729 # Code to be used in simple compile tests
12730 lt_simple_compile_test_code="int some_variable = 0;"
12732 # Code to be used in simple link tests
12733 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12735 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12742 # If no C compiler was specified, use CC.
12745 # If no C compiler flags were specified, use CFLAGS.
12746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12748 # Allow CC to be a program name with arguments.
12752 # save warnings/boilerplate of simple test code
12753 ac_outfile=conftest.$ac_objext
12754 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12756 _lt_compiler_boilerplate=`cat conftest.err`
12759 ac_outfile=conftest.$ac_objext
12760 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12762 _lt_linker_boilerplate=`cat conftest.err`
12766 # Allow CC to be a program name with arguments.
12771 lt_save_with_gnu_ld=$with_gnu_ld
12772 lt_save_path_LD=$lt_cv_path_LD
12773 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12774 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12776 $as_unset lt_cv_prog_gnu_ld
12778 if test -n "${lt_cv_path_LDCXX+set}"; then
12779 lt_cv_path_LD=$lt_cv_path_LDCXX
12781 $as_unset lt_cv_path_LD
12783 test -z "${LDCXX+set}" || LD=$LDCXX
12787 for cc_temp in $compiler""; do
12789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12795 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12798 if test -n "$compiler"; then
12799 # We don't want -fno-exception when compiling C++ code, so set the
12800 # no_builtin_flag separately
12801 if test "$GXX" = yes; then
12802 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12804 lt_prog_compiler_no_builtin_flag_CXX=
12807 if test "$GXX" = yes; then
12808 # Set up default GNU C++ configuration
12812 # Check whether --with-gnu-ld was given.
12813 if test "${with_gnu_ld+set}" = set; then
12814 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12820 if test "$GCC" = yes; then
12821 # Check if gcc -print-prog-name=ld gives a path.
12822 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12823 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12826 # gcc leaves a trailing carriage return which upsets mingw
12827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12832 # Accept absolute paths.
12834 re_direlt='/[^/][^/]*/\.\./'
12835 # Canonicalize the pathname of ld
12836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12840 test -z "$LD" && LD="$ac_prog"
12843 # If it fails, then pretend we aren't using GCC.
12847 # If it is relative, then search for the first ld in PATH.
12848 with_gnu_ld=unknown
12851 elif test "$with_gnu_ld" = yes; then
12852 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12853 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12855 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12856 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12858 if test "${lt_cv_path_LD+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 if test -z "$LD"; then
12862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12863 for ac_dir in $PATH; do
12865 test -z "$ac_dir" && ac_dir=.
12866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12867 lt_cv_path_LD="$ac_dir/$ac_prog"
12868 # Check to see if the program is GNU ld. I'd rather use --version,
12869 # but apparently some variants of GNU ld only accept -v.
12870 # Break only if it was the GNU/non-GNU ld that we prefer.
12871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12872 *GNU* | *'with BFD'*)
12873 test "$with_gnu_ld" != no && break
12876 test "$with_gnu_ld" != yes && break
12883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12887 LD="$lt_cv_path_LD"
12888 if test -n "$LD"; then
12889 { echo "$as_me:$LINENO: result: $LD" >&5
12890 echo "${ECHO_T}$LD" >&6; }
12892 { echo "$as_me:$LINENO: result: no" >&5
12893 echo "${ECHO_T}no" >&6; }
12895 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12896 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12897 { (exit 1); exit 1; }; }
12898 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12899 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12900 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12904 case `$LD -v 2>&1 </dev/null` in
12905 *GNU* | *'with BFD'*)
12906 lt_cv_prog_gnu_ld=yes
12909 lt_cv_prog_gnu_ld=no
12913 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12914 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12915 with_gnu_ld=$lt_cv_prog_gnu_ld
12923 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12924 # archiving commands below assume that GNU ld is being used.
12925 if test "$with_gnu_ld" = yes; then
12926 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12929 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12930 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12932 # If archive_cmds runs LD, not CC, wlarc should be empty
12933 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12934 # investigate it a little bit more. (MM)
12937 # ancient GNU ld didn't support --whole-archive et. al.
12938 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12939 $GREP 'no-whole-archive' > /dev/null; then
12940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12942 whole_archive_flag_spec_CXX=
12948 # A generic and very simple default shared library creation
12949 # command for GNU C++ for the case where it uses the native
12950 # linker, instead of GNU ld. If possible, this setting should
12951 # overridden to take advantage of the native linker features on
12952 # the platform it is being used on.
12953 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12956 # Commands to make compiler produce verbose output that lists
12957 # what "hidden" libraries, object files and flags are used when
12958 # linking a shared library.
12959 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12967 # PORTME: fill in a description of your system's C++ link characteristics
12968 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12973 # FIXME: insert proper C++ library support
12977 if test "$host_cpu" = ia64; then
12978 # On IA64, the linker does run time linking by default, so we don't
12979 # have to do anything special.
12980 aix_use_runtimelinking=no
12981 exp_sym_flag='-Bexport'
12984 aix_use_runtimelinking=no
12986 # Test if we are trying to use run time linking or normal
12987 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12988 # need to do runtime linking.
12989 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12990 for ld_flag in $LDFLAGS; do
12993 aix_use_runtimelinking=yes
13001 exp_sym_flag='-bexport'
13002 no_entry_flag='-bnoentry'
13005 # When large executables or shared objects are built, AIX ld can
13006 # have problems creating the table of contents. If linking a library
13007 # or program results in "error TOC overflow" add -mminimal-toc to
13008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13011 archive_cmds_CXX=''
13012 hardcode_direct_CXX=yes
13013 hardcode_direct_absolute_CXX=yes
13014 hardcode_libdir_separator_CXX=':'
13015 link_all_deplibs_CXX=yes
13016 file_list_spec_CXX='${wl}-f,'
13018 if test "$GXX" = yes; then
13019 case $host_os in aix4.[012]|aix4.[012].*)
13020 # We only want to do this on AIX 4.2 and lower, the check
13021 # below for broken collect2 doesn't work under 4.3+
13022 collect2name=`${CC} -print-prog-name=collect2`
13023 if test -f "$collect2name" &&
13024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13026 # We have reworked collect2
13029 # We have old collect2
13030 hardcode_direct_CXX=unsupported
13031 # It fails to find uninstalled libraries when the uninstalled
13032 # path is not listed in the libpath. Setting hardcode_minus_L
13033 # to unsupported forces relinking
13034 hardcode_minus_L_CXX=yes
13035 hardcode_libdir_flag_spec_CXX='-L$libdir'
13036 hardcode_libdir_separator_CXX=
13039 shared_flag='-shared'
13040 if test "$aix_use_runtimelinking" = yes; then
13041 shared_flag="$shared_flag "'${wl}-G'
13045 if test "$host_cpu" = ia64; then
13046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047 # chokes on -Wl,-G. The following line is correct:
13050 if test "$aix_use_runtimelinking" = yes; then
13051 shared_flag='${wl}-G'
13053 shared_flag='${wl}-bM:SRE'
13058 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to
13062 always_export_symbols_CXX=yes
13063 if test "$aix_use_runtimelinking" = yes; then
13064 # Warning - without using the other runtime loading flags (-brtl),
13065 # -berok will link without error, but may produce a broken library.
13066 allow_undefined_flag_CXX='-berok'
13067 # Determine the default libpath from the value encoded in an empty
13069 cat >conftest.$ac_ext <<_ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_link") 2>conftest.er1
13093 grep -v '^ *+' conftest.er1 >conftest.err
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_cxx_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest$ac_exeext &&
13101 $as_test_x conftest$ac_exeext; then
13103 lt_aix_libpath_sed='
13104 /Import File Strings/,/^$/ {
13110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111 # Check for a 64-bit object if we didn't find anything.
13112 if test -z "$aix_libpath"; then
13113 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13126 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13128 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13130 if test "$host_cpu" = ia64; then
13131 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13132 allow_undefined_flag_CXX="-z nodefs"
13133 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"
13135 # Determine the default libpath from the value encoded in an
13136 # empty executable.
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_cxx_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest$ac_exeext &&
13169 $as_test_x conftest$ac_exeext; then
13171 lt_aix_libpath_sed='
13172 /Import File Strings/,/^$/ {
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179 # Check for a 64-bit object if we didn't find anything.
13180 if test -z "$aix_libpath"; then
13181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13184 echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13191 conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13195 # Warning - without using the other run time loading flags,
13196 # -berok will link without error, but may produce a broken library.
13197 no_undefined_flag_CXX=' ${wl}-bernotok'
13198 allow_undefined_flag_CXX=' ${wl}-berok'
13199 # Exported symbols can be pulled into shared objects from archives
13200 whole_archive_flag_spec_CXX='$convenience'
13201 archive_cmds_need_lc_CXX=yes
13202 # This is similar to how AIX traditionally builds its shared
13204 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'
13210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13211 allow_undefined_flag_CXX=unsupported
13212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13213 # support --undefined. This deserves some investigation. FIXME
13214 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13221 case $cc_basename in
13223 # FIXME: insert proper C++ library support
13229 cygwin* | mingw* | pw32* | cegcc*)
13230 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13231 # as there is no search path for DLLs.
13232 hardcode_libdir_flag_spec_CXX='-L$libdir'
13233 allow_undefined_flag_CXX=unsupported
13234 always_export_symbols_CXX=no
13235 enable_shared_with_static_runtimes_CXX=yes
13237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13238 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'
13239 # If the export-symbols file already is a .def file (1st line
13240 # is EXPORTS), use it as is; otherwise, prepend...
13241 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13242 cp $export_symbols $output_objdir/$soname.def;
13244 echo EXPORTS > $output_objdir/$soname.def;
13245 cat $export_symbols >> $output_objdir/$soname.def;
13247 $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'
13252 darwin* | rhapsody*)
13255 archive_cmds_need_lc_CXX=no
13256 hardcode_direct_CXX=no
13257 hardcode_automatic_CXX=yes
13258 hardcode_shlibpath_var_CXX=unsupported
13259 whole_archive_flag_spec_CXX=''
13260 link_all_deplibs_CXX=yes
13261 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13262 case $cc_basename in
13263 ifort*) _lt_dar_can_shared=yes ;;
13264 *) _lt_dar_can_shared=$GCC ;;
13266 if test "$_lt_dar_can_shared" = "yes"; then
13267 output_verbose_link_cmd=echo
13268 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}"
13269 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13270 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}"
13271 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}"
13272 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13273 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}"
13274 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}"
13284 case $cc_basename in
13286 # FIXME: insert proper C++ library support
13290 # Green Hills C++ Compiler
13291 # FIXME: insert proper C++ library support
13295 # FIXME: insert proper C++ library support
13302 # C++ shared libraries reported to be fairly broken before
13308 archive_cmds_need_lc_CXX=no
13311 freebsd* | dragonfly*)
13312 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13322 hardcode_libdir_separator_CXX=:
13323 export_dynamic_flag_spec_CXX='${wl}-E'
13324 hardcode_direct_CXX=yes
13325 hardcode_minus_L_CXX=yes # Not in the search PATH,
13326 # but as the default
13327 # location of the library.
13329 case $cc_basename in
13331 # FIXME: insert proper C++ library support
13335 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'
13336 # Commands to make compiler produce verbose output that lists
13337 # what "hidden" libraries, object files and flags are used when
13338 # linking a shared library.
13340 # There doesn't appear to be a way to prevent this compiler from
13341 # explicitly linking system object files so we need to strip them
13342 # from the output so that they don't get included in the library
13344 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; $ECHO "X$list" | $Xsed'
13347 if test "$GXX" = yes; then
13348 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13350 # FIXME: insert proper C++ library support
13358 if test $with_gnu_ld = no; then
13359 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13360 hardcode_libdir_separator_CXX=:
13366 export_dynamic_flag_spec_CXX='${wl}-E'
13372 hardcode_direct_CXX=no
13373 hardcode_shlibpath_var_CXX=no
13376 hardcode_direct_CXX=yes
13377 hardcode_direct_absolute_CXX=yes
13378 hardcode_minus_L_CXX=yes # Not in the search PATH,
13379 # but as the default
13380 # location of the library.
13384 case $cc_basename in
13386 # FIXME: insert proper C++ library support
13392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13398 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13401 # Commands to make compiler produce verbose output that lists
13402 # what "hidden" libraries, object files and flags are used when
13403 # linking a shared library.
13405 # There doesn't appear to be a way to prevent this compiler from
13406 # explicitly linking system object files so we need to strip them
13407 # from the output so that they don't get included in the library
13409 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; $ECHO "X$list" | $Xsed'
13412 if test "$GXX" = yes; then
13413 if test $with_gnu_ld = no; then
13416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13419 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13422 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13427 # FIXME: insert proper C++ library support
13435 hardcode_direct_CXX=no
13436 hardcode_shlibpath_var_CXX=no
13437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438 export_dynamic_flag_spec_CXX='${wl}-E'
13439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13440 # Instead, shared libraries are loaded at an image base (0x10000000 by
13441 # default) and relocated if they conflict, which is a slow very memory
13442 # consuming and fragmenting process. To avoid this, we pick a random,
13443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13445 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'
13446 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'
13449 case $cc_basename in
13452 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13454 # Archives containing C++ object files must be created using
13455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13456 # necessary to make sure instantiated templates are included
13458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13461 if test "$GXX" = yes; then
13462 if test "$with_gnu_ld" = no; then
13463 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13465 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13468 link_all_deplibs_CXX=yes
13471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13472 hardcode_libdir_separator_CXX=:
13473 inherit_rpath_CXX=yes
13476 linux* | k*bsd*-gnu)
13477 case $cc_basename in
13479 # Kuck and Associates, Inc. (KAI) C++ Compiler
13481 # KCC will only create a shared library if the output file
13482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13483 # to its proper name (with version) after linking.
13484 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'
13485 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'
13486 # Commands to make compiler produce verbose output that lists
13487 # what "hidden" libraries, object files and flags are used when
13488 # linking a shared library.
13490 # There doesn't appear to be a way to prevent this compiler from
13491 # explicitly linking system object files so we need to strip them
13492 # from the output so that they don't get included in the library
13494 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; $ECHO "X$list" | $Xsed'
13496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13499 # Archives containing C++ object files must be created using
13500 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13506 # version 8.0 and above of icpc choke on multiply defined symbols
13507 # if we add $predep_objects and $postdep_objects, however 7.1 and
13508 # earlier do not add the objects themselves.
13509 case `$CC -V 2>&1` in
13511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 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'
13514 *) # Version 8.0 or newer
13517 ia64*) tmp_idyn=' -i_dynamic';;
13519 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 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'
13523 archive_cmds_need_lc_CXX=no
13524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13526 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13529 # Portland Group C++ compiler
13531 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13532 prelink_cmds_CXX='tpldir=Template.dir~
13534 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13535 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13536 old_archive_cmds_CXX='tpldir=Template.dir~
13538 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13539 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13541 archive_cmds_CXX='tpldir=Template.dir~
13543 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13544 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13545 archive_expsym_cmds_CXX='tpldir=Template.dir~
13547 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13548 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13550 *) # Version 6 will use weak symbols
13551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13552 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'
13556 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13558 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563 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'
13565 runpath_var=LD_RUN_PATH
13566 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13567 hardcode_libdir_separator_CXX=:
13569 # Commands to make compiler produce verbose output that lists
13570 # what "hidden" libraries, object files and flags are used when
13571 # linking a shared library.
13573 # There doesn't appear to be a way to prevent this compiler from
13574 # explicitly linking system object files so we need to strip them
13575 # from the output so that they don't get included in the library
13577 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13580 # IBM XL 8.0 on PPC, with GNU ld
13581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13583 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13584 if test "x$supports_anon_versioning" = xyes; then
13585 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13587 echo "local: *; };" >> $output_objdir/$libname.ver~
13588 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13592 case `$CC -V 2>&1 | sed 5q` in
13595 no_undefined_flag_CXX=' -zdefs'
13596 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13597 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'
13598 hardcode_libdir_flag_spec_CXX='-R$libdir'
13599 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13600 compiler_needs_object_CXX=yes
13602 # Not sure whether something based on
13603 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13605 output_verbose_link_cmd='echo'
13607 # Archives containing C++ object files must be created using
13608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13609 # necessary to make sure instantiated templates are included
13611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13619 # FIXME: insert proper C++ library support
13624 # FIXME: insert proper C++ library support
13629 case $cc_basename in
13631 # FIXME: insert proper C++ library support
13635 # FIXME: insert proper C++ library support
13642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13643 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13645 hardcode_libdir_flag_spec_CXX='-R$libdir'
13646 hardcode_direct_CXX=yes
13647 hardcode_shlibpath_var_CXX=no
13649 # Workaround some broken pre-1.5 toolchains
13650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13658 # C++ shared libraries are fairly broken
13663 if test -f /usr/libexec/ld.so; then
13664 hardcode_direct_CXX=yes
13665 hardcode_shlibpath_var_CXX=no
13666 hardcode_direct_absolute_CXX=yes
13667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13670 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13671 export_dynamic_flag_spec_CXX='${wl}-E'
13672 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13674 output_verbose_link_cmd=echo
13680 osf3* | osf4* | osf5*)
13681 case $cc_basename in
13683 # Kuck and Associates, Inc. (KAI) C++ Compiler
13685 # KCC will only create a shared library if the output file
13686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13687 # to its proper name (with version) after linking.
13688 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'
13690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691 hardcode_libdir_separator_CXX=:
13693 # Archives containing C++ object files must be created using
13694 # the KAI C++ compiler.
13696 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13697 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13701 # Rational C++ 2.4.1
13702 # FIXME: insert proper C++ library support
13708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13709 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13713 allow_undefined_flag_CXX=' -expect_unresolved \*'
13714 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13715 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13716 echo "-hidden">> $lib.exp~
13717 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13719 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13723 hardcode_libdir_separator_CXX=:
13725 # Commands to make compiler produce verbose output that lists
13726 # what "hidden" libraries, object files and flags are used when
13727 # linking a shared library.
13729 # There doesn't appear to be a way to prevent this compiler from
13730 # explicitly linking system object files so we need to strip them
13731 # from the output so that they don't get included in the library
13733 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13736 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13737 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13740 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13743 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13748 hardcode_libdir_separator_CXX=:
13750 # Commands to make compiler produce verbose output that lists
13751 # what "hidden" libraries, object files and flags are used when
13752 # linking a shared library.
13753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13756 # FIXME: insert proper C++ library support
13764 # FIXME: insert proper C++ library support
13769 case $cc_basename in
13772 # FIXME: insert proper C++ library support
13777 # FIXME: insert proper C++ library support
13781 # FIXME: insert proper C++ library support
13788 case $cc_basename in
13790 # Sun C++ 4.2, 5.x and Centerline C++
13791 archive_cmds_need_lc_CXX=yes
13792 no_undefined_flag_CXX=' -zdefs'
13793 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13794 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13795 $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'
13797 hardcode_libdir_flag_spec_CXX='-R$libdir'
13798 hardcode_shlibpath_var_CXX=no
13800 solaris2.[0-5] | solaris2.[0-5].*) ;;
13802 # The compiler driver will combine and reorder linker options,
13803 # but understands `-z linker_flag'.
13804 # Supported since Solaris 2.6 (maybe 2.5.1?)
13805 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13808 link_all_deplibs_CXX=yes
13810 output_verbose_link_cmd='echo'
13812 # Archives containing C++ object files must be created using
13813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13814 # necessary to make sure instantiated templates are included
13816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13819 # Green Hills C++ Compiler
13820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13822 # The C++ compiler must be used to create the archive.
13823 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13826 # GNU C++ compiler with Solaris linker
13827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13828 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13829 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13830 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13831 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13832 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13834 # Commands to make compiler produce verbose output that lists
13835 # what "hidden" libraries, object files and flags are used when
13836 # linking a shared library.
13837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13841 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13842 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13843 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13845 # Commands to make compiler produce verbose output that lists
13846 # what "hidden" libraries, object files and flags are used when
13847 # linking a shared library.
13848 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13851 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13853 solaris2.[0-5] | solaris2.[0-5].*) ;;
13855 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13864 no_undefined_flag_CXX='${wl}-z,text'
13865 archive_cmds_need_lc_CXX=no
13866 hardcode_shlibpath_var_CXX=no
13867 runpath_var='LD_RUN_PATH'
13869 case $cc_basename in
13871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881 sysv5* | sco3.2v5* | sco5v6*)
13882 # Note: We can NOT use -z defs as we might desire, because we do not
13883 # link with -lc, and that would cause any symbols used from libc to
13884 # always be unresolved, which means just about no library would
13885 # ever link correctly. If we're not using GNU ld we use -z text
13886 # though, which does catch some bad symbols but isn't as heavy-handed
13888 no_undefined_flag_CXX='${wl}-z,text'
13889 allow_undefined_flag_CXX='${wl}-z,nodefs'
13890 archive_cmds_need_lc_CXX=no
13891 hardcode_shlibpath_var_CXX=no
13892 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13893 hardcode_libdir_separator_CXX=':'
13894 link_all_deplibs_CXX=yes
13895 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13896 runpath_var='LD_RUN_PATH'
13898 case $cc_basename in
13900 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13901 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13904 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 case $cc_basename in
13913 # NonStop-UX NCC 3.20
13914 # FIXME: insert proper C++ library support
13918 # FIXME: insert proper C++ library support
13925 # FIXME: insert proper C++ library support
13930 # FIXME: insert proper C++ library support
13935 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13936 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13937 test "$ld_shlibs_CXX" = no && can_build_shared=no
13943 ## There is no encapsulation within the following macros, do not change
13944 ## the running order or otherwise move them around unless you know exactly
13945 ## what you are doing...
13946 # Dependencies to place before and after the object being linked:
13947 predep_objects_CXX=
13948 postdep_objects_CXX=
13951 compiler_lib_search_path_CXX=
13953 cat > conftest.$ac_ext <<_LT_EOF
13957 Foo (void) { a = 0; }
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964 (eval $ac_compile) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; then
13968 # Parse the compiler output and extract the necessary
13969 # objects, libraries and library flags.
13971 # Sentinel used to keep track of whether or not we are before
13972 # the conftest object file.
13973 pre_test_object_deps_done=no
13975 for p in `eval "$output_verbose_link_cmd"`; do
13979 # Some compilers place space between "-{L,R}" and the path.
13980 # Remove the space.
13981 if test $p = "-L" ||
13982 test $p = "-R"; then
13989 if test "$pre_test_object_deps_done" = no; then
13992 # Internal compiler library paths should come after those
13993 # provided the user. The postdeps already come after the
13994 # user supplied libs so there is no need to process them.
13995 if test -z "$compiler_lib_search_path_CXX"; then
13996 compiler_lib_search_path_CXX="${prev}${p}"
13998 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14001 # The "-l" case would never come before the object being
14002 # linked, so don't bother handling this case.
14005 if test -z "$postdeps_CXX"; then
14006 postdeps_CXX="${prev}${p}"
14008 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14014 # This assumes that the test object file only shows up
14015 # once in the compiler output.
14016 if test "$p" = "conftest.$objext"; then
14017 pre_test_object_deps_done=yes
14021 if test "$pre_test_object_deps_done" = no; then
14022 if test -z "$predep_objects_CXX"; then
14023 predep_objects_CXX="$p"
14025 predep_objects_CXX="$predep_objects_CXX $p"
14028 if test -z "$postdep_objects_CXX"; then
14029 postdep_objects_CXX="$p"
14031 postdep_objects_CXX="$postdep_objects_CXX $p"
14036 *) ;; # Ignore the rest.
14044 echo "libtool.m4: error: problem compiling CXX test program"
14047 $RM -f confest.$objext
14049 # PORTME: override above test on systems where it is broken
14052 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14053 # hack all around it, let's just trust "g++" to DTRT.
14054 predep_objects_CXX=
14055 postdep_objects_CXX=
14060 case `$CC -V 2>&1 | sed 5q` in
14064 # The more standards-conforming stlport4 library is
14065 # incompatible with the Cstd library. Avoid specifying
14066 # it if it's in CXXFLAGS. Ignore libCrun as
14067 # -library=stlport4 depends on it.
14068 case " $CXX $CXXFLAGS " in
14069 *" -library=stlport4 "*)
14070 solaris_use_stlport4=yes
14074 if test "$solaris_use_stlport4" != yes; then
14075 postdeps_CXX='-library=Cstd -library=Crun'
14082 case $cc_basename in
14084 # The more standards-conforming stlport4 library is
14085 # incompatible with the Cstd library. Avoid specifying
14086 # it if it's in CXXFLAGS. Ignore libCrun as
14087 # -library=stlport4 depends on it.
14088 case " $CXX $CXXFLAGS " in
14089 *" -library=stlport4 "*)
14090 solaris_use_stlport4=yes
14094 # Adding this requires a known-good setup of shared libraries for
14095 # Sun compiler versions before 5.6, else PIC objects from an old
14096 # archive will be linked into the output, leading to subtle bugs.
14097 if test "$solaris_use_stlport4" != yes; then
14098 postdeps_CXX='-library=Cstd -library=Crun'
14106 case " $postdeps_CXX " in
14107 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14109 compiler_lib_search_dirs_CXX=
14110 if test -n "${compiler_lib_search_path_CXX}"; then
14111 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14144 lt_prog_compiler_wl_CXX=
14145 lt_prog_compiler_pic_CXX=
14146 lt_prog_compiler_static_CXX=
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14151 # C++ specific cases for pic, static, wl, etc.
14152 if test "$GXX" = yes; then
14153 lt_prog_compiler_wl_CXX='-Wl,'
14154 lt_prog_compiler_static_CXX='-static'
14158 # All AIX code is PIC.
14159 if test "$host_cpu" = ia64; then
14160 # AIX 5 now supports IA64 processor
14161 lt_prog_compiler_static_CXX='-Bstatic'
14168 # see comment about AmigaOS4 .so support
14169 lt_prog_compiler_pic_CXX='-fPIC'
14172 # FIXME: we need at least 68020 code to build shared libraries, but
14173 # adding the `-m68020' flag to GCC prevents building anything better,
14175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14181 # PIC is the default for these OSes.
14183 mingw* | cygwin* | os2* | pw32* | cegcc*)
14184 # This hack is so that the source file can tell whether it is being
14185 # built for inclusion in a dll (and should export symbols for example).
14186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14187 # (--disable-auto-import) libraries
14188 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14190 darwin* | rhapsody*)
14191 # PIC is the default on this platform
14192 # Common symbols not allowed in MH_DYLIB files
14193 lt_prog_compiler_pic_CXX='-fno-common'
14196 # DJGPP does not support shared libraries at all
14197 lt_prog_compiler_pic_CXX=
14200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14201 # Instead, we relocate shared libraries at runtime.
14204 if test -d /usr/nec; then
14205 lt_prog_compiler_pic_CXX=-Kconform_pic
14209 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14210 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14211 # sets the default TLS model and affects inlining.
14216 lt_prog_compiler_pic_CXX='-fPIC'
14221 # QNX uses GNU C++, but need to define -shared option too, otherwise
14222 # it will coredump.
14223 lt_prog_compiler_pic_CXX='-fPIC -shared'
14226 lt_prog_compiler_pic_CXX='-fPIC'
14232 # All AIX code is PIC.
14233 if test "$host_cpu" = ia64; then
14234 # AIX 5 now supports IA64 processor
14235 lt_prog_compiler_static_CXX='-Bstatic'
14237 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14241 case $cc_basename in
14243 # Green Hills C++ Compiler
14244 # _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"
14249 case $cc_basename in
14251 lt_prog_compiler_pic_CXX='-KPIC'
14254 # Green Hills C++ Compiler
14255 lt_prog_compiler_pic_CXX='-pic'
14261 freebsd* | dragonfly*)
14262 # FreeBSD uses GNU C++
14264 hpux9* | hpux10* | hpux11*)
14265 case $cc_basename in
14267 lt_prog_compiler_wl_CXX='-Wl,'
14268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14269 if test "$host_cpu" != ia64; then
14270 lt_prog_compiler_pic_CXX='+Z'
14274 lt_prog_compiler_wl_CXX='-Wl,'
14275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14281 lt_prog_compiler_pic_CXX='+Z'
14290 # This is c89, which is MS Visual C++ (no shared libs)
14291 # Anyone wants to do a port?
14293 irix5* | irix6* | nonstopux*)
14294 case $cc_basename in
14296 lt_prog_compiler_wl_CXX='-Wl,'
14297 lt_prog_compiler_static_CXX='-non_shared'
14298 # CC pic flag -KPIC is the default.
14304 linux* | k*bsd*-gnu)
14305 case $cc_basename in
14308 lt_prog_compiler_wl_CXX='--backend -Wl,'
14309 lt_prog_compiler_pic_CXX='-fPIC'
14312 # old Intel C++ for x86_64 which still supported -KPIC.
14313 lt_prog_compiler_wl_CXX='-Wl,'
14314 lt_prog_compiler_pic_CXX='-KPIC'
14315 lt_prog_compiler_static_CXX='-static'
14318 # Intel C++, used to be incompatible with GCC.
14319 # ICC 10 doesn't accept -KPIC any more.
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 lt_prog_compiler_pic_CXX='-fPIC'
14322 lt_prog_compiler_static_CXX='-static'
14325 # Portland Group C++ compiler
14326 lt_prog_compiler_wl_CXX='-Wl,'
14327 lt_prog_compiler_pic_CXX='-fpic'
14328 lt_prog_compiler_static_CXX='-Bstatic'
14332 # Make sure the PIC flag is empty. It appears that all Alpha
14333 # Linux and Compaq Tru64 Unix objects are PIC.
14334 lt_prog_compiler_pic_CXX=
14335 lt_prog_compiler_static_CXX='-non_shared'
14338 # IBM XL 8.0 on PPC
14339 lt_prog_compiler_wl_CXX='-Wl,'
14340 lt_prog_compiler_pic_CXX='-qpic'
14341 lt_prog_compiler_static_CXX='-qstaticlink'
14344 case `$CC -V 2>&1 | sed 5q` in
14347 lt_prog_compiler_pic_CXX='-KPIC'
14348 lt_prog_compiler_static_CXX='-Bstatic'
14349 lt_prog_compiler_wl_CXX='-Qoption ld '
14360 case $cc_basename in
14362 lt_prog_compiler_pic_CXX='-W c,exportall'
14371 # QNX uses GNU C++, but need to define -shared option too, otherwise
14372 # it will coredump.
14373 lt_prog_compiler_pic_CXX='-fPIC -shared'
14375 osf3* | osf4* | osf5*)
14376 case $cc_basename in
14378 lt_prog_compiler_wl_CXX='--backend -Wl,'
14381 # Rational C++ 2.4.1
14382 lt_prog_compiler_pic_CXX='-pic'
14385 # Digital/Compaq C++
14386 lt_prog_compiler_wl_CXX='-Wl,'
14387 # Make sure the PIC flag is empty. It appears that all Alpha
14388 # Linux and Compaq Tru64 Unix objects are PIC.
14389 lt_prog_compiler_pic_CXX=
14390 lt_prog_compiler_static_CXX='-non_shared'
14399 case $cc_basename in
14401 # Sun C++ 4.2, 5.x and Centerline C++
14402 lt_prog_compiler_pic_CXX='-KPIC'
14403 lt_prog_compiler_static_CXX='-Bstatic'
14404 lt_prog_compiler_wl_CXX='-Qoption ld '
14407 # Green Hills C++ Compiler
14408 lt_prog_compiler_pic_CXX='-PIC'
14415 case $cc_basename in
14418 lt_prog_compiler_pic_CXX='-pic'
14419 lt_prog_compiler_static_CXX='-Bstatic'
14423 lt_prog_compiler_pic_CXX='-pic'
14429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14430 case $cc_basename in
14432 lt_prog_compiler_wl_CXX='-Wl,'
14433 lt_prog_compiler_pic_CXX='-KPIC'
14434 lt_prog_compiler_static_CXX='-Bstatic'
14439 case $cc_basename in
14441 # NonStop-UX NCC 3.20
14442 lt_prog_compiler_pic_CXX='-KPIC'
14451 lt_prog_compiler_can_build_shared_CXX=no
14457 # For platforms which do not support PIC, -DPIC is meaningless:
14459 lt_prog_compiler_pic_CXX=
14462 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14466 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14471 # Check to make sure the PIC flag actually works.
14473 if test -n "$lt_prog_compiler_pic_CXX"; then
14474 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14476 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 lt_cv_prog_compiler_pic_works_CXX=no
14480 ac_outfile=conftest.$ac_objext
14481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14482 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14483 # Insert the option either (1) after the last *FLAGS variable, or
14484 # (2) before a word containing "conftest.", or (3) at the end.
14485 # Note that $ac_compile itself does not contain backslashes and begins
14486 # with a dollar sign (not a hyphen), so the echo should work correctly.
14487 # The option is referenced via a variable to avoid confusing sed.
14488 lt_compile=`echo "$ac_compile" | $SED \
14489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14491 -e 's:$: $lt_compiler_flag:'`
14492 (eval echo "\"\$as_me:14492: $lt_compile\"" >&5)
14493 (eval "$lt_compile" 2>conftest.err)
14495 cat conftest.err >&5
14496 echo "$as_me:14496: \$? = $ac_status" >&5
14497 if (exit $ac_status) && test -s "$ac_outfile"; then
14498 # The compiler can only warn and ignore the option if not recognized
14499 # So say no if there are warnings other than the usual output.
14500 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14503 lt_cv_prog_compiler_pic_works_CXX=yes
14509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14512 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14513 case $lt_prog_compiler_pic_CXX in
14515 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14518 lt_prog_compiler_pic_CXX=
14519 lt_prog_compiler_can_build_shared_CXX=no
14527 # Check to make sure the static flag actually works.
14529 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14530 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14532 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 lt_cv_prog_compiler_static_works_CXX=no
14536 save_LDFLAGS="$LDFLAGS"
14537 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14540 # The linker can only warn and ignore the option if not recognized
14541 # So say no if there are warnings
14542 if test -s conftest.err; then
14543 # Append any errors to the config.log.
14544 cat conftest.err 1>&5
14545 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547 if diff conftest.exp conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler_static_works_CXX=yes
14551 lt_cv_prog_compiler_static_works_CXX=yes
14555 LDFLAGS="$save_LDFLAGS"
14558 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14559 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14561 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14564 lt_prog_compiler_static_CXX=
14570 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14572 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 lt_cv_prog_compiler_c_o_CXX=no
14576 $RM -r conftest 2>/dev/null
14580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14582 lt_compiler_flag="-o out/conftest2.$ac_objext"
14583 # Insert the option either (1) after the last *FLAGS variable, or
14584 # (2) before a word containing "conftest.", or (3) at the end.
14585 # Note that $ac_compile itself does not contain backslashes and begins
14586 # with a dollar sign (not a hyphen), so the echo should work correctly.
14587 lt_compile=`echo "$ac_compile" | $SED \
14588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590 -e 's:$: $lt_compiler_flag:'`
14591 (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592 (eval "$lt_compile" 2>out/conftest.err)
14594 cat out/conftest.err >&5
14595 echo "$as_me:14595: \$? = $ac_status" >&5
14596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14598 # The compiler can only warn and ignore the option if not recognized
14599 # So say no if there are warnings
14600 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14603 lt_cv_prog_compiler_c_o_CXX=yes
14608 # SGI C++ compiler will create directory out/ii_files/ for
14609 # template instantiation
14610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14611 $RM out/* && rmdir out
14617 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14618 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14622 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14623 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14624 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 lt_cv_prog_compiler_c_o_CXX=no
14628 $RM -r conftest 2>/dev/null
14632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14634 lt_compiler_flag="-o out/conftest2.$ac_objext"
14635 # Insert the option either (1) after the last *FLAGS variable, or
14636 # (2) before a word containing "conftest.", or (3) at the end.
14637 # Note that $ac_compile itself does not contain backslashes and begins
14638 # with a dollar sign (not a hyphen), so the echo should work correctly.
14639 lt_compile=`echo "$ac_compile" | $SED \
14640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642 -e 's:$: $lt_compiler_flag:'`
14643 (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644 (eval "$lt_compile" 2>out/conftest.err)
14646 cat out/conftest.err >&5
14647 echo "$as_me:14647: \$? = $ac_status" >&5
14648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14650 # The compiler can only warn and ignore the option if not recognized
14651 # So say no if there are warnings
14652 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14655 lt_cv_prog_compiler_c_o_CXX=yes
14660 # SGI C++ compiler will create directory out/ii_files/ for
14661 # template instantiation
14662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14663 $RM out/* && rmdir out
14669 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14670 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14675 hard_links="nottested"
14676 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14677 # do not overwrite the value of need_locks provided by the user
14678 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14679 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14682 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14684 ln conftest.a conftest.b 2>&5 || hard_links=no
14685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14686 { echo "$as_me:$LINENO: result: $hard_links" >&5
14687 echo "${ECHO_T}$hard_links" >&6; }
14688 if test "$hard_links" = no; then
14689 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14690 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14699 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14700 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14702 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14705 # If we're using GNU nm, then we don't want the "-C" option.
14706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14708 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14710 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'
14714 export_symbols_cmds_CXX="$ltdll_cmds"
14716 cygwin* | mingw* | cegcc*)
14717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14723 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14725 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14726 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14727 test "$ld_shlibs_CXX" = no && can_build_shared=no
14729 with_gnu_ld_CXX=$with_gnu_ld
14737 # Do we need to explicitly link libc?
14739 case "x$archive_cmds_need_lc_CXX" in
14741 # Assume -lc should be added
14742 archive_cmds_need_lc_CXX=yes
14744 if test "$enable_shared" = yes && test "$GCC" = yes; then
14745 case $archive_cmds_CXX in
14747 # FIXME: we may have to deal with multi-command sequences.
14750 # Test whether the compiler implicitly links with -lc since on some
14751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14752 # to ld, don't add -lc before -lgcc.
14753 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759 (eval $ac_compile) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } 2>conftest.err; then
14765 libobjs=conftest.$ac_objext
14767 wl=$lt_prog_compiler_wl_CXX
14768 pic_flag=$lt_prog_compiler_pic_CXX
14774 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14775 allow_undefined_flag_CXX=
14776 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14777 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }
14782 archive_cmds_need_lc_CXX=no
14784 archive_cmds_need_lc_CXX=yes
14786 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14788 cat conftest.err 1>&5
14791 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14792 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14862 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14865 library_names_spec=
14866 libname_spec='lib$name'
14870 postuninstall_cmds=
14874 shlibpath_overrides_runpath=unknown
14876 dynamic_linker="$host_os ld.so"
14877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14878 need_lib_prefix=unknown
14879 hardcode_into_libs=no
14881 # when you set need_version to no, make sure it does not cause -set_version
14882 # flags to be left without arguments
14883 need_version=unknown
14888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14889 shlibpath_var=LIBPATH
14891 # AIX 3 has no versioning support, so we append a major version to the name.
14892 soname_spec='${libname}${release}${shared_ext}$major'
14899 hardcode_into_libs=yes
14900 if test "$host_cpu" = ia64; then
14901 # AIX 5 supports IA64
14902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14903 shlibpath_var=LD_LIBRARY_PATH
14905 # With GCC up to 2.95.x, collect2 would create an import file
14906 # for dependence libraries. The import file would start with
14907 # the line `#! .'. This would cause the generated library to
14908 # depend on `.', always an invalid library. This was fixed in
14909 # development snapshots of GCC prior to 3.0.
14911 aix4 | aix4.[01] | aix4.[01].*)
14912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14917 can_build_shared=no
14921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14922 # soname into executable. Probably we can add versioning support to
14923 # collect2, so additional links can be useful in future.
14924 if test "$aix_use_runtimelinking" = yes; then
14925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14926 # instead of lib<name>.a to let people know that these are not
14927 # typical AIX shared libraries.
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 # We preserve .a as extension for shared libraries through AIX4.2
14931 # and later when we are not doing run time linking.
14932 library_names_spec='${libname}${release}.a $libname.a'
14933 soname_spec='${libname}${release}${shared_ext}$major'
14935 shlibpath_var=LIBPATH
14942 # Since July 2007 AmigaOS4 officially supports .so libraries.
14943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947 library_names_spec='$libname.ixlibrary $libname.a'
14948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14955 library_names_spec='${libname}${shared_ext}'
14956 dynamic_linker="$host_os ld.so"
14957 shlibpath_var=LIBRARY_PATH
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964 soname_spec='${libname}${release}${shared_ext}$major'
14965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14969 # the default ld.so.conf also contains /usr/contrib/lib and
14970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14971 # libtool to hard-code these into programs
14974 cygwin* | mingw* | pw32* | cegcc*)
14975 version_type=windows
14980 case $GCC,$host_os in
14981 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14982 library_names_spec='$libname.dll.a'
14983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14984 postinstall_cmds='base_file=`basename \${file}`~
14985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14986 dldir=$destdir/`dirname \$dlpath`~
14987 test -d \$dldir || mkdir -p \$dldir~
14988 $install_prog $dir/$dlname \$dldir/$dlname~
14989 chmod a+x \$dldir/$dlname~
14990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14994 dlpath=$dir/\$dldll~
14996 shlibpath_overrides_runpath=yes
15000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15001 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15002 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15003 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15006 # MinGW DLLs use traditional 'lib' prefix
15007 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15008 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15009 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15010 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15011 # It is most probably a Windows format PATH printed by
15012 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15013 # path with ; separators, and with drive letters. We can handle the
15014 # drive letters (cygwin fileutils understands them), so leave them,
15015 # especially as we might pass files found there to a mingw objdump,
15016 # which wouldn't understand a cygwinified path. Ahh.
15017 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15019 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15023 # pw32 DLLs use 'pw' prefix rather than 'lib'
15024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15030 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15033 dynamic_linker='Win32 ld.exe'
15034 # FIXME: first we should search . and the directory the executable is in
15038 darwin* | rhapsody*)
15039 dynamic_linker="$host_os dyld"
15040 version_type=darwin
15043 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15044 soname_spec='${libname}${release}${major}$shared_ext'
15045 shlibpath_overrides_runpath=yes
15046 shlibpath_var=DYLD_LIBRARY_PATH
15047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15065 freebsd* | dragonfly*)
15066 # DragonFly does not have aout. When/if they implement a new
15067 # versioning mechanism, adjust this.
15068 if test -x /usr/bin/objformat; then
15069 objformat=`/usr/bin/objformat`
15072 freebsd[123]*) objformat=aout ;;
15073 *) objformat=elf ;;
15076 version_type=freebsd-$objformat
15077 case $version_type in
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15088 shlibpath_var=LD_LIBRARY_PATH
15091 shlibpath_overrides_runpath=yes
15093 freebsd3.[01]* | freebsdelf3.[01]*)
15094 shlibpath_overrides_runpath=yes
15095 hardcode_into_libs=yes
15097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15099 shlibpath_overrides_runpath=no
15100 hardcode_into_libs=yes
15102 *) # from 4.6 on, and DragonFly
15103 shlibpath_overrides_runpath=yes
15104 hardcode_into_libs=yes
15113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15114 soname_spec='${libname}${release}${shared_ext}$major'
15115 shlibpath_var=LD_LIBRARY_PATH
15116 hardcode_into_libs=yes
15119 hpux9* | hpux10* | hpux11*)
15120 # Give a soname corresponding to the major version so that dld.sl refuses to
15121 # link against other versions.
15128 hardcode_into_libs=yes
15129 dynamic_linker="$host_os dld.so"
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 soname_spec='${libname}${release}${shared_ext}$major'
15134 if test "X$HPUX_IA64_MODE" = X32; then
15135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15137 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15143 hardcode_into_libs=yes
15144 dynamic_linker="$host_os dld.sl"
15145 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15154 dynamic_linker="$host_os dld.sl"
15155 shlibpath_var=SHLIB_PATH
15156 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15161 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15162 postinstall_cmds='chmod 555 $lib'
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=no
15174 hardcode_into_libs=yes
15177 irix5* | irix6* | nonstopux*)
15179 nonstopux*) version_type=nonstopux ;;
15181 if test "$lt_cv_prog_gnu_ld" = yes; then
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15192 irix5* | nonstopux*)
15193 libsuff= shlibsuff=
15196 case $LD in # libtool.m4 will add one of these switches to LD
15197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15198 libsuff= shlibsuff= libmagic=32-bit;;
15199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15200 libsuff=32 shlibsuff=N32 libmagic=N32;;
15201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15203 *) libsuff= shlibsuff= libmagic=never-match;;
15207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15208 shlibpath_overrides_runpath=no
15209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15211 hardcode_into_libs=yes
15214 # No shared lib support for Linux oldld, aout, or coff.
15215 linux*oldld* | linux*aout* | linux*coff*)
15219 # This must be Linux ELF.
15220 linux* | k*bsd*-gnu)
15224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=no
15229 # Some binutils ld are patched to set DT_RUNPATH
15230 save_LDFLAGS=$LDFLAGS
15231 save_libdir=$libdir
15232 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15233 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && {
15263 test -z "$ac_cxx_werror_flag" ||
15264 test ! -s conftest.err
15265 } && test -s conftest$ac_exeext &&
15266 $as_test_x conftest$ac_exeext; then
15267 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15268 shlibpath_overrides_runpath=yes
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LDFLAGS=$save_LDFLAGS
15281 libdir=$save_libdir
15283 # This implies no fast_install, which is unacceptable.
15284 # Some rework will be needed to allow for fast_install
15285 # before this can be enabled.
15286 hardcode_into_libs=yes
15288 # Append ld.so.conf contents to the search path
15289 if test -f /etc/ld.so.conf; then
15290 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;/^$/d' | tr '\n' ' '`
15291 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15294 # We used to test for /lib/ld.so.1 and disable shared libraries on
15295 # powerpc, because MkLinux only supported shared libraries with the
15296 # GNU dynamic linker. Since this was broken with cross compilers,
15297 # most powerpc-linux boxes support dynamic linking these days and
15298 # people can always --disable-shared, the test was removed, and we
15299 # assume the GNU/Linux dynamic linker is in use.
15300 dynamic_linker='GNU/Linux ld.so'
15307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310 dynamic_linker='NetBSD (a.out) ld.so'
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 dynamic_linker='NetBSD ld.elf_so'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath=yes
15318 hardcode_into_libs=yes
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 shlibpath_overrides_runpath=yes
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15337 dynamic_linker='ldqnx.so'
15342 sys_lib_dlsearch_path_spec="/usr/lib"
15344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15347 *) need_version=no ;;
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15354 openbsd2.[89] | openbsd2.[89].*)
15355 shlibpath_overrides_runpath=no
15358 shlibpath_overrides_runpath=yes
15362 shlibpath_overrides_runpath=yes
15367 libname_spec='$name'
15370 library_names_spec='$libname${shared_ext} $libname.a'
15371 dynamic_linker='OS/2 ld.exe'
15372 shlibpath_var=LIBPATH
15375 osf3* | osf4* | osf5*)
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 # ldd complains unless libraries are executable
15400 postinstall_cmds='chmod +x $lib'
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 if test "$with_gnu_ld" = yes; then
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 case $host_vendor in
15422 shlibpath_overrides_runpath=no
15424 runpath_var=LD_RUN_PATH
15432 shlibpath_overrides_runpath=no
15433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15439 if test -d /usr/nec ;then
15441 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15442 soname_spec='$libname${shared_ext}.$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15448 version_type=freebsd-elf
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 hardcode_into_libs=yes
15456 if test "$with_gnu_ld" = yes; then
15457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15459 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15466 sys_lib_dlsearch_path_spec='/usr/lib'
15470 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483 soname_spec='${libname}${release}${shared_ext}$major'
15484 shlibpath_var=LD_LIBRARY_PATH
15491 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15492 echo "${ECHO_T}$dynamic_linker" >&6; }
15493 test "$dynamic_linker" = no && can_build_shared=no
15495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496 if test "$GCC" = yes; then
15497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15500 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15501 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15503 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15504 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15544 hardcode_action_CXX=
15545 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15546 test -n "$runpath_var_CXX" ||
15547 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15549 # We can hardcode non-existent directories.
15550 if test "$hardcode_direct_CXX" != no &&
15551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15552 # have to relink, otherwise we might link with an installed library
15553 # when we should be linking with a yet-to-be-installed one
15554 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15555 test "$hardcode_minus_L_CXX" != no; then
15556 # Linking always hardcodes the temporary library directory.
15557 hardcode_action_CXX=relink
15559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15560 hardcode_action_CXX=immediate
15563 # We cannot hardcode anything, or else we can only hardcode existing
15565 hardcode_action_CXX=unsupported
15567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15570 if test "$hardcode_action_CXX" = relink ||
15571 test "$inherit_rpath_CXX" = yes; then
15572 # Fast installation is not supported
15573 enable_fast_install=no
15574 elif test "$shlibpath_overrides_runpath" = yes ||
15575 test "$enable_shared" = no; then
15576 # Fast installation is not necessary
15577 enable_fast_install=needless
15586 fi # test -n "$compiler"
15592 with_gnu_ld=$lt_save_with_gnu_ld
15593 lt_cv_path_LDCXX=$lt_cv_path_LD
15594 lt_cv_path_LD=$lt_save_path_LD
15595 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15597 fi # test "$_lt_caught_CXX_error" != yes
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606 # Find a good install program. We prefer a C program (faster),
15607 # so one script is as good as another. But avoid the broken or
15608 # incompatible versions:
15609 # SysV /etc/install, /usr/sbin/install
15610 # SunOS /usr/etc/install
15611 # IRIX /sbin/install
15613 # AmigaOS /C/install, which installs bootblocks on floppy discs
15614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15617 # OS/2's system install, which has a completely different semantic
15618 # ./install, which can be erroneously created by make from ./install.sh.
15619 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15620 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
15621 if test -z "$INSTALL"; then
15622 if test "${ac_cv_path_install+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626 for as_dir in $PATH
15629 test -z "$as_dir" && as_dir=.
15630 # Account for people who put trailing slashes in PATH elements.
15632 ./ | .// | /cC/* | \
15633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15634 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15637 # OSF1 and SCO ODT 3.0 have their own names for install.
15638 # Don't use installbsd from OSF since it installs stuff as root
15640 for ac_prog in ginstall scoinst install; do
15641 for ac_exec_ext in '' $ac_executable_extensions; do
15642 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15643 if test $ac_prog = install &&
15644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15645 # AIX install. It has an incompatible calling convention.
15647 elif test $ac_prog = install &&
15648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15649 # program-specific install script used by HP pwplus--don't use.
15652 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15665 if test "${ac_cv_path_install+set}" = set; then
15666 INSTALL=$ac_cv_path_install
15668 # As a last resort, use the slow shell script. Don't cache a
15669 # value for INSTALL within a source directory, because that will
15670 # break other packages using the cache if that directory is
15671 # removed, or if the value is a relative name.
15672 INSTALL=$ac_install_sh
15675 { echo "$as_me:$LINENO: result: $INSTALL" >&5
15676 echo "${ECHO_T}$INSTALL" >&6; }
15678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15679 # It thinks the first close brace ends the variable substitution.
15680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15686 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15687 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
15688 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15689 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 cat >conftest.make <<\_ACEOF
15695 @echo '@@@%%%=$(MAKE)=@@@%%%'
15697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15699 *@@@%%%=?*=@@@%%%*)
15700 eval ac_cv_prog_make_${ac_make}_set=yes;;
15702 eval ac_cv_prog_make_${ac_make}_set=no;;
15704 rm -f conftest.make
15706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15707 { echo "$as_me:$LINENO: result: yes" >&5
15708 echo "${ECHO_T}yes" >&6; }
15711 { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15713 SET_MAKE="MAKE=${MAKE-make}"
15716 if test -n "$ac_tool_prefix"; then
15717 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15718 set dummy ${ac_tool_prefix}windres; ac_word=$2
15719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15721 if test "${ac_cv_prog_WINDRES+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 if test -n "$WINDRES"; then
15725 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15734 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15744 WINDRES=$ac_cv_prog_WINDRES
15745 if test -n "$WINDRES"; then
15746 { echo "$as_me:$LINENO: result: $WINDRES" >&5
15747 echo "${ECHO_T}$WINDRES" >&6; }
15749 { echo "$as_me:$LINENO: result: no" >&5
15750 echo "${ECHO_T}no" >&6; }
15755 if test -z "$ac_cv_prog_WINDRES"; then
15756 ac_ct_WINDRES=$WINDRES
15757 # Extract the first word of "windres", so it can be a program name with args.
15758 set dummy windres; ac_word=$2
15759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15761 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 if test -n "$ac_ct_WINDRES"; then
15765 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15771 test -z "$as_dir" && as_dir=.
15772 for ac_exec_ext in '' $ac_executable_extensions; do
15773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15774 ac_cv_prog_ac_ct_WINDRES="windres"
15775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15784 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15785 if test -n "$ac_ct_WINDRES"; then
15786 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15787 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
15789 { echo "$as_me:$LINENO: result: no" >&5
15790 echo "${ECHO_T}no" >&6; }
15793 if test "x$ac_ct_WINDRES" = x; then
15796 case $cross_compiling:$ac_tool_warned in
15798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15799 whose name does not start with the host triplet. If you think this
15800 configuration is useful to you, please write to autoconf@gnu.org." >&5
15801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15802 whose name does not start with the host triplet. If you think this
15803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15804 ac_tool_warned=yes ;;
15806 WINDRES=$ac_ct_WINDRES
15809 WINDRES="$ac_cv_prog_WINDRES"
15813 INCLUDE="-I$srcdir/include"
15814 if test x$srcdir != x.; then
15815 # Remove SDL_config.h from the source directory, since it's the
15816 # default one, and we want to include the one that we generate.
15817 if test -f $srcdir/include/SDL_config.h; then
15818 rm $srcdir/include/SDL_config.h
15820 INCLUDE="-Iinclude $INCLUDE"
15824 # We build SDL on cygwin without the UNIX emulation layer
15825 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
15826 BASE_LDFLAGS="-mno-cygwin"
15829 BASE_CFLAGS="-D_GNU_SOURCE=1"
15833 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
15834 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15835 BUILD_LDFLAGS="$LDFLAGS"
15836 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15837 ## These are common directories to find software packages
15838 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15839 # if test -d $path/include; then
15840 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15842 # if test -d $path/lib; then
15843 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15846 SDL_CFLAGS="$BASE_CFLAGS"
15847 SDL_LIBS="-lSDL $BASE_LDFLAGS"
15848 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15849 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15850 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15852 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15856 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15857 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15858 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15859 if test "$cross_compiling" = yes; then
15862 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15864 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
15865 lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
15866 if test x$lib != x; then
15873 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15875 if test "${ac_cv_c_const+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 cat >conftest.$ac_ext <<_ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15888 /* FIXME: Include the comments suggested by Paul. */
15889 #ifndef __cplusplus
15890 /* Ultrix mips cc rejects this. */
15891 typedef int charset[2];
15893 /* SunOS 4.1.1 cc rejects this. */
15894 char const *const *pcpcc;
15896 /* NEC SVR4.0.2 mips cc rejects this. */
15897 struct point {int x, y;};
15898 static struct point const zero = {0,0};
15899 /* AIX XL C 1.02.0.0 rejects this.
15900 It does not let you subtract one const X* pointer from another in
15901 an arm of an if-expression whose if-part is not a constant
15903 const char *g = "string";
15904 pcpcc = &g + (g ? g-g : 0);
15905 /* HPUX 7.0 cc rejects these. */
15907 ppc = (char**) pcpcc;
15908 pcpcc = (char const *const *) ppc;
15909 { /* SCO 3.2v4 cc rejects this. */
15911 char const *s = 0 ? (char *) 0 : (char const *) 0;
15916 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15917 int x[] = {25, 17};
15918 const int *foo = &x[0];
15921 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15922 typedef const int *iptr;
15926 { /* AIX XL C 1.02.0.0 rejects this saying
15927 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15928 struct s { int j; const int *ap[3]; };
15929 struct s *b; b->j = 5;
15931 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15932 const int foo = 10;
15933 if (!foo) return 0;
15935 return !cs[0] && !zero.x;
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_compile") 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && {
15956 test -z "$ac_c_werror_flag" ||
15957 test ! -s conftest.err
15958 } && test -s conftest.$ac_objext; then
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15970 echo "${ECHO_T}$ac_cv_c_const" >&6; }
15971 if test $ac_cv_c_const = no; then
15973 cat >>confdefs.h <<\_ACEOF
15979 { echo "$as_me:$LINENO: checking for inline" >&5
15980 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
15981 if test "${ac_cv_c_inline+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15985 for ac_kw in inline __inline__ __inline; do
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #ifndef __cplusplus
15994 static $ac_kw foo_t static_foo () {return 0; }
15995 $ac_kw foo_t foo () {return 0; }
15999 rm -f conftest.$ac_objext
16000 if { (ac_try="$ac_compile"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006 (eval "$ac_compile") 2>conftest.er1
16008 grep -v '^ *+' conftest.er1 >conftest.err
16010 cat conftest.err >&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); } && {
16013 test -z "$ac_c_werror_flag" ||
16014 test ! -s conftest.err
16015 } && test -s conftest.$ac_objext; then
16016 ac_cv_c_inline=$ac_kw
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025 test "$ac_cv_c_inline" != no && break
16029 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16030 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16033 case $ac_cv_c_inline in
16036 case $ac_cv_c_inline in
16038 *) ac_val=$ac_cv_c_inline;;
16040 cat >>confdefs.h <<_ACEOF
16041 #ifndef __cplusplus
16042 #define inline $ac_val
16048 { echo "$as_me:$LINENO: checking for working volatile" >&5
16049 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
16050 if test "${ac_cv_c_volatile+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 cat >conftest.$ac_ext <<_ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16065 int * volatile y = (int *) 0;
16071 rm -f conftest.$ac_objext
16072 if { (ac_try="$ac_compile"
16073 case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_compile") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest.$ac_objext; then
16088 ac_cv_c_volatile=yes
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_cv_c_volatile=no
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
16099 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
16100 if test $ac_cv_c_volatile = no; then
16102 cat >>confdefs.h <<\_ACEOF
16109 # Check whether --enable-libc was given.
16110 if test "${enable_libc+set}" = set; then
16111 enableval=$enable_libc;
16116 if test x$enable_libc = xyes; then
16117 cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_LIBC 1
16122 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
16124 if test "${ac_cv_header_stdc+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 cat >conftest.$ac_ext <<_ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 #include <stdlib.h>
16134 #include <stdarg.h>
16135 #include <string.h>
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_compile") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1 >conftest.err
16157 cat conftest.err >&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } && {
16160 test -z "$ac_c_werror_flag" ||
16161 test ! -s conftest.err
16162 } && test -s conftest.$ac_objext; then
16163 ac_cv_header_stdc=yes
16165 echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_header_stdc=no
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 if test $ac_cv_header_stdc = yes; then
16174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 #include <string.h>
16184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16185 $EGREP "memchr" >/dev/null 2>&1; then
16188 ac_cv_header_stdc=no
16194 if test $ac_cv_header_stdc = yes; then
16195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 #include <stdlib.h>
16205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16206 $EGREP "free" >/dev/null 2>&1; then
16209 ac_cv_header_stdc=no
16215 if test $ac_cv_header_stdc = yes; then
16216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16217 if test "$cross_compiling" = yes; then
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16227 #include <stdlib.h>
16228 #if ((' ' & 0x0FF) == 0x020)
16229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16232 # define ISLOWER(c) \
16233 (('a' <= (c) && (c) <= 'i') \
16234 || ('j' <= (c) && (c) <= 'r') \
16235 || ('s' <= (c) && (c) <= 'z'))
16236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16244 for (i = 0; i < 256; i++)
16245 if (XOR (islower (i), ISLOWER (i))
16246 || toupper (i) != TOUPPER (i))
16251 rm -f conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_link") 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16273 echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ( exit $ac_status )
16278 ac_cv_header_stdc=no
16280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
16288 if test $ac_cv_header_stdc = yes; then
16290 cat >>confdefs.h <<\_ACEOF
16291 #define STDC_HEADERS 1
16311 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_res=`eval echo '${'$as_ac_Header'}'`
16321 { echo "$as_me:$LINENO: result: $ac_res" >&5
16322 echo "${ECHO_T}$ac_res" >&6; }
16324 # Is the header compilable?
16325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest.$ac_objext; then
16353 ac_header_compiler=yes
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_header_compiler=no
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <$ac_header>
16376 if { (ac_try="$ac_cpp conftest.$ac_ext"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } >/dev/null && {
16389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16392 ac_header_preproc=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_preproc=no
16400 rm -f conftest.err conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16402 echo "${ECHO_T}$ac_header_preproc" >&6; }
16404 # So? What about this header?
16405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16411 ac_header_preproc=yes
16414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 eval "$as_ac_Header=\$ac_header_preproc"
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16442 cat >>confdefs.h <<_ACEOF
16443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16451 { echo "$as_me:$LINENO: checking for size_t" >&5
16452 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16453 if test "${ac_cv_type_size_t+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16456 cat >conftest.$ac_ext <<_ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 $ac_includes_default
16463 typedef size_t ac__type_new_;
16467 if ((ac__type_new_ *) 0)
16469 if (sizeof (ac__type_new_))
16475 rm -f conftest.$ac_objext
16476 if { (ac_try="$ac_compile"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_compile") 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest.$ac_objext; then
16492 ac_cv_type_size_t=yes
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 ac_cv_type_size_t=no
16500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16503 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16504 if test $ac_cv_type_size_t = yes; then
16508 cat >>confdefs.h <<_ACEOF
16509 #define size_t unsigned int
16514 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
16515 { echo "$as_me:$LINENO: checking for int64_t" >&5
16516 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_int64_t+set}" = set; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 $ac_includes_default
16527 typedef int64_t ac__type_new_;
16531 if ((ac__type_new_ *) 0)
16533 if (sizeof (ac__type_new_))
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543 *) ac_try_echo=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_compile") 2>conftest.er1
16548 grep -v '^ *+' conftest.er1 >conftest.err
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && {
16553 test -z "$ac_c_werror_flag" ||
16554 test ! -s conftest.err
16555 } && test -s conftest.$ac_objext; then
16556 ac_cv_type_int64_t=yes
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 ac_cv_type_int64_t=no
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16566 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16567 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16569 if test x$ac_cv_type_int64_t = xyes; then
16570 cat >>confdefs.h <<\_ACEOF
16571 #define SDL_HAS_64BIT_TYPE 1
16579 *-*-cygwin* | *-*-mingw32*)
16582 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16583 # for constant arguments. Useless!
16584 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
16585 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
16586 if test "${ac_cv_working_alloca_h+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 #include <alloca.h>
16599 char *p = (char *) alloca (2 * sizeof (int));
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (ac_try="$ac_link"
16607 case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_link") 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && {
16619 test -z "$ac_c_werror_flag" ||
16620 test ! -s conftest.err
16621 } && test -s conftest$ac_exeext &&
16622 $as_test_x conftest$ac_exeext; then
16623 ac_cv_working_alloca_h=yes
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16628 ac_cv_working_alloca_h=no
16631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16632 conftest$ac_exeext conftest.$ac_ext
16634 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16635 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
16636 if test $ac_cv_working_alloca_h = yes; then
16638 cat >>confdefs.h <<\_ACEOF
16639 #define HAVE_ALLOCA_H 1
16644 { echo "$as_me:$LINENO: checking for alloca" >&5
16645 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
16646 if test "${ac_cv_func_alloca_works+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16656 # define alloca __builtin_alloca
16659 # include <malloc.h>
16660 # define alloca _alloca
16662 # ifdef HAVE_ALLOCA_H
16663 # include <alloca.h>
16668 # ifndef alloca /* predefined by HP cc +Olibcalls */
16679 char *p = (char *) alloca (1);
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_link") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } && {
16699 test -z "$ac_c_werror_flag" ||
16700 test ! -s conftest.err
16701 } && test -s conftest$ac_exeext &&
16702 $as_test_x conftest$ac_exeext; then
16703 ac_cv_func_alloca_works=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_cv_func_alloca_works=no
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16714 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16715 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
16717 if test $ac_cv_func_alloca_works = yes; then
16719 cat >>confdefs.h <<\_ACEOF
16720 #define HAVE_ALLOCA 1
16724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16725 # that cause trouble. Some versions do not even contain alloca or
16726 # contain a buggy version. If you still want to use their alloca,
16727 # use ar to extract alloca.o from them instead of compiling alloca.c.
16729 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16731 cat >>confdefs.h <<\_ACEOF
16736 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16737 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
16738 if test "${ac_cv_os_cray+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 cat >conftest.$ac_ext <<_ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h. */
16747 #if defined CRAY && ! defined CRAY2
16754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16755 $EGREP "webecray" >/dev/null 2>&1; then
16763 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16764 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16765 if test $ac_cv_os_cray = yes; then
16766 for ac_func in _getb67 GETB67 getb67; do
16767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h. */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16781 #define $ac_func innocuous_$ac_func
16783 /* System header to define __stub macros and hopefully few prototypes,
16784 which can conflict with char $ac_func (); below.
16785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786 <limits.h> exists even on freestanding compilers. */
16789 # include <limits.h>
16791 # include <assert.h>
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16803 /* The GNU C library defines this for functions which it implements
16804 to always fail with ENOSYS. Some functions are actually named
16805 something starting with __ and the normal name is an alias. */
16806 #if defined __stub_$ac_func || defined __stub___$ac_func
16813 return $ac_func ();
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
16827 grep -v '^ *+' conftest.er1 >conftest.err
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } && {
16832 test -z "$ac_c_werror_flag" ||
16833 test ! -s conftest.err
16834 } && test -s conftest$ac_exeext &&
16835 $as_test_x conftest$ac_exeext; then
16836 eval "$as_ac_var=yes"
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 eval "$as_ac_var=no"
16844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845 conftest$ac_exeext conftest.$ac_ext
16847 ac_res=`eval echo '${'$as_ac_var'}'`
16848 { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 echo "${ECHO_T}$ac_res" >&6; }
16850 if test `eval echo '${'$as_ac_var'}'` = yes; then
16852 cat >>confdefs.h <<_ACEOF
16853 #define CRAY_STACKSEG_END $ac_func
16862 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16863 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16864 if test "${ac_cv_c_stack_direction+set}" = set; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 if test "$cross_compiling" = yes; then
16868 ac_cv_c_stack_direction=0
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 $ac_includes_default
16878 find_stack_direction ()
16880 static char *addr = 0;
16885 return find_stack_direction ();
16888 return (&dummy > addr) ? 1 : -1;
16894 return find_stack_direction () < 0;
16897 rm -f conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16908 { (case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_try") 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 ac_cv_c_stack_direction=1
16919 echo "$as_me: program exited with status $ac_status" >&5
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ( exit $ac_status )
16924 ac_cv_c_stack_direction=-1
16926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16932 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16934 cat >>confdefs.h <<_ACEOF
16935 #define STACK_DIRECTION $ac_cv_c_stack_direction
16944 { echo "$as_me:$LINENO: checking for working memcmp" >&5
16945 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
16946 if test "${ac_cv_func_memcmp_working+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 if test "$cross_compiling" = yes; then
16950 ac_cv_func_memcmp_working=no
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 $ac_includes_default
16963 /* Some versions of memcmp are not 8-bit clean. */
16964 char c0 = '\100', c1 = '\200', c2 = '\201';
16965 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16968 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16969 or more and with at least one buffer not starting on a 4-byte boundary.
16970 William Lewis provided this test program. */
16975 for (i = 0; i < 4; i++)
16979 strcpy (a, "--------01111111");
16980 strcpy (b, "--------10000000");
16981 if (memcmp (a, b, 16) >= 0)
16991 rm -f conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995 *) ac_try_echo=$ac_try;;
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998 (eval "$ac_link") 2>&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_cv_func_memcmp_working=yes
17013 echo "$as_me: program exited with status $ac_status" >&5
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 ( exit $ac_status )
17018 ac_cv_func_memcmp_working=no
17020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17025 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17026 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
17027 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17028 *" memcmp.$ac_objext "* ) ;;
17029 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17034 if test x$ac_cv_func_memcmp_working = xyes; then
17035 cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_MEMCMP 1
17040 { echo "$as_me:$LINENO: checking for working strtod" >&5
17041 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
17042 if test "${ac_cv_func_strtod+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 if test "$cross_compiling" = yes; then
17046 ac_cv_func_strtod=no
17048 cat >conftest.$ac_ext <<_ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h. */
17055 $ac_includes_default
17063 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
17064 char *string = " +69";
17067 value = strtod (string, &term);
17068 if (value != 69 || term != (string + 4))
17073 /* Under Solaris 2.4, strtod returns the wrong value for the
17074 terminating character under some conditions. */
17075 char *string = "NaN";
17077 strtod (string, &term);
17078 if (term != string && *(term - 1) == 0)
17085 rm -f conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_func_strtod=yes
17107 echo "$as_me: program exited with status $ac_status" >&5
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ( exit $ac_status )
17112 ac_cv_func_strtod=no
17114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
17120 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
17121 if test $ac_cv_func_strtod = no; then
17122 case " $LIBOBJS " in
17123 *" strtod.$ac_objext "* ) ;;
17124 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17128 { echo "$as_me:$LINENO: checking for pow" >&5
17129 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
17130 if test "${ac_cv_func_pow+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17141 #define pow innocuous_pow
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char pow (); below.
17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146 <limits.h> exists even on freestanding compilers. */
17149 # include <limits.h>
17151 # include <assert.h>
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined __stub_pow || defined __stub___pow
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest$ac_exeext &&
17195 $as_test_x conftest$ac_exeext; then
17198 echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17207 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
17208 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
17210 if test $ac_cv_func_pow = no; then
17211 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17212 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17213 if test "${ac_cv_lib_m_pow+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 ac_check_lib_save_LIBS=$LIBS
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17225 /* Override any GCC internal prototype to avoid an error.
17226 Use char because int might match the return type of a GCC
17227 builtin and then its argument prototype would still apply. */
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (ac_try="$ac_link"
17242 case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_link") 2>conftest.er1
17249 grep -v '^ *+' conftest.er1 >conftest.err
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest$ac_exeext &&
17257 $as_test_x conftest$ac_exeext; then
17258 ac_cv_lib_m_pow=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17271 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17272 if test $ac_cv_lib_m_pow = yes; then
17275 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
17276 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17283 if test x$ac_cv_func_strtod = xyes; then
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_STRTOD 1
17289 { echo "$as_me:$LINENO: checking for mprotect" >&5
17290 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
17291 if test "${ac_cv_func_mprotect+set}" = set; then
17292 echo $ECHO_N "(cached) $ECHO_C" >&6
17294 cat >conftest.$ac_ext <<_ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h. */
17300 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
17301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17302 #define mprotect innocuous_mprotect
17304 /* System header to define __stub macros and hopefully few prototypes,
17305 which can conflict with char mprotect (); below.
17306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307 <limits.h> exists even on freestanding compilers. */
17310 # include <limits.h>
17312 # include <assert.h>
17317 /* Override any GCC internal prototype to avoid an error.
17318 Use char because int might match the return type of a GCC
17319 builtin and then its argument prototype would still apply. */
17324 /* The GNU C library defines this for functions which it implements
17325 to always fail with ENOSYS. Some functions are actually named
17326 something starting with __ and the normal name is an alias. */
17327 #if defined __stub_mprotect || defined __stub___mprotect
17334 return mprotect ();
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_link") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); } && {
17353 test -z "$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17355 } && test -s conftest$ac_exeext &&
17356 $as_test_x conftest$ac_exeext; then
17357 ac_cv_func_mprotect=yes
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_func_mprotect=no
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366 conftest$ac_exeext conftest.$ac_ext
17368 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
17369 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
17370 if test $ac_cv_func_mprotect = yes; then
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17378 #include <sys/types.h>
17379 #include <sys/mman.h>
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_MPROTECT 1
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep
17473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17487 #define $ac_func innocuous_$ac_func
17489 /* System header to define __stub macros and hopefully few prototypes,
17490 which can conflict with char $ac_func (); below.
17491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492 <limits.h> exists even on freestanding compilers. */
17495 # include <limits.h>
17497 # include <assert.h>
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17509 /* The GNU C library defines this for functions which it implements
17510 to always fail with ENOSYS. Some functions are actually named
17511 something starting with __ and the normal name is an alias. */
17512 #if defined __stub_$ac_func || defined __stub___$ac_func
17519 return $ac_func ();
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_link") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } && {
17538 test -z "$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 } && test -s conftest$ac_exeext &&
17541 $as_test_x conftest$ac_exeext; then
17542 eval "$as_ac_var=yes"
17544 echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17547 eval "$as_ac_var=no"
17550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551 conftest$ac_exeext conftest.$ac_ext
17553 ac_res=`eval echo '${'$as_ac_var'}'`
17554 { echo "$as_me:$LINENO: result: $ac_res" >&5
17555 echo "${ECHO_T}$ac_res" >&6; }
17556 if test `eval echo '${'$as_ac_var'}'` = yes; then
17557 cat >>confdefs.h <<_ACEOF
17558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17565 { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
17566 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
17567 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
17568 echo $ECHO_N "(cached) $ECHO_C" >&6
17570 ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-liconv $LIBS"
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17579 /* Override any GCC internal prototype to avoid an error.
17580 Use char because int might match the return type of a GCC
17581 builtin and then its argument prototype would still apply. */
17585 char libiconv_open ();
17589 return libiconv_open ();
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_link") 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } && {
17608 test -z "$ac_c_werror_flag" ||
17609 test ! -s conftest.err
17610 } && test -s conftest$ac_exeext &&
17611 $as_test_x conftest$ac_exeext; then
17612 ac_cv_lib_iconv_libiconv_open=yes
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 ac_cv_lib_iconv_libiconv_open=no
17620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17621 conftest$ac_exeext conftest.$ac_ext
17622 LIBS=$ac_check_lib_save_LIBS
17624 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
17625 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
17626 if test $ac_cv_lib_iconv_libiconv_open = yes; then
17627 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
17630 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17631 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17632 if test "${ac_cv_lib_m_pow+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17635 ac_check_lib_save_LIBS=$LIBS
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 ac_cv_lib_m_pow=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17689 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17690 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17691 if test $ac_cv_lib_m_pow = yes; then
17692 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
17696 { echo "$as_me:$LINENO: checking for struct sigaction.sa_sigaction" >&5
17697 echo $ECHO_N "checking for struct sigaction.sa_sigaction... $ECHO_C" >&6; }
17698 if test "${ac_cv_member_struct_sigaction_sa_sigaction+set}" = set; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <signal.h>
17712 static struct sigaction ac_aggr;
17713 if (ac_aggr.sa_sigaction)
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_compile") 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest.$ac_objext; then
17736 ac_cv_member_struct_sigaction_sa_sigaction=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 cat >conftest.$ac_ext <<_ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <signal.h>
17752 static struct sigaction ac_aggr;
17753 if (sizeof ac_aggr.sa_sigaction)
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763 *) ac_try_echo=$ac_try;;
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766 (eval "$ac_compile") 2>conftest.er1
17768 grep -v '^ *+' conftest.er1 >conftest.err
17770 cat conftest.err >&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); } && {
17773 test -z "$ac_c_werror_flag" ||
17774 test ! -s conftest.err
17775 } && test -s conftest.$ac_objext; then
17776 ac_cv_member_struct_sigaction_sa_sigaction=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_member_struct_sigaction_sa_sigaction=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigaction_sa_sigaction" >&5
17790 echo "${ECHO_T}$ac_cv_member_struct_sigaction_sa_sigaction" >&6; }
17791 if test $ac_cv_member_struct_sigaction_sa_sigaction = yes; then
17792 cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_SA_SIGACTION 1
17800 if test x$have_inttypes != xyes; then
17801 { echo "$as_me:$LINENO: checking for char" >&5
17802 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
17803 if test "${ac_cv_type_char+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17806 cat >conftest.$ac_ext <<_ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17813 typedef char ac__type_new_;
17817 if ((ac__type_new_ *) 0)
17819 if (sizeof (ac__type_new_))
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_compile") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest.$ac_objext; then
17842 ac_cv_type_char=yes
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17853 echo "${ECHO_T}$ac_cv_type_char" >&6; }
17855 # The cast to long int works around a bug in the HP C Compiler
17856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17858 # This bug is HP SR number 8606223364.
17859 { echo "$as_me:$LINENO: checking size of char" >&5
17860 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
17861 if test "${ac_cv_sizeof_char+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 if test "$cross_compiling" = yes; then
17865 # Depending upon the size, compute the lo and hi bounds.
17866 cat >conftest.$ac_ext <<_ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h. */
17872 $ac_includes_default
17873 typedef char ac__type_sizeof_;
17877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } && {
17898 test -z "$ac_c_werror_flag" ||
17899 test ! -s conftest.err
17900 } && test -s conftest.$ac_objext; then
17903 cat >conftest.$ac_ext <<_ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909 $ac_includes_default
17910 typedef char ac__type_sizeof_;
17914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17921 rm -f conftest.$ac_objext
17922 if { (ac_try="$ac_compile"
17923 case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_compile") 2>conftest.er1
17930 grep -v '^ *+' conftest.er1 >conftest.err
17932 cat conftest.err >&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } && {
17935 test -z "$ac_c_werror_flag" ||
17936 test ! -s conftest.err
17937 } && test -s conftest.$ac_objext; then
17938 ac_hi=$ac_mid; break
17940 echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17943 ac_lo=`expr $ac_mid + 1`
17944 if test $ac_lo -le $ac_mid; then
17948 ac_mid=`expr 2 '*' $ac_mid + 1`
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $ac_includes_default
17964 typedef char ac__type_sizeof_;
17968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_compile") 2>conftest.er1
17984 grep -v '^ *+' conftest.er1 >conftest.err
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest.$ac_objext; then
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 $ac_includes_default
18001 typedef char ac__type_sizeof_;
18005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest.$ac_objext; then
18029 ac_lo=$ac_mid; break
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_hi=`expr '(' $ac_mid ')' - 1`
18035 if test $ac_mid -le $ac_hi; then
18039 ac_mid=`expr 2 '*' $ac_mid`
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 # Binary search between lo and hi bounds.
18056 while test "x$ac_lo" != "x$ac_hi"; do
18057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 $ac_includes_default
18065 typedef char ac__type_sizeof_;
18069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_compile") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest.$ac_objext; then
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 ac_lo=`expr '(' $ac_mid ')' + 1`
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 ?*) ac_cv_sizeof_char=$ac_lo;;
18105 '') if test "$ac_cv_type_char" = yes; then
18106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18107 See \`config.log' for more details." >&5
18108 echo "$as_me: error: cannot compute sizeof (char)
18109 See \`config.log' for more details." >&2;}
18110 { (exit 77); exit 77; }; }
18112 ac_cv_sizeof_char=0
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 $ac_includes_default
18123 typedef char ac__type_sizeof_;
18124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18127 #include <stdlib.h>
18132 FILE *f = fopen ("conftest.val", "w");
18135 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18137 long int i = longval ();
18138 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18140 fprintf (f, "%ld\n", i);
18144 unsigned long int i = ulongval ();
18145 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18147 fprintf (f, "%lu\n", i);
18149 return ferror (f) || fclose (f) != 0;
18155 rm -f conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_sizeof_char=`cat conftest.val`
18177 echo "$as_me: program exited with status $ac_status" >&5
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ( exit $ac_status )
18182 if test "$ac_cv_type_char" = yes; then
18183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18184 See \`config.log' for more details." >&5
18185 echo "$as_me: error: cannot compute sizeof (char)
18186 See \`config.log' for more details." >&2;}
18187 { (exit 77); exit 77; }; }
18189 ac_cv_sizeof_char=0
18192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18197 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18201 cat >>confdefs.h <<_ACEOF
18202 #define SIZEOF_CHAR $ac_cv_sizeof_char
18206 { echo "$as_me:$LINENO: checking for short" >&5
18207 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
18208 if test "${ac_cv_type_short+set}" = set; then
18209 echo $ECHO_N "(cached) $ECHO_C" >&6
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 $ac_includes_default
18218 typedef short ac__type_new_;
18222 if ((ac__type_new_ *) 0)
18224 if (sizeof (ac__type_new_))
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_compile") 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } && {
18244 test -z "$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 } && test -s conftest.$ac_objext; then
18247 ac_cv_type_short=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_type_short=no
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18258 echo "${ECHO_T}$ac_cv_type_short" >&6; }
18260 # The cast to long int works around a bug in the HP C Compiler
18261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18263 # This bug is HP SR number 8606223364.
18264 { echo "$as_me:$LINENO: checking size of short" >&5
18265 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
18266 if test "${ac_cv_sizeof_short+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 if test "$cross_compiling" = yes; then
18270 # Depending upon the size, compute the lo and hi bounds.
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18278 typedef short ac__type_sizeof_;
18282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18289 rm -f conftest.$ac_objext
18290 if { (ac_try="$ac_compile"
18291 case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18298 grep -v '^ *+' conftest.er1 >conftest.err
18300 cat conftest.err >&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.$ac_objext; then
18308 cat >conftest.$ac_ext <<_ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18315 typedef short ac__type_sizeof_;
18319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18326 rm -f conftest.$ac_objext
18327 if { (ac_try="$ac_compile"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_compile") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1 >conftest.err
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest.$ac_objext; then
18343 ac_hi=$ac_mid; break
18345 echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18348 ac_lo=`expr $ac_mid + 1`
18349 if test $ac_lo -le $ac_mid; then
18353 ac_mid=`expr 2 '*' $ac_mid + 1`
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 cat >conftest.$ac_ext <<_ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h. */
18368 $ac_includes_default
18369 typedef short ac__type_sizeof_;
18373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18380 rm -f conftest.$ac_objext
18381 if { (ac_try="$ac_compile"
18382 case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $ac_includes_default
18406 typedef short ac__type_sizeof_;
18410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_lo=$ac_mid; break
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 ac_hi=`expr '(' $ac_mid ')' - 1`
18440 if test $ac_mid -le $ac_hi; then
18444 ac_mid=`expr 2 '*' $ac_mid`
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 # Binary search between lo and hi bounds.
18461 while test "x$ac_lo" != "x$ac_hi"; do
18462 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18463 cat >conftest.$ac_ext <<_ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 $ac_includes_default
18470 typedef short ac__type_sizeof_;
18474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18481 rm -f conftest.$ac_objext
18482 if { (ac_try="$ac_compile"
18483 case "(($ac_try" in
18484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485 *) ac_try_echo=$ac_try;;
18487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488 (eval "$ac_compile") 2>conftest.er1
18490 grep -v '^ *+' conftest.er1 >conftest.err
18492 cat conftest.err >&5
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } && {
18495 test -z "$ac_c_werror_flag" ||
18496 test ! -s conftest.err
18497 } && test -s conftest.$ac_objext; then
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 ac_lo=`expr '(' $ac_mid ')' + 1`
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18509 ?*) ac_cv_sizeof_short=$ac_lo;;
18510 '') if test "$ac_cv_type_short" = yes; then
18511 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18512 See \`config.log' for more details." >&5
18513 echo "$as_me: error: cannot compute sizeof (short)
18514 See \`config.log' for more details." >&2;}
18515 { (exit 77); exit 77; }; }
18517 ac_cv_sizeof_short=0
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 $ac_includes_default
18528 typedef short ac__type_sizeof_;
18529 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18530 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18532 #include <stdlib.h>
18537 FILE *f = fopen ("conftest.val", "w");
18540 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18542 long int i = longval ();
18543 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18545 fprintf (f, "%ld\n", i);
18549 unsigned long int i = ulongval ();
18550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18552 fprintf (f, "%lu\n", i);
18554 return ferror (f) || fclose (f) != 0;
18560 rm -f conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_link") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18580 ac_cv_sizeof_short=`cat conftest.val`
18582 echo "$as_me: program exited with status $ac_status" >&5
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ( exit $ac_status )
18587 if test "$ac_cv_type_short" = yes; then
18588 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18589 See \`config.log' for more details." >&5
18590 echo "$as_me: error: cannot compute sizeof (short)
18591 See \`config.log' for more details." >&2;}
18592 { (exit 77); exit 77; }; }
18594 ac_cv_sizeof_short=0
18597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18601 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18602 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
18606 cat >>confdefs.h <<_ACEOF
18607 #define SIZEOF_SHORT $ac_cv_sizeof_short
18611 { echo "$as_me:$LINENO: checking for int" >&5
18612 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
18613 if test "${ac_cv_type_int+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 cat >conftest.$ac_ext <<_ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h. */
18622 $ac_includes_default
18623 typedef int ac__type_new_;
18627 if ((ac__type_new_ *) 0)
18629 if (sizeof (ac__type_new_))
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18662 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18663 echo "${ECHO_T}$ac_cv_type_int" >&6; }
18665 # The cast to long int works around a bug in the HP C Compiler
18666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18668 # This bug is HP SR number 8606223364.
18669 { echo "$as_me:$LINENO: checking size of int" >&5
18670 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
18671 if test "${ac_cv_sizeof_int+set}" = set; then
18672 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 if test "$cross_compiling" = yes; then
18675 # Depending upon the size, compute the lo and hi bounds.
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18683 typedef int ac__type_sizeof_;
18687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18694 rm -f conftest.$ac_objext
18695 if { (ac_try="$ac_compile"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.$ac_objext; then
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18720 typedef int ac__type_sizeof_;
18724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_compile") 2>conftest.er1
18740 grep -v '^ *+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest.$ac_objext; then
18748 ac_hi=$ac_mid; break
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_lo=`expr $ac_mid + 1`
18754 if test $ac_lo -le $ac_mid; then
18758 ac_mid=`expr 2 '*' $ac_mid + 1`
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 cat >conftest.$ac_ext <<_ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18773 $ac_includes_default
18774 typedef int ac__type_sizeof_;
18778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 $ac_includes_default
18811 typedef int ac__type_sizeof_;
18815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18839 ac_lo=$ac_mid; break
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_hi=`expr '(' $ac_mid ')' - 1`
18845 if test $ac_mid -le $ac_hi; then
18849 ac_mid=`expr 2 '*' $ac_mid`
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 # Binary search between lo and hi bounds.
18866 while test "x$ac_lo" != "x$ac_hi"; do
18867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18868 cat >conftest.$ac_ext <<_ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 $ac_includes_default
18875 typedef int ac__type_sizeof_;
18879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_compile") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1 >conftest.err
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest.$ac_objext; then
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_lo=`expr '(' $ac_mid ')' + 1`
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 ?*) ac_cv_sizeof_int=$ac_lo;;
18915 '') if test "$ac_cv_type_int" = yes; then
18916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18917 See \`config.log' for more details." >&5
18918 echo "$as_me: error: cannot compute sizeof (int)
18919 See \`config.log' for more details." >&2;}
18920 { (exit 77); exit 77; }; }
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18933 typedef int ac__type_sizeof_;
18934 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18935 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18937 #include <stdlib.h>
18942 FILE *f = fopen ("conftest.val", "w");
18945 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18947 long int i = longval ();
18948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18950 fprintf (f, "%ld\n", i);
18954 unsigned long int i = ulongval ();
18955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
18957 fprintf (f, "%lu\n", i);
18959 return ferror (f) || fclose (f) != 0;
18965 rm -f conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_link") 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 ac_cv_sizeof_int=`cat conftest.val`
18987 echo "$as_me: program exited with status $ac_status" >&5
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ( exit $ac_status )
18992 if test "$ac_cv_type_int" = yes; then
18993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18994 See \`config.log' for more details." >&5
18995 echo "$as_me: error: cannot compute sizeof (int)
18996 See \`config.log' for more details." >&2;}
18997 { (exit 77); exit 77; }; }
19002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19006 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19007 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19011 cat >>confdefs.h <<_ACEOF
19012 #define SIZEOF_INT $ac_cv_sizeof_int
19016 { echo "$as_me:$LINENO: checking for long" >&5
19017 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
19018 if test "${ac_cv_type_long+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 cat >conftest.$ac_ext <<_ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 $ac_includes_default
19028 typedef long ac__type_new_;
19032 if ((ac__type_new_ *) 0)
19034 if (sizeof (ac__type_new_))
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_compile") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest.$ac_objext; then
19057 ac_cv_type_long=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19068 echo "${ECHO_T}$ac_cv_type_long" >&6; }
19070 # The cast to long int works around a bug in the HP C Compiler
19071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19073 # This bug is HP SR number 8606223364.
19074 { echo "$as_me:$LINENO: checking size of long" >&5
19075 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
19076 if test "${ac_cv_sizeof_long+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 if test "$cross_compiling" = yes; then
19080 # Depending upon the size, compute the lo and hi bounds.
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 $ac_includes_default
19088 typedef long ac__type_sizeof_;
19092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19124 $ac_includes_default
19125 typedef long ac__type_sizeof_;
19129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_compile") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest.$ac_objext; then
19153 ac_hi=$ac_mid; break
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_lo=`expr $ac_mid + 1`
19159 if test $ac_lo -le $ac_mid; then
19163 ac_mid=`expr 2 '*' $ac_mid + 1`
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 $ac_includes_default
19179 typedef long ac__type_sizeof_;
19183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 $ac_includes_default
19216 typedef long ac__type_sizeof_;
19220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } && {
19241 test -z "$ac_c_werror_flag" ||
19242 test ! -s conftest.err
19243 } && test -s conftest.$ac_objext; then
19244 ac_lo=$ac_mid; break
19246 echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19249 ac_hi=`expr '(' $ac_mid ')' - 1`
19250 if test $ac_mid -le $ac_hi; then
19254 ac_mid=`expr 2 '*' $ac_mid`
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 # Binary search between lo and hi bounds.
19271 while test "x$ac_lo" != "x$ac_hi"; do
19272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 $ac_includes_default
19280 typedef long ac__type_sizeof_;
19284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest.$ac_objext; then
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_lo=`expr '(' $ac_mid ')' + 1`
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 ?*) ac_cv_sizeof_long=$ac_lo;;
19320 '') if test "$ac_cv_type_long" = yes; then
19321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19322 See \`config.log' for more details." >&5
19323 echo "$as_me: error: cannot compute sizeof (long)
19324 See \`config.log' for more details." >&2;}
19325 { (exit 77); exit 77; }; }
19327 ac_cv_sizeof_long=0
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 $ac_includes_default
19338 typedef long ac__type_sizeof_;
19339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19342 #include <stdlib.h>
19347 FILE *f = fopen ("conftest.val", "w");
19350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19352 long int i = longval ();
19353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19355 fprintf (f, "%ld\n", i);
19359 unsigned long int i = ulongval ();
19360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19362 fprintf (f, "%lu\n", i);
19364 return ferror (f) || fclose (f) != 0;
19370 rm -f conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_link") 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_sizeof_long=`cat conftest.val`
19392 echo "$as_me: program exited with status $ac_status" >&5
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 ( exit $ac_status )
19397 if test "$ac_cv_type_long" = yes; then
19398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19399 See \`config.log' for more details." >&5
19400 echo "$as_me: error: cannot compute sizeof (long)
19401 See \`config.log' for more details." >&2;}
19402 { (exit 77); exit 77; }; }
19404 ac_cv_sizeof_long=0
19407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19412 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
19416 cat >>confdefs.h <<_ACEOF
19417 #define SIZEOF_LONG $ac_cv_sizeof_long
19421 { echo "$as_me:$LINENO: checking for long long" >&5
19422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19423 if test "${ac_cv_type_long_long+set}" = set; then
19424 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 $ac_includes_default
19433 typedef long long ac__type_new_;
19437 if ((ac__type_new_ *) 0)
19439 if (sizeof (ac__type_new_))
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_compile") 2>conftest.er1
19454 grep -v '^ *+' conftest.er1 >conftest.err
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } && {
19459 test -z "$ac_c_werror_flag" ||
19460 test ! -s conftest.err
19461 } && test -s conftest.$ac_objext; then
19462 ac_cv_type_long_long=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19467 ac_cv_type_long_long=no
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19475 # The cast to long int works around a bug in the HP C Compiler
19476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19478 # This bug is HP SR number 8606223364.
19479 { echo "$as_me:$LINENO: checking size of long long" >&5
19480 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
19481 if test "${ac_cv_sizeof_long_long+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 if test "$cross_compiling" = yes; then
19485 # Depending upon the size, compute the lo and hi bounds.
19486 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492 $ac_includes_default
19493 typedef long long ac__type_sizeof_;
19497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_compile") 2>conftest.er1
19513 grep -v '^ *+' conftest.er1 >conftest.err
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } && {
19518 test -z "$ac_c_werror_flag" ||
19519 test ! -s conftest.err
19520 } && test -s conftest.$ac_objext; then
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19529 $ac_includes_default
19530 typedef long long ac__type_sizeof_;
19534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545 *) ac_try_echo=$ac_try;;
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548 (eval "$ac_compile") 2>conftest.er1
19550 grep -v '^ *+' conftest.er1 >conftest.err
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } && {
19555 test -z "$ac_c_werror_flag" ||
19556 test ! -s conftest.err
19557 } && test -s conftest.$ac_objext; then
19558 ac_hi=$ac_mid; break
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ac_lo=`expr $ac_mid + 1`
19564 if test $ac_lo -le $ac_mid; then
19568 ac_mid=`expr 2 '*' $ac_mid + 1`
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 cat >conftest.$ac_ext <<_ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h. */
19583 $ac_includes_default
19584 typedef long long ac__type_sizeof_;
19588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19595 rm -f conftest.$ac_objext
19596 if { (ac_try="$ac_compile"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_compile") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest.$ac_objext; then
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19620 $ac_includes_default
19621 typedef long long ac__type_sizeof_;
19625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_compile") 2>conftest.er1
19641 grep -v '^ *+' conftest.er1 >conftest.err
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } && {
19646 test -z "$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 } && test -s conftest.$ac_objext; then
19649 ac_lo=$ac_mid; break
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 ac_hi=`expr '(' $ac_mid ')' - 1`
19655 if test $ac_mid -le $ac_hi; then
19659 ac_mid=`expr 2 '*' $ac_mid`
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 # Binary search between lo and hi bounds.
19676 while test "x$ac_lo" != "x$ac_hi"; do
19677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 $ac_includes_default
19685 typedef long long ac__type_sizeof_;
19689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest.$ac_objext; then
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_lo=`expr '(' $ac_mid ')' + 1`
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19725 '') if test "$ac_cv_type_long_long" = yes; then
19726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19727 See \`config.log' for more details." >&5
19728 echo "$as_me: error: cannot compute sizeof (long long)
19729 See \`config.log' for more details." >&2;}
19730 { (exit 77); exit 77; }; }
19732 ac_cv_sizeof_long_long=0
19736 cat >conftest.$ac_ext <<_ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19743 typedef long long ac__type_sizeof_;
19744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19747 #include <stdlib.h>
19752 FILE *f = fopen ("conftest.val", "w");
19755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19757 long int i = longval ();
19758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19760 fprintf (f, "%ld\n", i);
19764 unsigned long int i = ulongval ();
19765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
19767 fprintf (f, "%lu\n", i);
19769 return ferror (f) || fclose (f) != 0;
19775 rm -f conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_link") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786 { (case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_try") 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; }; then
19795 ac_cv_sizeof_long_long=`cat conftest.val`
19797 echo "$as_me: program exited with status $ac_status" >&5
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ( exit $ac_status )
19802 if test "$ac_cv_type_long_long" = yes; then
19803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19804 See \`config.log' for more details." >&5
19805 echo "$as_me: error: cannot compute sizeof (long long)
19806 See \`config.log' for more details." >&2;}
19807 { (exit 77); exit 77; }; }
19809 ac_cv_sizeof_long_long=0
19812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19817 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
19821 cat >>confdefs.h <<_ACEOF
19822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19826 if test x$ac_cv_sizeof_char = x1; then
19827 cat >>confdefs.h <<\_ACEOF
19828 #define int8_t signed char
19831 cat >>confdefs.h <<\_ACEOF
19832 #define uint8_t unsigned char
19836 if test x$ac_cv_sizeof_short = x2; then
19837 cat >>confdefs.h <<\_ACEOF
19838 #define int16_t signed short
19841 cat >>confdefs.h <<\_ACEOF
19842 #define uint16_t unsigned short
19846 if test x$ac_cv_sizeof_int = x2; then
19847 cat >>confdefs.h <<\_ACEOF
19848 #define int16_t signed int
19851 cat >>confdefs.h <<\_ACEOF
19852 #define uint16_t unsigned int
19857 if test x$ac_cv_sizeof_int = x4; then
19858 cat >>confdefs.h <<\_ACEOF
19859 #define int32_t signed int
19862 cat >>confdefs.h <<\_ACEOF
19863 #define uint32_t unsigned int
19867 if test x$ac_cv_sizeof_long = x4; then
19868 cat >>confdefs.h <<\_ACEOF
19869 #define int32_t signed long
19872 cat >>confdefs.h <<\_ACEOF
19873 #define uint32_t unsigned long
19878 if test x$ac_cv_sizeof_long = x8; then
19879 cat >>confdefs.h <<\_ACEOF
19880 #define int64_t signed long
19883 cat >>confdefs.h <<\_ACEOF
19884 #define uint64_t unsigned long
19887 cat >>confdefs.h <<\_ACEOF
19888 #define SDL_HAS_64BIT_TYPE 1
19892 if test x$ac_cv_sizeof_long_long = x8; then
19893 cat >>confdefs.h <<\_ACEOF
19894 #define int64_t signed long long
19897 cat >>confdefs.h <<\_ACEOF
19898 #define uint64_t unsigned long long
19901 cat >>confdefs.h <<\_ACEOF
19902 #define SDL_HAS_64BIT_TYPE 1
19907 cat >>confdefs.h <<\_ACEOF
19908 #define size_t unsigned int
19911 cat >>confdefs.h <<\_ACEOF
19912 #define uintptr_t unsigned long
19917 # Standard C sources
19918 SOURCES="$SOURCES $srcdir/src/*.c"
19919 SOURCES="$SOURCES $srcdir/src/audio/*.c"
19920 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
19921 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
19922 SOURCES="$SOURCES $srcdir/src/events/*.c"
19923 SOURCES="$SOURCES $srcdir/src/file/*.c"
19924 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
19925 SOURCES="$SOURCES $srcdir/src/thread/*.c"
19926 SOURCES="$SOURCES $srcdir/src/timer/*.c"
19927 SOURCES="$SOURCES $srcdir/src/video/*.c"
19930 # Check whether --enable-audio was given.
19931 if test "${enable_audio+set}" = set; then
19932 enableval=$enable_audio;
19937 if test x$enable_audio != xyes; then
19938 cat >>confdefs.h <<\_ACEOF
19939 #define SDL_AUDIO_DISABLED 1
19943 # Check whether --enable-video was given.
19944 if test "${enable_video+set}" = set; then
19945 enableval=$enable_video;
19950 if test x$enable_video != xyes; then
19951 cat >>confdefs.h <<\_ACEOF
19952 #define SDL_VIDEO_DISABLED 1
19956 # Check whether --enable-events was given.
19957 if test "${enable_events+set}" = set; then
19958 enableval=$enable_events;
19963 if test x$enable_events != xyes; then
19964 cat >>confdefs.h <<\_ACEOF
19965 #define SDL_EVENTS_DISABLED 1
19969 # Check whether --enable-joystick was given.
19970 if test "${enable_joystick+set}" = set; then
19971 enableval=$enable_joystick;
19973 enable_joystick=yes
19976 if test x$enable_joystick != xyes; then
19977 cat >>confdefs.h <<\_ACEOF
19978 #define SDL_JOYSTICK_DISABLED 1
19982 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
19984 # Check whether --enable-cdrom was given.
19985 if test "${enable_cdrom+set}" = set; then
19986 enableval=$enable_cdrom;
19991 if test x$enable_cdrom != xyes; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define SDL_CDROM_DISABLED 1
19997 # Check whether --enable-threads was given.
19998 if test "${enable_threads+set}" = set; then
19999 enableval=$enable_threads;
20004 if test x$enable_threads != xyes; then
20005 cat >>confdefs.h <<\_ACEOF
20006 #define SDL_THREADS_DISABLED 1
20010 # Check whether --enable-timers was given.
20011 if test "${enable_timers+set}" = set; then
20012 enableval=$enable_timers;
20017 if test x$enable_timers != xyes; then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define SDL_TIMERS_DISABLED 1
20023 # Check whether --enable-file was given.
20024 if test "${enable_file+set}" = set; then
20025 enableval=$enable_file;
20030 if test x$enable_file != xyes; then
20031 cat >>confdefs.h <<\_ACEOF
20032 #define SDL_FILE_DISABLED 1
20036 # Check whether --enable-loadso was given.
20037 if test "${enable_loadso+set}" = set; then
20038 enableval=$enable_loadso;
20043 if test x$enable_loadso != xyes; then
20044 cat >>confdefs.h <<\_ACEOF
20045 #define SDL_LOADSO_DISABLED 1
20049 # Check whether --enable-cpuinfo was given.
20050 if test "${enable_cpuinfo+set}" = set; then
20051 enableval=$enable_cpuinfo;
20056 if test x$enable_cpuinfo != xyes; then
20057 cat >>confdefs.h <<\_ACEOF
20058 #define SDL_CPUINFO_DISABLED 1
20062 # Check whether --enable-assembly was given.
20063 if test "${enable_assembly+set}" = set; then
20064 enableval=$enable_assembly;
20066 enable_assembly=yes
20069 if test x$enable_assembly = xyes; then
20070 cat >>confdefs.h <<\_ACEOF
20071 #define SDL_ASSEMBLY_ROUTINES 1
20078 # Check whether --enable-oss was given.
20079 if test "${enable_oss+set}" = set; then
20080 enableval=$enable_oss;
20085 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
20086 { echo "$as_me:$LINENO: checking for OSS audio support" >&5
20087 echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6; }
20089 if test x$have_oss != xyes; then
20090 cat >conftest.$ac_ext <<_ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20097 #include <sys/soundcard.h>
20103 int arg = SNDCTL_DSP_SETFRAGMENT;
20109 rm -f conftest.$ac_objext
20110 if { (ac_try="$ac_compile"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_compile") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest.$ac_objext; then
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20138 if test x$have_oss != xyes; then
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20146 #include <soundcard.h>
20152 int arg = SNDCTL_DSP_SETFRAGMENT;
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_compile") 2>conftest.er1
20167 grep -v '^ *+' conftest.er1 >conftest.err
20169 cat conftest.err >&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && {
20172 test -z "$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 } && test -s conftest.$ac_objext; then
20177 cat >>confdefs.h <<\_ACEOF
20178 #define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $have_oss" >&5
20192 echo "${ECHO_T}$have_oss" >&6; }
20193 if test x$have_oss = xyes; then
20194 cat >>confdefs.h <<\_ACEOF
20195 #define SDL_AUDIO_DRIVER_OSS 1
20198 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
20199 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
20202 # We may need to link with ossaudio emulation library
20204 *-*-openbsd*|*-*-netbsd*)
20205 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
20213 # Check whether --enable-alsa was given.
20214 if test "${enable_alsa+set}" = set; then
20215 enableval=$enable_alsa;
20220 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
20221 alsa_save_CFLAGS="$CFLAGS"
20222 alsa_save_LDFLAGS="$LDFLAGS"
20223 alsa_save_LIBS="$LIBS"
20227 # Check whether --with-alsa-prefix was given.
20228 if test "${with_alsa_prefix+set}" = set; then
20229 withval=$with_alsa_prefix; alsa_prefix="$withval"
20236 # Check whether --with-alsa-inc-prefix was given.
20237 if test "${with_alsa_inc_prefix+set}" = set; then
20238 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
20244 # Check whether --enable-alsatest was given.
20245 if test "${enable_alsatest+set}" = set; then
20246 enableval=$enable_alsatest; enable_alsatest="$enableval"
20248 enable_alsatest=yes
20252 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
20253 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
20254 if test "$alsa_inc_prefix" != "" ; then
20255 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
20256 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
20258 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20259 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
20261 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
20262 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
20263 if test "$alsa_prefix" != "" ; then
20264 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
20265 LDFLAGS="$LDFLAGS $ALSA_LIBS"
20268 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
20269 LIBS=`echo $LIBS | sed 's/-lm//'`
20270 LIBS=`echo $LIBS | sed 's/-ldl//'`
20271 LIBS=`echo $LIBS | sed 's/-lpthread//'`
20272 LIBS=`echo $LIBS | sed 's/ //'`
20273 LIBS="$ALSA_LIBS $LIBS"
20274 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20275 echo "${ECHO_T}$ALSA_LIBS" >&6; }
20277 min_alsa_version=0.9.0
20278 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
20279 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
20281 alsa_min_major_version=`echo $min_alsa_version | \
20282 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20283 alsa_min_minor_version=`echo $min_alsa_version | \
20284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20285 alsa_min_micro_version=`echo $min_alsa_version | \
20286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20290 ac_cpp='$CPP $CPPFLAGS'
20291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 #include <alsa/asoundlib.h>
20308 /* ensure backward compatibility */
20309 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
20310 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
20312 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
20313 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
20315 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
20316 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
20319 # if(SND_LIB_MAJOR > $alsa_min_major_version)
20322 # if(SND_LIB_MAJOR < $alsa_min_major_version)
20323 # error not present
20326 # if(SND_LIB_MINOR > $alsa_min_minor_version)
20329 # if(SND_LIB_MINOR < $alsa_min_minor_version)
20330 # error not present
20333 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
20334 # error not present
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_compile") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest.$ac_objext; then
20361 { echo "$as_me:$LINENO: result: found." >&5
20362 echo "${ECHO_T}found." >&6; }
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 { echo "$as_me:$LINENO: result: not present." >&5
20368 echo "${ECHO_T}not present." >&6; }
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20382 if test "x$enable_alsatest" = "xyes"; then
20384 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
20385 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
20386 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lasound $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20398 /* Override any GCC internal prototype to avoid an error.
20399 Use char because int might match the return type of a GCC
20400 builtin and then its argument prototype would still apply. */
20404 char snd_ctl_open ();
20408 return snd_ctl_open ();
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_link") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest$ac_exeext &&
20430 $as_test_x conftest$ac_exeext; then
20431 ac_cv_lib_asound_snd_ctl_open=yes
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ac_cv_lib_asound_snd_ctl_open=no
20439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20440 conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20443 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
20444 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
20445 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
20446 cat >>confdefs.h <<_ACEOF
20447 #define HAVE_LIBASOUND 1
20450 LIBS="-lasound $LIBS"
20460 if test "x$alsa_found" = "xyes" ; then
20462 LIBS=`echo $LIBS | sed 's/-lasound//g'`
20463 LIBS=`echo $LIBS | sed 's/ //'`
20464 LIBS="-lasound $LIBS"
20466 if test "x$alsa_found" = "xno" ; then
20468 CFLAGS="$alsa_save_CFLAGS"
20469 LDFLAGS="$alsa_save_LDFLAGS"
20470 LIBS="$alsa_save_LIBS"
20478 # Restore all flags from before the ALSA detection runs
20479 CFLAGS="$alsa_save_CFLAGS"
20480 LDFLAGS="$alsa_save_LDFLAGS"
20481 LIBS="$alsa_save_LIBS"
20482 if test x$have_alsa = xyes; then
20483 # Check whether --enable-alsa-shared was given.
20484 if test "${enable_alsa_shared+set}" = set; then
20485 enableval=$enable_alsa_shared;
20487 enable_alsa_shared=yes
20490 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20492 cat >>confdefs.h <<\_ACEOF
20493 #define SDL_AUDIO_DRIVER_ALSA 1
20496 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
20497 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
20498 if test x$have_loadso != xyes && \
20499 test x$enable_alsa_shared = xyes; then
20500 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
20501 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
20503 if test x$have_loadso = xyes && \
20504 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
20505 echo "-- dynamic libasound -> $alsa_lib"
20506 cat >>confdefs.h <<_ACEOF
20507 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
20511 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
20520 if test x$enable_audio = xyes; then
20521 { echo "$as_me:$LINENO: checking for dmedia audio support" >&5
20522 echo $ECHO_N "checking for dmedia audio support... $ECHO_C" >&6; }
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20531 #include <dmedia/audio.h>
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547 *) ac_try_echo=$ac_try;;
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 { echo "$as_me:$LINENO: result: $have_dmedia" >&5
20572 echo "${ECHO_T}$have_dmedia" >&6; }
20573 # Set up files for the audio library
20574 if test x$have_dmedia = xyes; then
20575 cat >>confdefs.h <<\_ACEOF
20576 #define SDL_AUDIO_DRIVER_DMEDIA 1
20579 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
20580 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
20595 if test x$enable_audio = xyes; then
20596 { echo "$as_me:$LINENO: checking for MME audio support" >&5
20597 echo $ECHO_N "checking for MME audio support... $ECHO_C" >&6; }
20598 MME_CFLAGS="-I/usr/include/mme"
20601 save_CFLAGS="$CFLAGS"
20602 CFLAGS="$CFLAGS $MME_CFLAGS"
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 #include <mme_api.h>
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_compile") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && {
20636 test -z "$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20638 } && test -s conftest.$ac_objext; then
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 CFLAGS="$save_CFLAGS"
20651 { echo "$as_me:$LINENO: result: $have_mme" >&5
20652 echo "${ECHO_T}$have_mme" >&6; }
20653 # Set up files for the audio library
20654 if test x$have_mme = xyes; then
20655 cat >>confdefs.h <<\_ACEOF
20656 #define SDL_AUDIO_DRIVER_MMEAUDIO 1
20659 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
20660 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
20661 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
20669 # Check whether --enable-esd was given.
20670 if test "${enable_esd+set}" = set; then
20671 enableval=$enable_esd;
20676 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
20678 # Check whether --with-esd-prefix was given.
20679 if test "${with_esd_prefix+set}" = set; then
20680 withval=$with_esd_prefix; esd_prefix="$withval"
20686 # Check whether --with-esd-exec-prefix was given.
20687 if test "${with_esd_exec_prefix+set}" = set; then
20688 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
20693 # Check whether --enable-esdtest was given.
20694 if test "${enable_esdtest+set}" = set; then
20695 enableval=$enable_esdtest;
20701 if test x$esd_exec_prefix != x ; then
20702 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
20703 if test x${ESD_CONFIG+set} != xset ; then
20704 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
20707 if test x$esd_prefix != x ; then
20708 esd_args="$esd_args --prefix=$esd_prefix"
20709 if test x${ESD_CONFIG+set} != xset ; then
20710 ESD_CONFIG=$esd_prefix/bin/esd-config
20714 # Extract the first word of "esd-config", so it can be a program name with args.
20715 set dummy esd-config; ac_word=$2
20716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20718 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
20719 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 case $ESD_CONFIG in
20723 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
20726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20727 for as_dir in $PATH
20730 test -z "$as_dir" && as_dir=.
20731 for ac_exec_ext in '' $ac_executable_extensions; do
20732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20733 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20741 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
20745 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
20746 if test -n "$ESD_CONFIG"; then
20747 { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
20748 echo "${ECHO_T}$ESD_CONFIG" >&6; }
20750 { echo "$as_me:$LINENO: result: no" >&5
20751 echo "${ECHO_T}no" >&6; }
20755 min_esd_version=0.2.8
20756 { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
20757 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
20759 if test "$ESD_CONFIG" = "no" ; then
20762 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
20763 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
20765 esd_major_version=`$ESD_CONFIG $esd_args --version | \
20766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20767 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
20768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20769 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
20770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20771 if test "x$enable_esdtest" = "xyes" ; then
20772 ac_save_CFLAGS="$CFLAGS"
20773 ac_save_LIBS="$LIBS"
20774 CFLAGS="$CFLAGS $ESD_CFLAGS"
20775 LIBS="$LIBS $ESD_LIBS"
20777 if test "$cross_compiling" = yes; then
20778 echo $ac_n "cross compiling; assumed OK... $ac_c"
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20788 #include <stdlib.h>
20789 #include <string.h>
20793 my_strdup (char *str)
20799 new_str = malloc ((strlen (str) + 1) * sizeof(char));
20800 strcpy (new_str, str);
20810 int major, minor, micro;
20813 system ("touch conf.esdtest");
20815 /* HP/UX 9 (%@#!) writes to sscanf strings */
20816 tmp_version = my_strdup("$min_esd_version");
20817 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
20818 printf("%s, bad version string\n", "$min_esd_version");
20822 if (($esd_major_version > major) ||
20823 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
20824 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
20830 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
20831 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
20832 printf("*** best to upgrade to the required version.\n");
20833 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
20834 printf("*** to point to the correct copy of esd-config, and remove the file\n");
20835 printf("*** config.cache before re-running configure\n");
20842 rm -f conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_link") 2>&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853 { (case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_try") 2>&5
20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861 (exit $ac_status); }; }; then
20864 echo "$as_me: program exited with status $ac_status" >&5
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ( exit $ac_status )
20871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20875 CFLAGS="$ac_save_CFLAGS"
20876 LIBS="$ac_save_LIBS"
20879 if test "x$no_esd" = x ; then
20880 { echo "$as_me:$LINENO: result: yes" >&5
20881 echo "${ECHO_T}yes" >&6; }
20884 { echo "$as_me:$LINENO: result: no" >&5
20885 echo "${ECHO_T}no" >&6; }
20886 if test "$ESD_CONFIG" = "no" ; then
20887 echo "*** The esd-config script installed by ESD could not be found"
20888 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
20889 echo "*** your path, or set the ESD_CONFIG environment variable to the"
20890 echo "*** full path to esd-config."
20892 if test -f conf.esdtest ; then
20895 echo "*** Could not run ESD test program, checking why..."
20896 CFLAGS="$CFLAGS $ESD_CFLAGS"
20897 LIBS="$LIBS $ESD_LIBS"
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20925 grep -v '^ *+' conftest.er1 >conftest.err
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 echo "*** The test program compiled, but did not run. This usually means"
20935 echo "*** that the run-time linker is not finding ESD or finding the wrong"
20936 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
20937 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20938 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20939 echo "*** is required on your system"
20941 echo "*** If you have an old version installed, it is best to remove it, although"
20942 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 echo "*** The test program failed to compile or link. See the file config.log for the"
20948 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
20949 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
20950 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
20953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20954 conftest$ac_exeext conftest.$ac_ext
20955 CFLAGS="$ac_save_CFLAGS"
20956 LIBS="$ac_save_LIBS"
20967 if test x$have_esd = xyes; then
20968 # Check whether --enable-esd-shared was given.
20969 if test "${enable_esd_shared+set}" = set; then
20970 enableval=$enable_esd_shared;
20972 enable_esd_shared=yes
20975 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20977 cat >>confdefs.h <<\_ACEOF
20978 #define SDL_AUDIO_DRIVER_ESD 1
20981 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
20982 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
20983 if test x$have_loadso != xyes && \
20984 test x$enable_esd_shared = xyes; then
20985 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
20986 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
20988 if test x$have_loadso = xyes && \
20989 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
20990 echo "-- dynamic libesd -> $esd_lib"
20991 cat >>confdefs.h <<_ACEOF
20992 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
20996 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
21005 # Check whether --enable-pulseaudio was given.
21006 if test "${enable_pulseaudio+set}" = set; then
21007 enableval=$enable_pulseaudio;
21009 enable_pulseaudio=yes
21012 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
21015 PULSE_REQUIRED_VERSION=0.9
21017 # Extract the first word of "pkg-config", so it can be a program name with args.
21018 set dummy pkg-config; ac_word=$2
21019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21024 case $PKG_CONFIG in
21026 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21030 for as_dir in $PATH
21033 test -z "$as_dir" && as_dir=.
21034 for ac_exec_ext in '' $ac_executable_extensions; do
21035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21036 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21049 if test -n "$PKG_CONFIG"; then
21050 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21051 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21053 { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21058 { echo "$as_me:$LINENO: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5
21059 echo $ECHO_N "checking for PulseAudio $PULSE_REQUIRED_VERSION support... $ECHO_C" >&6; }
21060 if test x$PKG_CONFIG != xno; then
21061 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
21062 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
21063 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
21067 { echo "$as_me:$LINENO: result: $audio_pulse" >&5
21068 echo "${ECHO_T}$audio_pulse" >&6; }
21070 if test x$audio_pulse = xyes; then
21071 # Check whether --enable-pulseaudio-shared was given.
21072 if test "${enable_pulseaudio_shared+set}" = set; then
21073 enableval=$enable_pulseaudio_shared;
21075 enable_pulseaudio_shared=yes
21078 pulse_lib=`find_lib "libpulse-simple.so.*" "$PULSE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21080 cat >>confdefs.h <<\_ACEOF
21081 #define SDL_AUDIO_DRIVER_PULSE 1
21084 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
21085 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
21086 if test x$have_loadso != xyes && \
21087 test x$enable_pulseaudio_shared = xyes; then
21088 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
21089 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
21091 if test x$have_loadso = xyes && \
21092 test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
21093 echo "-- dynamic libpulse-simple -> $pulse_lib"
21094 cat >>confdefs.h <<_ACEOF
21095 #define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
21099 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
21108 # Check whether --enable-arts was given.
21109 if test "${enable_arts+set}" = set; then
21110 enableval=$enable_arts;
21115 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
21116 # Extract the first word of "artsc-config", so it can be a program name with args.
21117 set dummy artsc-config; ac_word=$2
21118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21120 if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 case $ARTSCONFIG in
21125 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
21128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21129 for as_dir in $PATH
21132 test -z "$as_dir" && as_dir=.
21133 for ac_exec_ext in '' $ac_executable_extensions; do
21134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21135 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
21136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21146 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
21147 if test -n "$ARTSCONFIG"; then
21148 { echo "$as_me:$LINENO: result: $ARTSCONFIG" >&5
21149 echo "${ECHO_T}$ARTSCONFIG" >&6; }
21151 { echo "$as_me:$LINENO: result: no" >&5
21152 echo "${ECHO_T}no" >&6; }
21156 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
21157 : # arts isn't installed
21159 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
21160 ARTS_LIBS=`$ARTSCONFIG --libs`
21161 { echo "$as_me:$LINENO: checking for aRts development environment" >&5
21162 echo $ECHO_N "checking for aRts development environment... $ECHO_C" >&6; }
21164 save_CFLAGS="$CFLAGS"
21165 CFLAGS="$CFLAGS $ARTS_CFLAGS"
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21179 arts_stream_t stream;
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 CFLAGS="$save_CFLAGS"
21214 { echo "$as_me:$LINENO: result: $audio_arts" >&5
21215 echo "${ECHO_T}$audio_arts" >&6; }
21216 if test x$audio_arts = xyes; then
21217 # Check whether --enable-arts-shared was given.
21218 if test "${enable_arts_shared+set}" = set; then
21219 enableval=$enable_arts_shared;
21221 enable_arts_shared=yes
21224 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21226 cat >>confdefs.h <<\_ACEOF
21227 #define SDL_AUDIO_DRIVER_ARTS 1
21230 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
21231 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
21232 if test x$have_loadso != xyes && \
21233 test x$enable_arts_shared = xyes; then
21234 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
21235 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
21237 if test x$have_loadso = xyes && \
21238 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
21239 echo "-- dynamic libartsc -> $arts_lib"
21240 cat >>confdefs.h <<_ACEOF
21241 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
21245 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
21255 # Check whether --enable-nas was given.
21256 if test "${enable_nas+set}" = set; then
21257 enableval=$enable_nas;
21262 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
21263 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21264 { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21265 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21266 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21269 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21270 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21272 # Is the header compilable?
21273 { echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
21274 echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6; }
21275 cat >conftest.$ac_ext <<_ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 $ac_includes_default
21282 #include <audio/audiolib.h>
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1 >conftest.err
21295 cat conftest.err >&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest.$ac_objext; then
21301 ac_header_compiler=yes
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21306 ac_header_compiler=no
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21311 echo "${ECHO_T}$ac_header_compiler" >&6; }
21313 # Is the header present?
21314 { echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
21315 echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6; }
21316 cat >conftest.$ac_ext <<_ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h. */
21322 #include <audio/audiolib.h>
21324 if { (ac_try="$ac_cpp conftest.$ac_ext"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21332 grep -v '^ *+' conftest.er1 >conftest.err
21334 cat conftest.err >&5
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); } >/dev/null && {
21337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21338 test ! -s conftest.err
21340 ac_header_preproc=yes
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 ac_header_preproc=no
21348 rm -f conftest.err conftest.$ac_ext
21349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21350 echo "${ECHO_T}$ac_header_preproc" >&6; }
21352 # So? What about this header?
21353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21356 echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
21358 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
21359 ac_header_preproc=yes
21362 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
21363 echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&5
21365 echo "$as_me: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
21367 echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&5
21369 echo "$as_me: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
21371 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
21373 echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
21377 { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21378 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21379 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 ac_cv_header_audio_audiolib_h=$ac_header_preproc
21384 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21385 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21388 if test $ac_cv_header_audio_audiolib_h = yes; then
21393 { echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
21394 echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6; }
21395 if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21398 ac_check_lib_save_LIBS=$LIBS
21399 LIBS="-laudio $LIBS"
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21407 /* Override any GCC internal prototype to avoid an error.
21408 Use char because int might match the return type of a GCC
21409 builtin and then its argument prototype would still apply. */
21413 char AuOpenServer ();
21417 return AuOpenServer ();
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_link") 2>conftest.er1
21431 grep -v '^ *+' conftest.er1 >conftest.err
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } && {
21436 test -z "$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 } && test -s conftest$ac_exeext &&
21439 $as_test_x conftest$ac_exeext; then
21440 ac_cv_lib_audio_AuOpenServer=yes
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_cv_lib_audio_AuOpenServer=no
21448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21449 conftest$ac_exeext conftest.$ac_ext
21450 LIBS=$ac_check_lib_save_LIBS
21452 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
21453 echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6; }
21454 if test $ac_cv_lib_audio_AuOpenServer = yes; then
21459 { echo "$as_me:$LINENO: checking for NAS audio support" >&5
21460 echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6; }
21463 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
21467 elif test -r /usr/X11R6/include/audio/audiolib.h; then
21469 NAS_CFLAGS="-I/usr/X11R6/include/"
21470 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
21473 elif test -r /usr/freeware/include/nas/audiolib.h; then
21475 NAS_LIBS="-lnas -lXt"
21478 { echo "$as_me:$LINENO: result: $have_nas" >&5
21479 echo "${ECHO_T}$have_nas" >&6; }
21481 if test x$have_nas = xyes; then
21482 # Check whether --enable-nas-shared was given.
21483 if test "${enable_nas_shared+set}" = set; then
21484 enableval=$enable_nas_shared;
21486 enable_nas_shared=yes
21489 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21491 if test x$have_loadso != xyes && \
21492 test x$enable_nas_shared = xyes; then
21493 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
21494 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
21496 if test x$have_loadso = xyes && \
21497 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
21498 echo "-- dynamic libaudio -> $nas_lib"
21499 cat >>confdefs.h <<_ACEOF
21500 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
21504 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
21507 cat >>confdefs.h <<\_ACEOF
21508 #define SDL_AUDIO_DRIVER_NAS 1
21511 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
21512 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
21520 # Check whether --enable-diskaudio was given.
21521 if test "${enable_diskaudio+set}" = set; then
21522 enableval=$enable_diskaudio;
21524 enable_diskaudio=yes
21527 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
21528 cat >>confdefs.h <<\_ACEOF
21529 #define SDL_AUDIO_DRIVER_DISK 1
21532 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
21538 # Check whether --enable-dummyaudio was given.
21539 if test "${enable_dummyaudio+set}" = set; then
21540 enableval=$enable_dummyaudio;
21542 enable_dummyaudio=yes
21545 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
21546 cat >>confdefs.h <<\_ACEOF
21547 #define SDL_AUDIO_DRIVER_DUMMY 1
21550 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
21556 # Check whether --enable-mintaudio was given.
21557 if test "${enable_mintaudio+set}" = set; then
21558 enableval=$enable_mintaudio;
21560 enable_mintaudio=yes
21563 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
21565 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21566 { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21567 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21568 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21572 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21574 # Is the header compilable?
21575 { echo "$as_me:$LINENO: checking mint/falcon.h usability" >&5
21576 echo $ECHO_N "checking mint/falcon.h usability... $ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 #include <mint/falcon.h>
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_compile") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1 >conftest.err
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && {
21600 test -z "$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21602 } && test -s conftest.$ac_objext; then
21603 ac_header_compiler=yes
21605 echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_compiler=no
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6; }
21615 # Is the header present?
21616 { echo "$as_me:$LINENO: checking mint/falcon.h presence" >&5
21617 echo $ECHO_N "checking mint/falcon.h presence... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 #include <mint/falcon.h>
21626 if { (ac_try="$ac_cpp conftest.$ac_ext"
21627 case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21634 grep -v '^ *+' conftest.er1 >conftest.err
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } >/dev/null && {
21639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21640 test ! -s conftest.err
21642 ac_header_preproc=yes
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ac_header_preproc=no
21650 rm -f conftest.err conftest.$ac_ext
21651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6; }
21654 # So? What about this header?
21655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21657 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the compiler's result" >&5
21660 echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result" >&2;}
21661 ac_header_preproc=yes
21664 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: present but cannot be compiled" >&5
21665 echo "$as_me: WARNING: mint/falcon.h: present but cannot be compiled" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&5
21667 echo "$as_me: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: see the Autoconf documentation" >&5
21669 echo "$as_me: WARNING: mint/falcon.h: see the Autoconf documentation" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&5
21671 echo "$as_me: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&5
21673 echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&5
21675 echo "$as_me: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&2;}
21679 { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21680 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21681 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 ac_cv_header_mint_falcon_h=$ac_header_preproc
21686 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21687 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21690 if test $ac_cv_header_mint_falcon_h = yes; then
21691 have_mint_falcon_hdr=yes
21695 if test x$have_mint_falcon_hdr = xyes; then
21697 cat >>confdefs.h <<\_ACEOF
21698 #define SDL_AUDIO_DRIVER_MINT 1
21701 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
21702 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
21708 # NASM is available from: http://nasm.sourceforge.net
21715 # Nope, bail early.
21720 { echo "$as_me:$LINENO: checking for void *" >&5
21721 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21722 if test "${ac_cv_type_void_p+set}" = set; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21732 typedef void * ac__type_new_;
21736 if ((ac__type_new_ *) 0)
21738 if (sizeof (ac__type_new_))
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 ac_cv_type_void_p=yes
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_cv_type_void_p=no
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21772 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21774 # The cast to long int works around a bug in the HP C Compiler
21775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21777 # This bug is HP SR number 8606223364.
21778 { echo "$as_me:$LINENO: checking size of void *" >&5
21779 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21780 if test "${ac_cv_sizeof_void_p+set}" = set; then
21781 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 if test "$cross_compiling" = yes; then
21784 # Depending upon the size, compute the lo and hi bounds.
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 $ac_includes_default
21792 typedef void * ac__type_sizeof_;
21796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21803 rm -f conftest.$ac_objext
21804 if { (ac_try="$ac_compile"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_compile") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest.$ac_objext; then
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21829 typedef void * ac__type_sizeof_;
21833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_compile") 2>conftest.er1
21849 grep -v '^ *+' conftest.er1 >conftest.err
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest.$ac_objext; then
21857 ac_hi=$ac_mid; break
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_lo=`expr $ac_mid + 1`
21863 if test $ac_lo -le $ac_mid; then
21867 ac_mid=`expr 2 '*' $ac_mid + 1`
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 cat >conftest.$ac_ext <<_ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 $ac_includes_default
21883 typedef void * ac__type_sizeof_;
21887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_compile") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); } && {
21908 test -z "$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21910 } && test -s conftest.$ac_objext; then
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21920 typedef void * ac__type_sizeof_;
21924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.$ac_objext; then
21948 ac_lo=$ac_mid; break
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_hi=`expr '(' $ac_mid ')' - 1`
21954 if test $ac_mid -le $ac_hi; then
21958 ac_mid=`expr 2 '*' $ac_mid`
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 # Binary search between lo and hi bounds.
21975 while test "x$ac_lo" != "x$ac_hi"; do
21976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21977 cat >conftest.$ac_ext <<_ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 $ac_includes_default
21984 typedef void * ac__type_sizeof_;
21988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_compile") 2>conftest.er1
22004 grep -v '^ *+' conftest.er1 >conftest.err
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest.$ac_objext; then
22014 echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_lo=`expr '(' $ac_mid ')' + 1`
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22024 '') if test "$ac_cv_type_void_p" = yes; then
22025 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22026 See \`config.log' for more details." >&5
22027 echo "$as_me: error: cannot compute sizeof (void *)
22028 See \`config.log' for more details." >&2;}
22029 { (exit 77); exit 77; }; }
22031 ac_cv_sizeof_void_p=0
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22042 typedef void * ac__type_sizeof_;
22043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22046 #include <stdlib.h>
22051 FILE *f = fopen ("conftest.val", "w");
22054 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22056 long int i = longval ();
22057 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22059 fprintf (f, "%ld\n", i);
22063 unsigned long int i = ulongval ();
22064 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22066 fprintf (f, "%lu\n", i);
22068 return ferror (f) || fclose (f) != 0;
22074 rm -f conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22085 { (case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_try") 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 ac_cv_sizeof_void_p=`cat conftest.val`
22096 echo "$as_me: program exited with status $ac_status" >&5
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ( exit $ac_status )
22101 if test "$ac_cv_type_void_p" = yes; then
22102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22103 See \`config.log' for more details." >&5
22104 echo "$as_me: error: cannot compute sizeof (void *)
22105 See \`config.log' for more details." >&2;}
22106 { (exit 77); exit 77; }; }
22108 ac_cv_sizeof_void_p=0
22111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22116 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22120 cat >>confdefs.h <<_ACEOF
22121 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22125 if test x$ac_cv_sizeof_void_p != x4; then
22129 # Check whether --enable-nasm was given.
22130 if test "${enable_nasm+set}" = set; then
22131 enableval=$enable_nasm;
22136 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
22139 # Usage: CompileNASM <filename>
22140 { echo "$as_me:$LINENO: checking to see if $NASM supports $1" >&5
22141 echo $ECHO_N "checking to see if $NASM supports $1... $ECHO_C" >&6; }
22142 if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
22143 CompileNASM_ret="yes"
22145 CompileNASM_ret="no"
22148 { echo "$as_me:$LINENO: result: $CompileNASM_ret" >&5
22149 echo "${ECHO_T}$CompileNASM_ret" >&6; }
22150 test "$CompileNASM_ret" = "yes"
22153 if test x"$NASMFLAGS" = x; then
22156 NASMFLAGS="-f win32"
22159 NASMFLAGS="-f macho"
22162 NASMFLAGS="-f elf32"
22167 # Extract the first word of "nasm", so it can be a program name with args.
22168 set dummy nasm; ac_word=$2
22169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22171 if test "${ac_cv_path_NASM+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
22179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22180 for as_dir in $PATH
22183 test -z "$as_dir" && as_dir=.
22184 for ac_exec_ext in '' $ac_executable_extensions; do
22185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22186 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
22187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22197 NASM=$ac_cv_path_NASM
22198 if test -n "$NASM"; then
22199 { echo "$as_me:$LINENO: result: $NASM" >&5
22200 echo "${ECHO_T}$NASM" >&6; }
22202 { echo "$as_me:$LINENO: result: no" >&5
22203 echo "${ECHO_T}no" >&6; }
22207 echo "%ifidn __OUTPUT_FORMAT__,elf32" > unquoted-sections
22208 echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
22209 echo "%endif" >> unquoted-sections
22210 CompileNASM unquoted-sections || NASM=""
22212 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
22213 cat >>confdefs.h <<\_ACEOF
22214 #define SDL_HERMES_BLITTERS 1
22217 SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
22218 NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
22220 echo "GLOBAL _bar:function hidden" > symbol-visibility
22221 echo "_bar:" >> symbol-visibility
22222 CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
22228 # this line is needed for QNX, because it's not defined the __ELF__
22230 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22232 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22240 # Check whether --enable-altivec was given.
22241 if test "${enable_altivec+set}" = set; then
22242 enableval=$enable_altivec;
22247 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
22248 save_CFLAGS="$CFLAGS"
22249 have_gcc_altivec=no
22250 have_altivec_h_hdr=no
22251 altivec_CFLAGS="-maltivec"
22252 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22254 { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -maltivec option" >&5
22255 echo $ECHO_N "checking for Altivec with GCC altivec.h and -maltivec option... $ECHO_C" >&6; }
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22263 #include <altivec.h>
22264 vector unsigned int vzero() {
22265 return vec_splat_u32(0);
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
22286 grep -v '^ *+' conftest.er1 >conftest.err
22288 cat conftest.err >&5
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } && {
22291 test -z "$ac_c_werror_flag" ||
22292 test ! -s conftest.err
22293 } && test -s conftest.$ac_objext; then
22295 have_gcc_altivec=yes
22296 have_altivec_h_hdr=yes
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22307 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22309 if test x$have_gcc_altivec = xno; then
22310 { echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
22311 echo $ECHO_N "checking for Altivec with GCC -maltivec option... $ECHO_C" >&6; }
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22319 vector unsigned int vzero() {
22320 return vec_splat_u32(0);
22332 rm -f conftest.$ac_objext
22333 if { (ac_try="$ac_compile"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_compile") 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } && {
22346 test -z "$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22348 } && test -s conftest.$ac_objext; then
22350 have_gcc_altivec=yes
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22361 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22364 if test x$have_gcc_altivec = xno; then
22365 { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -faltivec option" >&5
22366 echo $ECHO_N "checking for Altivec with GCC altivec.h and -faltivec option... $ECHO_C" >&6; }
22367 altivec_CFLAGS="-faltivec"
22368 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22376 #include <altivec.h>
22377 vector unsigned int vzero() {
22378 return vec_splat_u32(0);
22390 rm -f conftest.$ac_objext
22391 if { (ac_try="$ac_compile"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_compile") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest.$ac_objext; then
22408 have_gcc_altivec=yes
22409 have_altivec_h_hdr=yes
22412 echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22420 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22423 if test x$have_gcc_altivec = xno; then
22424 { echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
22425 echo $ECHO_N "checking for Altivec with GCC -faltivec option... $ECHO_C" >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22433 vector unsigned int vzero() {
22434 return vec_splat_u32(0);
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_compile") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest.$ac_objext; then
22464 have_gcc_altivec=yes
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474 { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22475 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22477 CFLAGS="$save_CFLAGS"
22479 if test x$have_gcc_altivec = xyes; then
22480 cat >>confdefs.h <<\_ACEOF
22481 #define SDL_ALTIVEC_BLITTERS 1
22484 if test x$have_altivec_h_hdr = xyes; then
22485 cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_ALTIVEC_H 1
22490 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
22495 CheckVisibilityHidden()
22497 { echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
22498 echo $ECHO_N "checking for GCC -fvisibility=hidden option... $ECHO_C" >&6; }
22499 have_gcc_fvisibility=no
22501 visibility_CFLAGS="-fvisibility=hidden"
22502 save_CFLAGS="$CFLAGS"
22503 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22511 #if !defined(__GNUC__) || __GNUC__ < 4
22512 #error SDL only uses visibility attributes in GCC 4 or newer
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_compile") 2>conftest.er1
22533 grep -v '^ *+' conftest.er1 >conftest.err
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest.$ac_objext; then
22542 have_gcc_fvisibility=yes
22545 echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 { echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
22553 echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
22554 CFLAGS="$save_CFLAGS"
22556 if test x$have_gcc_fvisibility = xyes; then
22557 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
22563 { echo "$as_me:$LINENO: checking for GCC -Wall option" >&5
22564 echo $ECHO_N "checking for GCC -Wall option... $ECHO_C" >&6; }
22567 save_CFLAGS="$CFLAGS"
22568 CFLAGS="$save_CFLAGS -Wall"
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22587 rm -f conftest.$ac_objext
22588 if { (ac_try="$ac_compile"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_compile") 2>conftest.er1
22596 grep -v '^ *+' conftest.er1 >conftest.err
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest.$ac_objext; then
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615 { echo "$as_me:$LINENO: result: $have_gcc_Wall" >&5
22616 echo "${ECHO_T}$have_gcc_Wall" >&6; }
22617 CFLAGS="$save_CFLAGS"
22619 if test x$have_gcc_Wall = xyes; then
22620 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22622 { echo "$as_me:$LINENO: checking for necessary GCC -Wno-multichar option" >&5
22623 echo $ECHO_N "checking for necessary GCC -Wno-multichar option... $ECHO_C" >&6; }
22624 need_gcc_Wno_multichar=no
22626 *-*-beos* | *-*-haiku*)
22627 need_gcc_Wno_multichar=yes
22630 { echo "$as_me:$LINENO: result: $need_gcc_Wno_multichar" >&5
22631 echo "${ECHO_T}$need_gcc_Wno_multichar" >&6; }
22632 if test x$need_gcc_Wno_multichar = xyes; then
22633 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
22641 # Check whether --enable-ipod was given.
22642 if test "${enable_ipod+set}" = set; then
22643 enableval=$enable_ipod;
22649 if test x$enable_ipod = xyes; then
22650 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
22651 cat >>confdefs.h <<\_ACEOF
22652 #define SDL_VIDEO_DRIVER_IPOD 1
22655 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
22661 # Check whether --enable-video-nanox was given.
22662 if test "${enable_video_nanox+set}" = set; then
22663 enableval=$enable_video_nanox;
22665 enable_video_nanox=no
22669 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
22670 # Check whether --enable-nanox-debug was given.
22671 if test "${enable_nanox_debug+set}" = set; then
22672 enableval=$enable_nanox_debug;
22674 enable_nanox_debug=no
22677 if test x$enable_nanox_debug = xyes; then
22678 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
22681 # Check whether --enable-nanox-share-memory was given.
22682 if test "${enable_nanox_share_memory+set}" = set; then
22683 enableval=$enable_nanox_share_memory;
22685 enable_nanox_share_memory=no
22688 if test x$enable_nanox_share_memory = xyes; then
22689 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
22692 # Check whether --enable-nanox_direct_fb was given.
22693 if test "${enable_nanox_direct_fb+set}" = set; then
22694 enableval=$enable_nanox_direct_fb;
22696 enable_nanox_direct_fb=no
22699 if test x$enable_nanox_direct_fb = xyes; then
22700 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
22703 cat >>confdefs.h <<\_ACEOF
22704 #define SDL_VIDEO_DRIVER_NANOX 1
22707 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
22708 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
22715 # Check whether --enable-video-x11 was given.
22716 if test "${enable_video_x11+set}" = set; then
22717 enableval=$enable_video_x11;
22719 enable_video_x11=yes
22722 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
22725 # This isn't necessary for X11, but fixes GLX detection
22726 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then
22727 x_includes="/usr/X11R6/include"
22728 x_libraries="/usr/X11R6/lib"
22732 { echo "$as_me:$LINENO: checking for X" >&5
22733 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22736 # Check whether --with-x was given.
22737 if test "${with_x+set}" = set; then
22741 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22742 if test "x$with_x" = xno; then
22743 # The user explicitly disabled X.
22746 case $x_includes,$x_libraries in #(
22747 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22748 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22749 { (exit 1); exit 1; }; };; #(
22750 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22753 # One or both of the vars are not set, and there is no cached value.
22754 ac_x_includes=no ac_x_libraries=no
22755 rm -f -r conftest.dir
22756 if mkdir conftest.dir; then
22758 cat >Imakefile <<'_ACEOF'
22760 @echo incroot='${INCROOT}'
22762 @echo usrlibdir='${USRLIBDIR}'
22764 @echo libdir='${LIBDIR}'
22766 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22768 for ac_var in incroot usrlibdir libdir; do
22769 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22771 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22772 for ac_extension in a so sl dylib la dll; do
22773 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22774 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22775 ac_im_usrlibdir=$ac_im_libdir; break
22778 # Screen out bogus values from the imake configuration. They are
22779 # bogus both because they are the default anyway, and because
22780 # using them would break gcc on systems where it needs fixed includes.
22781 case $ac_im_incroot in
22782 /usr/include) ac_x_includes= ;;
22783 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22785 case $ac_im_usrlibdir in
22786 /usr/lib | /lib) ;;
22787 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22791 rm -f -r conftest.dir
22794 # Standard set of common directories for X headers.
22795 # Check X11 before X11Rn because it is often a symlink to the current release.
22807 /usr/local/X11/include
22808 /usr/local/X11R6/include
22809 /usr/local/X11R5/include
22810 /usr/local/X11R4/include
22812 /usr/local/include/X11
22813 /usr/local/include/X11R6
22814 /usr/local/include/X11R5
22815 /usr/local/include/X11R4
22819 /usr/XFree86/include/X11
22823 /usr/unsupported/include
22824 /usr/athena/include
22825 /usr/local/x11r5/include
22826 /usr/lpp/Xamples/include
22828 /usr/openwin/include
22829 /usr/openwin/share/include'
22831 if test "$ac_x_includes" = no; then
22832 # Guess where to find include files, by looking for Xlib.h.
22833 # First, try using that file with no special directory specified.
22834 cat >conftest.$ac_ext <<_ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <X11/Xlib.h>
22842 if { (ac_try="$ac_cpp conftest.$ac_ext"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } >/dev/null && {
22855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22858 # We can compile using X headers with no special include directory.
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 for ac_dir in $ac_x_header_dirs; do
22865 if test -r "$ac_dir/X11/Xlib.h"; then
22866 ac_x_includes=$ac_dir
22872 rm -f conftest.err conftest.$ac_ext
22873 fi # $ac_x_includes = no
22875 if test "$ac_x_libraries" = no; then
22876 # Check for the libraries.
22877 # See if we find them without any special options.
22878 # Don't add to $LIBS permanently.
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 #include <X11/Xlib.h>
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_link") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest$ac_exeext &&
22913 $as_test_x conftest$ac_exeext; then
22915 # We can link X programs with no special library path.
22918 echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22922 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22924 # Don't even attempt the hair of trying to link an X program!
22925 for ac_extension in a so sl dylib la dll; do
22926 if test -r "$ac_dir/libX11.$ac_extension"; then
22927 ac_x_libraries=$ac_dir
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935 conftest$ac_exeext conftest.$ac_ext
22936 fi # $ac_x_libraries = no
22938 case $ac_x_includes,$ac_x_libraries in #(
22939 no,* | *,no | *\'*)
22940 # Didn't find X, or a directory has "'" in its name.
22941 ac_cv_have_x="have_x=no";; #(
22943 # Record where we found X for the cache.
22944 ac_cv_have_x="have_x=yes\
22945 ac_x_includes='$ac_x_includes'\
22946 ac_x_libraries='$ac_x_libraries'"
22952 eval "$ac_cv_have_x"
22955 if test "$have_x" != yes; then
22956 { echo "$as_me:$LINENO: result: $have_x" >&5
22957 echo "${ECHO_T}$have_x" >&6; }
22960 # If each of the values was on the command line, it overrides each guess.
22961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22963 # Update the cache value to reflect the command line values.
22964 ac_cv_have_x="have_x=yes\
22965 ac_x_includes='$x_includes'\
22966 ac_x_libraries='$x_libraries'"
22967 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22968 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22971 if test "$no_x" = yes; then
22972 # Not all programs may use this symbol, but it does not hurt to define it.
22974 cat >>confdefs.h <<\_ACEOF
22975 #define X_DISPLAY_MISSING 1
22978 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22980 if test -n "$x_includes"; then
22981 X_CFLAGS="$X_CFLAGS -I$x_includes"
22984 # It would also be nice to do this for all -L options, not just this one.
22985 if test -n "$x_libraries"; then
22986 X_LIBS="$X_LIBS -L$x_libraries"
22987 # For Solaris; some versions of Sun CC require a space after -R and
22988 # others require no space. Words are not sufficient . . . .
22989 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22990 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22991 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22992 ac_xsave_c_werror_flag=$ac_c_werror_flag
22993 ac_c_werror_flag=yes
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013 *) ac_try_echo=$ac_try;;
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016 (eval "$ac_link") 2>conftest.er1
23018 grep -v '^ *+' conftest.er1 >conftest.err
23020 cat conftest.err >&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && {
23023 test -z "$ac_c_werror_flag" ||
23024 test ! -s conftest.err
23025 } && test -s conftest$ac_exeext &&
23026 $as_test_x conftest$ac_exeext; then
23027 { echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6; }
23029 X_LIBS="$X_LIBS -R$x_libraries"
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 LIBS="$ac_xsave_LIBS -R $x_libraries"
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (ac_try="$ac_link"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_link") 2>conftest.er1
23059 grep -v '^ *+' conftest.er1 >conftest.err
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } && {
23064 test -z "$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 } && test -s conftest$ac_exeext &&
23067 $as_test_x conftest$ac_exeext; then
23068 { echo "$as_me:$LINENO: result: yes" >&5
23069 echo "${ECHO_T}yes" >&6; }
23070 X_LIBS="$X_LIBS -R $x_libraries"
23072 echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 { echo "$as_me:$LINENO: result: neither works" >&5
23076 echo "${ECHO_T}neither works" >&6; }
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080 conftest$ac_exeext conftest.$ac_ext
23083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23084 conftest$ac_exeext conftest.$ac_ext
23085 ac_c_werror_flag=$ac_xsave_c_werror_flag
23086 LIBS=$ac_xsave_LIBS
23089 # Check for system-dependent libraries X programs must link with.
23090 # Do this before checking for the system-independent R6 libraries
23091 # (-lICE), since we may need -lsocket or whatever for X linking.
23093 if test "$ISC" = yes; then
23094 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23096 # Martyn Johnson says this is needed for Ultrix, if the X
23097 # libraries were built with DECnet support. And Karl Berry says
23098 # the Alpha needs dnet_stub (dnet does not exist).
23099 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23100 cat >conftest.$ac_ext <<_ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23107 /* Override any GCC internal prototype to avoid an error.
23108 Use char because int might match the return type of a GCC
23109 builtin and then its argument prototype would still apply. */
23113 char XOpenDisplay ();
23117 return XOpenDisplay ();
23122 rm -f conftest.$ac_objext conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126 *) ac_try_echo=$ac_try;;
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129 (eval "$ac_link") 2>conftest.er1
23131 grep -v '^ *+' conftest.er1 >conftest.err
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } && {
23136 test -z "$ac_c_werror_flag" ||
23137 test ! -s conftest.err
23138 } && test -s conftest$ac_exeext &&
23139 $as_test_x conftest$ac_exeext; then
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23145 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23146 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23147 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23150 ac_check_lib_save_LIBS=$LIBS
23151 LIBS="-ldnet $LIBS"
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23159 /* Override any GCC internal prototype to avoid an error.
23160 Use char because int might match the return type of a GCC
23161 builtin and then its argument prototype would still apply. */
23169 return dnet_ntoa ();
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178 *) ac_try_echo=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_link") 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest$ac_exeext &&
23191 $as_test_x conftest$ac_exeext; then
23192 ac_cv_lib_dnet_dnet_ntoa=yes
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_cv_lib_dnet_dnet_ntoa=no
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201 conftest$ac_exeext conftest.$ac_ext
23202 LIBS=$ac_check_lib_save_LIBS
23204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23205 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23206 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23207 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23210 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23211 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23212 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23213 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23216 ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-ldnet_stub $LIBS"
23218 cat >conftest.$ac_ext <<_ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23225 /* Override any GCC internal prototype to avoid an error.
23226 Use char because int might match the return type of a GCC
23227 builtin and then its argument prototype would still apply. */
23235 return dnet_ntoa ();
23240 rm -f conftest.$ac_objext conftest$ac_exeext
23241 if { (ac_try="$ac_link"
23242 case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247 (eval "$ac_link") 2>conftest.er1
23249 grep -v '^ *+' conftest.er1 >conftest.err
23251 cat conftest.err >&5
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } && {
23254 test -z "$ac_c_werror_flag" ||
23255 test ! -s conftest.err
23256 } && test -s conftest$ac_exeext &&
23257 $as_test_x conftest$ac_exeext; then
23258 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23260 echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23263 ac_cv_lib_dnet_stub_dnet_ntoa=no
23266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23267 conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23271 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23272 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23273 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23280 conftest$ac_exeext conftest.$ac_ext
23281 LIBS="$ac_xsave_LIBS"
23283 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23284 # to get the SysV transport functions.
23285 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23287 # The nsl library prevents programs from opening the X display
23288 # on Irix 5.2, according to T.E. Dickey.
23289 # The functions gethostbyname, getservbyname, and inet_addr are
23290 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23291 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23292 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23293 if test "${ac_cv_func_gethostbyname+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.$ac_ext <<_ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23304 #define gethostbyname innocuous_gethostbyname
23306 /* System header to define __stub macros and hopefully few prototypes,
23307 which can conflict with char gethostbyname (); below.
23308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23309 <limits.h> exists even on freestanding compilers. */
23312 # include <limits.h>
23314 # include <assert.h>
23317 #undef gethostbyname
23319 /* Override any GCC internal prototype to avoid an error.
23320 Use char because int might match the return type of a GCC
23321 builtin and then its argument prototype would still apply. */
23325 char gethostbyname ();
23326 /* The GNU C library defines this for functions which it implements
23327 to always fail with ENOSYS. Some functions are actually named
23328 something starting with __ and the normal name is an alias. */
23329 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23336 return gethostbyname ();
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (ac_try="$ac_link"
23343 case "(($ac_try" in
23344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_link") 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest$ac_exeext &&
23358 $as_test_x conftest$ac_exeext; then
23359 ac_cv_func_gethostbyname=yes
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 ac_cv_func_gethostbyname=no
23367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23368 conftest$ac_exeext conftest.$ac_ext
23370 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23371 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23373 if test $ac_cv_func_gethostbyname = no; then
23374 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23375 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23376 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23379 ac_check_lib_save_LIBS=$LIBS
23381 cat >conftest.$ac_ext <<_ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23388 /* Override any GCC internal prototype to avoid an error.
23389 Use char because int might match the return type of a GCC
23390 builtin and then its argument prototype would still apply. */
23394 char gethostbyname ();
23398 return gethostbyname ();
23403 rm -f conftest.$ac_objext conftest$ac_exeext
23404 if { (ac_try="$ac_link"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_link") 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest$ac_exeext &&
23420 $as_test_x conftest$ac_exeext; then
23421 ac_cv_lib_nsl_gethostbyname=yes
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ac_cv_lib_nsl_gethostbyname=no
23429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23430 conftest$ac_exeext conftest.$ac_ext
23431 LIBS=$ac_check_lib_save_LIBS
23433 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23434 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23435 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23439 if test $ac_cv_lib_nsl_gethostbyname = no; then
23440 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23441 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23442 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
23445 ac_check_lib_save_LIBS=$LIBS
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23454 /* Override any GCC internal prototype to avoid an error.
23455 Use char because int might match the return type of a GCC
23456 builtin and then its argument prototype would still apply. */
23460 char gethostbyname ();
23464 return gethostbyname ();
23469 rm -f conftest.$ac_objext conftest$ac_exeext
23470 if { (ac_try="$ac_link"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_link") 2>conftest.er1
23478 grep -v '^ *+' conftest.er1 >conftest.err
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && {
23483 test -z "$ac_c_werror_flag" ||
23484 test ! -s conftest.err
23485 } && test -s conftest$ac_exeext &&
23486 $as_test_x conftest$ac_exeext; then
23487 ac_cv_lib_bsd_gethostbyname=yes
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 ac_cv_lib_bsd_gethostbyname=no
23495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23496 conftest$ac_exeext conftest.$ac_ext
23497 LIBS=$ac_check_lib_save_LIBS
23499 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23500 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23501 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23502 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23508 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23509 # socket/setsockopt and other routines are undefined under SCO ODT
23510 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23511 # on later versions), says Simon Leinen: it contains gethostby*
23512 # variants that don't use the name server (or something). -lsocket
23513 # must be given before -lnsl if both are needed. We assume that
23514 # if connect needs -lnsl, so does gethostbyname.
23515 { echo "$as_me:$LINENO: checking for connect" >&5
23516 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23517 if test "${ac_cv_func_connect+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23520 cat >conftest.$ac_ext <<_ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23526 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23528 #define connect innocuous_connect
23530 /* System header to define __stub macros and hopefully few prototypes,
23531 which can conflict with char connect (); below.
23532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23533 <limits.h> exists even on freestanding compilers. */
23536 # include <limits.h>
23538 # include <assert.h>
23543 /* Override any GCC internal prototype to avoid an error.
23544 Use char because int might match the return type of a GCC
23545 builtin and then its argument prototype would still apply. */
23550 /* The GNU C library defines this for functions which it implements
23551 to always fail with ENOSYS. Some functions are actually named
23552 something starting with __ and the normal name is an alias. */
23553 #if defined __stub_connect || defined __stub___connect
23565 rm -f conftest.$ac_objext conftest$ac_exeext
23566 if { (ac_try="$ac_link"
23567 case "(($ac_try" in
23568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569 *) ac_try_echo=$ac_try;;
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572 (eval "$ac_link") 2>conftest.er1
23574 grep -v '^ *+' conftest.er1 >conftest.err
23576 cat conftest.err >&5
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } && {
23579 test -z "$ac_c_werror_flag" ||
23580 test ! -s conftest.err
23581 } && test -s conftest$ac_exeext &&
23582 $as_test_x conftest$ac_exeext; then
23583 ac_cv_func_connect=yes
23585 echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 ac_cv_func_connect=no
23591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23592 conftest$ac_exeext conftest.$ac_ext
23594 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23595 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23597 if test $ac_cv_func_connect = no; then
23598 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23599 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23600 if test "${ac_cv_lib_socket_connect+set}" = set; then
23601 echo $ECHO_N "(cached) $ECHO_C" >&6
23603 ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23612 /* Override any GCC internal prototype to avoid an error.
23613 Use char because int might match the return type of a GCC
23614 builtin and then its argument prototype would still apply. */
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (ac_try="$ac_link"
23629 case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_link") 2>conftest.er1
23636 grep -v '^ *+' conftest.er1 >conftest.err
23638 cat conftest.err >&5
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } && {
23641 test -z "$ac_c_werror_flag" ||
23642 test ! -s conftest.err
23643 } && test -s conftest$ac_exeext &&
23644 $as_test_x conftest$ac_exeext; then
23645 ac_cv_lib_socket_connect=yes
23647 echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23650 ac_cv_lib_socket_connect=no
23653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23654 conftest$ac_exeext conftest.$ac_ext
23655 LIBS=$ac_check_lib_save_LIBS
23657 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23658 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23659 if test $ac_cv_lib_socket_connect = yes; then
23660 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23665 # Guillermo Gomez says -lposix is necessary on A/UX.
23666 { echo "$as_me:$LINENO: checking for remove" >&5
23667 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23668 if test "${ac_cv_func_remove+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 cat >conftest.$ac_ext <<_ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23679 #define remove innocuous_remove
23681 /* System header to define __stub macros and hopefully few prototypes,
23682 which can conflict with char remove (); below.
23683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23684 <limits.h> exists even on freestanding compilers. */
23687 # include <limits.h>
23689 # include <assert.h>
23694 /* Override any GCC internal prototype to avoid an error.
23695 Use char because int might match the return type of a GCC
23696 builtin and then its argument prototype would still apply. */
23701 /* The GNU C library defines this for functions which it implements
23702 to always fail with ENOSYS. Some functions are actually named
23703 something starting with __ and the normal name is an alias. */
23704 #if defined __stub_remove || defined __stub___remove
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720 *) ac_try_echo=$ac_try;;
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723 (eval "$ac_link") 2>conftest.er1
23725 grep -v '^ *+' conftest.er1 >conftest.err
23727 cat conftest.err >&5
23728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } && {
23730 test -z "$ac_c_werror_flag" ||
23731 test ! -s conftest.err
23732 } && test -s conftest$ac_exeext &&
23733 $as_test_x conftest$ac_exeext; then
23734 ac_cv_func_remove=yes
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ac_cv_func_remove=no
23742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23743 conftest$ac_exeext conftest.$ac_ext
23745 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23746 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23748 if test $ac_cv_func_remove = no; then
23749 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23750 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23751 if test "${ac_cv_lib_posix_remove+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23754 ac_check_lib_save_LIBS=$LIBS
23755 LIBS="-lposix $LIBS"
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23763 /* Override any GCC internal prototype to avoid an error.
23764 Use char because int might match the return type of a GCC
23765 builtin and then its argument prototype would still apply. */
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_link") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest$ac_exeext &&
23795 $as_test_x conftest$ac_exeext; then
23796 ac_cv_lib_posix_remove=yes
23798 echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 ac_cv_lib_posix_remove=no
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805 conftest$ac_exeext conftest.$ac_ext
23806 LIBS=$ac_check_lib_save_LIBS
23808 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23809 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23810 if test $ac_cv_lib_posix_remove = yes; then
23811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23816 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23817 { echo "$as_me:$LINENO: checking for shmat" >&5
23818 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23819 if test "${ac_cv_func_shmat+set}" = set; then
23820 echo $ECHO_N "(cached) $ECHO_C" >&6
23822 cat >conftest.$ac_ext <<_ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h. */
23828 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23830 #define shmat innocuous_shmat
23832 /* System header to define __stub macros and hopefully few prototypes,
23833 which can conflict with char shmat (); below.
23834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23835 <limits.h> exists even on freestanding compilers. */
23838 # include <limits.h>
23840 # include <assert.h>
23845 /* Override any GCC internal prototype to avoid an error.
23846 Use char because int might match the return type of a GCC
23847 builtin and then its argument prototype would still apply. */
23852 /* The GNU C library defines this for functions which it implements
23853 to always fail with ENOSYS. Some functions are actually named
23854 something starting with __ and the normal name is an alias. */
23855 #if defined __stub_shmat || defined __stub___shmat
23867 rm -f conftest.$ac_objext conftest$ac_exeext
23868 if { (ac_try="$ac_link"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_link") 2>conftest.er1
23876 grep -v '^ *+' conftest.er1 >conftest.err
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest$ac_exeext &&
23884 $as_test_x conftest$ac_exeext; then
23885 ac_cv_func_shmat=yes
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_cv_func_shmat=no
23893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23894 conftest$ac_exeext conftest.$ac_ext
23896 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23897 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23899 if test $ac_cv_func_shmat = no; then
23900 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23901 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23902 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 ac_check_lib_save_LIBS=$LIBS
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23914 /* Override any GCC internal prototype to avoid an error.
23915 Use char because int might match the return type of a GCC
23916 builtin and then its argument prototype would still apply. */
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_link") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest$ac_exeext &&
23946 $as_test_x conftest$ac_exeext; then
23947 ac_cv_lib_ipc_shmat=yes
23949 echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23952 ac_cv_lib_ipc_shmat=no
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23957 LIBS=$ac_check_lib_save_LIBS
23959 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23960 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23961 if test $ac_cv_lib_ipc_shmat = yes; then
23962 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23968 # Check for libraries that X11R6 Xt/Xaw programs need.
23969 ac_save_LDFLAGS=$LDFLAGS
23970 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23971 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23972 # check for ICE first), but we must link in the order -lSM -lICE or
23973 # we get undefined symbols. So assume we have SM if we have ICE.
23974 # These have to be linked with before -lX11, unlike the other
23975 # libraries we check for below, so use a different variable.
23976 # John Interrante, Karl Berry
23977 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23978 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23979 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23980 echo $ECHO_N "(cached) $ECHO_C" >&6
23982 ac_check_lib_save_LIBS=$LIBS
23983 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23984 cat >conftest.$ac_ext <<_ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23991 /* Override any GCC internal prototype to avoid an error.
23992 Use char because int might match the return type of a GCC
23993 builtin and then its argument prototype would still apply. */
23997 char IceConnectionNumber ();
24001 return IceConnectionNumber ();
24006 rm -f conftest.$ac_objext conftest$ac_exeext
24007 if { (ac_try="$ac_link"
24008 case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_link") 2>conftest.er1
24015 grep -v '^ *+' conftest.er1 >conftest.err
24017 cat conftest.err >&5
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } && {
24020 test -z "$ac_c_werror_flag" ||
24021 test ! -s conftest.err
24022 } && test -s conftest$ac_exeext &&
24023 $as_test_x conftest$ac_exeext; then
24024 ac_cv_lib_ICE_IceConnectionNumber=yes
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ac_cv_lib_ICE_IceConnectionNumber=no
24032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24033 conftest$ac_exeext conftest.$ac_ext
24034 LIBS=$ac_check_lib_save_LIBS
24036 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24037 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24038 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24039 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24042 LDFLAGS=$ac_save_LDFLAGS
24046 if test x$have_x = xyes; then
24047 # Only allow dynamically loaded X11 if the X11 function pointers
24048 # will not end up in the global namespace, which causes problems
24049 # with other libraries calling X11 functions.
24050 x11_symbols_private=$have_gcc_fvisibility
24052 # Check whether --enable-x11-shared was given.
24053 if test "${enable_x11_shared+set}" = set; then
24054 enableval=$enable_x11_shared;
24056 enable_x11_shared=maybe
24061 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
24062 x11_symbols_private=yes
24063 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
24064 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
24065 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
24066 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
24069 x11_lib='libX11.so'
24070 x11ext_lib='libXext.so'
24072 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
24073 x11_lib='libX11.so'
24074 x11ext_lib='libXext.so'
24077 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24078 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24079 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24080 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24084 X_CFLAGS="$X_CFLAGS -DXTHREADS"
24085 if test x$ac_cv_func_shmat != xyes; then
24086 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
24088 CFLAGS="$CFLAGS $X_CFLAGS"
24089 LDFLAGS="$LDFLAGS $X_LIBS"
24091 cat >>confdefs.h <<\_ACEOF
24092 #define SDL_VIDEO_DRIVER_X11 1
24095 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
24096 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
24098 if test x$enable_x11_shared = xmaybe; then
24099 enable_x11_shared=$x11_symbols_private
24101 if test x$have_loadso != xyes && \
24102 test x$enable_x11_shared = xyes; then
24103 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
24104 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
24105 enable_x11_shared=no
24107 if test x$x11_symbols_private != xyes && \
24108 test x$enable_x11_shared = xyes; then
24109 { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
24110 echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
24111 enable_x11_shared=no
24114 if test x$have_loadso = xyes && \
24115 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
24116 echo "-- dynamic libX11 -> $x11_lib"
24117 echo "-- dynamic libX11ext -> $x11ext_lib"
24118 cat >>confdefs.h <<_ACEOF
24119 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
24122 cat >>confdefs.h <<_ACEOF
24123 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
24127 enable_x11_shared=no
24128 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
24132 # Check whether --enable-dga was given.
24133 if test "${enable_dga+set}" = set; then
24134 enableval=$enable_dga;
24139 if test x$enable_dga = xyes; then
24140 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
24142 # Check whether --enable-video-dga was given.
24143 if test "${enable_video_dga+set}" = set; then
24144 enableval=$enable_video_dga;
24146 enable_video_dga=yes
24149 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
24150 cat >>confdefs.h <<\_ACEOF
24151 #define SDL_VIDEO_DRIVER_DGA 1
24154 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
24156 # Check whether --enable-video-x11-dgamouse was given.
24157 if test "${enable_video_x11_dgamouse+set}" = set; then
24158 enableval=$enable_video_x11_dgamouse;
24160 enable_video_x11_dgamouse=yes
24163 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
24169 # Check whether --enable-video-x11-vm was given.
24170 if test "${enable_video_x11_vm+set}" = set; then
24171 enableval=$enable_video_x11_vm;
24173 enable_video_x11_vm=yes
24176 if test x$enable_video_x11_vm = xyes; then
24177 cat >>confdefs.h <<\_ACEOF
24178 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
24181 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
24183 # Check whether --enable-video-x11-xv was given.
24184 if test "${enable_video_x11_xv+set}" = set; then
24185 enableval=$enable_video_x11_xv;
24187 enable_video_x11_xv=yes
24190 if test x$enable_video_x11_xv = xyes; then
24191 cat >>confdefs.h <<\_ACEOF
24192 #define SDL_VIDEO_DRIVER_X11_XV 1
24195 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
24197 # Check whether --enable-video-x11-xinerama was given.
24198 if test "${enable_video_x11_xinerama+set}" = set; then
24199 enableval=$enable_video_x11_xinerama;
24201 enable_video_x11_xinerama=yes
24204 if test x$enable_video_x11_xinerama = xyes; then
24205 cat >>confdefs.h <<\_ACEOF
24206 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
24209 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
24211 # Check whether --enable-video-x11-xme was given.
24212 if test "${enable_video_x11_xme+set}" = set; then
24213 enableval=$enable_video_x11_xme;
24215 enable_video_x11_xme=yes
24218 if test x$enable_video_x11_xme = xyes; then
24219 cat >>confdefs.h <<\_ACEOF
24220 #define SDL_VIDEO_DRIVER_X11_XME 1
24223 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
24225 # Check whether --enable-video-x11-xrandr was given.
24226 if test "${enable_video_x11_xrandr+set}" = set; then
24227 enableval=$enable_video_x11_xrandr;
24229 enable_video_x11_xrandr=yes
24232 if test x$enable_video_x11_xrandr = xyes; then
24233 definitely_enable_video_x11_xrandr=no
24234 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
24235 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
24236 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 cat >conftest.$ac_ext <<_ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 #include <X11/Xlib.h>
24248 #include <X11/extensions/Xrandr.h>
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254 *) ac_try_echo=$ac_try;;
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257 (eval "$ac_compile") 2>conftest.er1
24259 grep -v '^ *+' conftest.er1 >conftest.err
24261 cat conftest.err >&5
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); } && {
24264 test -z "$ac_c_werror_flag" ||
24265 test ! -s conftest.err
24266 } && test -s conftest.$ac_objext; then
24267 ac_cv_header_X11_extensions_Xrandr_h=yes
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24272 ac_cv_header_X11_extensions_Xrandr_h=no
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
24279 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
24280 have_xrandr_h_hdr=yes
24282 have_xrandr_h_hdr=no
24286 if test x$have_xrandr_h_hdr = xyes; then
24287 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
24288 echo "-- dynamic libXrender -> $xrender_lib"
24289 echo "-- dynamic libXrandr -> $xrandr_lib"
24290 cat >>confdefs.h <<_ACEOF
24291 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
24294 cat >>confdefs.h <<_ACEOF
24295 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
24298 definitely_enable_video_x11_xrandr=yes
24300 { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
24301 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
24302 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
24303 echo $ECHO_N "(cached) $ECHO_C" >&6
24305 ac_check_lib_save_LIBS=$LIBS
24306 LIBS="-lXrender $LIBS"
24307 cat >conftest.$ac_ext <<_ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h. */
24314 /* Override any GCC internal prototype to avoid an error.
24315 Use char because int might match the return type of a GCC
24316 builtin and then its argument prototype would still apply. */
24320 char XRenderQueryExtension ();
24324 return XRenderQueryExtension ();
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (ac_try="$ac_link"
24331 case "(($ac_try" in
24332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333 *) ac_try_echo=$ac_try;;
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_link") 2>conftest.er1
24338 grep -v '^ *+' conftest.er1 >conftest.err
24340 cat conftest.err >&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest$ac_exeext &&
24346 $as_test_x conftest$ac_exeext; then
24347 ac_cv_lib_Xrender_XRenderQueryExtension=yes
24349 echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24352 ac_cv_lib_Xrender_XRenderQueryExtension=no
24355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24356 conftest$ac_exeext conftest.$ac_ext
24357 LIBS=$ac_check_lib_save_LIBS
24359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
24360 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
24361 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
24362 have_xrender_lib=yes
24365 { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
24366 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
24367 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24370 ac_check_lib_save_LIBS=$LIBS
24371 LIBS="-lXrandr $LIBS"
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24379 /* Override any GCC internal prototype to avoid an error.
24380 Use char because int might match the return type of a GCC
24381 builtin and then its argument prototype would still apply. */
24385 char XRRQueryExtension ();
24389 return XRRQueryExtension ();
24394 rm -f conftest.$ac_objext conftest$ac_exeext
24395 if { (ac_try="$ac_link"
24396 case "(($ac_try" in
24397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398 *) ac_try_echo=$ac_try;;
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401 (eval "$ac_link") 2>conftest.er1
24403 grep -v '^ *+' conftest.er1 >conftest.err
24405 cat conftest.err >&5
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); } && {
24408 test -z "$ac_c_werror_flag" ||
24409 test ! -s conftest.err
24410 } && test -s conftest$ac_exeext &&
24411 $as_test_x conftest$ac_exeext; then
24412 ac_cv_lib_Xrandr_XRRQueryExtension=yes
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ac_cv_lib_Xrandr_XRRQueryExtension=no
24420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24421 conftest$ac_exeext conftest.$ac_ext
24422 LIBS=$ac_check_lib_save_LIBS
24424 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
24425 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
24426 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
24427 have_xrandr_lib=yes
24430 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then
24431 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender"
24432 definitely_enable_video_x11_xrandr=yes
24437 if test x$definitely_enable_video_x11_xrandr = xyes; then
24438 cat >>confdefs.h <<\_ACEOF
24439 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
24449 # Check whether --enable-video-photon was given.
24450 if test "${enable_video_photon+set}" = set; then
24451 enableval=$enable_video_photon;
24453 enable_video_photon=yes
24456 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
24457 { echo "$as_me:$LINENO: checking for QNX Photon support" >&5
24458 echo $ECHO_N "checking for QNX Photon support... $ECHO_C" >&6; }
24460 cat >conftest.$ac_ext <<_ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h. */
24469 #include <photon/Pg.h>
24470 #include <photon/PdDirect.h>
24476 PgDisplaySettings_t *visual;
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_compile") 2>conftest.er1
24491 grep -v '^ *+' conftest.er1 >conftest.err
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } && {
24496 test -z "$ac_c_werror_flag" ||
24497 test ! -s conftest.err
24498 } && test -s conftest.$ac_objext; then
24503 echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510 { echo "$as_me:$LINENO: result: $video_photon" >&5
24511 echo "${ECHO_T}$video_photon" >&6; }
24512 if test x$video_photon = xyes; then
24513 cat >>confdefs.h <<\_ACEOF
24514 #define SDL_VIDEO_DRIVER_PHOTON 1
24517 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
24518 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
24528 if test x$enable_video = xyes; then
24529 cat >>confdefs.h <<\_ACEOF
24530 #define SDL_VIDEO_DRIVER_BWINDOW 1
24533 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
24540 # Check whether --enable-video-carbon was given.
24541 if test "${enable_video_carbon+set}" = set; then
24542 enableval=$enable_video_carbon;
24544 enable_video_carbon=no
24547 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
24548 { echo "$as_me:$LINENO: checking for Carbon framework" >&5
24549 echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24558 #include <Carbon/Carbon.h>
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24590 echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 { echo "$as_me:$LINENO: result: $have_carbon" >&5
24598 echo "${ECHO_T}$have_carbon" >&6; }
24599 if test x$have_carbon = xyes; then
24600 cat >>confdefs.h <<\_ACEOF
24601 #define SDL_VIDEO_DRIVER_TOOLBOX 1
24604 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
24605 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
24613 # Check whether --enable-video-cocoa was given.
24614 if test "${enable_video_cocoa+set}" = set; then
24615 enableval=$enable_video_cocoa;
24617 enable_video_cocoa=yes
24620 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
24621 save_CFLAGS="$CFLAGS"
24622 CFLAGS="$CFLAGS -x objective-c"
24623 { echo "$as_me:$LINENO: checking for Cocoa framework" >&5
24624 echo $ECHO_N "checking for Cocoa framework... $ECHO_C" >&6; }
24626 cat >conftest.$ac_ext <<_ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h. */
24633 #import <Cocoa/Cocoa.h>
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651 (eval "$ac_compile") 2>conftest.er1
24653 grep -v '^ *+' conftest.er1 >conftest.err
24655 cat conftest.err >&5
24656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657 (exit $ac_status); } && {
24658 test -z "$ac_c_werror_flag" ||
24659 test ! -s conftest.err
24660 } && test -s conftest.$ac_objext; then
24665 echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 { echo "$as_me:$LINENO: result: $have_cocoa" >&5
24673 echo "${ECHO_T}$have_cocoa" >&6; }
24674 CFLAGS="$save_CFLAGS"
24675 if test x$have_cocoa = xyes; then
24676 cat >>confdefs.h <<\_ACEOF
24677 #define SDL_VIDEO_DRIVER_QUARTZ 1
24680 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
24688 # Check whether --enable-video-fbcon was given.
24689 if test "${enable_video_fbcon+set}" = set; then
24690 enableval=$enable_video_fbcon;
24692 enable_video_fbcon=yes
24695 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
24696 { echo "$as_me:$LINENO: checking for framebuffer console support" >&5
24697 echo $ECHO_N "checking for framebuffer console support... $ECHO_C" >&6; }
24699 cat >conftest.$ac_ext <<_ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24706 #include <linux/fb.h>
24707 #include <linux/kd.h>
24708 #include <linux/keyboard.h>
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726 (eval "$ac_compile") 2>conftest.er1
24728 grep -v '^ *+' conftest.er1 >conftest.err
24730 cat conftest.err >&5
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } && {
24733 test -z "$ac_c_werror_flag" ||
24734 test ! -s conftest.err
24735 } && test -s conftest.$ac_objext; then
24740 echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24747 { echo "$as_me:$LINENO: result: $video_fbcon" >&5
24748 echo "${ECHO_T}$video_fbcon" >&6; }
24749 if test x$video_fbcon = xyes; then
24751 for ac_func in getpagesize
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 cat >conftest.$ac_ext <<_ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h. */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24767 #define $ac_func innocuous_$ac_func
24769 /* System header to define __stub macros and hopefully few prototypes,
24770 which can conflict with char $ac_func (); below.
24771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772 <limits.h> exists even on freestanding compilers. */
24775 # include <limits.h>
24777 # include <assert.h>
24782 /* Override any GCC internal prototype to avoid an error.
24783 Use char because int might match the return type of a GCC
24784 builtin and then its argument prototype would still apply. */
24789 /* The GNU C library defines this for functions which it implements
24790 to always fail with ENOSYS. Some functions are actually named
24791 something starting with __ and the normal name is an alias. */
24792 #if defined __stub_$ac_func || defined __stub___$ac_func
24799 return $ac_func ();
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (ac_try="$ac_link"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_link") 2>conftest.er1
24813 grep -v '^ *+' conftest.er1 >conftest.err
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } && {
24818 test -z "$ac_c_werror_flag" ||
24819 test ! -s conftest.err
24820 } && test -s conftest$ac_exeext &&
24821 $as_test_x conftest$ac_exeext; then
24822 eval "$as_ac_var=yes"
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 eval "$as_ac_var=no"
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831 conftest$ac_exeext conftest.$ac_ext
24833 ac_res=`eval echo '${'$as_ac_var'}'`
24834 { echo "$as_me:$LINENO: result: $ac_res" >&5
24835 echo "${ECHO_T}$ac_res" >&6; }
24836 if test `eval echo '${'$as_ac_var'}'` = yes; then
24837 cat >>confdefs.h <<_ACEOF
24838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24844 cat >>confdefs.h <<\_ACEOF
24845 #define SDL_VIDEO_DRIVER_FBCON 1
24848 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
24856 # Check whether --enable-video-directfb was given.
24857 if test "${enable_video_directfb+set}" = set; then
24858 enableval=$enable_video_directfb;
24860 enable_video_directfb=yes
24863 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
24866 DIRECTFB_REQUIRED_VERSION=0.9.15
24868 # Extract the first word of "directfb-config", so it can be a program name with args.
24869 set dummy directfb-config; ac_word=$2
24870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24872 if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 case $DIRECTFBCONFIG in
24877 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
24880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24884 test -z "$as_dir" && as_dir=.
24885 for ac_exec_ext in '' $ac_executable_extensions; do
24886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24887 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
24888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24895 test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no"
24899 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
24900 if test -n "$DIRECTFBCONFIG"; then
24901 { echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
24902 echo "${ECHO_T}$DIRECTFBCONFIG" >&6; }
24904 { echo "$as_me:$LINENO: result: no" >&5
24905 echo "${ECHO_T}no" >&6; }
24909 if test x$DIRECTFBCONFIG = xno; then
24910 # Extract the first word of "pkg-config", so it can be a program name with args.
24911 set dummy pkg-config; ac_word=$2
24912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24917 case $PKG_CONFIG in
24919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24923 for as_dir in $PATH
24926 test -z "$as_dir" && as_dir=.
24927 for ac_exec_ext in '' $ac_executable_extensions; do
24928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24937 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24941 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24942 if test -n "$PKG_CONFIG"; then
24943 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24944 echo "${ECHO_T}$PKG_CONFIG" >&6; }
24946 { echo "$as_me:$LINENO: result: no" >&5
24947 echo "${ECHO_T}no" >&6; }
24951 if test x$PKG_CONFIG != xno; then
24952 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
24953 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
24954 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
24959 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
24960 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24961 set -- `directfb-config --version | sed 's/\./ /g'`
24962 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24963 if test $HAVE_VERSION -ge $NEED_VERSION; then
24964 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
24965 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
24969 if test x$video_directfb = xyes; then
24970 # SuSE 11.1 installs directfb-config without directfb-devel
24971 save_CFLAGS="$CFLAGS"
24972 CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
24973 if test "${ac_cv_header_directfb_h+set}" = set; then
24974 { echo "$as_me:$LINENO: checking for directfb.h" >&5
24975 echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
24976 if test "${ac_cv_header_directfb_h+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24979 { echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
24980 echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
24982 # Is the header compilable?
24983 { echo "$as_me:$LINENO: checking directfb.h usability" >&5
24984 echo $ECHO_N "checking directfb.h usability... $ECHO_C" >&6; }
24985 cat >conftest.$ac_ext <<_ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h. */
24991 $ac_includes_default
24992 #include <directfb.h>
24994 rm -f conftest.$ac_objext
24995 if { (ac_try="$ac_compile"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001 (eval "$ac_compile") 2>conftest.er1
25003 grep -v '^ *+' conftest.er1 >conftest.err
25005 cat conftest.err >&5
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); } && {
25008 test -z "$ac_c_werror_flag" ||
25009 test ! -s conftest.err
25010 } && test -s conftest.$ac_objext; then
25011 ac_header_compiler=yes
25013 echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25016 ac_header_compiler=no
25019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021 echo "${ECHO_T}$ac_header_compiler" >&6; }
25023 # Is the header present?
25024 { echo "$as_me:$LINENO: checking directfb.h presence" >&5
25025 echo $ECHO_N "checking directfb.h presence... $ECHO_C" >&6; }
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 #include <directfb.h>
25034 if { (ac_try="$ac_cpp conftest.$ac_ext"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25042 grep -v '^ *+' conftest.er1 >conftest.err
25044 cat conftest.err >&5
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } >/dev/null && {
25047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25048 test ! -s conftest.err
25050 ac_header_preproc=yes
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 ac_header_preproc=no
25058 rm -f conftest.err conftest.$ac_ext
25059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060 echo "${ECHO_T}$ac_header_preproc" >&6; }
25062 # So? What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 { echo "$as_me:$LINENO: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&5
25066 echo "$as_me: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25067 { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the compiler's result" >&5
25068 echo "$as_me: WARNING: directfb.h: proceeding with the compiler's result" >&2;}
25069 ac_header_preproc=yes
25072 { echo "$as_me:$LINENO: WARNING: directfb.h: present but cannot be compiled" >&5
25073 echo "$as_me: WARNING: directfb.h: present but cannot be compiled" >&2;}
25074 { echo "$as_me:$LINENO: WARNING: directfb.h: check for missing prerequisite headers?" >&5
25075 echo "$as_me: WARNING: directfb.h: check for missing prerequisite headers?" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: directfb.h: see the Autoconf documentation" >&5
25077 echo "$as_me: WARNING: directfb.h: see the Autoconf documentation" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: directfb.h: section \"Present But Cannot Be Compiled\"" >&5
25079 echo "$as_me: WARNING: directfb.h: section \"Present But Cannot Be Compiled\"" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the preprocessor's result" >&5
25081 echo "$as_me: WARNING: directfb.h: proceeding with the preprocessor's result" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: directfb.h: in the future, the compiler will take precedence" >&5
25083 echo "$as_me: WARNING: directfb.h: in the future, the compiler will take precedence" >&2;}
25087 { echo "$as_me:$LINENO: checking for directfb.h" >&5
25088 echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
25089 if test "${ac_cv_header_directfb_h+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 ac_cv_header_directfb_h=$ac_header_preproc
25094 { echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
25095 echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
25098 if test $ac_cv_header_directfb_h = yes; then
25099 have_directfb_hdr=yes
25101 have_directfb_hdr=no
25105 CFLAGS="$save_CFLAGS"
25106 video_directfb=$have_directfb_hdr
25108 { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
25109 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
25110 { echo "$as_me:$LINENO: result: $video_directfb" >&5
25111 echo "${ECHO_T}$video_directfb" >&6; }
25113 if test x$video_directfb = xyes; then
25114 cat >>confdefs.h <<\_ACEOF
25115 #define SDL_VIDEO_DRIVER_DIRECTFB 1
25118 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
25119 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
25120 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
25128 # Check whether --enable-video-ps2gs was given.
25129 if test "${enable_video_ps2gs+set}" = set; then
25130 enableval=$enable_video_ps2gs;
25132 enable_video_ps2gs=yes
25135 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
25136 { echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
25137 echo $ECHO_N "checking for PlayStation 2 GS support... $ECHO_C" >&6; }
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25146 #include <linux/ps2/dev.h>
25147 #include <linux/ps2/gs.h>
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_compile") 2>conftest.er1
25167 grep -v '^ *+' conftest.er1 >conftest.err
25169 cat conftest.err >&5
25170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); } && {
25172 test -z "$ac_c_werror_flag" ||
25173 test ! -s conftest.err
25174 } && test -s conftest.$ac_objext; then
25179 echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { echo "$as_me:$LINENO: result: $video_ps2gs" >&5
25187 echo "${ECHO_T}$video_ps2gs" >&6; }
25188 if test x$video_ps2gs = xyes; then
25189 cat >>confdefs.h <<\_ACEOF
25190 #define SDL_VIDEO_DRIVER_PS2GS 1
25193 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
25201 # Check whether --enable-video-ps3 was given.
25202 if test "${enable_video_ps3+set}" = set; then
25203 enableval=$enable_video_ps3;
25205 enable_video_ps3=yes
25208 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
25209 { echo "$as_me:$LINENO: checking for PlayStation 3 Cell support" >&5
25210 echo $ECHO_N "checking for PlayStation 3 Cell support... $ECHO_C" >&6; }
25212 cat >conftest.$ac_ext <<_ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h. */
25219 #include <linux/fb.h>
25220 #include <asm/ps3fb.h>
25221 #include <libspe2.h>
25232 rm -f conftest.$ac_objext
25233 if { (ac_try="$ac_compile"
25234 case "(($ac_try" in
25235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236 *) ac_try_echo=$ac_try;;
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239 (eval "$ac_compile") 2>conftest.er1
25241 grep -v '^ *+' conftest.er1 >conftest.err
25243 cat conftest.err >&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } && {
25246 test -z "$ac_c_werror_flag" ||
25247 test ! -s conftest.err
25248 } && test -s conftest.$ac_objext; then
25253 echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 { echo "$as_me:$LINENO: result: $video_ps3" >&5
25261 echo "${ECHO_T}$video_ps3" >&6; }
25262 if test x$video_ps3 = xyes; then
25263 cat >>confdefs.h <<\_ACEOF
25264 #define SDL_VIDEO_DRIVER_PS3 1
25267 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
25268 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
25269 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
25277 # Check whether --enable-video-ggi was given.
25278 if test "${enable_video_ggi+set}" = set; then
25279 enableval=$enable_video_ggi;
25281 enable_video_ggi=no
25284 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
25285 { echo "$as_me:$LINENO: checking for GGI support" >&5
25286 echo $ECHO_N "checking for GGI support... $ECHO_C" >&6; }
25288 cat >conftest.$ac_ext <<_ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h. */
25295 #include <ggi/ggi.h>
25296 #include <ggi/gii.h>
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311 *) ac_try_echo=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1 >conftest.err
25318 cat conftest.err >&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.$ac_objext; then
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335 { echo "$as_me:$LINENO: result: $video_ggi" >&5
25336 echo "${ECHO_T}$video_ggi" >&6; }
25337 if test x$video_ggi = xyes; then
25338 cat >>confdefs.h <<\_ACEOF
25339 #define SDL_VIDEO_DRIVER_GGI 1
25342 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
25343 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
25351 # Check whether --enable-video-svga was given.
25352 if test "${enable_video_svga+set}" = set; then
25353 enableval=$enable_video_svga;
25355 enable_video_svga=yes
25358 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
25359 { echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
25360 echo $ECHO_N "checking for SVGAlib (1.4.0+) support... $ECHO_C" >&6; }
25362 cat >conftest.$ac_ext <<_ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25370 #include <vgamouse.h>
25371 #include <vgakeyboard.h>
25377 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_compile") 2>conftest.er1
25394 grep -v '^ *+' conftest.er1 >conftest.err
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } && {
25399 test -z "$ac_c_werror_flag" ||
25400 test ! -s conftest.err
25401 } && test -s conftest.$ac_objext; then
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413 { echo "$as_me:$LINENO: result: $video_svga" >&5
25414 echo "${ECHO_T}$video_svga" >&6; }
25415 if test x$video_svga = xyes; then
25416 cat >>confdefs.h <<\_ACEOF
25417 #define SDL_VIDEO_DRIVER_SVGALIB 1
25420 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
25421 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
25429 # Check whether --enable-video-vgl was given.
25430 if test "${enable_video_vgl+set}" = set; then
25431 enableval=$enable_video_vgl;
25433 enable_video_vgl=yes
25436 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
25437 { echo "$as_me:$LINENO: checking for libVGL support" >&5
25438 echo $ECHO_N "checking for libVGL support... $ECHO_C" >&6; }
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25447 #include <sys/fbio.h>
25448 #include <sys/consio.h>
25449 #include <sys/kbio.h>
25457 bitmap.Type = VIDBUF32;
25458 bitmap.PixelBytes = 4;
25459 exit(bitmap.Bitmap);
25465 rm -f conftest.$ac_objext
25466 if { (ac_try="$ac_compile"
25467 case "(($ac_try" in
25468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469 *) ac_try_echo=$ac_try;;
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472 (eval "$ac_compile") 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest.$ac_objext; then
25486 echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 { echo "$as_me:$LINENO: result: $video_vgl" >&5
25494 echo "${ECHO_T}$video_vgl" >&6; }
25495 if test x$video_vgl = xyes; then
25496 cat >>confdefs.h <<\_ACEOF
25497 #define SDL_VIDEO_DRIVER_VGL 1
25500 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
25501 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
25509 # Check whether --enable-video-wscons was given.
25510 if test "${enable_video_wscons+set}" = set; then
25511 enableval=$enable_video_wscons;
25513 enable_video_wscons=yes
25516 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
25517 { echo "$as_me:$LINENO: checking for wscons support" >&5
25518 echo $ECHO_N "checking for wscons support... $ECHO_C" >&6; }
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25527 #include <sys/time.h>
25528 #include <dev/wscons/wsconsio.h>
25529 #include <dev/wscons/wsdisplay_usl_io.h>
25535 int wsmode = WSDISPLAYIO_MODE_DUMBFB;
25541 rm -f conftest.$ac_objext
25542 if { (ac_try="$ac_compile"
25543 case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_compile") 2>conftest.er1
25550 grep -v '^ *+' conftest.er1 >conftest.err
25552 cat conftest.err >&5
25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554 (exit $ac_status); } && {
25555 test -z "$ac_c_werror_flag" ||
25556 test ! -s conftest.err
25557 } && test -s conftest.$ac_objext; then
25562 echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569 { echo "$as_me:$LINENO: result: $video_wscons" >&5
25570 echo "${ECHO_T}$video_wscons" >&6; }
25571 if test x$video_wscons = xyes; then
25572 cat >>confdefs.h <<\_ACEOF
25573 #define SDL_VIDEO_DRIVER_WSCONS 1
25576 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
25585 # Check whether --enable-video-aalib was given.
25586 if test "${enable_video_aalib+set}" = set; then
25587 enableval=$enable_video_aalib;
25589 enable_video_aalib=no
25592 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
25593 { echo "$as_me:$LINENO: checking for AAlib support" >&5
25594 echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6; }
25596 cat >conftest.$ac_ext <<_ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_compile") 2>conftest.er1
25623 grep -v '^ *+' conftest.er1 >conftest.err
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } && {
25628 test -z "$ac_c_werror_flag" ||
25629 test ! -s conftest.err
25630 } && test -s conftest.$ac_objext; then
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642 { echo "$as_me:$LINENO: result: $video_aalib" >&5
25643 echo "${ECHO_T}$video_aalib" >&6; }
25644 if test x$video_aalib = xyes; then
25645 cat >>confdefs.h <<\_ACEOF
25646 #define SDL_VIDEO_DRIVER_AALIB 1
25649 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
25650 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
25658 # Check whether --enable-video-caca was given.
25659 if test "${enable_video_caca+set}" = set; then
25660 enableval=$enable_video_caca;
25662 enable_video_caca=no
25665 if test x$enable_video = xyes -a x$enable_video_caca = xyes; then
25667 # Extract the first word of "caca-config", so it can be a program name with args.
25668 set dummy caca-config; ac_word=$2
25669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25671 if test "${ac_cv_path_CACACONFIG+set}" = set; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25674 case $CACACONFIG in
25676 ac_cv_path_CACACONFIG="$CACACONFIG" # Let the user override the test with a path.
25679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25680 for as_dir in $PATH
25683 test -z "$as_dir" && as_dir=.
25684 for ac_exec_ext in '' $ac_executable_extensions; do
25685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25686 ac_cv_path_CACACONFIG="$as_dir/$ac_word$ac_exec_ext"
25687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25694 test -z "$ac_cv_path_CACACONFIG" && ac_cv_path_CACACONFIG="no"
25698 CACACONFIG=$ac_cv_path_CACACONFIG
25699 if test -n "$CACACONFIG"; then
25700 { echo "$as_me:$LINENO: result: $CACACONFIG" >&5
25701 echo "${ECHO_T}$CACACONFIG" >&6; }
25703 { echo "$as_me:$LINENO: result: no" >&5
25704 echo "${ECHO_T}no" >&6; }
25708 if test x$CACACONFIG != xno; then
25709 { echo "$as_me:$LINENO: checking for libcaca support" >&5
25710 echo $ECHO_N "checking for libcaca support... $ECHO_C" >&6; }
25711 CACA_CFLAGS=`$CACACONFIG --cflags`
25712 CACA_LDFLAGS=`$CACACONFIG --libs`
25713 save_CFLAGS="$CFLAGS"
25714 cat >conftest.$ac_ext <<_ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25732 rm -f conftest.$ac_objext
25733 if { (ac_try="$ac_compile"
25734 case "(($ac_try" in
25735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25736 *) ac_try_echo=$ac_try;;
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739 (eval "$ac_compile") 2>conftest.er1
25741 grep -v '^ *+' conftest.er1 >conftest.err
25743 cat conftest.err >&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } && {
25746 test -z "$ac_c_werror_flag" ||
25747 test ! -s conftest.err
25748 } && test -s conftest.$ac_objext; then
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25760 CFLAGS="$save_CFLAGS"
25761 { echo "$as_me:$LINENO: result: $video_caca" >&5
25762 echo "${ECHO_T}$video_caca" >&6; }
25763 if test x$video_caca = xyes; then
25764 cat >>confdefs.h <<\_ACEOF
25765 #define SDL_VIDEO_DRIVER_CACA 1
25768 EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS"
25769 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS"
25770 SOURCES="$SOURCES $srcdir/src/video/caca/*.c"
25778 # Check whether --enable-video-qtopia was given.
25779 if test "${enable_video_qtopia+set}" = set; then
25780 enableval=$enable_video_qtopia;
25782 enable_video_qtopia=no
25785 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
25786 { echo "$as_me:$LINENO: checking for Qtopia support" >&5
25787 echo $ECHO_N "checking for Qtopia support... $ECHO_C" >&6; }
25789 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
25791 ac_cpp='$CXXCPP $CPPFLAGS'
25792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25796 OLD_CXX="$CXXFLAGS"
25797 CXXFLAGS="$QTOPIA_FLAGS"
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25805 #include <qpe/qpeapplication.h>
25816 rm -f conftest.$ac_objext
25817 if { (ac_try="$ac_compile"
25818 case "(($ac_try" in
25819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820 *) ac_try_echo=$ac_try;;
25822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823 (eval "$ac_compile") 2>conftest.er1
25825 grep -v '^ *+' conftest.er1 >conftest.err
25827 cat conftest.err >&5
25828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829 (exit $ac_status); } && {
25830 test -z "$ac_cxx_werror_flag" ||
25831 test ! -s conftest.err
25832 } && test -s conftest.$ac_objext; then
25837 echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25844 CXXFLAGS="$OLD_CXX"
25845 { echo "$as_me:$LINENO: result: $video_qtopia" >&5
25846 echo "${ECHO_T}$video_qtopia" >&6; }
25847 if test x$video_qtopia = xyes; then
25848 cat >>confdefs.h <<\_ACEOF
25849 #define SDL_VIDEO_DRIVER_QTOPIA 1
25852 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
25853 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
25854 SDLMAIN_LDFLAGS="-static"
25855 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
25856 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
25857 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
25861 ac_cpp='$CPP $CPPFLAGS'
25862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25871 # Check whether --enable-video-picogui was given.
25872 if test "${enable_video_picogui+set}" = set; then
25873 enableval=$enable_video_picogui;
25875 enable_video_picogui=no
25878 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
25879 { echo "$as_me:$LINENO: checking for PicoGUI support" >&5
25880 echo $ECHO_N "checking for PicoGUI support... $ECHO_C" >&6; }
25882 cat >conftest.$ac_ext <<_ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25889 #include <picogui.h>
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904 *) ac_try_echo=$ac_try;;
25906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25907 (eval "$ac_compile") 2>conftest.er1
25909 grep -v '^ *+' conftest.er1 >conftest.err
25911 cat conftest.err >&5
25912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913 (exit $ac_status); } && {
25914 test -z "$ac_c_werror_flag" ||
25915 test ! -s conftest.err
25916 } && test -s conftest.$ac_objext; then
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25928 { echo "$as_me:$LINENO: result: $video_picogui" >&5
25929 echo "${ECHO_T}$video_picogui" >&6; }
25930 if test x$video_picogui = xyes; then
25931 cat >>confdefs.h <<\_ACEOF
25932 #define SDL_VIDEO_DRIVER_PICOGUI 1
25935 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
25936 SDL_LIBS="$SDL_LIBS -lpgui"
25942 CheckAtariBiosEvent()
25944 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c"
25945 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S"
25948 CheckAtariXbiosVideo()
25950 # Check whether --enable-xbios was given.
25951 if test "${enable_xbios+set}" = set; then
25952 enableval=$enable_xbios;
25954 enable_video_xbios=yes
25958 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
25960 cat >>confdefs.h <<\_ACEOF
25961 #define SDL_VIDEO_DRIVER_XBIOS 1
25964 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
25969 CheckAtariGemVideo()
25971 # Check whether --enable-gem was given.
25972 if test "${enable_gem+set}" = set; then
25973 enableval=$enable_gem;
25975 enable_video_gem=yes
25978 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
25980 if test "${ac_cv_header_gem_h+set}" = set; then
25981 { echo "$as_me:$LINENO: checking for gem.h" >&5
25982 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
25983 if test "${ac_cv_header_gem_h+set}" = set; then
25984 echo $ECHO_N "(cached) $ECHO_C" >&6
25986 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
25987 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
25989 # Is the header compilable?
25990 { echo "$as_me:$LINENO: checking gem.h usability" >&5
25991 echo $ECHO_N "checking gem.h usability... $ECHO_C" >&6; }
25992 cat >conftest.$ac_ext <<_ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h. */
25998 $ac_includes_default
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005 *) ac_try_echo=$ac_try;;
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008 (eval "$ac_compile") 2>conftest.er1
26010 grep -v '^ *+' conftest.er1 >conftest.err
26012 cat conftest.err >&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } && {
26015 test -z "$ac_c_werror_flag" ||
26016 test ! -s conftest.err
26017 } && test -s conftest.$ac_objext; then
26018 ac_header_compiler=yes
26020 echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 ac_header_compiler=no
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26028 echo "${ECHO_T}$ac_header_compiler" >&6; }
26030 # Is the header present?
26031 { echo "$as_me:$LINENO: checking gem.h presence" >&5
26032 echo $ECHO_N "checking gem.h presence... $ECHO_C" >&6; }
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26041 if { (ac_try="$ac_cpp conftest.$ac_ext"
26042 case "(($ac_try" in
26043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044 *) ac_try_echo=$ac_try;;
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26049 grep -v '^ *+' conftest.er1 >conftest.err
26051 cat conftest.err >&5
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); } >/dev/null && {
26054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26055 test ! -s conftest.err
26057 ac_header_preproc=yes
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 ac_header_preproc=no
26065 rm -f conftest.err conftest.$ac_ext
26066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26067 echo "${ECHO_T}$ac_header_preproc" >&6; }
26069 # So? What about this header?
26070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26072 { echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
26073 echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
26075 echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
26076 ac_header_preproc=yes
26079 { echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
26080 echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
26081 { echo "$as_me:$LINENO: WARNING: gem.h: check for missing prerequisite headers?" >&5
26082 echo "$as_me: WARNING: gem.h: check for missing prerequisite headers?" >&2;}
26083 { echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
26084 echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
26085 { echo "$as_me:$LINENO: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&5
26086 echo "$as_me: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&2;}
26087 { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
26088 echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
26089 { echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
26090 echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
26094 { echo "$as_me:$LINENO: checking for gem.h" >&5
26095 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
26096 if test "${ac_cv_header_gem_h+set}" = set; then
26097 echo $ECHO_N "(cached) $ECHO_C" >&6
26099 ac_cv_header_gem_h=$ac_header_preproc
26101 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
26102 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
26105 if test $ac_cv_header_gem_h = yes; then
26110 { echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
26111 echo $ECHO_N "checking for appl_init in -lgem... $ECHO_C" >&6; }
26112 if test "${ac_cv_lib_gem_appl_init+set}" = set; then
26113 echo $ECHO_N "(cached) $ECHO_C" >&6
26115 ac_check_lib_save_LIBS=$LIBS
26117 cat >conftest.$ac_ext <<_ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h. */
26124 /* Override any GCC internal prototype to avoid an error.
26125 Use char because int might match the return type of a GCC
26126 builtin and then its argument prototype would still apply. */
26134 return appl_init ();
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_link") 2>conftest.er1
26148 grep -v '^ *+' conftest.er1 >conftest.err
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } && {
26153 test -z "$ac_c_werror_flag" ||
26154 test ! -s conftest.err
26155 } && test -s conftest$ac_exeext &&
26156 $as_test_x conftest$ac_exeext; then
26157 ac_cv_lib_gem_appl_init=yes
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26162 ac_cv_lib_gem_appl_init=no
26165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26166 conftest$ac_exeext conftest.$ac_ext
26167 LIBS=$ac_check_lib_save_LIBS
26169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
26170 echo "${ECHO_T}$ac_cv_lib_gem_appl_init" >&6; }
26171 if test $ac_cv_lib_gem_appl_init = yes; then
26175 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
26177 cat >>confdefs.h <<\_ACEOF
26178 #define SDL_VIDEO_DRIVER_GEM 1
26181 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
26182 SDL_LIBS="$SDL_LIBS -lgem"
26190 # Check whether --enable-video-dummy was given.
26191 if test "${enable_video_dummy+set}" = set; then
26192 enableval=$enable_video_dummy;
26194 enable_video_dummy=yes
26197 if test x$enable_video_dummy = xyes; then
26198 cat >>confdefs.h <<\_ACEOF
26199 #define SDL_VIDEO_DRIVER_DUMMY 1
26202 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
26207 # Check whether --enable-video-opengl was given.
26208 if test "${enable_video_opengl+set}" = set; then
26209 enableval=$enable_video_opengl;
26211 enable_video_opengl=yes
26217 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26218 { echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
26219 echo $ECHO_N "checking for OpenGL (GLX) support... $ECHO_C" >&6; }
26221 cat >conftest.$ac_ext <<_ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26229 #include <GL/glx.h>
26230 #include <GL/glu.h>
26241 rm -f conftest.$ac_objext
26242 if { (ac_try="$ac_compile"
26243 case "(($ac_try" in
26244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248 (eval "$ac_compile") 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } && {
26255 test -z "$ac_c_werror_flag" ||
26256 test ! -s conftest.err
26257 } && test -s conftest.$ac_objext; then
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269 { echo "$as_me:$LINENO: result: $video_opengl" >&5
26270 echo "${ECHO_T}$video_opengl" >&6; }
26271 if test x$video_opengl = xyes; then
26272 cat >>confdefs.h <<\_ACEOF
26273 #define SDL_VIDEO_OPENGL 1
26276 cat >>confdefs.h <<\_ACEOF
26277 #define SDL_VIDEO_OPENGL_GLX 1
26286 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26287 { echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
26288 echo $ECHO_N "checking for OpenGL (Photon) support... $ECHO_C" >&6; }
26290 cat >conftest.$ac_ext <<_ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h. */
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312 *) ac_try_echo=$ac_try;;
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315 (eval "$ac_compile") 2>conftest.er1
26317 grep -v '^ *+' conftest.er1 >conftest.err
26319 cat conftest.err >&5
26320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321 (exit $ac_status); } && {
26322 test -z "$ac_c_werror_flag" ||
26323 test ! -s conftest.err
26324 } && test -s conftest.$ac_objext; then
26329 echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 { echo "$as_me:$LINENO: result: $video_opengl" >&5
26337 echo "${ECHO_T}$video_opengl" >&6; }
26338 if test x$video_opengl = xyes; then
26339 cat >>confdefs.h <<\_ACEOF
26340 #define SDL_VIDEO_OPENGL 1
26343 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26350 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26351 cat >>confdefs.h <<\_ACEOF
26352 #define SDL_VIDEO_OPENGL 1
26355 cat >>confdefs.h <<\_ACEOF
26356 #define SDL_VIDEO_OPENGL_WGL 1
26364 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26365 cat >>confdefs.h <<\_ACEOF
26366 #define SDL_VIDEO_OPENGL 1
26369 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26375 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26376 cat >>confdefs.h <<\_ACEOF
26377 #define SDL_VIDEO_OPENGL 1
26382 if test x$enable_video_cocoa = xyes; then
26383 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
26385 if test x$enable_video_carbon = xyes; then
26386 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
26394 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
26395 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26396 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26397 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26398 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26401 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26402 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26404 # Is the header compilable?
26405 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
26406 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
26407 cat >conftest.$ac_ext <<_ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h. */
26413 $ac_includes_default
26414 #include <GL/osmesa.h>
26416 rm -f conftest.$ac_objext
26417 if { (ac_try="$ac_compile"
26418 case "(($ac_try" in
26419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26420 *) ac_try_echo=$ac_try;;
26422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26423 (eval "$ac_compile") 2>conftest.er1
26425 grep -v '^ *+' conftest.er1 >conftest.err
26427 cat conftest.err >&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } && {
26430 test -z "$ac_c_werror_flag" ||
26431 test ! -s conftest.err
26432 } && test -s conftest.$ac_objext; then
26433 ac_header_compiler=yes
26435 echo "$as_me: failed program was:" >&5
26436 sed 's/^/| /' conftest.$ac_ext >&5
26438 ac_header_compiler=no
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26443 echo "${ECHO_T}$ac_header_compiler" >&6; }
26445 # Is the header present?
26446 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
26447 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 #include <GL/osmesa.h>
26456 if { (ac_try="$ac_cpp conftest.$ac_ext"
26457 case "(($ac_try" in
26458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459 *) ac_try_echo=$ac_try;;
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26464 grep -v '^ *+' conftest.er1 >conftest.err
26466 cat conftest.err >&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } >/dev/null && {
26469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26470 test ! -s conftest.err
26472 ac_header_preproc=yes
26474 echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26477 ac_header_preproc=no
26480 rm -f conftest.err conftest.$ac_ext
26481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26482 echo "${ECHO_T}$ac_header_preproc" >&6; }
26484 # So? What about this header?
26485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26487 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
26488 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26489 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
26490 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
26491 ac_header_preproc=yes
26494 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
26495 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
26496 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
26497 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
26498 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
26499 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
26500 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
26501 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
26502 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
26503 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
26504 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
26505 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
26509 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26510 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26511 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26512 echo $ECHO_N "(cached) $ECHO_C" >&6
26514 ac_cv_header_GL_osmesa_h=$ac_header_preproc
26516 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26517 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26520 if test $ac_cv_header_GL_osmesa_h = yes; then
26521 have_osmesa_hdr=yes
26525 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
26526 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
26527 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
26528 echo $ECHO_N "(cached) $ECHO_C" >&6
26530 ac_check_lib_save_LIBS=$LIBS
26531 LIBS="-lOSMesa -lm $LIBS"
26532 cat >conftest.$ac_ext <<_ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26539 /* Override any GCC internal prototype to avoid an error.
26540 Use char because int might match the return type of a GCC
26541 builtin and then its argument prototype would still apply. */
26545 char OSMesaCreateContext ();
26549 return OSMesaCreateContext ();
26554 rm -f conftest.$ac_objext conftest$ac_exeext
26555 if { (ac_try="$ac_link"
26556 case "(($ac_try" in
26557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558 *) ac_try_echo=$ac_try;;
26560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561 (eval "$ac_link") 2>conftest.er1
26563 grep -v '^ *+' conftest.er1 >conftest.err
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } && {
26568 test -z "$ac_c_werror_flag" ||
26569 test ! -s conftest.err
26570 } && test -s conftest$ac_exeext &&
26571 $as_test_x conftest$ac_exeext; then
26572 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
26574 echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26577 ac_cv_lib_OSMesa_OSMesaCreateContext=no
26580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26581 conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26584 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
26585 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
26586 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
26587 have_osmesa_lib=yes
26593 # Static linking to -lOSMesa
26594 # Extract the first word of "osmesa-config", so it can be a program name with args.
26595 set dummy osmesa-config; ac_word=$2
26596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26598 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 case $OSMESA_CONFIG in
26603 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
26606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 for as_dir in $PATH
26610 test -z "$as_dir" && as_dir=.
26611 for ac_exec_ext in '' $ac_executable_extensions; do
26612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26613 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
26625 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
26626 if test -n "$OSMESA_CONFIG"; then
26627 { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
26628 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
26630 { echo "$as_me:$LINENO: result: no" >&5
26631 echo "${ECHO_T}no" >&6; }
26635 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
26636 # -lOSMesa is really the static library
26637 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
26638 OSMESA_LIBS="-lOSMesa"
26641 # -lOSMesa is a loader for OSMesa.ldg
26642 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
26643 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
26645 cat >>confdefs.h <<\_ACEOF
26646 #define SDL_VIDEO_OPENGL 1
26649 cat >>confdefs.h <<\_ACEOF
26650 #define SDL_VIDEO_OPENGL_OSMESA 1
26653 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
26654 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
26656 # Check whether --enable-osmesa-shared was given.
26657 if test "${enable_osmesa_shared+set}" = set; then
26658 enableval=$enable_osmesa_shared;
26660 enable_osmesa_shared=yes
26663 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
26665 if test "x$have_osmesa_hdr" = "xyes"; then
26666 cat >>confdefs.h <<\_ACEOF
26667 #define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
26675 # Check whether --enable-screensaver was given.
26676 if test "${enable_screensaver+set}" = set; then
26677 enableval=$enable_screensaver;
26679 enable_screensaver=no
26682 if test x$enable_screensaver = xno; then
26683 cat >>confdefs.h <<\_ACEOF
26684 #define SDL_VIDEO_DISABLE_SCREENSAVER 1
26691 # Check whether --enable-input-events was given.
26692 if test "${enable_input_events+set}" = set; then
26693 enableval=$enable_input_events;
26695 enable_input_events=yes
26698 if test x$enable_input_events = xyes; then
26699 { echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
26700 echo $ECHO_N "checking for Linux 2.4 unified input interface... $ECHO_C" >&6; }
26701 use_input_events=no
26702 cat >conftest.$ac_ext <<_ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h. */
26709 #include <linux/input.h>
26716 #error EVIOCGNAME() ioctl not available
26723 rm -f conftest.$ac_objext
26724 if { (ac_try="$ac_compile"
26725 case "(($ac_try" in
26726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727 *) ac_try_echo=$ac_try;;
26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730 (eval "$ac_compile") 2>conftest.er1
26732 grep -v '^ *+' conftest.er1 >conftest.err
26734 cat conftest.err >&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } && {
26737 test -z "$ac_c_werror_flag" ||
26738 test ! -s conftest.err
26739 } && test -s conftest.$ac_objext; then
26741 use_input_events=yes
26744 echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26751 { echo "$as_me:$LINENO: result: $use_input_events" >&5
26752 echo "${ECHO_T}$use_input_events" >&6; }
26753 if test x$use_input_events = xyes; then
26754 cat >>confdefs.h <<\_ACEOF
26755 #define SDL_INPUT_LINUXEV 1
26764 # Check whether --enable-input-tslib was given.
26765 if test "${enable_input_tslib+set}" = set; then
26766 enableval=$enable_input_tslib;
26768 enable_input_tslib=yes
26771 if test x$enable_input_tslib = xyes; then
26772 { echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
26773 echo $ECHO_N "checking for Touchscreen library support... $ECHO_C" >&6; }
26774 enable_input_tslib=no
26775 cat >conftest.$ac_ext <<_ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26793 rm -f conftest.$ac_objext
26794 if { (ac_try="$ac_compile"
26795 case "(($ac_try" in
26796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797 *) ac_try_echo=$ac_try;;
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_compile") 2>conftest.er1
26802 grep -v '^ *+' conftest.er1 >conftest.err
26804 cat conftest.err >&5
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); } && {
26807 test -z "$ac_c_werror_flag" ||
26808 test ! -s conftest.err
26809 } && test -s conftest.$ac_objext; then
26811 enable_input_tslib=yes
26814 echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 { echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
26822 echo "${ECHO_T}$enable_input_tslib" >&6; }
26823 if test x$enable_input_tslib = xyes; then
26824 cat >>confdefs.h <<\_ACEOF
26825 #define SDL_INPUT_TSLIB 1
26828 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
26835 # Check whether --enable-pth was given.
26836 if test "${enable_pth+set}" = set; then
26837 enableval=$enable_pth;
26842 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
26843 # Extract the first word of "pth-config", so it can be a program name with args.
26844 set dummy pth-config; ac_word=$2
26845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26847 if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26850 case $PTH_CONFIG in
26852 ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
26855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26856 for as_dir in $PATH
26859 test -z "$as_dir" && as_dir=.
26860 for ac_exec_ext in '' $ac_executable_extensions; do
26861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26862 ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26870 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
26874 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
26875 if test -n "$PTH_CONFIG"; then
26876 { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
26877 echo "${ECHO_T}$PTH_CONFIG" >&6; }
26879 { echo "$as_me:$LINENO: result: no" >&5
26880 echo "${ECHO_T}no" >&6; }
26884 if test "$PTH_CONFIG" = "no"; then
26889 { echo "$as_me:$LINENO: checking pth" >&5
26890 echo $ECHO_N "checking pth... $ECHO_C" >&6; }
26891 { echo "$as_me:$LINENO: result: $use_pth" >&5
26892 echo "${ECHO_T}$use_pth" >&6; }
26893 if test "x$use_pth" = xyes; then
26894 cat >>confdefs.h <<\_ACEOF
26895 #define SDL_THREAD_PTH 1
26898 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
26899 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
26900 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
26901 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
26909 # Check whether --enable-pthreads was given.
26910 if test "${enable_pthreads+set}" = set; then
26911 enableval=$enable_pthreads;
26913 enable_pthreads=yes
26916 # Check whether --enable-pthread-sem was given.
26917 if test "${enable_pthread_sem+set}" = set; then
26918 enableval=$enable_pthread_sem;
26920 enable_pthread_sem=yes
26924 *-*-linux*|*-*-uclinux*)
26925 pthread_cflags="-D_REENTRANT"
26926 pthread_lib="-lpthread"
26929 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26933 pthread_cflags="-D_THREAD_SAFE"
26934 # causes Carbon.p complaints?
26935 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26937 *-*-freebsd*|*-*-dragonfly*)
26938 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26939 pthread_lib="-pthread"
26942 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26943 pthread_lib="-lpthread"
26946 pthread_cflags="-D_REENTRANT"
26947 pthread_lib="-pthread"
26950 pthread_cflags="-D_REENTRANT"
26951 pthread_lib="-lpthread -lposix4"
26954 pthread_cflags="-D_REENTRANT -Kthread"
26958 pthread_cflags="-D_SGI_MP_SOURCE"
26959 pthread_lib="-lpthread"
26962 pthread_cflags="-D_REENTRANT -mthreads"
26963 pthread_lib="-lpthread"
26966 pthread_cflags="-D_REENTRANT"
26967 pthread_lib="-L/usr/lib -lpthread"
26974 pthread_cflags="-D_REENTRANT"
26975 if test x$ac_cv_c_compiler_gnu = xyes; then
26976 pthread_lib="-lpthread -lrt"
26978 pthread_lib="-lpthread -lexc -lrt"
26982 pthread_cflags="-D_REENTRANT"
26983 pthread_lib="-lpthread"
26986 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
26987 # Save the original compiler flags and libraries
26988 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
26989 # Add the pthread compiler flags and libraries
26990 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
26991 # Check to see if we have pthread support on this system
26992 { echo "$as_me:$LINENO: checking for pthreads" >&5
26993 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; }
26995 cat >conftest.$ac_ext <<_ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h. */
27002 #include <pthread.h>
27008 pthread_attr_t type;
27009 pthread_attr_init(&type);
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_link") 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && {
27029 test -z "$ac_c_werror_flag" ||
27030 test ! -s conftest.err
27031 } && test -s conftest$ac_exeext &&
27032 $as_test_x conftest$ac_exeext; then
27037 echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27044 conftest$ac_exeext conftest.$ac_ext
27045 { echo "$as_me:$LINENO: result: $use_pthreads" >&5
27046 echo "${ECHO_T}$use_pthreads" >&6; }
27047 # Restore the compiler flags and libraries
27048 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27050 # Do futher testing if we have pthread support...
27051 if test x$use_pthreads = xyes; then
27052 cat >>confdefs.h <<\_ACEOF
27053 #define SDL_THREAD_PTHREAD 1
27056 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
27057 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
27058 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
27059 SDL_LIBS="$SDL_LIBS $pthread_lib"
27061 # Save the original compiler flags and libraries
27062 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
27063 # Add the pthread compiler flags and libraries
27064 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
27066 # Check to see if recursive mutexes are available
27067 { echo "$as_me:$LINENO: checking for recursive mutexes" >&5
27068 echo $ECHO_N "checking for recursive mutexes... $ECHO_C" >&6; }
27069 has_recursive_mutexes=no
27070 if test x$has_recursive_mutexes = xno; then
27071 cat >conftest.$ac_ext <<_ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h. */
27078 #include <pthread.h>
27084 pthread_mutexattr_t attr;
27085 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
27091 rm -f conftest.$ac_objext
27092 if { (ac_try="$ac_compile"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_compile") 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } && {
27105 test -z "$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27107 } && test -s conftest.$ac_objext; then
27109 has_recursive_mutexes=yes
27110 cat >>confdefs.h <<\_ACEOF
27111 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27124 if test x$has_recursive_mutexes = xno; then
27125 cat >conftest.$ac_ext <<_ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27132 #include <pthread.h>
27138 pthread_mutexattr_t attr;
27139 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_compile") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } && {
27159 test -z "$ac_c_werror_flag" ||
27160 test ! -s conftest.err
27161 } && test -s conftest.$ac_objext; then
27163 has_recursive_mutexes=yes
27164 cat >>confdefs.h <<\_ACEOF
27165 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
27170 echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27178 { echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
27179 echo "${ECHO_T}$has_recursive_mutexes" >&6; }
27181 # Check to see if pthread semaphore support is missing
27182 if test x$enable_pthread_sem = xyes; then
27183 { echo "$as_me:$LINENO: checking for pthread semaphores" >&5
27184 echo $ECHO_N "checking for pthread semaphores... $ECHO_C" >&6; }
27185 have_pthread_sem=no
27186 cat >conftest.$ac_ext <<_ACEOF
27189 cat confdefs.h >>conftest.$ac_ext
27190 cat >>conftest.$ac_ext <<_ACEOF
27191 /* end confdefs.h. */
27193 #include <pthread.h>
27194 #include <semaphore.h>
27205 rm -f conftest.$ac_objext
27206 if { (ac_try="$ac_compile"
27207 case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_compile") 2>conftest.er1
27214 grep -v '^ *+' conftest.er1 >conftest.err
27216 cat conftest.err >&5
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } && {
27219 test -z "$ac_c_werror_flag" ||
27220 test ! -s conftest.err
27221 } && test -s conftest.$ac_objext; then
27223 have_pthread_sem=yes
27226 echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27233 { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
27234 echo "${ECHO_T}$have_pthread_sem" >&6; }
27236 if test x$have_pthread_sem = xyes; then
27237 { echo "$as_me:$LINENO: checking for sem_timedwait" >&5
27238 echo $ECHO_N "checking for sem_timedwait... $ECHO_C" >&6; }
27239 have_sem_timedwait=no
27240 cat >conftest.$ac_ext <<_ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27247 #include <pthread.h>
27248 #include <semaphore.h>
27254 sem_timedwait(NULL, NULL);
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261 if { (ac_try="$ac_link"
27262 case "(($ac_try" in
27263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264 *) ac_try_echo=$ac_try;;
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267 (eval "$ac_link") 2>conftest.er1
27269 grep -v '^ *+' conftest.er1 >conftest.err
27271 cat conftest.err >&5
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); } && {
27274 test -z "$ac_c_werror_flag" ||
27275 test ! -s conftest.err
27276 } && test -s conftest$ac_exeext &&
27277 $as_test_x conftest$ac_exeext; then
27279 have_sem_timedwait=yes
27280 cat >>confdefs.h <<\_ACEOF
27281 #define HAVE_SEM_TIMEDWAIT 1
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27293 conftest$ac_exeext conftest.$ac_ext
27294 { echo "$as_me:$LINENO: result: $have_sem_timedwait" >&5
27295 echo "${ECHO_T}$have_sem_timedwait" >&6; }
27298 # Restore the compiler flags and libraries
27299 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27301 # Basic thread creation functions
27302 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
27305 # We can fake these with mutexes and condition variables if necessary
27306 if test x$have_pthread_sem = xyes; then
27307 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
27309 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
27313 # We can fake these with semaphores if necessary
27314 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
27316 # Condition variables
27317 # We can fake these with semaphores and mutexes if necessary
27318 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
27329 { echo "$as_me:$LINENO: checking Win32 compiler" >&5
27330 echo $ECHO_N "checking Win32 compiler... $ECHO_C" >&6; }
27332 cat >conftest.$ac_ext <<_ACEOF
27335 cat confdefs.h >>conftest.$ac_ext
27336 cat >>conftest.$ac_ext <<_ACEOF
27337 /* end confdefs.h. */
27339 #include <windows.h>
27350 rm -f conftest.$ac_objext
27351 if { (ac_try="$ac_compile"
27352 case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_compile") 2>conftest.er1
27359 grep -v '^ *+' conftest.er1 >conftest.err
27361 cat conftest.err >&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); } && {
27364 test -z "$ac_c_werror_flag" ||
27365 test ! -s conftest.err
27366 } && test -s conftest.$ac_objext; then
27371 echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378 { echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
27379 echo "${ECHO_T}$have_win32_gcc" >&6; }
27380 if test x$have_win32_gcc != xyes; then
27381 { { echo "$as_me:$LINENO: error:
27382 *** Your compiler ($CC) does not produce Win32 executables!
27384 echo "$as_me: error:
27385 *** Your compiler ($CC) does not produce Win32 executables!
27387 { (exit 1); exit 1; }; }
27390 # Check whether --enable-stdio-redirect was given.
27391 if test "${enable_stdio_redirect+set}" = set; then
27392 enableval=$enable_stdio_redirect;
27394 enable_stdio_redirect=yes
27397 if test x$enable_stdio_redirect != xyes; then
27398 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
27401 if test x$enable_video = xyes; then
27402 cat >>confdefs.h <<\_ACEOF
27403 #define SDL_VIDEO_DRIVER_WINDIB 1
27406 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
27407 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
27414 # Check whether --enable-directx was given.
27415 if test "${enable_directx+set}" = set; then
27416 enableval=$enable_directx;
27421 if test x$enable_directx = xyes; then
27423 if test "${ac_cv_header_ddraw_h+set}" = set; then
27424 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
27425 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27426 if test "${ac_cv_header_ddraw_h+set}" = set; then
27427 echo $ECHO_N "(cached) $ECHO_C" >&6
27429 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27430 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27432 # Is the header compilable?
27433 { echo "$as_me:$LINENO: checking ddraw.h usability" >&5
27434 echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
27435 cat >conftest.$ac_ext <<_ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27441 $ac_includes_default
27444 rm -f conftest.$ac_objext
27445 if { (ac_try="$ac_compile"
27446 case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_compile") 2>conftest.er1
27453 grep -v '^ *+' conftest.er1 >conftest.err
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } && {
27458 test -z "$ac_c_werror_flag" ||
27459 test ! -s conftest.err
27460 } && test -s conftest.$ac_objext; then
27461 ac_header_compiler=yes
27463 echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27466 ac_header_compiler=no
27469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27471 echo "${ECHO_T}$ac_header_compiler" >&6; }
27473 # Is the header present?
27474 { echo "$as_me:$LINENO: checking ddraw.h presence" >&5
27475 echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
27476 cat >conftest.$ac_ext <<_ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27484 if { (ac_try="$ac_cpp conftest.$ac_ext"
27485 case "(($ac_try" in
27486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487 *) ac_try_echo=$ac_try;;
27489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27492 grep -v '^ *+' conftest.er1 >conftest.err
27494 cat conftest.err >&5
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } >/dev/null && {
27497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27498 test ! -s conftest.err
27500 ac_header_preproc=yes
27502 echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27505 ac_header_preproc=no
27508 rm -f conftest.err conftest.$ac_ext
27509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27510 echo "${ECHO_T}$ac_header_preproc" >&6; }
27512 # So? What about this header?
27513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27515 { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
27516 echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27517 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
27518 echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
27519 ac_header_preproc=yes
27522 { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
27523 echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
27524 { echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5
27525 echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;}
27526 { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
27527 echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
27528 { echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5
27529 echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
27530 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
27531 echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
27533 echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
27537 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
27538 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27539 if test "${ac_cv_header_ddraw_h+set}" = set; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27542 ac_cv_header_ddraw_h=$ac_header_preproc
27544 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27545 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27548 if test $ac_cv_header_ddraw_h = yes; then
27553 if test "${ac_cv_header_dsound_h+set}" = set; then
27554 { echo "$as_me:$LINENO: checking for dsound.h" >&5
27555 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27556 if test "${ac_cv_header_dsound_h+set}" = set; then
27557 echo $ECHO_N "(cached) $ECHO_C" >&6
27559 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27560 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27562 # Is the header compilable?
27563 { echo "$as_me:$LINENO: checking dsound.h usability" >&5
27564 echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6; }
27565 cat >conftest.$ac_ext <<_ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 $ac_includes_default
27572 #include <dsound.h>
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_compile") 2>conftest.er1
27583 grep -v '^ *+' conftest.er1 >conftest.err
27585 cat conftest.err >&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } && {
27588 test -z "$ac_c_werror_flag" ||
27589 test ! -s conftest.err
27590 } && test -s conftest.$ac_objext; then
27591 ac_header_compiler=yes
27593 echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ac_header_compiler=no
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 echo "${ECHO_T}$ac_header_compiler" >&6; }
27603 # Is the header present?
27604 { echo "$as_me:$LINENO: checking dsound.h presence" >&5
27605 echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h. */
27612 #include <dsound.h>
27614 if { (ac_try="$ac_cpp conftest.$ac_ext"
27615 case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27622 grep -v '^ *+' conftest.er1 >conftest.err
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } >/dev/null && {
27627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27628 test ! -s conftest.err
27630 ac_header_preproc=yes
27632 echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27635 ac_header_preproc=no
27638 rm -f conftest.err conftest.$ac_ext
27639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27640 echo "${ECHO_T}$ac_header_preproc" >&6; }
27642 # So? What about this header?
27643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27645 { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
27646 echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27647 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
27648 echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
27649 ac_header_preproc=yes
27652 { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
27653 echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
27654 { echo "$as_me:$LINENO: WARNING: dsound.h: check for missing prerequisite headers?" >&5
27655 echo "$as_me: WARNING: dsound.h: check for missing prerequisite headers?" >&2;}
27656 { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
27657 echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
27658 { echo "$as_me:$LINENO: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&5
27659 echo "$as_me: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&2;}
27660 { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
27661 echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
27662 { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
27663 echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
27667 { echo "$as_me:$LINENO: checking for dsound.h" >&5
27668 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27669 if test "${ac_cv_header_dsound_h+set}" = set; then
27670 echo $ECHO_N "(cached) $ECHO_C" >&6
27672 ac_cv_header_dsound_h=$ac_header_preproc
27674 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27675 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27678 if test $ac_cv_header_dsound_h = yes; then
27683 if test "${ac_cv_header_dinput_h+set}" = set; then
27684 { echo "$as_me:$LINENO: checking for dinput.h" >&5
27685 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_dinput_h+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27690 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27692 # Is the header compilable?
27693 { echo "$as_me:$LINENO: checking dinput.h usability" >&5
27694 echo $ECHO_N "checking dinput.h usability... $ECHO_C" >&6; }
27695 cat >conftest.$ac_ext <<_ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 $ac_includes_default
27702 #include <dinput.h>
27704 rm -f conftest.$ac_objext
27705 if { (ac_try="$ac_compile"
27706 case "(($ac_try" in
27707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708 *) ac_try_echo=$ac_try;;
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711 (eval "$ac_compile") 2>conftest.er1
27713 grep -v '^ *+' conftest.er1 >conftest.err
27715 cat conftest.err >&5
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); } && {
27718 test -z "$ac_c_werror_flag" ||
27719 test ! -s conftest.err
27720 } && test -s conftest.$ac_objext; then
27721 ac_header_compiler=yes
27723 echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27726 ac_header_compiler=no
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27731 echo "${ECHO_T}$ac_header_compiler" >&6; }
27733 # Is the header present?
27734 { echo "$as_me:$LINENO: checking dinput.h presence" >&5
27735 echo $ECHO_N "checking dinput.h presence... $ECHO_C" >&6; }
27736 cat >conftest.$ac_ext <<_ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h. */
27742 #include <dinput.h>
27744 if { (ac_try="$ac_cpp conftest.$ac_ext"
27745 case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27752 grep -v '^ *+' conftest.er1 >conftest.err
27754 cat conftest.err >&5
27755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756 (exit $ac_status); } >/dev/null && {
27757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27758 test ! -s conftest.err
27760 ac_header_preproc=yes
27762 echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27765 ac_header_preproc=no
27768 rm -f conftest.err conftest.$ac_ext
27769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27770 echo "${ECHO_T}$ac_header_preproc" >&6; }
27772 # So? What about this header?
27773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27775 { echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
27776 echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27777 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
27778 echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
27779 ac_header_preproc=yes
27782 { echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
27783 echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
27784 { echo "$as_me:$LINENO: WARNING: dinput.h: check for missing prerequisite headers?" >&5
27785 echo "$as_me: WARNING: dinput.h: check for missing prerequisite headers?" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
27787 echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&5
27789 echo "$as_me: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
27791 echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
27793 echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
27797 { echo "$as_me:$LINENO: checking for dinput.h" >&5
27798 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27799 if test "${ac_cv_header_dinput_h+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27802 ac_cv_header_dinput_h=$ac_header_preproc
27804 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27805 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27808 if test $ac_cv_header_dinput_h = yes; then
27813 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
27816 if test x$enable_video = xyes -a x$have_directx = xyes; then
27817 cat >>confdefs.h <<\_ACEOF
27818 #define SDL_VIDEO_DRIVER_DDRAW 1
27821 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
27829 # Check whether --enable-sdl-dlopen was given.
27830 if test "${enable_sdl_dlopen+set}" = set; then
27831 enableval=$enable_sdl_dlopen;
27833 enable_sdl_dlopen=yes
27836 if test x$enable_sdl_dlopen = xyes; then
27837 { echo "$as_me:$LINENO: checking for dlopen" >&5
27838 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27853 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
27854 #error Use dlcompat for Mac OS X 10.2 compatibility
27861 rm -f conftest.$ac_objext
27862 if { (ac_try="$ac_compile"
27863 case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_compile") 2>conftest.er1
27870 grep -v '^ *+' conftest.er1 >conftest.err
27872 cat conftest.err >&5
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); } && {
27875 test -z "$ac_c_werror_flag" ||
27876 test ! -s conftest.err
27877 } && test -s conftest.$ac_objext; then
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 { echo "$as_me:$LINENO: result: $have_dlopen" >&5
27890 echo "${ECHO_T}$have_dlopen" >&6; }
27892 if test x$have_dlopen = xyes; then
27893 { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
27894 echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
27895 if test "${ac_cv_lib_c_dlopen+set}" = set; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27898 ac_check_lib_save_LIBS=$LIBS
27900 cat >conftest.$ac_ext <<_ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h. */
27907 /* Override any GCC internal prototype to avoid an error.
27908 Use char because int might match the return type of a GCC
27909 builtin and then its argument prototype would still apply. */
27922 rm -f conftest.$ac_objext conftest$ac_exeext
27923 if { (ac_try="$ac_link"
27924 case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_link") 2>conftest.er1
27931 grep -v '^ *+' conftest.er1 >conftest.err
27933 cat conftest.err >&5
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } && {
27936 test -z "$ac_c_werror_flag" ||
27937 test ! -s conftest.err
27938 } && test -s conftest$ac_exeext &&
27939 $as_test_x conftest$ac_exeext; then
27940 ac_cv_lib_c_dlopen=yes
27942 echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27945 ac_cv_lib_c_dlopen=no
27948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27949 conftest$ac_exeext conftest.$ac_ext
27950 LIBS=$ac_check_lib_save_LIBS
27952 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
27953 echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; }
27954 if test $ac_cv_lib_c_dlopen = yes; then
27955 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
27957 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
27959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27960 echo $ECHO_N "(cached) $ECHO_C" >&6
27962 ac_check_lib_save_LIBS=$LIBS
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27971 /* Override any GCC internal prototype to avoid an error.
27972 Use char because int might match the return type of a GCC
27973 builtin and then its argument prototype would still apply. */
27986 rm -f conftest.$ac_objext conftest$ac_exeext
27987 if { (ac_try="$ac_link"
27988 case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_link") 2>conftest.er1
27995 grep -v '^ *+' conftest.er1 >conftest.err
27997 cat conftest.err >&5
27998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999 (exit $ac_status); } && {
28000 test -z "$ac_c_werror_flag" ||
28001 test ! -s conftest.err
28002 } && test -s conftest$ac_exeext &&
28003 $as_test_x conftest$ac_exeext; then
28004 ac_cv_lib_dl_dlopen=yes
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ac_cv_lib_dl_dlopen=no
28012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28013 conftest$ac_exeext conftest.$ac_ext
28014 LIBS=$ac_check_lib_save_LIBS
28016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28018 if test $ac_cv_lib_dl_dlopen = yes; then
28019 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
28021 { echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
28022 echo $ECHO_N "checking for dlopen in -lltdl... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-lltdl $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h. */
28035 /* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054 *) ac_try_echo=$ac_try;;
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057 (eval "$ac_link") 2>conftest.er1
28059 grep -v '^ *+' conftest.er1 >conftest.err
28061 cat conftest.err >&5
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); } && {
28064 test -z "$ac_c_werror_flag" ||
28065 test ! -s conftest.err
28066 } && test -s conftest$ac_exeext &&
28067 $as_test_x conftest$ac_exeext; then
28068 ac_cv_lib_ltdl_dlopen=yes
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28073 ac_cv_lib_ltdl_dlopen=no
28076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28077 conftest$ac_exeext conftest.$ac_ext
28078 LIBS=$ac_check_lib_save_LIBS
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
28081 echo "${ECHO_T}$ac_cv_lib_ltdl_dlopen" >&6; }
28082 if test $ac_cv_lib_ltdl_dlopen = yes; then
28083 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
28090 cat >>confdefs.h <<\_ACEOF
28091 #define SDL_LOADSO_DLOPEN 1
28094 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
28102 # Check whether --enable-atari-ldg was given.
28103 if test "${enable_atari_ldg+set}" = set; then
28104 enableval=$enable_atari_ldg;
28106 enable_atari_ldg=yes
28109 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
28110 if test "${ac_cv_header_ldg_h+set}" = set; then
28111 { echo "$as_me:$LINENO: checking for ldg.h" >&5
28112 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28113 if test "${ac_cv_header_ldg_h+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28116 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28117 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28119 # Is the header compilable?
28120 { echo "$as_me:$LINENO: checking ldg.h usability" >&5
28121 echo $ECHO_N "checking ldg.h usability... $ECHO_C" >&6; }
28122 cat >conftest.$ac_ext <<_ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 $ac_includes_default
28131 rm -f conftest.$ac_objext
28132 if { (ac_try="$ac_compile"
28133 case "(($ac_try" in
28134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135 *) ac_try_echo=$ac_try;;
28137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28138 (eval "$ac_compile") 2>conftest.er1
28140 grep -v '^ *+' conftest.er1 >conftest.err
28142 cat conftest.err >&5
28143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144 (exit $ac_status); } && {
28145 test -z "$ac_c_werror_flag" ||
28146 test ! -s conftest.err
28147 } && test -s conftest.$ac_objext; then
28148 ac_header_compiler=yes
28150 echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28153 ac_header_compiler=no
28156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28158 echo "${ECHO_T}$ac_header_compiler" >&6; }
28160 # Is the header present?
28161 { echo "$as_me:$LINENO: checking ldg.h presence" >&5
28162 echo $ECHO_N "checking ldg.h presence... $ECHO_C" >&6; }
28163 cat >conftest.$ac_ext <<_ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h. */
28171 if { (ac_try="$ac_cpp conftest.$ac_ext"
28172 case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } >/dev/null && {
28184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28185 test ! -s conftest.err
28187 ac_header_preproc=yes
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28192 ac_header_preproc=no
28195 rm -f conftest.err conftest.$ac_ext
28196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28197 echo "${ECHO_T}$ac_header_preproc" >&6; }
28199 # So? What about this header?
28200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28202 { echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28203 echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28204 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
28205 echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
28206 ac_header_preproc=yes
28209 { echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
28210 echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
28211 { echo "$as_me:$LINENO: WARNING: ldg.h: check for missing prerequisite headers?" >&5
28212 echo "$as_me: WARNING: ldg.h: check for missing prerequisite headers?" >&2;}
28213 { echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
28214 echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
28215 { echo "$as_me:$LINENO: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&5
28216 echo "$as_me: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&2;}
28217 { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
28218 echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
28219 { echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
28220 echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
28224 { echo "$as_me:$LINENO: checking for ldg.h" >&5
28225 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28226 if test "${ac_cv_header_ldg_h+set}" = set; then
28227 echo $ECHO_N "(cached) $ECHO_C" >&6
28229 ac_cv_header_ldg_h=$ac_header_preproc
28231 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28232 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28235 if test $ac_cv_header_ldg_h = yes; then
28240 { echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
28241 echo $ECHO_N "checking for ldg_open in -lldg... $ECHO_C" >&6; }
28242 if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28245 ac_check_lib_save_LIBS=$LIBS
28246 LIBS="-lldg -lgem $LIBS"
28247 cat >conftest.$ac_ext <<_ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h. */
28254 /* Override any GCC internal prototype to avoid an error.
28255 Use char because int might match the return type of a GCC
28256 builtin and then its argument prototype would still apply. */
28264 return ldg_open ();
28269 rm -f conftest.$ac_objext conftest$ac_exeext
28270 if { (ac_try="$ac_link"
28271 case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_link") 2>conftest.er1
28278 grep -v '^ *+' conftest.er1 >conftest.err
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } && {
28283 test -z "$ac_c_werror_flag" ||
28284 test ! -s conftest.err
28285 } && test -s conftest$ac_exeext &&
28286 $as_test_x conftest$ac_exeext; then
28287 ac_cv_lib_ldg_ldg_open=yes
28289 echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28292 ac_cv_lib_ldg_ldg_open=no
28295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28296 conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28299 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
28300 echo "${ECHO_T}$ac_cv_lib_ldg_ldg_open" >&6; }
28301 if test $ac_cv_lib_ldg_ldg_open = yes; then
28307 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
28308 cat >>confdefs.h <<\_ACEOF
28309 #define SDL_LOADSO_LDG 1
28312 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
28313 SDL_LIBS="$SDL_LIBS -lldg -lgem"
28321 if test x$enable_joystick = xyes; then
28322 { echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
28323 echo $ECHO_N "checking for hid_init in -lusbhid... $ECHO_C" >&6; }
28324 if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
28325 echo $ECHO_N "(cached) $ECHO_C" >&6
28327 ac_check_lib_save_LIBS=$LIBS
28328 LIBS="-lusbhid $LIBS"
28329 cat >conftest.$ac_ext <<_ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h. */
28336 /* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
28346 return hid_init ();
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_link") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest$ac_exeext &&
28368 $as_test_x conftest$ac_exeext; then
28369 ac_cv_lib_usbhid_hid_init=yes
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 ac_cv_lib_usbhid_hid_init=no
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378 conftest$ac_exeext conftest.$ac_ext
28379 LIBS=$ac_check_lib_save_LIBS
28381 { echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
28382 echo "${ECHO_T}$ac_cv_lib_usbhid_hid_init" >&6; }
28383 if test $ac_cv_lib_usbhid_hid_init = yes; then
28387 if test x$have_libusbhid = xyes; then
28388 if test "${ac_cv_header_usbhid_h+set}" = set; then
28389 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
28390 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28391 if test "${ac_cv_header_usbhid_h+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28394 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28395 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28397 # Is the header compilable?
28398 { echo "$as_me:$LINENO: checking usbhid.h usability" >&5
28399 echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6; }
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28406 $ac_includes_default
28407 #include <usbhid.h>
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413 *) ac_try_echo=$ac_try;;
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416 (eval "$ac_compile") 2>conftest.er1
28418 grep -v '^ *+' conftest.er1 >conftest.err
28420 cat conftest.err >&5
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); } && {
28423 test -z "$ac_c_werror_flag" ||
28424 test ! -s conftest.err
28425 } && test -s conftest.$ac_objext; then
28426 ac_header_compiler=yes
28428 echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28431 ac_header_compiler=no
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28436 echo "${ECHO_T}$ac_header_compiler" >&6; }
28438 # Is the header present?
28439 { echo "$as_me:$LINENO: checking usbhid.h presence" >&5
28440 echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6; }
28441 cat >conftest.$ac_ext <<_ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h. */
28447 #include <usbhid.h>
28449 if { (ac_try="$ac_cpp conftest.$ac_ext"
28450 case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28457 grep -v '^ *+' conftest.er1 >conftest.err
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); } >/dev/null && {
28462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28463 test ! -s conftest.err
28465 ac_header_preproc=yes
28467 echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28470 ac_header_preproc=no
28473 rm -f conftest.err conftest.$ac_ext
28474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28475 echo "${ECHO_T}$ac_header_preproc" >&6; }
28477 # So? What about this header?
28478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28480 { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28481 echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28482 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
28483 echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
28484 ac_header_preproc=yes
28487 { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
28488 echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
28489 { echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5
28490 echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;}
28491 { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
28492 echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
28493 { echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5
28494 echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28495 { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
28496 echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
28497 { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
28498 echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
28502 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
28503 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28504 if test "${ac_cv_header_usbhid_h+set}" = set; then
28505 echo $ECHO_N "(cached) $ECHO_C" >&6
28507 ac_cv_header_usbhid_h=$ac_header_preproc
28509 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28510 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28513 if test $ac_cv_header_usbhid_h = yes; then
28514 USB_CFLAGS="-DHAVE_USBHID_H"
28518 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28519 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28520 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28521 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28522 echo $ECHO_N "(cached) $ECHO_C" >&6
28524 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28525 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28527 # Is the header compilable?
28528 { echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
28529 echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6; }
28530 cat >conftest.$ac_ext <<_ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h. */
28536 $ac_includes_default
28537 #include <libusbhid.h>
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_compile") 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest.$ac_objext; then
28556 ac_header_compiler=yes
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 ac_header_compiler=no
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28566 echo "${ECHO_T}$ac_header_compiler" >&6; }
28568 # Is the header present?
28569 { echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
28570 echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6; }
28571 cat >conftest.$ac_ext <<_ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h. */
28577 #include <libusbhid.h>
28579 if { (ac_try="$ac_cpp conftest.$ac_ext"
28580 case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28587 grep -v '^ *+' conftest.er1 >conftest.err
28589 cat conftest.err >&5
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); } >/dev/null && {
28592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28593 test ! -s conftest.err
28595 ac_header_preproc=yes
28597 echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28600 ac_header_preproc=no
28603 rm -f conftest.err conftest.$ac_ext
28604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28605 echo "${ECHO_T}$ac_header_preproc" >&6; }
28607 # So? What about this header?
28608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28610 { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28611 echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28612 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
28613 echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
28614 ac_header_preproc=yes
28617 { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
28618 echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
28619 { echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5
28620 echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;}
28621 { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
28622 echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
28623 { echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5
28624 echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
28626 echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
28628 echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
28632 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28633 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28634 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28635 echo $ECHO_N "(cached) $ECHO_C" >&6
28637 ac_cv_header_libusbhid_h=$ac_header_preproc
28639 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28640 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28643 if test $ac_cv_header_libusbhid_h = yes; then
28644 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
28648 USB_LIBS="$USB_LIBS -lusbhid"
28650 if test "${ac_cv_header_usb_h+set}" = set; then
28651 { echo "$as_me:$LINENO: checking for usb.h" >&5
28652 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28653 if test "${ac_cv_header_usb_h+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28657 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28659 # Is the header compilable?
28660 { echo "$as_me:$LINENO: checking usb.h usability" >&5
28661 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
28662 cat >conftest.$ac_ext <<_ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 $ac_includes_default
28671 rm -f conftest.$ac_objext
28672 if { (ac_try="$ac_compile"
28673 case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_compile") 2>conftest.er1
28680 grep -v '^ *+' conftest.er1 >conftest.err
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } && {
28685 test -z "$ac_c_werror_flag" ||
28686 test ! -s conftest.err
28687 } && test -s conftest.$ac_objext; then
28688 ac_header_compiler=yes
28690 echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28693 ac_header_compiler=no
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28698 echo "${ECHO_T}$ac_header_compiler" >&6; }
28700 # Is the header present?
28701 { echo "$as_me:$LINENO: checking usb.h presence" >&5
28702 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
28703 cat >conftest.$ac_ext <<_ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h. */
28711 if { (ac_try="$ac_cpp conftest.$ac_ext"
28712 case "(($ac_try" in
28713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28714 *) ac_try_echo=$ac_try;;
28716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28719 grep -v '^ *+' conftest.er1 >conftest.err
28721 cat conftest.err >&5
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } >/dev/null && {
28724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28725 test ! -s conftest.err
28727 ac_header_preproc=yes
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28732 ac_header_preproc=no
28735 rm -f conftest.err conftest.$ac_ext
28736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28737 echo "${ECHO_T}$ac_header_preproc" >&6; }
28739 # So? What about this header?
28740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28742 { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28743 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28744 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
28745 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
28746 ac_header_preproc=yes
28749 { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
28750 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
28751 { echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
28752 echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
28754 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
28755 { echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
28756 echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
28757 { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
28758 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
28760 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
28764 { echo "$as_me:$LINENO: checking for usb.h" >&5
28765 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28766 if test "${ac_cv_header_usb_h+set}" = set; then
28767 echo $ECHO_N "(cached) $ECHO_C" >&6
28769 ac_cv_header_usb_h=$ac_header_preproc
28771 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28772 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28775 if test $ac_cv_header_usb_h = yes; then
28776 USB_CFLAGS="-DHAVE_USB_H"
28780 if test "${ac_cv_header_libusb_h+set}" = set; then
28781 { echo "$as_me:$LINENO: checking for libusb.h" >&5
28782 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28783 if test "${ac_cv_header_libusb_h+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28786 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28787 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28789 # Is the header compilable?
28790 { echo "$as_me:$LINENO: checking libusb.h usability" >&5
28791 echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6; }
28792 cat >conftest.$ac_ext <<_ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h. */
28798 $ac_includes_default
28799 #include <libusb.h>
28801 rm -f conftest.$ac_objext
28802 if { (ac_try="$ac_compile"
28803 case "(($ac_try" in
28804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808 (eval "$ac_compile") 2>conftest.er1
28810 grep -v '^ *+' conftest.er1 >conftest.err
28812 cat conftest.err >&5
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } && {
28815 test -z "$ac_c_werror_flag" ||
28816 test ! -s conftest.err
28817 } && test -s conftest.$ac_objext; then
28818 ac_header_compiler=yes
28820 echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28823 ac_header_compiler=no
28826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28828 echo "${ECHO_T}$ac_header_compiler" >&6; }
28830 # Is the header present?
28831 { echo "$as_me:$LINENO: checking libusb.h presence" >&5
28832 echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6; }
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28839 #include <libusb.h>
28841 if { (ac_try="$ac_cpp conftest.$ac_ext"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28849 grep -v '^ *+' conftest.er1 >conftest.err
28851 cat conftest.err >&5
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); } >/dev/null && {
28854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28855 test ! -s conftest.err
28857 ac_header_preproc=yes
28859 echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28862 ac_header_preproc=no
28865 rm -f conftest.err conftest.$ac_ext
28866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28867 echo "${ECHO_T}$ac_header_preproc" >&6; }
28869 # So? What about this header?
28870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28872 { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28873 echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28874 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
28875 echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
28876 ac_header_preproc=yes
28879 { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
28880 echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
28881 { echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5
28882 echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;}
28883 { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
28884 echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
28885 { echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5
28886 echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;}
28887 { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
28888 echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
28889 { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
28890 echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
28894 { echo "$as_me:$LINENO: checking for libusb.h" >&5
28895 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28896 if test "${ac_cv_header_libusb_h+set}" = set; then
28897 echo $ECHO_N "(cached) $ECHO_C" >&6
28899 ac_cv_header_libusb_h=$ac_header_preproc
28901 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28902 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28905 if test $ac_cv_header_libusb_h = yes; then
28906 USB_CFLAGS="-DHAVE_LIBUSB_H"
28910 { echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
28911 echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6; }
28912 if test "${ac_cv_lib_usb_hid_init+set}" = set; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
28915 ac_check_lib_save_LIBS=$LIBS
28917 cat >conftest.$ac_ext <<_ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h. */
28924 /* Override any GCC internal prototype to avoid an error.
28925 Use char because int might match the return type of a GCC
28926 builtin and then its argument prototype would still apply. */
28934 return hid_init ();
28939 rm -f conftest.$ac_objext conftest$ac_exeext
28940 if { (ac_try="$ac_link"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946 (eval "$ac_link") 2>conftest.er1
28948 grep -v '^ *+' conftest.er1 >conftest.err
28950 cat conftest.err >&5
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } && {
28953 test -z "$ac_c_werror_flag" ||
28954 test ! -s conftest.err
28955 } && test -s conftest$ac_exeext &&
28956 $as_test_x conftest$ac_exeext; then
28957 ac_cv_lib_usb_hid_init=yes
28959 echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_cv_lib_usb_hid_init=no
28965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28966 conftest$ac_exeext conftest.$ac_ext
28967 LIBS=$ac_check_lib_save_LIBS
28969 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
28970 echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6; }
28971 if test $ac_cv_lib_usb_hid_init = yes; then
28972 USB_LIBS="$USB_LIBS -lusb"
28977 save_CFLAGS="$CFLAGS"
28978 CFLAGS="$CFLAGS $USB_CFLAGS"
28980 { echo "$as_me:$LINENO: checking for usbhid" >&5
28981 echo $ECHO_N "checking for usbhid... $ECHO_C" >&6; }
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28990 #include <sys/types.h>
28991 #if defined(HAVE_USB_H)
28994 #ifdef __DragonFly__
28995 # include <bus/usb/usb.h>
28996 # include <bus/usb/usbhid.h>
28998 # include <dev/usb/usb.h>
28999 # include <dev/usb/usbhid.h>
29001 #if defined(HAVE_USBHID_H)
29002 #include <usbhid.h>
29003 #elif defined(HAVE_LIBUSB_H)
29004 #include <libusb.h>
29005 #elif defined(HAVE_LIBUSBHID_H)
29006 #include <libusbhid.h>
29013 struct report_desc *repdesc;
29014 struct usb_ctl_report *repbuf;
29015 hid_kind_t hidkind;
29021 rm -f conftest.$ac_objext
29022 if { (ac_try="$ac_compile"
29023 case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028 (eval "$ac_compile") 2>conftest.er1
29030 grep -v '^ *+' conftest.er1 >conftest.err
29032 cat conftest.err >&5
29033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034 (exit $ac_status); } && {
29035 test -z "$ac_c_werror_flag" ||
29036 test ! -s conftest.err
29037 } && test -s conftest.$ac_objext; then
29042 echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29049 { echo "$as_me:$LINENO: result: $have_usbhid" >&5
29050 echo "${ECHO_T}$have_usbhid" >&6; }
29052 if test x$have_usbhid = xyes; then
29053 { echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
29054 echo $ECHO_N "checking for ucr_data member of usb_ctl_report... $ECHO_C" >&6; }
29055 have_usbhid_ucr_data=no
29056 cat >conftest.$ac_ext <<_ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h. */
29063 #include <sys/types.h>
29064 #if defined(HAVE_USB_H)
29067 #ifdef __DragonFly__
29068 # include <bus/usb/usb.h>
29069 # include <bus/usb/usbhid.h>
29071 # include <dev/usb/usb.h>
29072 # include <dev/usb/usbhid.h>
29074 #if defined(HAVE_USBHID_H)
29075 #include <usbhid.h>
29076 #elif defined(HAVE_LIBUSB_H)
29077 #include <libusb.h>
29078 #elif defined(HAVE_LIBUSBHID_H)
29079 #include <libusbhid.h>
29086 struct usb_ctl_report buf;
29087 if (buf.ucr_data) { }
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest.$ac_objext; then
29111 have_usbhid_ucr_data=yes
29114 echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29121 if test x$have_usbhid_ucr_data = xyes; then
29122 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
29124 { echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
29125 echo "${ECHO_T}$have_usbhid_ucr_data" >&6; }
29127 { echo "$as_me:$LINENO: checking for new usbhid API" >&5
29128 echo $ECHO_N "checking for new usbhid API... $ECHO_C" >&6; }
29130 cat >conftest.$ac_ext <<_ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29137 #include <sys/types.h>
29138 #if defined(HAVE_USB_H)
29141 #ifdef __DragonFly__
29142 #include <bus/usb/usb.h>
29143 #include <bus/usb/usbhid.h>
29145 #include <dev/usb/usb.h>
29146 #include <dev/usb/usbhid.h>
29148 #if defined(HAVE_USBHID_H)
29149 #include <usbhid.h>
29150 #elif defined(HAVE_LIBUSB_H)
29151 #include <libusb.h>
29152 #elif defined(HAVE_LIBUSBHID_H)
29153 #include <libusbhid.h>
29161 hid_start_parse(d, 1, 1);
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171 *) ac_try_echo=$ac_try;;
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174 (eval "$ac_compile") 2>conftest.er1
29176 grep -v '^ *+' conftest.er1 >conftest.err
29178 cat conftest.err >&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } && {
29181 test -z "$ac_c_werror_flag" ||
29182 test ! -s conftest.err
29183 } && test -s conftest.$ac_objext; then
29185 have_usbhid_new=yes
29188 echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195 if test x$have_usbhid_new = xyes; then
29196 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
29198 { echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
29199 echo "${ECHO_T}$have_usbhid_new" >&6; }
29201 { echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
29202 echo $ECHO_N "checking for struct joystick in machine/joystick.h... $ECHO_C" >&6; }
29203 have_machine_joystick=no
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29211 #include <machine/joystick.h>
29223 rm -f conftest.$ac_objext
29224 if { (ac_try="$ac_compile"
29225 case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_compile") 2>conftest.er1
29232 grep -v '^ *+' conftest.er1 >conftest.err
29234 cat conftest.err >&5
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); } && {
29237 test -z "$ac_c_werror_flag" ||
29238 test ! -s conftest.err
29239 } && test -s conftest.$ac_objext; then
29241 have_machine_joystick=yes
29244 echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29251 if test x$have_machine_joystick = xyes; then
29252 cat >>confdefs.h <<\_ACEOF
29253 #define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
29257 { echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
29258 echo "${ECHO_T}$have_machine_joystick" >&6; }
29260 cat >>confdefs.h <<\_ACEOF
29261 #define SDL_JOYSTICK_USBHID 1
29264 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
29265 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
29266 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
29269 CFLAGS="$save_CFLAGS"
29273 CheckClockGettime()
29275 # Check whether --enable-clock_gettime was given.
29276 if test "${enable_clock_gettime+set}" = set; then
29277 enableval=$enable_clock_gettime;
29279 enable_clock_gettime=no
29282 if test x$enable_clock_gettime = xyes; then
29283 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
29284 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
29285 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
29286 echo $ECHO_N "(cached) $ECHO_C" >&6
29288 ac_check_lib_save_LIBS=$LIBS
29290 cat >conftest.$ac_ext <<_ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29297 /* Override any GCC internal prototype to avoid an error.
29298 Use char because int might match the return type of a GCC
29299 builtin and then its argument prototype would still apply. */
29303 char clock_gettime ();
29307 return clock_gettime ();
29312 rm -f conftest.$ac_objext conftest$ac_exeext
29313 if { (ac_try="$ac_link"
29314 case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319 (eval "$ac_link") 2>conftest.er1
29321 grep -v '^ *+' conftest.er1 >conftest.err
29323 cat conftest.err >&5
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); } && {
29326 test -z "$ac_c_werror_flag" ||
29327 test ! -s conftest.err
29328 } && test -s conftest$ac_exeext &&
29329 $as_test_x conftest$ac_exeext; then
29330 ac_cv_lib_rt_clock_gettime=yes
29332 echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 ac_cv_lib_rt_clock_gettime=no
29338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29339 conftest$ac_exeext conftest.$ac_ext
29340 LIBS=$ac_check_lib_save_LIBS
29342 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
29343 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
29344 if test $ac_cv_lib_rt_clock_gettime = yes; then
29345 have_clock_gettime=yes
29348 if test x$have_clock_gettime = xyes; then
29349 cat >>confdefs.h <<\_ACEOF
29350 #define HAVE_CLOCK_GETTIME 1
29353 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
29358 CheckLinuxVersion()
29360 if test "${ac_cv_header_linux_version_h+set}" = set; then
29361 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
29362 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29363 if test "${ac_cv_header_linux_version_h+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29367 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29369 # Is the header compilable?
29370 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
29371 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
29372 cat >conftest.$ac_ext <<_ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h. */
29378 $ac_includes_default
29379 #include <linux/version.h>
29381 rm -f conftest.$ac_objext
29382 if { (ac_try="$ac_compile"
29383 case "(($ac_try" in
29384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385 *) ac_try_echo=$ac_try;;
29387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29388 (eval "$ac_compile") 2>conftest.er1
29390 grep -v '^ *+' conftest.er1 >conftest.err
29392 cat conftest.err >&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); } && {
29395 test -z "$ac_c_werror_flag" ||
29396 test ! -s conftest.err
29397 } && test -s conftest.$ac_objext; then
29398 ac_header_compiler=yes
29400 echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29403 ac_header_compiler=no
29406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29408 echo "${ECHO_T}$ac_header_compiler" >&6; }
29410 # Is the header present?
29411 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
29412 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
29413 cat >conftest.$ac_ext <<_ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h. */
29419 #include <linux/version.h>
29421 if { (ac_try="$ac_cpp conftest.$ac_ext"
29422 case "(($ac_try" in
29423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424 *) ac_try_echo=$ac_try;;
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29429 grep -v '^ *+' conftest.er1 >conftest.err
29431 cat conftest.err >&5
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } >/dev/null && {
29434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29435 test ! -s conftest.err
29437 ac_header_preproc=yes
29439 echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29442 ac_header_preproc=no
29445 rm -f conftest.err conftest.$ac_ext
29446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29447 echo "${ECHO_T}$ac_header_preproc" >&6; }
29449 # So? What about this header?
29450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29452 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29453 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29454 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
29455 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
29456 ac_header_preproc=yes
29459 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
29460 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
29462 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
29464 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
29466 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
29467 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
29468 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
29469 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
29470 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
29474 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
29475 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29476 if test "${ac_cv_header_linux_version_h+set}" = set; then
29477 echo $ECHO_N "(cached) $ECHO_C" >&6
29479 ac_cv_header_linux_version_h=$ac_header_preproc
29481 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29482 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29485 if test $ac_cv_header_linux_version_h = yes; then
29486 have_linux_version_h=yes
29490 if test x$have_linux_version_h = xyes; then
29491 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
29497 # Check whether --enable-rpath was given.
29498 if test "${enable_rpath+set}" = set; then
29499 enableval=$enable_rpath;
29507 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
29511 # Set up files for the timer library
29512 if test x$enable_timers = xyes; then
29513 cat >>confdefs.h <<\_ACEOF
29514 #define SDL_TIMER_UNIX 1
29517 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29521 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
29523 *-*-linux*) ARCH=linux ;;
29524 *-*-uclinux*) ARCH=linux ;;
29525 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
29526 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
29527 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
29528 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
29529 *-*-bsdi*) ARCH=bsdi ;;
29530 *-*-freebsd*) ARCH=freebsd ;;
29531 *-*-dragonfly*) ARCH=freebsd ;;
29532 *-*-netbsd*) ARCH=netbsd ;;
29533 *-*-openbsd*) ARCH=openbsd ;;
29534 *-*-sysv5*) ARCH=sysv5 ;;
29535 *-*-solaris*) ARCH=solaris ;;
29536 *-*-hpux*) ARCH=hpux ;;
29537 *-*-irix*) ARCH=irix ;;
29538 *-*-aix*) ARCH=aix ;;
29539 *-*-osf*) ARCH=osf ;;
29541 CheckVisibilityHidden
29578 # Set up files for the audio library
29579 if test x$enable_audio = xyes; then
29581 sysv5|solaris|hpux)
29582 cat >>confdefs.h <<\_ACEOF
29583 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
29586 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
29590 cat >>confdefs.h <<\_ACEOF
29591 #define SDL_AUDIO_DRIVER_BSD 1
29594 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
29598 cat >>confdefs.h <<\_ACEOF
29599 #define SDL_AUDIO_DRIVER_PAUD 1
29602 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
29607 # Set up files for the joystick library
29608 if test x$enable_joystick = xyes; then
29611 cat >>confdefs.h <<\_ACEOF
29612 #define SDL_JOYSTICK_LINUX 1
29615 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
29620 # Set up files for the cdrom library
29621 if test x$enable_cdrom = xyes; then
29624 cat >>confdefs.h <<\_ACEOF
29625 #define SDL_CDROM_LINUX 1
29628 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
29632 cat >>confdefs.h <<\_ACEOF
29633 #define SDL_CDROM_FREEBSD 1
29636 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
29639 *openbsd*|*netbsd*)
29640 cat >>confdefs.h <<\_ACEOF
29641 #define SDL_CDROM_OPENBSD 1
29644 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
29648 cat >>confdefs.h <<\_ACEOF
29649 #define SDL_CDROM_BSDI 1
29652 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
29656 cat >>confdefs.h <<\_ACEOF
29657 #define SDL_CDROM_AIX 1
29660 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
29664 cat >>confdefs.h <<\_ACEOF
29665 #define SDL_CDROM_OSF 1
29668 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
29673 # Set up files for the thread library
29674 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
29675 cat >>confdefs.h <<\_ACEOF
29676 #define SDL_THREAD_SPROC 1
29679 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
29680 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29681 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29684 # Set up files for the timer library
29685 if test x$enable_timers = xyes; then
29686 cat >>confdefs.h <<\_ACEOF
29687 #define SDL_TIMER_UNIX 1
29690 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29706 # Set up files for the audio library
29707 if test x$enable_audio = xyes; then
29708 cat >>confdefs.h <<\_ACEOF
29709 #define SDL_AUDIO_DRIVER_QNXNTO 1
29712 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
29713 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
29716 # Set up files for the cdrom library
29717 if test x$enable_cdrom = xyes; then
29718 cat >>confdefs.h <<\_ACEOF
29719 #define SDL_CDROM_QNX 1
29722 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
29725 # Set up files for the timer library
29726 if test x$enable_timers = xyes; then
29727 cat >>confdefs.h <<\_ACEOF
29728 #define SDL_TIMER_UNIX 1
29731 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29735 *-*-cygwin* | *-*-mingw32*)
29737 if test "$build" != "$host"; then # cross-compiling
29738 # Default cross-compile location
29739 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
29741 # Look for the location of the tools and install there
29742 if test "$BUILD_PREFIX" != ""; then
29743 ac_default_prefix=$BUILD_PREFIX
29753 # Set up files for the audio library
29754 if test x$enable_audio = xyes; then
29755 cat >>confdefs.h <<\_ACEOF
29756 #define SDL_AUDIO_DRIVER_WAVEOUT 1
29759 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29760 if test x$have_directx = xyes; then
29761 cat >>confdefs.h <<\_ACEOF
29762 #define SDL_AUDIO_DRIVER_DSOUND 1
29765 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
29769 # Set up files for the joystick library
29770 if test x$enable_joystick = xyes; then
29771 cat >>confdefs.h <<\_ACEOF
29772 #define SDL_JOYSTICK_WINMM 1
29775 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
29778 # Set up files for the cdrom library
29779 if test x$enable_cdrom = xyes; then
29780 cat >>confdefs.h <<\_ACEOF
29781 #define SDL_CDROM_WIN32 1
29784 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
29787 # Set up files for the thread library
29788 if test x$enable_threads = xyes; then
29789 cat >>confdefs.h <<\_ACEOF
29790 #define SDL_THREAD_WIN32 1
29793 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29794 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29795 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29796 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29799 # Set up files for the timer library
29800 if test x$enable_timers = xyes; then
29801 cat >>confdefs.h <<\_ACEOF
29802 #define SDL_TIMER_WIN32 1
29805 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
29808 # Set up files for the shared object loading library
29809 if test x$enable_loadso = xyes; then
29810 cat >>confdefs.h <<\_ACEOF
29811 #define SDL_LOADSO_WIN32 1
29814 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29817 # Set up the system libraries we need
29818 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
29819 if test x$have_directx = xyes; then
29820 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
29822 # The Win32 platform requires special setup
29823 SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
29824 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29825 SDLMAIN_LDFLAGS="-static"
29826 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
29827 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
29836 SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
29837 EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
29838 if test x$enable_audio = xyes; then
29839 cat >>confdefs.h <<\_ACEOF
29840 #define SDL_AUDIO_DRIVER_WAVEOUT 1
29843 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29846 # Set up files for the thread library
29847 if test x$enable_threads = xyes; then
29848 cat >>confdefs.h <<\_ACEOF
29849 #define SDL_THREAD_WIN32 1
29852 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29853 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29854 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29855 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29858 # Set up files for the timer library
29859 if test x$enable_timers = xyes; then
29860 cat >>confdefs.h <<\_ACEOF
29861 #define SDL_TIMER_WINCE 1
29864 SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
29865 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
29868 # Set up files for the shared object loading library
29869 if test x$enable_loadso = xyes; then
29870 cat >>confdefs.h <<\_ACEOF
29871 #define SDL_LOADSO_WIN32 1
29874 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29877 # Set up the system libraries we need
29878 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
29879 # The Win32 platform requires special setup
29880 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29881 SDLMAIN_LDFLAGS="-static"
29882 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
29883 SDL_LIBS="-lSDLmain $SDL_LIBS"
29885 *-*-beos* | *-*-haiku*)
29887 ac_default_prefix=/boot/develop/tools/gnupro
29894 # Set up files for the audio library
29895 if test x$enable_audio = xyes; then
29896 cat >>confdefs.h <<\_ACEOF
29897 #define SDL_AUDIO_DRIVER_BAUDIO 1
29900 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
29903 # Set up files for the joystick library
29904 if test x$enable_joystick = xyes; then
29905 cat >>confdefs.h <<\_ACEOF
29906 #define SDL_JOYSTICK_BEOS 1
29909 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
29912 # Set up files for the cdrom library
29913 if test x$enable_cdrom = xyes; then
29914 cat >>confdefs.h <<\_ACEOF
29915 #define SDL_CDROM_BEOS 1
29918 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
29921 # Set up files for the thread library
29922 if test x$enable_threads = xyes; then
29923 cat >>confdefs.h <<\_ACEOF
29924 #define SDL_THREAD_BEOS 1
29927 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
29928 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29929 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29932 # Set up files for the timer library
29933 if test x$enable_timers = xyes; then
29934 cat >>confdefs.h <<\_ACEOF
29935 #define SDL_TIMER_BEOS 1
29938 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
29941 # Set up files for the shared object loading library
29942 if test x$enable_loadso = xyes; then
29945 cat >>confdefs.h <<\_ACEOF
29946 #define SDL_LOADSO_BEOS 1
29949 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
29952 cat >>confdefs.h <<\_ACEOF
29953 #define SDL_LOADSO_DLOPEN 1
29956 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
29961 # The BeOS platform requires special setup.
29962 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
29963 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
29966 # This could be either full "Mac OS X", or plain "Darwin" which is
29967 # just the OS X kernel sans upper layers like Carbon and Cocoa.
29968 # Next line is broken, and a few files below require Mac OS X (full)
29971 # Mac OS X builds with both the Carbon and OSX APIs at the moment
29972 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
29973 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
29975 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
29976 # is -lm which is not needed under Mac OS X. But for some reasons it
29977 # also tends to contain spurious -L switches, which we don't want to
29978 # use here or in sdl-config. Hence we reset it.
29981 CheckVisibilityHidden
29988 # Set up files for the shared object loading library
29989 # (this needs to be done before the dynamic X11 check)
29990 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
29991 cat >>confdefs.h <<\_ACEOF
29992 #define SDL_LOADSO_DLCOMPAT 1
29995 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
30007 # Need this or things might misbuild on a G3.
30008 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
30010 # Set up files for the audio library
30011 if test x$enable_audio = xyes; then
30012 cat >>confdefs.h <<\_ACEOF
30013 #define SDL_AUDIO_DRIVER_COREAUDIO 1
30016 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
30019 # Set up files for the joystick library
30020 if test x$enable_joystick = xyes; then
30021 cat >>confdefs.h <<\_ACEOF
30022 #define SDL_JOYSTICK_IOKIT 1
30025 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
30027 need_iokit_framework=yes
30029 # Set up files for the cdrom library
30030 if test x$enable_cdrom = xyes; then
30031 cat >>confdefs.h <<\_ACEOF
30032 #define SDL_CDROM_MACOSX 1
30035 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
30038 # Set up files for the timer library
30039 if test x$enable_timers = xyes; then
30040 cat >>confdefs.h <<\_ACEOF
30041 #define SDL_TIMER_UNIX 1
30044 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30047 # The Mac OS X platform requires special setup.
30048 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
30049 SDLMAIN_LDFLAGS="-static"
30050 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
30051 SDL_LIBS="-lSDLmain $SDL_LIBS"
30052 if test x$enable_video_cocoa = xyes; then
30053 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
30054 need_iokit_framework=yes
30056 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
30057 # The Cocoa backend still needs Carbon
30058 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices"
30059 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
30061 # If either the audio or CD driver is used, add the AudioUnit framework
30062 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
30063 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
30065 # Some subsystems reference IOKit...
30066 if test x$need_iokit_framework = xyes; then
30067 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
30075 CheckAtariBiosEvent
30076 CheckAtariXbiosVideo
30082 # Set up files for the audio library
30083 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30084 if test x$enable_audio = xyes; then
30085 cat >>confdefs.h <<\_ACEOF
30086 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
30089 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
30093 # Set up files for the joystick library
30094 if test x$enable_joystick = xyes; then
30095 cat >>confdefs.h <<\_ACEOF
30096 #define SDL_JOYSTICK_MINT 1
30099 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
30102 # Set up files for the cdrom library
30103 if test x$enable_cdrom = xyes; then
30104 cat >>confdefs.h <<\_ACEOF
30105 #define SDL_CDROM_MINT 1
30108 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
30111 # Set up files for the timer library
30112 if test x$enable_timers = xyes; then
30113 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30114 cat >>confdefs.h <<\_ACEOF
30115 #define SDL_TIMER_UNIX 1
30118 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30120 cat >>confdefs.h <<\_ACEOF
30121 #define SDL_TIMER_MINT 1
30124 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
30125 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
30134 # Set up files for the video library
30135 if test x$enable_video = xyes; then
30136 cat >>confdefs.h <<\_ACEOF
30137 #define SDL_VIDEO_DRIVER_RISCOS 1
30140 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
30141 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
30144 # Set up files for the joystick library
30145 if test x$enable_joystick = xyes; then
30146 cat >>confdefs.h <<\_ACEOF
30147 #define SDL_JOYSTICK_RISCOS 1
30150 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
30153 # Set up files for the timer library
30154 if test x$enable_timers = xyes; then
30155 cat >>confdefs.h <<\_ACEOF
30156 #define SDL_TIMER_RISCOS 1
30159 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
30162 # The RISC OS platform requires special setup.
30163 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
30166 { { echo "$as_me:$LINENO: error:
30167 *** Unsupported host: Please add to configure.in
30169 echo "$as_me: error:
30170 *** Unsupported host: Please add to configure.in
30172 { (exit 1); exit 1; }; }
30178 # Verify that we have all the platform specific files we need
30180 if test x$enable_joystick = xyes; then
30181 if test x$have_joystick != xyes; then
30182 # Wants joystick subsystem, but doesn't have a platform-specific backend...
30183 cat >>confdefs.h <<\_ACEOF
30184 #define SDL_JOYSTICK_DUMMY 1
30187 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
30190 if test x$have_cdrom != xyes; then
30191 if test x$enable_cdrom = xyes; then
30192 cat >>confdefs.h <<\_ACEOF
30193 #define SDL_CDROM_DISABLED 1
30197 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
30199 if test x$have_threads != xyes; then
30200 if test x$enable_threads = xyes; then
30201 cat >>confdefs.h <<\_ACEOF
30202 #define SDL_THREADS_DISABLED 1
30206 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
30208 if test x$have_timers != xyes; then
30209 if test x$enable_timers = xyes; then
30210 cat >>confdefs.h <<\_ACEOF
30211 #define SDL_TIMERS_DISABLED 1
30215 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
30217 if test x$have_loadso != xyes; then
30218 if test x$enable_loadso = xyes; then
30219 cat >>confdefs.h <<\_ACEOF
30220 #define SDL_LOADSO_DISABLED 1
30224 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
30226 if test x$SDLMAIN_SOURCES = x; then
30227 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
30228 SDLMAIN_LDFLAGS="-static"
30231 OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
30232 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30233 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30234 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30235 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
30236 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
30238 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30239 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30240 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30242 # Set runtime shared library paths as needed
30244 if test "x$enable_rpath" = "xyes"; then
30245 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
30246 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
30248 if test $ARCH = solaris; then
30249 SDL_RLD_FLAGS="-R\${libdir}"
30257 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
30258 SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
30260 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
30261 SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
30263 # Evil hack to allow static linking on Mac OS X
30264 SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
30267 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
30275 if test x$enable_shared = xyes; then
30276 ENABLE_SHARED_TRUE=
30277 ENABLE_SHARED_FALSE="#"
30279 ENABLE_SHARED_TRUE="#"
30280 ENABLE_SHARED_FALSE=
30282 if test x$enable_static = xyes; then
30283 ENABLE_STATIC_TRUE=
30284 ENABLE_STATIC_FALSE="#"
30286 ENABLE_STATIC_TRUE="#"
30287 ENABLE_STATIC_FALSE=
30307 ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
30309 ac_config_commands="$ac_config_commands default"
30311 cat >confcache <<\_ACEOF
30312 # This file is a shell script that caches the results of configure
30313 # tests run on this system so they can be shared between configure
30314 # scripts and configure runs, see configure's option --config-cache.
30315 # It is not useful on other systems. If it contains results you don't
30316 # want to keep, you may remove or edit it.
30318 # config.status only pays attention to the cache file if you give it
30319 # the --recheck option to rerun configure.
30321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30323 # following values.
30327 # The following way of writing the cache mishandles newlines in values,
30328 # but we know of no workaround that is simple, portable, and efficient.
30329 # So, we kill variables containing newlines.
30330 # Ultrix sh set writes to stderr and can't be redirected directly,
30331 # and sets the high bit in the cache file unless we assign to the vars.
30333 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30334 eval ac_val=\$$ac_var
30338 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30339 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30342 _ | IFS | as_nl) ;; #(
30343 *) $as_unset $ac_var ;;
30349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30350 *${as_nl}ac_space=\ *)
30351 # `set' does not quote correctly, so add quotes (double-quote
30352 # substitution turns \\\\ into \\, and sed turns \\ into \).
30355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30358 # `set' quotes correctly as required by POSIX, so do not add quotes.
30359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30373 if test -w "$cache_file"; then
30374 test "x$cache_file" != "x/dev/null" &&
30375 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30376 echo "$as_me: updating cache $cache_file" >&6;}
30377 cat confcache >$cache_file
30379 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30380 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30386 # Let make expand exec_prefix.
30387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30389 DEFS=-DHAVE_CONFIG_H
30393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30394 # 1. Remove the extension, and $U if already installed.
30395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30396 ac_i=`echo "$ac_i" | sed "$ac_script"`
30397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30398 # will be set to the directory where LIBOBJS objects are built.
30399 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30400 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30402 LIBOBJS=$ac_libobjs
30404 LTLIBOBJS=$ac_ltlibobjs
30408 : ${CONFIG_STATUS=./config.status}
30409 ac_clean_files_save=$ac_clean_files
30410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30413 cat >$CONFIG_STATUS <<_ACEOF
30415 # Generated by $as_me.
30416 # Run this file to recreate the current configuration.
30417 # Compiler output produced by configure, useful for debugging
30418 # configure, is in config.log if it exists.
30421 ac_cs_recheck=false
30423 SHELL=\${CONFIG_SHELL-$SHELL}
30426 cat >>$CONFIG_STATUS <<\_ACEOF
30427 ## --------------------- ##
30428 ## M4sh Initialization. ##
30429 ## --------------------- ##
30431 # Be more Bourne compatible
30432 DUALCASE=1; export DUALCASE # for MKS sh
30433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30437 # is contrary to our usage. Disable this feature.
30438 alias -g '${1+"$@"}'='"$@"'
30439 setopt NO_GLOB_SUBST
30441 case `(set -o) 2>/dev/null` in
30442 *posix*) set -o posix ;;
30451 # Avoid depending upon Character Ranges.
30452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30455 as_cr_digits='0123456789'
30456 as_cr_alnum=$as_cr_Letters$as_cr_digits
30458 # The user is always right.
30459 if test "${PATH_SEPARATOR+set}" != set; then
30460 echo "#! /bin/sh" >conf$$.sh
30461 echo "exit 0" >>conf$$.sh
30463 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30471 # Support unset when possible.
30472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30480 # We need space, tab and new line, in precisely that order. Quoting is
30481 # there to prevent editors from complaining about space-tab.
30482 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30483 # splitting by setting IFS to empty value.)
30488 # Find who we are. Look in the path if we contain no directory separator.
30490 *[\\/]* ) as_myself=$0 ;;
30491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30492 for as_dir in $PATH
30495 test -z "$as_dir" && as_dir=.
30496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30502 # We did not find ourselves, most probably we were run as `sh COMMAND'
30503 # in which case we are not to be found in the path.
30504 if test "x$as_myself" = x; then
30507 if test ! -f "$as_myself"; then
30508 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30509 { (exit 1); exit 1; }
30512 # Work around bugs in pre-3.0 UWIN ksh.
30513 for as_var in ENV MAIL MAILPATH
30514 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30522 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30523 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30524 LC_TELEPHONE LC_TIME
30526 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30527 eval $as_var=C; export $as_var
30529 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30533 # Required to use basename.
30534 if expr a : '\(a\)' >/dev/null 2>&1 &&
30535 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30541 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30542 as_basename=basename
30548 # Name of the executable.
30549 as_me=`$as_basename -- "$0" ||
30550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30551 X"$0" : 'X\(//\)$' \| \
30552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30554 sed '/^.*\/\([^/][^/]*\)\/*$/{
30573 as_lineno_1=$LINENO
30574 as_lineno_2=$LINENO
30575 test "x$as_lineno_1" != "x$as_lineno_2" &&
30576 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30579 # uniformly replaced by the line number. The first 'sed' inserts a
30580 # line-number line after each line using $LINENO; the second 'sed'
30581 # does the real work. The second script uses 'N' to pair each
30582 # line-number line with the line containing $LINENO, and appends
30583 # trailing '-' during substitution so that $LINENO is not a special
30584 # case at line end.
30585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30586 # scripts with optimization help from Paolo Bonzini. Blame Lee
30587 # E. McMahon (1931-1989) for sed's syntax. :-)
30599 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30602 ' >$as_me.lineno &&
30603 chmod +x "$as_me.lineno" ||
30604 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30605 { (exit 1); exit 1; }; }
30607 # Don't try to exec as it changes $[0], causing all sort of problems
30608 # (the dirname of $[0] is not the place where we might find the
30609 # original and so on. Autoconf is especially sensitive to this).
30610 . "./$as_me.lineno"
30611 # Exit status is that of the last command.
30616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30622 ECHO_C= ECHO_N= ECHO_T=
30623 case `echo -n x` in
30625 case `echo 'x\c'` in
30626 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30633 if expr a : '\(a\)' >/dev/null 2>&1 &&
30634 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30640 rm -f conf$$ conf$$.exe conf$$.file
30641 if test -d conf$$.dir; then
30642 rm -f conf$$.dir/conf$$.file
30648 if ln -s conf$$.file conf$$ 2>/dev/null; then
30650 # ... but there are two gotchas:
30651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30653 # In both cases, we have to default to `cp -p'.
30654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30656 elif ln conf$$.file conf$$ 2>/dev/null; then
30661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30662 rmdir conf$$.dir 2>/dev/null
30664 if mkdir -p . 2>/dev/null; then
30667 test -d ./-p && rmdir ./-p
30671 if test -x / >/dev/null 2>&1; then
30672 as_test_x='test -x'
30674 if ls -dL / >/dev/null 2>&1; then
30681 if test -d "$1"; then
30687 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30688 ???[sx]*):;;*)false;;esac;fi
30692 as_executable_p=$as_test_x
30694 # Sed expression to map a string onto a valid CPP name.
30695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30697 # Sed expression to map a string onto a valid variable name.
30698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30703 # Save the log message, to keep $[0] and so on meaningful, and to
30704 # report actual input values of CONFIG_FILES etc. instead of their
30705 # values after options handling.
30707 This file was extended by $as_me, which was
30708 generated by GNU Autoconf 2.61. Invocation command line was
30710 CONFIG_FILES = $CONFIG_FILES
30711 CONFIG_HEADERS = $CONFIG_HEADERS
30712 CONFIG_LINKS = $CONFIG_LINKS
30713 CONFIG_COMMANDS = $CONFIG_COMMANDS
30716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30721 cat >>$CONFIG_STATUS <<_ACEOF
30722 # Files that config.status was made for.
30723 config_files="$ac_config_files"
30724 config_headers="$ac_config_headers"
30725 config_commands="$ac_config_commands"
30729 cat >>$CONFIG_STATUS <<\_ACEOF
30731 \`$as_me' instantiates files from templates according to the
30732 current configuration.
30734 Usage: $0 [OPTIONS] [FILE]...
30736 -h, --help print this help, then exit
30737 -V, --version print version number and configuration settings, then exit
30738 -q, --quiet do not print progress messages
30739 -d, --debug don't remove temporary files
30740 --recheck update $as_me by reconfiguring in the same conditions
30741 --file=FILE[:TEMPLATE]
30742 instantiate the configuration file FILE
30743 --header=FILE[:TEMPLATE]
30744 instantiate the configuration header FILE
30746 Configuration files:
30749 Configuration headers:
30752 Configuration commands:
30755 Report bugs to <bug-autoconf@gnu.org>."
30758 cat >>$CONFIG_STATUS <<_ACEOF
30761 configured by $0, generated by GNU Autoconf 2.61,
30762 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30764 Copyright (C) 2006 Free Software Foundation, Inc.
30765 This config.status script is free software; the Free Software Foundation
30766 gives unlimited permission to copy, distribute and modify it."
30773 cat >>$CONFIG_STATUS <<\_ACEOF
30774 # If no file are specified by the user, then we need to provide default
30775 # value. By we need to know if files were specified by the user.
30781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30793 # Handling of the options.
30794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30797 echo "$ac_cs_version"; exit ;;
30798 --debug | --debu | --deb | --de | --d | -d )
30800 --file | --fil | --fi | --f )
30802 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30803 ac_need_defaults=false;;
30804 --header | --heade | --head | --hea )
30806 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30807 ac_need_defaults=false;;
30809 # Conflict between --help and --header
30810 { echo "$as_me: error: ambiguous option: $1
30811 Try \`$0 --help' for more information." >&2
30812 { (exit 1); exit 1; }; };;
30813 --help | --hel | -h )
30814 echo "$ac_cs_usage"; exit ;;
30815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30816 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30819 # This is an error.
30820 -*) { echo "$as_me: error: unrecognized option: $1
30821 Try \`$0 --help' for more information." >&2
30822 { (exit 1); exit 1; }; } ;;
30824 *) ac_config_targets="$ac_config_targets $1"
30825 ac_need_defaults=false ;;
30831 ac_configure_extra_args=
30833 if $ac_cs_silent; then
30835 ac_configure_extra_args="$ac_configure_extra_args --silent"
30839 cat >>$CONFIG_STATUS <<_ACEOF
30840 if \$ac_cs_recheck; then
30841 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30842 CONFIG_SHELL=$SHELL
30843 export CONFIG_SHELL
30844 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30848 cat >>$CONFIG_STATUS <<\_ACEOF
30852 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30853 ## Running $as_me. ##
30859 cat >>$CONFIG_STATUS <<_ACEOF
30865 # The HP-UX ksh and POSIX shell print the target directory to stdout
30866 # if CDPATH is set.
30867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30869 sed_quote_subst='$sed_quote_subst'
30870 double_quote_subst='$double_quote_subst'
30871 delay_variable_subst='$delay_variable_subst'
30872 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30873 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30874 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
30875 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30876 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30877 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30878 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30879 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30880 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30881 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30882 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30883 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30884 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30885 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30886 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30887 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30888 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30889 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30890 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30891 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30892 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30893 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30894 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30895 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30896 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30897 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30898 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30899 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30900 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30901 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30902 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30903 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30904 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30905 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30906 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30907 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30908 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30909 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30910 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30911 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30912 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30913 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30914 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30915 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30916 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30918 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30919 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30920 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30921 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30922 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30923 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30924 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30925 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30926 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30927 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30928 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30929 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30930 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30931 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30932 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30933 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30934 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30935 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30936 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30937 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30938 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30939 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30940 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30941 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30942 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30943 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30944 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30945 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30946 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30947 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30948 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30949 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30950 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30951 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30952 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30953 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30954 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30955 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30956 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30957 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30958 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30959 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30960 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30961 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30962 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30963 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30964 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30965 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30966 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30967 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30968 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30969 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30970 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30971 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30972 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30973 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30974 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30975 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30976 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30977 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30978 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30979 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30980 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30981 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30982 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30983 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30984 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30985 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30986 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30987 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30988 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30989 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30990 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30991 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30992 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30993 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30994 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30995 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30996 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30997 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30998 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30999 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31000 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31001 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31002 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31003 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31004 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31005 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31006 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31007 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31008 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31009 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31010 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31011 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31012 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31013 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31014 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31015 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31016 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31017 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31018 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31019 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31020 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31021 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31022 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31023 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31024 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31025 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31026 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31027 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31028 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31029 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31030 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31031 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31032 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31033 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31034 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31035 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31036 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31037 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31038 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31039 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31040 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31041 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31042 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31043 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31044 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31047 LTCFLAGS='$LTCFLAGS'
31048 compiler='$compiler_DEFAULT'
31050 # Quote evaled strings.
31061 deplibs_check_method \
31070 lt_cv_sys_global_symbol_pipe \
31071 lt_cv_sys_global_symbol_to_cdecl \
31072 lt_cv_sys_global_symbol_to_c_name_address \
31073 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31076 lt_prog_compiler_no_builtin_flag \
31077 lt_prog_compiler_wl \
31078 lt_prog_compiler_pic \
31079 lt_prog_compiler_static \
31080 lt_cv_prog_compiler_c_o \
31088 export_dynamic_flag_spec \
31089 whole_archive_flag_spec \
31090 compiler_needs_object \
31092 allow_undefined_flag \
31093 no_undefined_flag \
31094 hardcode_libdir_flag_spec \
31095 hardcode_libdir_flag_spec_ld \
31096 hardcode_libdir_separator \
31101 variables_saved_for_relink \
31103 library_names_spec \
31108 compiler_lib_search_dirs \
31113 compiler_lib_search_path \
31116 lt_prog_compiler_no_builtin_flag_CXX \
31117 lt_prog_compiler_wl_CXX \
31118 lt_prog_compiler_pic_CXX \
31119 lt_prog_compiler_static_CXX \
31120 lt_cv_prog_compiler_c_o_CXX \
31121 export_dynamic_flag_spec_CXX \
31122 whole_archive_flag_spec_CXX \
31123 compiler_needs_object_CXX \
31125 allow_undefined_flag_CXX \
31126 no_undefined_flag_CXX \
31127 hardcode_libdir_flag_spec_CXX \
31128 hardcode_libdir_flag_spec_ld_CXX \
31129 hardcode_libdir_separator_CXX \
31130 fix_srcfile_path_CXX \
31131 exclude_expsyms_CXX \
31132 include_expsyms_CXX \
31133 file_list_spec_CXX \
31134 compiler_lib_search_dirs_CXX \
31135 predep_objects_CXX \
31136 postdep_objects_CXX \
31139 compiler_lib_search_path_CXX; do
31140 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31141 *[\\\\\\\`\\"\\\$]*)
31142 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31145 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31150 # Double-quote double-evaled strings.
31151 for var in reload_cmds \
31152 old_postinstall_cmds \
31153 old_postuninstall_cmds \
31155 extract_expsyms_cmds \
31156 old_archive_from_new_cmds \
31157 old_archive_from_expsyms_cmds \
31159 archive_expsym_cmds \
31161 module_expsym_cmds \
31162 export_symbols_cmds \
31165 postuninstall_cmds \
31167 sys_lib_search_path_spec \
31168 sys_lib_dlsearch_path_spec \
31169 old_archive_cmds_CXX \
31170 old_archive_from_new_cmds_CXX \
31171 old_archive_from_expsyms_cmds_CXX \
31173 archive_expsym_cmds_CXX \
31175 module_expsym_cmds_CXX \
31176 export_symbols_cmds_CXX \
31177 prelink_cmds_CXX; do
31178 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31179 *[\\\\\\\`\\"\\\$]*)
31180 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31183 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31188 # Fix-up fallback echo if it was mangled by the above quoting rules.
31190 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31194 ac_aux_dir='$ac_aux_dir'
31195 xsi_shell='$xsi_shell'
31196 lt_shell_append='$lt_shell_append'
31198 # See if we are running on zsh, and set the options which allow our
31199 # commands through without removal of \ escapes INIT.
31200 if test -n "\${ZSH_VERSION+set}" ; then
31201 setopt NO_GLOB_SUBST
31207 TIMESTAMP='$TIMESTAMP'
31218 cat >>$CONFIG_STATUS <<\_ACEOF
31220 # Handling of arguments.
31221 for ac_config_target in $ac_config_targets
31223 case $ac_config_target in
31224 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
31225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31227 "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
31228 "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;;
31229 "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;;
31230 "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;;
31231 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31235 { (exit 1); exit 1; }; };;
31240 # If the user did not use the arguments to specify the items to instantiate,
31241 # then the envvar interface is used. Set only those that are not.
31242 # We use the long form for the default assignment because of an extremely
31243 # bizarre bug on SunOS 4.1.3.
31244 if $ac_need_defaults; then
31245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31250 # Have a temporary directory for convenience. Make it in the build tree
31251 # simply because there is no reason against having it here, and in addition,
31252 # creating and moving files from /tmp can sometimes cause problems.
31253 # Hook for its removal unless debugging.
31254 # Note that there is a small window in which the directory will not be cleaned:
31255 # after its creation but before its name has been assigned to `$tmp'.
31259 trap 'exit_status=$?
31260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31262 trap '{ (exit 1); exit 1; }' 1 2 13 15
31264 # Create a (secure) tmp directory for tmp files.
31267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31268 test -n "$tmp" && test -d "$tmp"
31271 tmp=./conf$$-$RANDOM
31272 (umask 077 && mkdir "$tmp")
31275 echo "$me: cannot create a temporary directory in ." >&2
31276 { (exit 1); exit 1; }
31280 # Set up the sed scripts for CONFIG_FILES section.
31283 # No need to generate the scripts if there are no CONFIG_FILES.
31284 # This happens for instance when ./config.status config.h
31285 if test -n "$CONFIG_FILES"; then
31292 for ac_last_try in false false false false false :; do
31293 cat >conf$$subs.sed <<_ACEOF
31294 SHELL!$SHELL$ac_delim
31295 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31296 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31297 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31298 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31299 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31300 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31301 exec_prefix!$exec_prefix$ac_delim
31302 prefix!$prefix$ac_delim
31303 program_transform_name!$program_transform_name$ac_delim
31304 bindir!$bindir$ac_delim
31305 sbindir!$sbindir$ac_delim
31306 libexecdir!$libexecdir$ac_delim
31307 datarootdir!$datarootdir$ac_delim
31308 datadir!$datadir$ac_delim
31309 sysconfdir!$sysconfdir$ac_delim
31310 sharedstatedir!$sharedstatedir$ac_delim
31311 localstatedir!$localstatedir$ac_delim
31312 includedir!$includedir$ac_delim
31313 oldincludedir!$oldincludedir$ac_delim
31314 docdir!$docdir$ac_delim
31315 infodir!$infodir$ac_delim
31316 htmldir!$htmldir$ac_delim
31317 dvidir!$dvidir$ac_delim
31318 pdfdir!$pdfdir$ac_delim
31319 psdir!$psdir$ac_delim
31320 libdir!$libdir$ac_delim
31321 localedir!$localedir$ac_delim
31322 mandir!$mandir$ac_delim
31323 DEFS!$DEFS$ac_delim
31324 ECHO_C!$ECHO_C$ac_delim
31325 ECHO_N!$ECHO_N$ac_delim
31326 ECHO_T!$ECHO_T$ac_delim
31327 LIBS!$LIBS$ac_delim
31328 build_alias!$build_alias$ac_delim
31329 host_alias!$host_alias$ac_delim
31330 target_alias!$target_alias$ac_delim
31331 SDL_MAJOR_VERSION!$SDL_MAJOR_VERSION$ac_delim
31332 SDL_MINOR_VERSION!$SDL_MINOR_VERSION$ac_delim
31333 SDL_MICRO_VERSION!$SDL_MICRO_VERSION$ac_delim
31334 SDL_INTERFACE_AGE!$SDL_INTERFACE_AGE$ac_delim
31335 SDL_BINARY_AGE!$SDL_BINARY_AGE$ac_delim
31336 SDL_VERSION!$SDL_VERSION$ac_delim
31338 DLLTOOL!$DLLTOOL$ac_delim
31339 OBJDUMP!$OBJDUMP$ac_delim
31340 LIBTOOL!$LIBTOOL$ac_delim
31341 build!$build$ac_delim
31342 build_cpu!$build_cpu$ac_delim
31343 build_vendor!$build_vendor$ac_delim
31344 build_os!$build_os$ac_delim
31345 host!$host$ac_delim
31346 host_cpu!$host_cpu$ac_delim
31347 host_vendor!$host_vendor$ac_delim
31348 host_os!$host_os$ac_delim
31350 CFLAGS!$CFLAGS$ac_delim
31351 LDFLAGS!$LDFLAGS$ac_delim
31352 CPPFLAGS!$CPPFLAGS$ac_delim
31353 ac_ct_CC!$ac_ct_CC$ac_delim
31354 EXEEXT!$EXEEXT$ac_delim
31355 OBJEXT!$OBJEXT$ac_delim
31357 GREP!$GREP$ac_delim
31358 EGREP!$EGREP$ac_delim
31359 FGREP!$FGREP$ac_delim
31361 DUMPBIN!$DUMPBIN$ac_delim
31362 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
31364 LN_S!$LN_S$ac_delim
31366 STRIP!$STRIP$ac_delim
31367 RANLIB!$RANLIB$ac_delim
31368 lt_ECHO!$lt_ECHO$ac_delim
31369 DSYMUTIL!$DSYMUTIL$ac_delim
31370 NMEDIT!$NMEDIT$ac_delim
31371 LIPO!$LIPO$ac_delim
31372 OTOOL!$OTOOL$ac_delim
31373 OTOOL64!$OTOOL64$ac_delim
31375 LT_RELEASE!$LT_RELEASE$ac_delim
31376 LT_CURRENT!$LT_CURRENT$ac_delim
31377 LT_REVISION!$LT_REVISION$ac_delim
31378 LT_AGE!$LT_AGE$ac_delim
31380 CXXFLAGS!$CXXFLAGS$ac_delim
31381 ac_ct_CXX!$ac_ct_CXX$ac_delim
31382 CXXCPP!$CXXCPP$ac_delim
31383 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31384 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31385 INSTALL_DATA!$INSTALL_DATA$ac_delim
31386 SET_MAKE!$SET_MAKE$ac_delim
31387 WINDRES!$WINDRES$ac_delim
31388 ALLOCA!$ALLOCA$ac_delim
31389 LIBOBJS!$LIBOBJS$ac_delim
31390 POW_LIB!$POW_LIB$ac_delim
31393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31395 elif $ac_last_try; then
31396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31397 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31398 { (exit 1); exit 1; }; }
31400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31404 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31405 if test -n "$ac_eof"; then
31406 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31407 ac_eof=`expr $ac_eof + 1`
31410 cat >>$CONFIG_STATUS <<_ACEOF
31411 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31415 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31416 s/^/s,@/; s/!/@,|#_!!_#|/
31419 s/'"$ac_delim"'$/,g/; t
31421 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31422 ' >>$CONFIG_STATUS <conf$$subs.sed
31423 rm -f conf$$subs.sed
31424 cat >>$CONFIG_STATUS <<_ACEOF
31430 for ac_last_try in false false false false false :; do
31431 cat >conf$$subs.sed <<_ACEOF
31432 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
31433 ALSA_LIBS!$ALSA_LIBS$ac_delim
31434 ESD_CONFIG!$ESD_CONFIG$ac_delim
31435 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
31436 ESD_LIBS!$ESD_LIBS$ac_delim
31437 PKG_CONFIG!$PKG_CONFIG$ac_delim
31438 ARTSCONFIG!$ARTSCONFIG$ac_delim
31439 NASM!$NASM$ac_delim
31440 NASMFLAGS!$NASMFLAGS$ac_delim
31441 XMKMF!$XMKMF$ac_delim
31442 X_CFLAGS!$X_CFLAGS$ac_delim
31443 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31444 X_LIBS!$X_LIBS$ac_delim
31445 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31446 DIRECTFBCONFIG!$DIRECTFBCONFIG$ac_delim
31447 CACACONFIG!$CACACONFIG$ac_delim
31448 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
31449 PTH_CONFIG!$PTH_CONFIG$ac_delim
31450 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
31451 SDL_LIBS!$SDL_LIBS$ac_delim
31452 SDL_STATIC_LIBS!$SDL_STATIC_LIBS$ac_delim
31453 SDL_RLD_FLAGS!$SDL_RLD_FLAGS$ac_delim
31454 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
31455 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
31456 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
31457 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
31458 ac_aux_dir!$ac_aux_dir$ac_delim
31459 INCLUDE!$INCLUDE$ac_delim
31460 SOURCES!$SOURCES$ac_delim
31461 OBJECTS!$OBJECTS$ac_delim
31462 SDLMAIN_SOURCES!$SDLMAIN_SOURCES$ac_delim
31463 SDLMAIN_OBJECTS!$SDLMAIN_OBJECTS$ac_delim
31464 SDLMAIN_LDFLAGS!$SDLMAIN_LDFLAGS$ac_delim
31465 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
31466 EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
31467 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
31468 EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
31469 LTLIBOBJS!$LTLIBOBJS$ac_delim
31472 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
31474 elif $ac_last_try; then
31475 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31476 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31477 { (exit 1); exit 1; }; }
31479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31483 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31484 if test -n "$ac_eof"; then
31485 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31486 ac_eof=`expr $ac_eof + 1`
31489 cat >>$CONFIG_STATUS <<_ACEOF
31490 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31494 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31495 s/^/s,@/; s/!/@,|#_!!_#|/
31498 s/'"$ac_delim"'$/,g/; t
31500 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31501 ' >>$CONFIG_STATUS <conf$$subs.sed
31502 rm -f conf$$subs.sed
31503 cat >>$CONFIG_STATUS <<_ACEOF
31510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31512 # trailing colons and then remove the whole line if VPATH becomes empty
31513 # (actually we leave an empty line to preserve line numbers).
31514 if test "x$srcdir" = x.; then
31515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31516 s/:*\$(srcdir):*/:/
31517 s/:*\${srcdir}:*/:/
31519 s/^\([^=]*=[ ]*\):*/\1/
31525 cat >>$CONFIG_STATUS <<\_ACEOF
31526 fi # test -n "$CONFIG_FILES"
31529 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31532 :[FHLC]) ac_mode=$ac_tag; continue;;
31534 case $ac_mode$ac_tag in
31536 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31537 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31538 { (exit 1); exit 1; }; };;
31539 :[FH]-) ac_tag=-:-;;
31540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31557 -) ac_f="$tmp/stdin";;
31558 *) # Look for the file first in the build tree, then in the source tree
31559 # (if the path is not absolute). The absolute path cannot be DOS-style,
31560 # because $ac_f cannot contain `:'.
31564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31566 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31567 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31568 { (exit 1); exit 1; }; };;
31570 ac_file_inputs="$ac_file_inputs $ac_f"
31573 # Let's still pretend it is `configure' which instantiates (i.e., don't
31574 # use $as_me), people would be surprised to read:
31575 # /* config.h. Generated by config.status. */
31576 configure_input="Generated from "`IFS=:
31577 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31578 if test x"$ac_file" != x-; then
31579 configure_input="$ac_file. $configure_input"
31580 { echo "$as_me:$LINENO: creating $ac_file" >&5
31581 echo "$as_me: creating $ac_file" >&6;}
31585 *:-:* | *:-) cat >"$tmp/stdin";;
31590 ac_dir=`$as_dirname -- "$ac_file" ||
31591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31592 X"$ac_file" : 'X\(//\)[^/]' \| \
31593 X"$ac_file" : 'X\(//\)$' \| \
31594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31600 /^X\(\/\/\)[^/].*/{
31615 -*) as_dir=./$as_dir;;
31617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31622 *) as_qdir=$as_dir;;
31624 as_dirs="'$as_qdir' $as_dirs"
31625 as_dir=`$as_dirname -- "$as_dir" ||
31626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31627 X"$as_dir" : 'X\(//\)[^/]' \| \
31628 X"$as_dir" : 'X\(//\)$' \| \
31629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31635 /^X\(\/\/\)[^/].*/{
31648 test -d "$as_dir" && break
31650 test -z "$as_dirs" || eval "mkdir $as_dirs"
31651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31653 { (exit 1); exit 1; }; }; }
31657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31660 # A ".." for each directory in $ac_dir_suffix.
31661 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31662 case $ac_top_builddir_sub in
31663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31667 ac_abs_top_builddir=$ac_pwd
31668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31669 # for backward compatibility:
31670 ac_top_builddir=$ac_top_build_prefix
31673 .) # We are building in place.
31675 ac_top_srcdir=$ac_top_builddir_sub
31676 ac_abs_top_srcdir=$ac_pwd ;;
31677 [\\/]* | ?:[\\/]* ) # Absolute name.
31678 ac_srcdir=$srcdir$ac_dir_suffix;
31679 ac_top_srcdir=$srcdir
31680 ac_abs_top_srcdir=$srcdir ;;
31681 *) # Relative name.
31682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31683 ac_top_srcdir=$ac_top_build_prefix$srcdir
31684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31701 cat >>$CONFIG_STATUS <<\_ACEOF
31702 # If the template does not know about datarootdir, expand it.
31703 # FIXME: This hack should be removed a few years after 2.60.
31704 ac_datarootdir_hack=; ac_datarootdir_seen=
31706 case `sed -n '/datarootdir/ {
31715 ' $ac_file_inputs` in
31716 *datarootdir*) ac_datarootdir_seen=yes;;
31717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31718 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31719 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31721 cat >>$CONFIG_STATUS <<_ACEOF
31722 ac_datarootdir_hack='
31723 s&@datadir@&$datadir&g
31724 s&@docdir@&$docdir&g
31725 s&@infodir@&$infodir&g
31726 s&@localedir@&$localedir&g
31727 s&@mandir@&$mandir&g
31728 s&\\\${datarootdir}&$datarootdir&g' ;;
31732 # Neutralize VPATH when `$srcdir' = `.'.
31733 # Shell code in configure.ac might set extrasub.
31734 # FIXME: do we really want to maintain this feature?
31735 cat >>$CONFIG_STATUS <<_ACEOF
31739 cat >>$CONFIG_STATUS <<\_ACEOF
31741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31742 s&@configure_input@&$configure_input&;t t
31743 s&@top_builddir@&$ac_top_builddir_sub&;t t
31744 s&@srcdir@&$ac_srcdir&;t t
31745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31746 s&@top_srcdir@&$ac_top_srcdir&;t t
31747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31748 s&@builddir@&$ac_builddir&;t t
31749 s&@abs_builddir@&$ac_abs_builddir&;t t
31750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31751 s&@INSTALL@&$ac_INSTALL&;t t
31752 $ac_datarootdir_hack
31753 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31756 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31758 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31759 which seems to be undefined. Please make sure it is defined." >&5
31760 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31761 which seems to be undefined. Please make sure it is defined." >&2;}
31765 -) cat "$tmp/out"; rm -f "$tmp/out";;
31766 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31775 # Transform confdefs.h into a sed script `conftest.defines', that
31776 # substitutes the proper values into config.h.in to produce config.h.
31777 rm -f conftest.defines conftest.tail
31778 # First, append a space to every undef/define line, to ease matching.
31779 echo 's/$/ /' >conftest.defines
31780 # Then, protect against being on the right side of a sed subst, or in
31781 # an unquoted here document, in config.status. If some macros were
31782 # called several times there might be several #defines for the same
31783 # symbol, which is useless. But do not sort them, since the last
31784 # AC_DEFINE must be honored.
31785 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31786 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31787 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31788 # PARAMS is the parameter list in the macro definition--in most cases, it's
31789 # just an empty string.
31790 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31791 ac_dB='\\)[ (].*,\\1define\\2'
31799 s/^[ ]*#[ ]*define[ ][ ]*//
31804 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31805 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31806 ' >>conftest.defines
31808 # Remove the space that was appended to ease matching.
31809 # Then replace #undef with comments. This is necessary, for
31810 # example, in the case of _POSIX_SOURCE, which is predefined and required
31811 # on some systems where configure will not decide to define it.
31812 # (The regexp can be short, since the line contains either #define or #undef.)
31814 s,^[ #]*u.*,/* & */,' >>conftest.defines
31816 # Break up conftest.defines:
31817 ac_max_sed_lines=50
31819 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31820 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31821 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31823 ac_in='$ac_file_inputs'
31824 ac_out='"$tmp/out1"'
31825 ac_nxt='"$tmp/out2"'
31829 # Write a here document:
31830 cat >>$CONFIG_STATUS <<_ACEOF
31831 # First, check the format of the line:
31832 cat >"\$tmp/defines.sed" <<\\CEOF
31833 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def
31834 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31838 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31840 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31841 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31842 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31843 grep . conftest.tail >/dev/null || break
31844 rm -f conftest.defines
31845 mv conftest.tail conftest.defines
31847 rm -f conftest.defines conftest.tail
31849 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31851 if test x"$ac_file" != x-; then
31852 echo "/* $configure_input */" >"$tmp/config.h"
31853 cat "$ac_result" >>"$tmp/config.h"
31854 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31855 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31856 echo "$as_me: $ac_file is unchanged" >&6;}
31859 mv "$tmp/config.h" $ac_file
31862 echo "/* $configure_input */"
31868 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31869 echo "$as_me: executing $ac_file commands" >&6;}
31874 case $ac_file$ac_mode in
31877 # See if we are running on zsh, and set the options which allow our
31878 # commands through without removal of \ escapes.
31879 if test -n "${ZSH_VERSION+set}" ; then
31880 setopt NO_GLOB_SUBST
31883 cfgfile="${ofile}T"
31884 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31887 cat <<_LT_EOF >> "$cfgfile"
31890 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31891 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31895 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31896 # 2006, 2007, 2008 Free Software Foundation, Inc.
31897 # Written by Gordon Matzigkeit, 1996
31899 # This file is part of GNU Libtool.
31901 # GNU Libtool is free software; you can redistribute it and/or
31902 # modify it under the terms of the GNU General Public License as
31903 # published by the Free Software Foundation; either version 2 of
31904 # the License, or (at your option) any later version.
31906 # As a special exception to the GNU General Public License,
31907 # if you distribute this file as part of a program or library that
31908 # is built using GNU Libtool, you may include this file under the
31909 # same distribution terms that you use for the rest of that program.
31911 # GNU Libtool is distributed in the hope that it will be useful,
31912 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31914 # GNU General Public License for more details.
31916 # You should have received a copy of the GNU General Public License
31917 # along with GNU Libtool; see the file COPYING. If not, a copy
31918 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31919 # obtained by writing to the Free Software Foundation, Inc.,
31920 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31923 # The names of the tagged configurations supported by this script.
31924 available_tags="CXX "
31926 # ### BEGIN LIBTOOL CONFIG
31928 # Which release of libtool.m4 was used?
31929 macro_version=$macro_version
31930 macro_revision=$macro_revision
31932 # Assembler program.
31935 # DLL creation program.
31938 # Object dumper program.
31941 # Whether or not to build shared libraries.
31942 build_libtool_libs=$enable_shared
31944 # Whether or not to build static libraries.
31945 build_old_libs=$enable_static
31947 # What type of objects to build.
31950 # Whether or not to optimize for fast installation.
31951 fast_install=$enable_fast_install
31954 host_alias=$host_alias
31958 # The build system.
31959 build_alias=$build_alias
31963 # A sed program that does not truncate output.
31966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31967 Xsed="\$SED -e 1s/^X//"
31969 # A grep program that handles long lines.
31975 # A literal string matcher.
31978 # A BSD- or MS-compatible name lister.
31981 # Whether we need soft or hard links.
31984 # What is the maximum length of a command?
31985 max_cmd_len=$max_cmd_len
31987 # Object file suffix (normally "o").
31990 # Executable file suffix (normally "").
31993 # whether the shell understands "unset".
31996 # turn spaces into newlines.
31999 # turn newlines into spaces.
32002 # How to create reloadable object files.
32003 reload_flag=$lt_reload_flag
32004 reload_cmds=$lt_reload_cmds
32006 # Method to check whether dependent libraries are shared objects.
32007 deplibs_check_method=$lt_deplibs_check_method
32009 # Command to use when deplibs_check_method == "file_magic".
32010 file_magic_cmd=$lt_file_magic_cmd
32014 AR_FLAGS=$lt_AR_FLAGS
32016 # A symbol stripping program.
32019 # Commands used to install an old-style archive.
32021 old_postinstall_cmds=$lt_old_postinstall_cmds
32022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32027 # LTCC compiler flags.
32028 LTCFLAGS=$lt_CFLAGS
32030 # Take the output of nm and produce a listing of raw symbols and C names.
32031 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32033 # Transform the output of nm in a proper C declaration.
32034 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32036 # Transform the output of nm in a C name address pair.
32037 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32039 # Transform the output of nm in a C name address pair when lib prefix is needed.
32040 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32042 # The name of the directory that contains temporary libtool files.
32045 # Shell to use when invoking shell scripts.
32048 # An echo program that does not interpret backslashes.
32051 # Used to examine libraries when file_magic_cmd begins with "file".
32052 MAGIC_CMD=$MAGIC_CMD
32054 # Must we lock files when doing compilation?
32055 need_locks=$lt_need_locks
32057 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32058 DSYMUTIL=$lt_DSYMUTIL
32060 # Tool to change global to local symbols on Mac OS X.
32063 # Tool to manipulate fat objects and archives on Mac OS X.
32066 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32069 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32070 OTOOL64=$lt_OTOOL64
32072 # Old archive suffix (normally "a").
32075 # Shared library suffix (normally ".so").
32076 shrext_cmds=$lt_shrext_cmds
32078 # The commands to extract the exported symbol list from a shared archive.
32079 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32081 # Variables whose values should be saved in libtool wrapper scripts and
32082 # restored at link time.
32083 variables_saved_for_relink=$lt_variables_saved_for_relink
32085 # Do we need the "lib" prefix for modules?
32086 need_lib_prefix=$need_lib_prefix
32088 # Do we need a version for libraries?
32089 need_version=$need_version
32091 # Library versioning type.
32092 version_type=$version_type
32094 # Shared library runtime path variable.
32095 runpath_var=$runpath_var
32097 # Shared library path variable.
32098 shlibpath_var=$shlibpath_var
32100 # Is shlibpath searched before the hard-coded library search path?
32101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32103 # Format of library name prefix.
32104 libname_spec=$lt_libname_spec
32106 # List of archive names. First name is the real one, the rest are links.
32107 # The last name is the one that the linker finds with -lNAME
32108 library_names_spec=$lt_library_names_spec
32110 # The coded name of the library, if different from the real name.
32111 soname_spec=$lt_soname_spec
32113 # Command to use after installation of a shared archive.
32114 postinstall_cmds=$lt_postinstall_cmds
32116 # Command to use after uninstallation of a shared archive.
32117 postuninstall_cmds=$lt_postuninstall_cmds
32119 # Commands used to finish a libtool library installation in a directory.
32120 finish_cmds=$lt_finish_cmds
32122 # As "finish_cmds", except a single script fragment to be evaled but
32124 finish_eval=$lt_finish_eval
32126 # Whether we should hardcode library paths into libraries.
32127 hardcode_into_libs=$hardcode_into_libs
32129 # Compile-time system search path for libraries.
32130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32132 # Run-time system search path for libraries.
32133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32135 # Whether dlopen is supported.
32136 dlopen_support=$enable_dlopen
32138 # Whether dlopen of programs is supported.
32139 dlopen_self=$enable_dlopen_self
32141 # Whether dlopen of statically linked programs is supported.
32142 dlopen_self_static=$enable_dlopen_self_static
32144 # Commands to strip libraries.
32145 old_striplib=$lt_old_striplib
32146 striplib=$lt_striplib
32149 # The linker used to build libraries.
32152 # Commands used to build an old-style archive.
32153 old_archive_cmds=$lt_old_archive_cmds
32155 # A language specific compiler.
32158 # Is the compiler the GNU compiler?
32161 # Compiler flag to turn off builtin functions.
32162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32164 # How to pass a linker flag through the compiler.
32165 wl=$lt_lt_prog_compiler_wl
32167 # Additional compiler flags for building library objects.
32168 pic_flag=$lt_lt_prog_compiler_pic
32170 # Compiler flag to prevent dynamic linking.
32171 link_static_flag=$lt_lt_prog_compiler_static
32173 # Does compiler simultaneously support -c and -o options?
32174 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32176 # Whether or not to add -lc for building shared libraries.
32177 build_libtool_need_lc=$archive_cmds_need_lc
32179 # Whether or not to disallow shared libs when runtime libs are static.
32180 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32182 # Compiler flag to allow reflexive dlopens.
32183 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32185 # Compiler flag to generate shared objects directly from archives.
32186 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32188 # Whether the compiler copes with passing no objects directly.
32189 compiler_needs_object=$lt_compiler_needs_object
32191 # Create an old-style archive from a shared archive.
32192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32194 # Create a temporary old-style archive to link instead of a shared archive.
32195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32197 # Commands used to build a shared archive.
32198 archive_cmds=$lt_archive_cmds
32199 archive_expsym_cmds=$lt_archive_expsym_cmds
32201 # Commands used to build a loadable module if different from building
32202 # a shared archive.
32203 module_cmds=$lt_module_cmds
32204 module_expsym_cmds=$lt_module_expsym_cmds
32206 # Whether we are building with GNU ld or not.
32207 with_gnu_ld=$lt_with_gnu_ld
32209 # Flag that allows shared libraries with undefined symbols to be built.
32210 allow_undefined_flag=$lt_allow_undefined_flag
32212 # Flag that enforces no undefined symbols.
32213 no_undefined_flag=$lt_no_undefined_flag
32215 # Flag to hardcode \$libdir into a binary during linking.
32216 # This must work even if \$libdir does not exist
32217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32219 # If ld is used when linking, flag to hardcode \$libdir into a binary
32220 # during linking. This must work even if \$libdir does not exist.
32221 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32223 # Whether we need a single "-rpath" flag with a separated argument.
32224 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32227 # DIR into the resulting binary.
32228 hardcode_direct=$hardcode_direct
32230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32231 # DIR into the resulting binary and the resulting library dependency is
32232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32233 # library is relocated.
32234 hardcode_direct_absolute=$hardcode_direct_absolute
32236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32237 # into the resulting binary.
32238 hardcode_minus_L=$hardcode_minus_L
32240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32241 # into the resulting binary.
32242 hardcode_shlibpath_var=$hardcode_shlibpath_var
32244 # Set to "yes" if building a shared library automatically hardcodes DIR
32245 # into the library and all subsequent libraries and executables linked
32247 hardcode_automatic=$hardcode_automatic
32249 # Set to yes if linker adds runtime paths of dependent libraries
32250 # to runtime path list.
32251 inherit_rpath=$inherit_rpath
32253 # Whether libtool must link a program against all its dependency libraries.
32254 link_all_deplibs=$link_all_deplibs
32256 # Fix the shell variable \$srcfile for the compiler.
32257 fix_srcfile_path=$lt_fix_srcfile_path
32259 # Set to "yes" if exported symbols are required.
32260 always_export_symbols=$always_export_symbols
32262 # The commands to list exported symbols.
32263 export_symbols_cmds=$lt_export_symbols_cmds
32265 # Symbols that should not be listed in the preloaded symbols.
32266 exclude_expsyms=$lt_exclude_expsyms
32268 # Symbols that must always be exported.
32269 include_expsyms=$lt_include_expsyms
32271 # Commands necessary for linking programs (against libraries) with templates.
32272 prelink_cmds=$lt_prelink_cmds
32274 # Specify filename containing input files.
32275 file_list_spec=$lt_file_list_spec
32277 # How to hardcode a shared library path into an executable.
32278 hardcode_action=$hardcode_action
32280 # The directories searched by this compiler when creating a shared library.
32281 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32283 # Dependencies to place before and after the objects being linked to
32284 # create a shared library.
32285 predep_objects=$lt_predep_objects
32286 postdep_objects=$lt_postdep_objects
32287 predeps=$lt_predeps
32288 postdeps=$lt_postdeps
32290 # The library search path used internally by the compiler when linking
32291 # a shared library.
32292 compiler_lib_search_path=$lt_compiler_lib_search_path
32294 # ### END LIBTOOL CONFIG
32300 cat <<\_LT_EOF >> "$cfgfile"
32301 # AIX sometimes has problems with the GCC collect2 program. For some
32302 # reason, if we set the COLLECT_NAMES environment variable, the problems
32303 # vanish in a puff of smoke.
32304 if test "X${COLLECT_NAMES+set}" != Xset; then
32306 export COLLECT_NAMES
32313 ltmain="$ac_aux_dir/ltmain.sh"
32316 # We use sed instead of cat because bash on DJGPP gets confused if
32317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32318 # text mode, it properly converts lines to CR/LF. This bash problem
32319 # is reportedly fixed, but why not run on old versions too?
32320 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32321 || (rm -f "$cfgfile"; exit 1)
32325 cat << \_LT_EOF >> "$cfgfile"
32327 # func_dirname file append nondir_replacement
32328 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32329 # otherwise set result to NONDIR_REPLACEMENT.
32333 */*) func_dirname_result="${1%/*}${2}" ;;
32334 * ) func_dirname_result="${3}" ;;
32338 # func_basename file
32341 func_basename_result="${1##*/}"
32344 # func_dirname_and_basename file append nondir_replacement
32345 # perform func_basename and func_dirname in a single function
32347 # dirname: Compute the dirname of FILE. If nonempty,
32348 # add APPEND to the result, otherwise set result
32349 # to NONDIR_REPLACEMENT.
32350 # value returned in "$func_dirname_result"
32351 # basename: Compute filename of FILE.
32352 # value retuned in "$func_basename_result"
32353 # Implementation must be kept synchronized with func_dirname
32354 # and func_basename. For efficiency, we do not delegate to
32355 # those functions but instead duplicate the functionality here.
32356 func_dirname_and_basename ()
32359 */*) func_dirname_result="${1%/*}${2}" ;;
32360 * ) func_dirname_result="${3}" ;;
32362 func_basename_result="${1##*/}"
32365 # func_stripname prefix suffix name
32366 # strip PREFIX and SUFFIX off of NAME.
32367 # PREFIX and SUFFIX must not contain globbing or regex special
32368 # characters, hashes, percent signs, but SUFFIX may contain a leading
32369 # dot (in which case that matches only a dot).
32372 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32373 # positional parameters, so assign one to ordinary parameter first.
32374 func_stripname_result=${3}
32375 func_stripname_result=${func_stripname_result#"${1}"}
32376 func_stripname_result=${func_stripname_result%"${2}"}
32382 func_opt_split_opt=${1%%=*}
32383 func_opt_split_arg=${1#*=}
32390 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32391 *) func_lo2o_result=${1} ;;
32395 # func_xform libobj-or-source
32398 func_xform_result=${1%.*}.lo
32401 # func_arith arithmetic-term...
32404 func_arith_result=$(( $* ))
32408 # STRING may not start with a hyphen.
32411 func_len_result=${#1}
32416 *) # Bourne compatible functions.
32417 cat << \_LT_EOF >> "$cfgfile"
32419 # func_dirname file append nondir_replacement
32420 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32421 # otherwise set result to NONDIR_REPLACEMENT.
32424 # Extract subdirectory from the argument.
32425 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32426 if test "X$func_dirname_result" = "X${1}"; then
32427 func_dirname_result="${3}"
32429 func_dirname_result="$func_dirname_result${2}"
32433 # func_basename file
32436 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32440 # func_stripname prefix suffix name
32441 # strip PREFIX and SUFFIX off of NAME.
32442 # PREFIX and SUFFIX must not contain globbing or regex special
32443 # characters, hashes, percent signs, but SUFFIX may contain a leading
32444 # dot (in which case that matches only a dot).
32445 # func_strip_suffix prefix name
32449 .*) func_stripname_result=`$ECHO "X${3}" \
32450 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32451 *) func_stripname_result=`$ECHO "X${3}" \
32452 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32457 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32458 my_sed_long_arg='1s/^-[^=]*=//'
32463 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32464 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32470 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32473 # func_xform libobj-or-source
32476 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32479 # func_arith arithmetic-term...
32482 func_arith_result=`expr "$@"`
32486 # STRING may not start with a hyphen.
32489 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32495 case $lt_shell_append in
32497 cat << \_LT_EOF >> "$cfgfile"
32499 # func_append var value
32500 # Append VALUE to the end of shell variable VAR.
32508 cat << \_LT_EOF >> "$cfgfile"
32510 # func_append var value
32511 # Append VALUE to the end of shell variable VAR.
32522 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32523 || (rm -f "$cfgfile"; exit 1)
32525 mv -f "$cfgfile" "$ofile" ||
32526 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32530 cat <<_LT_EOF >> "$ofile"
32532 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32534 # The linker used to build libraries.
32537 # Commands used to build an old-style archive.
32538 old_archive_cmds=$lt_old_archive_cmds_CXX
32540 # A language specific compiler.
32541 CC=$lt_compiler_CXX
32543 # Is the compiler the GNU compiler?
32546 # Compiler flag to turn off builtin functions.
32547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32549 # How to pass a linker flag through the compiler.
32550 wl=$lt_lt_prog_compiler_wl_CXX
32552 # Additional compiler flags for building library objects.
32553 pic_flag=$lt_lt_prog_compiler_pic_CXX
32555 # Compiler flag to prevent dynamic linking.
32556 link_static_flag=$lt_lt_prog_compiler_static_CXX
32558 # Does compiler simultaneously support -c and -o options?
32559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32561 # Whether or not to add -lc for building shared libraries.
32562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32564 # Whether or not to disallow shared libs when runtime libs are static.
32565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32567 # Compiler flag to allow reflexive dlopens.
32568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32570 # Compiler flag to generate shared objects directly from archives.
32571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32573 # Whether the compiler copes with passing no objects directly.
32574 compiler_needs_object=$lt_compiler_needs_object_CXX
32576 # Create an old-style archive from a shared archive.
32577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32579 # Create a temporary old-style archive to link instead of a shared archive.
32580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32582 # Commands used to build a shared archive.
32583 archive_cmds=$lt_archive_cmds_CXX
32584 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32586 # Commands used to build a loadable module if different from building
32587 # a shared archive.
32588 module_cmds=$lt_module_cmds_CXX
32589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32591 # Whether we are building with GNU ld or not.
32592 with_gnu_ld=$lt_with_gnu_ld_CXX
32594 # Flag that allows shared libraries with undefined symbols to be built.
32595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32597 # Flag that enforces no undefined symbols.
32598 no_undefined_flag=$lt_no_undefined_flag_CXX
32600 # Flag to hardcode \$libdir into a binary during linking.
32601 # This must work even if \$libdir does not exist
32602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32604 # If ld is used when linking, flag to hardcode \$libdir into a binary
32605 # during linking. This must work even if \$libdir does not exist.
32606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32608 # Whether we need a single "-rpath" flag with a separated argument.
32609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32612 # DIR into the resulting binary.
32613 hardcode_direct=$hardcode_direct_CXX
32615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32616 # DIR into the resulting binary and the resulting library dependency is
32617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32618 # library is relocated.
32619 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32622 # into the resulting binary.
32623 hardcode_minus_L=$hardcode_minus_L_CXX
32625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32626 # into the resulting binary.
32627 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32629 # Set to "yes" if building a shared library automatically hardcodes DIR
32630 # into the library and all subsequent libraries and executables linked
32632 hardcode_automatic=$hardcode_automatic_CXX
32634 # Set to yes if linker adds runtime paths of dependent libraries
32635 # to runtime path list.
32636 inherit_rpath=$inherit_rpath_CXX
32638 # Whether libtool must link a program against all its dependency libraries.
32639 link_all_deplibs=$link_all_deplibs_CXX
32641 # Fix the shell variable \$srcfile for the compiler.
32642 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32644 # Set to "yes" if exported symbols are required.
32645 always_export_symbols=$always_export_symbols_CXX
32647 # The commands to list exported symbols.
32648 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32650 # Symbols that should not be listed in the preloaded symbols.
32651 exclude_expsyms=$lt_exclude_expsyms_CXX
32653 # Symbols that must always be exported.
32654 include_expsyms=$lt_include_expsyms_CXX
32656 # Commands necessary for linking programs (against libraries) with templates.
32657 prelink_cmds=$lt_prelink_cmds_CXX
32659 # Specify filename containing input files.
32660 file_list_spec=$lt_file_list_spec_CXX
32662 # How to hardcode a shared library path into an executable.
32663 hardcode_action=$hardcode_action_CXX
32665 # The directories searched by this compiler when creating a shared library.
32666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32668 # Dependencies to place before and after the objects being linked to
32669 # create a shared library.
32670 predep_objects=$lt_predep_objects_CXX
32671 postdep_objects=$lt_postdep_objects_CXX
32672 predeps=$lt_predeps_CXX
32673 postdeps=$lt_postdeps_CXX
32675 # The library search path used internally by the compiler when linking
32676 # a shared library.
32677 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32679 # ### END LIBTOOL TAG CONFIG: CXX
32685 if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
32692 { (exit 0); exit 0; }
32694 chmod +x $CONFIG_STATUS
32695 ac_clean_files=$ac_clean_files_save
32698 # configure is writing to config.log, and then calls config.status.
32699 # config.status does its own redirection, appending to config.log.
32700 # Unfortunately, on DOS this fails, as config.log is still kept open
32701 # by configure, so config.status won't be able to write to it; its
32702 # output is simply discarded. So we exec the FD to /dev/null,
32703 # effectively closing config.log, so it can be properly (re)opened and
32704 # appended to by config.status. When coming back to configure, we
32705 # need to make the FD available again.
32706 if test "$no_create" != yes; then
32708 ac_config_status_args=
32709 test "$silent" = yes &&
32710 ac_config_status_args="$ac_config_status_args --quiet"
32712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32715 # would make configure fail if this is the last instruction.
32716 $ac_cs_success || { (exit 1); exit 1; }