Build SDL as linklib.
[AROS-Contrib.git] / SDL / SDL_main / configure
blobea9b5da01b7395e55e8c2bc7883294935621bea7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
750 ac_unique_file="README"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 ac_subst_vars='LTLIBOBJS
788 EXTRA_LDFLAGS
789 BUILD_LDFLAGS
790 EXTRA_CFLAGS
791 BUILD_CFLAGS
792 SDLMAIN_OBJECTS
793 SDLMAIN_SOURCES
794 OBJECTS
795 SOURCES
796 INCLUDE
797 ac_aux_dir
798 ENABLE_STATIC_FALSE
799 ENABLE_STATIC_TRUE
800 ENABLE_SHARED_FALSE
801 ENABLE_SHARED_TRUE
802 SDL_RLD_FLAGS
803 SDL_STATIC_LIBS
804 SDL_LIBS
805 SDL_CFLAGS
806 PTH_CONFIG
807 OSMESA_CONFIG
808 CACACONFIG
809 DIRECTFBCONFIG
810 X_EXTRA_LIBS
811 X_LIBS
812 X_PRE_LIBS
813 X_CFLAGS
814 XMKMF
815 NASMFLAGS
816 NASM
817 ARTSCONFIG
818 PKG_CONFIG
819 ESD_LIBS
820 ESD_CFLAGS
821 ESD_CONFIG
822 ALSA_LIBS
823 ALSA_CFLAGS
824 POW_LIB
825 LIBOBJS
826 ALLOCA
827 WINDRES
828 SET_MAKE
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 CXXCPP
833 ac_ct_CXX
834 CXXFLAGS
836 LT_AGE
837 LT_REVISION
838 LT_CURRENT
839 LT_RELEASE
840 OTOOL64
841 OTOOL
842 LIPO
843 NMEDIT
844 DSYMUTIL
845 lt_ECHO
846 RANLIB
847 STRIP
849 LN_S
851 ac_ct_DUMPBIN
852 DUMPBIN
854 FGREP
856 host_os
857 host_vendor
858 host_cpu
859 host
860 build_os
861 build_vendor
862 build_cpu
863 build
864 LIBTOOL
865 OBJDUMP
866 DLLTOOL
868 SDL_VERSION
869 SDL_BINARY_AGE
870 SDL_INTERFACE_AGE
871 SDL_MICRO_VERSION
872 SDL_MINOR_VERSION
873 SDL_MAJOR_VERSION
874 EGREP
875 GREP
877 OBJEXT
878 EXEEXT
879 ac_ct_CC
880 CPPFLAGS
881 LDFLAGS
882 CFLAGS
884 target_alias
885 host_alias
886 build_alias
887 LIBS
888 ECHO_T
889 ECHO_N
890 ECHO_C
891 DEFS
892 mandir
893 localedir
894 libdir
895 psdir
896 pdfdir
897 dvidir
898 htmldir
899 infodir
900 docdir
901 oldincludedir
902 includedir
903 localstatedir
904 sharedstatedir
905 sysconfdir
906 datadir
907 datarootdir
908 libexecdir
909 sbindir
910 bindir
911 program_transform_name
912 prefix
913 exec_prefix
914 PACKAGE_BUGREPORT
915 PACKAGE_STRING
916 PACKAGE_VERSION
917 PACKAGE_TARNAME
918 PACKAGE_NAME
919 PATH_SEPARATOR
920 SHELL'
921 ac_subst_files=''
922 ac_user_opts='
923 enable_option_checking
924 enable_shared
925 enable_static
926 with_pic
927 enable_fast_install
928 with_gnu_ld
929 enable_libtool_lock
930 enable_libc
931 enable_audio
932 enable_video
933 enable_events
934 enable_joystick
935 enable_cdrom
936 enable_threads
937 enable_timers
938 enable_file
939 enable_loadso
940 enable_cpuinfo
941 enable_assembly
942 enable_oss
943 enable_alsa
944 with_alsa_prefix
945 with_alsa_inc_prefix
946 enable_alsatest
947 enable_alsa_shared
948 enable_esd
949 with_esd_prefix
950 with_esd_exec_prefix
951 enable_esdtest
952 enable_esd_shared
953 enable_pulseaudio
954 enable_pulseaudio_shared
955 enable_arts
956 enable_arts_shared
957 enable_nas
958 enable_nas_shared
959 enable_diskaudio
960 enable_dummyaudio
961 enable_mintaudio
962 enable_nasm
963 enable_altivec
964 enable_ipod
965 enable_video_nanox
966 enable_nanox_debug
967 enable_nanox_share_memory
968 enable_nanox_direct_fb
969 enable_video_x11
970 with_x
971 enable_x11_shared
972 enable_dga
973 enable_video_dga
974 enable_video_x11_dgamouse
975 enable_video_x11_vm
976 enable_video_x11_xv
977 enable_video_x11_xinerama
978 enable_video_x11_xme
979 enable_video_x11_xrandr
980 enable_video_photon
981 enable_video_carbon
982 enable_video_cocoa
983 enable_video_fbcon
984 enable_video_directfb
985 enable_video_ps2gs
986 enable_video_ps3
987 enable_video_ggi
988 enable_video_svga
989 enable_video_vgl
990 enable_video_wscons
991 enable_video_aalib
992 enable_video_caca
993 enable_video_qtopia
994 enable_video_picogui
995 enable_xbios
996 enable_gem
997 enable_video_dummy
998 enable_video_opengl
999 enable_osmesa_shared
1000 enable_screensaver
1001 enable_input_events
1002 enable_input_tslib
1003 enable_pth
1004 enable_pthreads
1005 enable_pthread_sem
1006 enable_stdio_redirect
1007 enable_directx
1008 enable_sdl_dlopen
1009 enable_atari_ldg
1010 enable_clock_gettime
1011 enable_rpath
1013 ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1023 CXXFLAGS
1025 CXXCPP
1026 XMKMF'
1029 # Initialize some variables set by options.
1030 ac_init_help=
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1037 exec_prefix=NONE
1038 no_create=
1039 no_recursion=
1040 prefix=NONE
1041 program_prefix=NONE
1042 program_suffix=NONE
1043 program_transform_name=s,x,x,
1044 silent=
1045 site=
1046 srcdir=
1047 verbose=
1048 x_includes=NONE
1049 x_libraries=NONE
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE}'
1068 infodir='${datarootdir}/info'
1069 htmldir='${docdir}'
1070 dvidir='${docdir}'
1071 pdfdir='${docdir}'
1072 psdir='${docdir}'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1077 ac_prev=
1078 ac_dashdash=
1079 for ac_option
1081 # If the previous option needs an argument, assign it.
1082 if test -n "$ac_prev"; then
1083 eval $ac_prev=\$ac_option
1084 ac_prev=
1085 continue
1088 case $ac_option in
1089 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090 *) ac_optarg=yes ;;
1091 esac
1093 # Accept the important Cygnus configure options, so we can diagnose typos.
1095 case $ac_dashdash$ac_option in
1097 ac_dashdash=yes ;;
1099 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100 ac_prev=bindir ;;
1101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1102 bindir=$ac_optarg ;;
1104 -build | --build | --buil | --bui | --bu)
1105 ac_prev=build_alias ;;
1106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1107 build_alias=$ac_optarg ;;
1109 -cache-file | --cache-file | --cache-fil | --cache-fi \
1110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1111 ac_prev=cache_file ;;
1112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1114 cache_file=$ac_optarg ;;
1116 --config-cache | -C)
1117 cache_file=config.cache ;;
1119 -datadir | --datadir | --datadi | --datad)
1120 ac_prev=datadir ;;
1121 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1122 datadir=$ac_optarg ;;
1124 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1125 | --dataroo | --dataro | --datar)
1126 ac_prev=datarootdir ;;
1127 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1128 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1129 datarootdir=$ac_optarg ;;
1131 -disable-* | --disable-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval enable_$ac_useropt=no ;;
1148 -docdir | --docdir | --docdi | --doc | --do)
1149 ac_prev=docdir ;;
1150 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151 docdir=$ac_optarg ;;
1153 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154 ac_prev=dvidir ;;
1155 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156 dvidir=$ac_optarg ;;
1158 -enable-* | --enable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "enable_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval enable_$ac_useropt=\$ac_optarg ;;
1175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1177 | --exec | --exe | --ex)
1178 ac_prev=exec_prefix ;;
1179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1181 | --exec=* | --exe=* | --ex=*)
1182 exec_prefix=$ac_optarg ;;
1184 -gas | --gas | --ga | --g)
1185 # Obsolete; use --with-gas.
1186 with_gas=yes ;;
1188 -help | --help | --hel | --he | -h)
1189 ac_init_help=long ;;
1190 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1191 ac_init_help=recursive ;;
1192 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1193 ac_init_help=short ;;
1195 -host | --host | --hos | --ho)
1196 ac_prev=host_alias ;;
1197 -host=* | --host=* | --hos=* | --ho=*)
1198 host_alias=$ac_optarg ;;
1200 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1201 ac_prev=htmldir ;;
1202 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1203 | --ht=*)
1204 htmldir=$ac_optarg ;;
1206 -includedir | --includedir | --includedi | --included | --include \
1207 | --includ | --inclu | --incl | --inc)
1208 ac_prev=includedir ;;
1209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1210 | --includ=* | --inclu=* | --incl=* | --inc=*)
1211 includedir=$ac_optarg ;;
1213 -infodir | --infodir | --infodi | --infod | --info | --inf)
1214 ac_prev=infodir ;;
1215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1216 infodir=$ac_optarg ;;
1218 -libdir | --libdir | --libdi | --libd)
1219 ac_prev=libdir ;;
1220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1221 libdir=$ac_optarg ;;
1223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1224 | --libexe | --libex | --libe)
1225 ac_prev=libexecdir ;;
1226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1227 | --libexe=* | --libex=* | --libe=*)
1228 libexecdir=$ac_optarg ;;
1230 -localedir | --localedir | --localedi | --localed | --locale)
1231 ac_prev=localedir ;;
1232 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1233 localedir=$ac_optarg ;;
1235 -localstatedir | --localstatedir | --localstatedi | --localstated \
1236 | --localstate | --localstat | --localsta | --localst | --locals)
1237 ac_prev=localstatedir ;;
1238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1239 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1240 localstatedir=$ac_optarg ;;
1242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1243 ac_prev=mandir ;;
1244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1245 mandir=$ac_optarg ;;
1247 -nfp | --nfp | --nf)
1248 # Obsolete; use --without-fp.
1249 with_fp=no ;;
1251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1252 | --no-cr | --no-c | -n)
1253 no_create=yes ;;
1255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1257 no_recursion=yes ;;
1259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1261 | --oldin | --oldi | --old | --ol | --o)
1262 ac_prev=oldincludedir ;;
1263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1266 oldincludedir=$ac_optarg ;;
1268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1269 ac_prev=prefix ;;
1270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1271 prefix=$ac_optarg ;;
1273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1274 | --program-pre | --program-pr | --program-p)
1275 ac_prev=program_prefix ;;
1276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1278 program_prefix=$ac_optarg ;;
1280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1281 | --program-suf | --program-su | --program-s)
1282 ac_prev=program_suffix ;;
1283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1285 program_suffix=$ac_optarg ;;
1287 -program-transform-name | --program-transform-name \
1288 | --program-transform-nam | --program-transform-na \
1289 | --program-transform-n | --program-transform- \
1290 | --program-transform | --program-transfor \
1291 | --program-transfo | --program-transf \
1292 | --program-trans | --program-tran \
1293 | --progr-tra | --program-tr | --program-t)
1294 ac_prev=program_transform_name ;;
1295 -program-transform-name=* | --program-transform-name=* \
1296 | --program-transform-nam=* | --program-transform-na=* \
1297 | --program-transform-n=* | --program-transform-=* \
1298 | --program-transform=* | --program-transfor=* \
1299 | --program-transfo=* | --program-transf=* \
1300 | --program-trans=* | --program-tran=* \
1301 | --progr-tra=* | --program-tr=* | --program-t=*)
1302 program_transform_name=$ac_optarg ;;
1304 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1305 ac_prev=pdfdir ;;
1306 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1307 pdfdir=$ac_optarg ;;
1309 -psdir | --psdir | --psdi | --psd | --ps)
1310 ac_prev=psdir ;;
1311 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1312 psdir=$ac_optarg ;;
1314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1315 | -silent | --silent | --silen | --sile | --sil)
1316 silent=yes ;;
1318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1319 ac_prev=sbindir ;;
1320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1321 | --sbi=* | --sb=*)
1322 sbindir=$ac_optarg ;;
1324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1326 | --sharedst | --shareds | --shared | --share | --shar \
1327 | --sha | --sh)
1328 ac_prev=sharedstatedir ;;
1329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1332 | --sha=* | --sh=*)
1333 sharedstatedir=$ac_optarg ;;
1335 -site | --site | --sit)
1336 ac_prev=site ;;
1337 -site=* | --site=* | --sit=*)
1338 site=$ac_optarg ;;
1340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1341 ac_prev=srcdir ;;
1342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1343 srcdir=$ac_optarg ;;
1345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1346 | --syscon | --sysco | --sysc | --sys | --sy)
1347 ac_prev=sysconfdir ;;
1348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1350 sysconfdir=$ac_optarg ;;
1352 -target | --target | --targe | --targ | --tar | --ta | --t)
1353 ac_prev=target_alias ;;
1354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1355 target_alias=$ac_optarg ;;
1357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1358 verbose=yes ;;
1360 -version | --version | --versio | --versi | --vers | -V)
1361 ac_init_version=: ;;
1363 -with-* | --with-*)
1364 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1367 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1368 { (exit 1); exit 1; }; }
1369 ac_useropt_orig=$ac_useropt
1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1371 case $ac_user_opts in
1373 "with_$ac_useropt"
1374 "*) ;;
1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1376 ac_unrecognized_sep=', ';;
1377 esac
1378 eval with_$ac_useropt=\$ac_optarg ;;
1380 -without-* | --without-*)
1381 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1384 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1385 { (exit 1); exit 1; }; }
1386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1390 "with_$ac_useropt"
1391 "*) ;;
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1394 esac
1395 eval with_$ac_useropt=no ;;
1397 --x)
1398 # Obsolete; use --with-x.
1399 with_x=yes ;;
1401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1402 | --x-incl | --x-inc | --x-in | --x-i)
1403 ac_prev=x_includes ;;
1404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1406 x_includes=$ac_optarg ;;
1408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1410 ac_prev=x_libraries ;;
1411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1413 x_libraries=$ac_optarg ;;
1415 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1416 Try \`$0 --help' for more information." >&2
1417 { (exit 1); exit 1; }; }
1420 *=*)
1421 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1424 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1425 { (exit 1); exit 1; }; }
1426 eval $ac_envvar=\$ac_optarg
1427 export $ac_envvar ;;
1430 # FIXME: should be removed in autoconf 3.0.
1431 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1432 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1433 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1434 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1437 esac
1438 done
1440 if test -n "$ac_prev"; then
1441 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1442 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1443 { (exit 1); exit 1; }; }
1446 if test -n "$ac_unrecognized_opts"; then
1447 case $enable_option_checking in
1448 no) ;;
1449 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1450 { (exit 1); exit 1; }; } ;;
1451 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1452 esac
1455 # Check all directory arguments for consistency.
1456 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1457 datadir sysconfdir sharedstatedir localstatedir includedir \
1458 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1459 libdir localedir mandir
1461 eval ac_val=\$$ac_var
1462 # Remove trailing slashes.
1463 case $ac_val in
1464 */ )
1465 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1466 eval $ac_var=\$ac_val;;
1467 esac
1468 # Be sure to have absolute directory names.
1469 case $ac_val in
1470 [\\/$]* | ?:[\\/]* ) continue;;
1471 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1472 esac
1473 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1474 { (exit 1); exit 1; }; }
1475 done
1477 # There might be people who depend on the old broken behavior: `$host'
1478 # used to hold the argument of --host etc.
1479 # FIXME: To remove some day.
1480 build=$build_alias
1481 host=$host_alias
1482 target=$target_alias
1484 # FIXME: To remove some day.
1485 if test "x$host_alias" != x; then
1486 if test "x$build_alias" = x; then
1487 cross_compiling=maybe
1488 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1489 If a cross compiler is detected then cross compile mode will be used." >&2
1490 elif test "x$build_alias" != "x$host_alias"; then
1491 cross_compiling=yes
1495 ac_tool_prefix=
1496 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498 test "$silent" = yes && exec 6>/dev/null
1501 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1502 ac_ls_di=`ls -di .` &&
1503 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1504 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1505 { (exit 1); exit 1; }; }
1506 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1508 { (exit 1); exit 1; }; }
1511 # Find the source files, if location was not specified.
1512 if test -z "$srcdir"; then
1513 ac_srcdir_defaulted=yes
1514 # Try the directory containing this script, then the parent directory.
1515 ac_confdir=`$as_dirname -- "$as_myself" ||
1516 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1517 X"$as_myself" : 'X\(//\)[^/]' \| \
1518 X"$as_myself" : 'X\(//\)$' \| \
1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1520 $as_echo X"$as_myself" |
1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 s//\1/
1525 /^X\(\/\/\)[^/].*/{
1526 s//\1/
1529 /^X\(\/\/\)$/{
1530 s//\1/
1533 /^X\(\/\).*/{
1534 s//\1/
1537 s/.*/./; q'`
1538 srcdir=$ac_confdir
1539 if test ! -r "$srcdir/$ac_unique_file"; then
1540 srcdir=..
1542 else
1543 ac_srcdir_defaulted=no
1545 if test ! -r "$srcdir/$ac_unique_file"; then
1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1547 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1548 { (exit 1); exit 1; }; }
1550 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 ac_abs_confdir=`(
1552 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1553 { (exit 1); exit 1; }; }
1554 pwd)`
1555 # When building in place, set srcdir=.
1556 if test "$ac_abs_confdir" = "$ac_pwd"; then
1557 srcdir=.
1559 # Remove unnecessary trailing slashes from srcdir.
1560 # Double slashes in file names in object file debugging info
1561 # mess up M-x gdb in Emacs.
1562 case $srcdir in
1563 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1564 esac
1565 for ac_var in $ac_precious_vars; do
1566 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_env_${ac_var}_value=\$${ac_var}
1568 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1570 done
1573 # Report the --help message.
1575 if test "$ac_init_help" = "long"; then
1576 # Omit some internal or obsolete options to make the list less imposing.
1577 # This message is too long to be a string in the A/UX 3.1 sh.
1578 cat <<_ACEOF
1579 \`configure' configures this package to adapt to many kinds of systems.
1581 Usage: $0 [OPTION]... [VAR=VALUE]...
1583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1584 VAR=VALUE. See below for descriptions of some of the useful variables.
1586 Defaults for the options are specified in brackets.
1588 Configuration:
1589 -h, --help display this help and exit
1590 --help=short display options specific to this package
1591 --help=recursive display the short help of all the included packages
1592 -V, --version display version information and exit
1593 -q, --quiet, --silent do not print \`checking...' messages
1594 --cache-file=FILE cache test results in FILE [disabled]
1595 -C, --config-cache alias for \`--cache-file=config.cache'
1596 -n, --no-create do not create output files
1597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1599 Installation directories:
1600 --prefix=PREFIX install architecture-independent files in PREFIX
1601 [$ac_default_prefix]
1602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1603 [PREFIX]
1605 By default, \`make install' will install all the files in
1606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1608 for instance \`--prefix=\$HOME'.
1610 For better control, use the options below.
1612 Fine tuning of the installation directories:
1613 --bindir=DIR user executables [EPREFIX/bin]
1614 --sbindir=DIR system admin executables [EPREFIX/sbin]
1615 --libexecdir=DIR program executables [EPREFIX/libexec]
1616 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1617 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1618 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1619 --libdir=DIR object code libraries [EPREFIX/lib]
1620 --includedir=DIR C header files [PREFIX/include]
1621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1624 --infodir=DIR info documentation [DATAROOTDIR/info]
1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1626 --mandir=DIR man documentation [DATAROOTDIR/man]
1627 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1628 --htmldir=DIR html documentation [DOCDIR]
1629 --dvidir=DIR dvi documentation [DOCDIR]
1630 --pdfdir=DIR pdf documentation [DOCDIR]
1631 --psdir=DIR ps documentation [DOCDIR]
1632 _ACEOF
1634 cat <<\_ACEOF
1636 X features:
1637 --x-includes=DIR X include files are in DIR
1638 --x-libraries=DIR X library files are in DIR
1640 System types:
1641 --build=BUILD configure for building on BUILD [guessed]
1642 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1643 _ACEOF
1646 if test -n "$ac_init_help"; then
1648 cat <<\_ACEOF
1650 Optional Features:
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-shared[=PKGS] build shared libraries [default=yes]
1655 --enable-static[=PKGS] build static libraries [default=yes]
1656 --enable-fast-install[=PKGS]
1657 optimize for fast installation [default=yes]
1658 --disable-libtool-lock avoid locking (might break parallel builds)
1659 --enable-libc Use the system C library [default=yes]
1660 --enable-audio Enable the audio subsystem [default=yes]
1661 --enable-video Enable the video subsystem [default=yes]
1662 --enable-events Enable the events subsystem [default=yes]
1663 --enable-joystick Enable the joystick subsystem [default=yes]
1664 --enable-cdrom Enable the cdrom subsystem [default=yes]
1665 --enable-threads Enable the threading subsystem [default=yes]
1666 --enable-timers Enable the timer subsystem [default=yes]
1667 --enable-file Enable the file subsystem [default=yes]
1668 --enable-loadso Enable the shared object loading subsystem
1669 [default=yes]
1670 --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
1671 --enable-assembly Enable assembly routines [default=yes]
1672 --enable-oss support the OSS audio API [default=yes]
1673 --enable-alsa support the ALSA audio API [default=yes]
1674 --disable-alsatest Do not try to compile and run a test Alsa program
1675 --enable-alsa-shared dynamically load ALSA audio support [default=yes]
1676 --enable-esd support the Enlightened Sound Daemon [default=yes]
1677 --disable-esdtest Do not try to compile and run a test ESD program
1678 --enable-esd-shared dynamically load ESD audio support [default=yes]
1679 --enable-pulseaudio use PulseAudio [default=yes]
1680 --enable-pulseaudio-shared
1681 dynamically load PulseAudio support [default=yes]
1682 --enable-arts support the Analog Real Time Synthesizer
1683 [default=yes]
1684 --enable-arts-shared dynamically load aRts audio support [default=yes]
1685 --enable-nas support the NAS audio API [default=yes]
1686 --enable-nas-shared dynamically load NAS audio support [default=yes]
1687 --enable-diskaudio support the disk writer audio driver [default=yes]
1688 --enable-dummyaudio support the dummy audio driver [default=yes]
1689 --enable-mintaudio support Atari audio driver [default=yes]
1690 --enable-nasm use nasm assembly blitters on x86 [default=yes]
1691 --enable-altivec use altivec assembly blitters on PPC [default=yes]
1692 --enable-ipod configure SDL to work with iPodLinux [default=no]
1693 --enable-video-nanox use nanox video driver [default=no]
1694 --enable-nanox-debug print debug messages [default=no]
1695 --enable-nanox-share-memory
1696 use share memory [default=no]
1697 --enable-nanox-direct-fb
1698 use direct framebuffer access [default=no]
1699 --enable-video-x11 use X11 video driver [default=yes]
1700 --enable-x11-shared dynamically load X11 support [default=maybe]
1701 --enable-dga allow use of X11 DGA code [default=yes]
1702 --enable-video-dga use DGA 2.0 video driver [default=yes]
1703 --enable-video-x11-dgamouse
1704 use X11 DGA for mouse events [default=yes]
1705 --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
1706 --enable-video-x11-xv use X11 XvImage extension for video [default=yes]
1707 --enable-video-x11-xinerama
1708 enable X11 Xinerama support [default=yes]
1709 --enable-video-x11-xme enable Xi Graphics XME for fullscreen
1710 [default=yes]
1711 --enable-video-x11-xrandr
1712 enable X11 Xrandr extension for fullscreen
1713 [default=yes]
1714 --enable-video-photon use QNX Photon video driver [default=yes]
1715 --enable-video-carbon use Carbon/QuickDraw video driver [default=no]
1716 --enable-video-cocoa use Cocoa/Quartz video driver [default=yes]
1717 --enable-video-fbcon use framebuffer console video driver [default=yes]
1718 --enable-video-directfb use DirectFB video driver [default=yes]
1719 --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]
1720 --enable-video-ps3 use PlayStation 3 Cell driver [default=yes]
1721 --enable-video-ggi use GGI video driver [default=no]
1722 --enable-video-svga use SVGAlib video driver [default=yes]
1723 --enable-video-vgl use VGL video driver [default=yes]
1724 --enable-video-wscons use wscons video driver [default=yes]
1725 --enable-video-aalib use AAlib video driver [default=no]
1726 --enable-video-caca use libcaca video driver [default=no]
1727 --enable-video-qtopia use Qtopia video driver [default=no]
1728 --enable-video-picogui use PicoGUI video driver [default=no]
1729 --enable-video-xbios use Atari Xbios video driver [default=yes]
1730 --enable-video-gem use Atari Gem video driver [default=yes]
1731 --enable-video-dummy use dummy video driver [default=yes]
1732 --enable-video-opengl include OpenGL context creation [default=yes]
1733 --enable-osmesa-shared dynamically load OSMesa OpenGL support
1734 [default=yes]
1735 --enable-screensaver enable screensaver by default while any SDL
1736 application is running [default=no]
1737 --enable-input-events use Linux 2.4 unified input interface
1738 [default=yes]
1739 --enable-input-tslib use the Touchscreen library for input
1740 [default=yes]
1741 --enable-pth use GNU pth library for multi-threading
1742 [default=yes]
1743 --enable-pthreads use POSIX threads for multi-threading
1744 [default=yes]
1745 --enable-pthread-sem use pthread semaphores [default=yes]
1746 --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]
1747 --enable-directx use DirectX for Win32 audio/video [default=yes]
1748 --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
1749 --enable-atari-ldg use Atari LDG for shared object loading
1750 [default=yes]
1751 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1752 UNIX [default=no]
1753 --enable-rpath use an rpath when linking SDL [default=yes]
1755 Optional Packages:
1756 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1757 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1758 --with-pic try to use only PIC/non-PIC objects [default=use
1759 both]
1760 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1761 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1762 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1763 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1764 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1765 --with-x use the X Window System
1767 Some influential environment variables:
1768 CC C compiler command
1769 CFLAGS C compiler flags
1770 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1771 nonstandard directory <lib dir>
1772 LIBS libraries to pass to the linker, e.g. -l<library>
1773 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1774 you have headers in a nonstandard directory <include dir>
1775 CPP C preprocessor
1776 CXX C++ compiler command
1777 CXXFLAGS C++ compiler flags
1778 CXXCPP C++ preprocessor
1779 XMKMF Path to xmkmf, Makefile generator for X Window System
1781 Use these variables to override the choices made by `configure' or to help
1782 it to find libraries and programs with nonstandard names/locations.
1784 _ACEOF
1785 ac_status=$?
1788 if test "$ac_init_help" = "recursive"; then
1789 # If there are subdirs, report their specific --help.
1790 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1791 test -d "$ac_dir" ||
1792 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1793 continue
1794 ac_builddir=.
1796 case "$ac_dir" in
1797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1800 # A ".." for each directory in $ac_dir_suffix.
1801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1802 case $ac_top_builddir_sub in
1803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805 esac ;;
1806 esac
1807 ac_abs_top_builddir=$ac_pwd
1808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1809 # for backward compatibility:
1810 ac_top_builddir=$ac_top_build_prefix
1812 case $srcdir in
1813 .) # We are building in place.
1814 ac_srcdir=.
1815 ac_top_srcdir=$ac_top_builddir_sub
1816 ac_abs_top_srcdir=$ac_pwd ;;
1817 [\\/]* | ?:[\\/]* ) # Absolute name.
1818 ac_srcdir=$srcdir$ac_dir_suffix;
1819 ac_top_srcdir=$srcdir
1820 ac_abs_top_srcdir=$srcdir ;;
1821 *) # Relative name.
1822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1823 ac_top_srcdir=$ac_top_build_prefix$srcdir
1824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1825 esac
1826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1828 cd "$ac_dir" || { ac_status=$?; continue; }
1829 # Check for guested configure.
1830 if test -f "$ac_srcdir/configure.gnu"; then
1831 echo &&
1832 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1833 elif test -f "$ac_srcdir/configure"; then
1834 echo &&
1835 $SHELL "$ac_srcdir/configure" --help=recursive
1836 else
1837 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1838 fi || ac_status=$?
1839 cd "$ac_pwd" || { ac_status=$?; break; }
1840 done
1843 test -n "$ac_init_help" && exit $ac_status
1844 if $ac_init_version; then
1845 cat <<\_ACEOF
1846 configure
1847 generated by GNU Autoconf 2.63
1849 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1850 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1851 This configure script is free software; the Free Software Foundation
1852 gives unlimited permission to copy, distribute and modify it.
1853 _ACEOF
1854 exit
1856 cat >config.log <<_ACEOF
1857 This file contains any messages produced by compilers while
1858 running configure, to aid debugging if configure makes a mistake.
1860 It was created by $as_me, which was
1861 generated by GNU Autoconf 2.63. Invocation command line was
1863 $ $0 $@
1865 _ACEOF
1866 exec 5>>config.log
1868 cat <<_ASUNAME
1869 ## --------- ##
1870 ## Platform. ##
1871 ## --------- ##
1873 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1874 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1875 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1876 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1877 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1880 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1882 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1883 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1884 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1885 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1886 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1887 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1888 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1890 _ASUNAME
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1895 IFS=$as_save_IFS
1896 test -z "$as_dir" && as_dir=.
1897 $as_echo "PATH: $as_dir"
1898 done
1899 IFS=$as_save_IFS
1901 } >&5
1903 cat >&5 <<_ACEOF
1906 ## ----------- ##
1907 ## Core tests. ##
1908 ## ----------- ##
1910 _ACEOF
1913 # Keep a trace of the command line.
1914 # Strip out --no-create and --no-recursion so they do not pile up.
1915 # Strip out --silent because we don't want to record it for future runs.
1916 # Also quote any args containing shell meta-characters.
1917 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_configure_args=
1919 ac_configure_args0=
1920 ac_configure_args1=
1921 ac_must_keep_next=false
1922 for ac_pass in 1 2
1924 for ac_arg
1926 case $ac_arg in
1927 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1929 | -silent | --silent | --silen | --sile | --sil)
1930 continue ;;
1931 *\'*)
1932 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 esac
1934 case $ac_pass in
1935 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1937 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1938 if test $ac_must_keep_next = true; then
1939 ac_must_keep_next=false # Got value, back to normal.
1940 else
1941 case $ac_arg in
1942 *=* | --config-cache | -C | -disable-* | --disable-* \
1943 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1944 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1945 | -with-* | --with-* | -without-* | --without-* | --x)
1946 case "$ac_configure_args0 " in
1947 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1948 esac
1950 -* ) ac_must_keep_next=true ;;
1951 esac
1953 ac_configure_args="$ac_configure_args '$ac_arg'"
1955 esac
1956 done
1957 done
1958 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1959 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1961 # When interrupted or exit'd, cleanup temporary files, and complete
1962 # config.log. We remove comments because anyway the quotes in there
1963 # would cause problems or look ugly.
1964 # WARNING: Use '\'' to represent an apostrophe within the trap.
1965 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1966 trap 'exit_status=$?
1967 # Save into config.log some information that might help in debugging.
1969 echo
1971 cat <<\_ASBOX
1972 ## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##
1975 _ASBOX
1976 echo
1977 # The following way of writing the cache mishandles newlines in values,
1979 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in #(
1982 *${as_nl}*)
1983 case $ac_var in #(
1984 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1985 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1986 esac
1987 case $ac_var in #(
1988 _ | IFS | as_nl) ;; #(
1989 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1990 *) $as_unset $ac_var ;;
1991 esac ;;
1992 esac
1993 done
1994 (set) 2>&1 |
1995 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1996 *${as_nl}ac_space=\ *)
1997 sed -n \
1998 "s/'\''/'\''\\\\'\'''\''/g;
1999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2000 ;; #(
2002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 esac |
2005 sort
2007 echo
2009 cat <<\_ASBOX
2010 ## ----------------- ##
2011 ## Output variables. ##
2012 ## ----------------- ##
2013 _ASBOX
2014 echo
2015 for ac_var in $ac_subst_vars
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 $as_echo "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2025 if test -n "$ac_subst_files"; then
2026 cat <<\_ASBOX
2027 ## ------------------- ##
2028 ## File substitutions. ##
2029 ## ------------------- ##
2030 _ASBOX
2031 echo
2032 for ac_var in $ac_subst_files
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2043 if test -s confdefs.h; then
2044 cat <<\_ASBOX
2045 ## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##
2048 _ASBOX
2049 echo
2050 cat confdefs.h
2051 echo
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2063 done
2064 ac_signal=0
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2069 # Predefined preprocessor variables.
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_NAME "$PACKAGE_NAME"
2073 _ACEOF
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2083 _ACEOF
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_STRING "$PACKAGE_STRING"
2088 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2093 _ACEOF
2096 # Let the site file select an alternate cache file if it wants to.
2097 # Prefer an explicitly selected file to automatically selected ones.
2098 ac_site_file1=NONE
2099 ac_site_file2=NONE
2100 if test -n "$CONFIG_SITE"; then
2101 ac_site_file1=$CONFIG_SITE
2102 elif test "x$prefix" != xNONE; then
2103 ac_site_file1=$prefix/share/config.site
2104 ac_site_file2=$prefix/etc/config.site
2105 else
2106 ac_site_file1=$ac_default_prefix/share/config.site
2107 ac_site_file2=$ac_default_prefix/etc/config.site
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2111 test "x$ac_site_file" = xNONE && continue
2112 if test -r "$ac_site_file"; then
2113 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2116 . "$ac_site_file"
2118 done
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2126 case $cache_file in
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2129 esac
2131 else
2132 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2134 >$cache_file
2137 # Check that the precious variables saved in the cache have kept the same
2138 # value.
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2146 set,)
2147 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2150 ,set)
2151 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2154 ,);;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2164 else
2165 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2169 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2173 fi;;
2174 esac
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2177 case $ac_new_val in
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2180 esac
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2184 esac
2186 done
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2193 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2194 { (exit 1); exit 1; }; }
2213 ac_ext=c
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
2220 ac_config_headers="$ac_config_headers include/SDL_config.h"
2222 ac_ext=c
2223 ac_cpp='$CPP $CPPFLAGS'
2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227 if test -n "$ac_tool_prefix"; then
2228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 $as_echo_n "checking for $ac_word... " >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2234 else
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 for ac_exec_ext in '' $ac_executable_extensions; do
2244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 break 2
2249 done
2250 done
2251 IFS=$as_save_IFS
2255 CC=$ac_cv_prog_CC
2256 if test -n "$CC"; then
2257 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2258 $as_echo "$CC" >&6; }
2259 else
2260 { $as_echo "$as_me:$LINENO: result: no" >&5
2261 $as_echo "no" >&6; }
2266 if test -z "$ac_cv_prog_CC"; then
2267 ac_ct_CC=$CC
2268 # Extract the first word of "gcc", so it can be a program name with args.
2269 set dummy gcc; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 $as_echo_n "(cached) " >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285 ac_cv_prog_ac_ct_CC="gcc"
2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2291 IFS=$as_save_IFS
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 $as_echo "$ac_ct_CC" >&6; }
2299 else
2300 { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2304 if test "x$ac_ct_CC" = x; then
2305 CC=""
2306 else
2307 case $cross_compiling:$ac_tool_warned in
2308 yes:)
2309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2311 ac_tool_warned=yes ;;
2312 esac
2313 CC=$ac_ct_CC
2315 else
2316 CC="$ac_cv_prog_CC"
2319 if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}cc; ac_word=$2
2323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 $as_echo_n "checking for $ac_word... " >&6; }
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326 $as_echo_n "(cached) " >&6
2327 else
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_CC="${ac_tool_prefix}cc"
2339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2342 done
2343 done
2344 IFS=$as_save_IFS
2348 CC=$ac_cv_prog_CC
2349 if test -n "$CC"; then
2350 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2351 $as_echo "$CC" >&6; }
2352 else
2353 { $as_echo "$as_me:$LINENO: result: no" >&5
2354 $as_echo "no" >&6; }
2360 if test -z "$CC"; then
2361 # Extract the first word of "cc", so it can be a program name with args.
2362 set dummy cc; ac_word=$2
2363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if test "${ac_cv_prog_CC+set}" = set; then
2366 $as_echo_n "(cached) " >&6
2367 else
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 else
2371 ac_prog_rejected=no
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2380 ac_prog_rejected=yes
2381 continue
2383 ac_cv_prog_CC="cc"
2384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2387 done
2388 done
2389 IFS=$as_save_IFS
2391 if test $ac_prog_rejected = yes; then
2392 # We found a bogon in the path, so make sure we never use it.
2393 set dummy $ac_cv_prog_CC
2394 shift
2395 if test $# != 0; then
2396 # We chose a different compiler from the bogus one.
2397 # However, it has the same basename, so the bogon will be chosen
2398 # first if we set CC to just the basename; use the full file name.
2399 shift
2400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2405 CC=$ac_cv_prog_CC
2406 if test -n "$CC"; then
2407 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2408 $as_echo "$CC" >&6; }
2409 else
2410 { $as_echo "$as_me:$LINENO: result: no" >&5
2411 $as_echo "no" >&6; }
2416 if test -z "$CC"; then
2417 if test -n "$ac_tool_prefix"; then
2418 for ac_prog in cl.exe
2420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 $as_echo_n "(cached) " >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2443 IFS=$as_save_IFS
2447 CC=$ac_cv_prog_CC
2448 if test -n "$CC"; then
2449 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2450 $as_echo "$CC" >&6; }
2451 else
2452 { $as_echo "$as_me:$LINENO: result: no" >&5
2453 $as_echo "no" >&6; }
2457 test -n "$CC" && break
2458 done
2460 if test -z "$CC"; then
2461 ac_ct_CC=$CC
2462 for ac_prog in cl.exe
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2469 $as_echo_n "(cached) " >&6
2470 else
2471 if test -n "$ac_ct_CC"; then
2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 ac_cv_prog_ac_ct_CC="$ac_prog"
2482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2485 done
2486 done
2487 IFS=$as_save_IFS
2491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2492 if test -n "$ac_ct_CC"; then
2493 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2494 $as_echo "$ac_ct_CC" >&6; }
2495 else
2496 { $as_echo "$as_me:$LINENO: result: no" >&5
2497 $as_echo "no" >&6; }
2501 test -n "$ac_ct_CC" && break
2502 done
2504 if test "x$ac_ct_CC" = x; then
2505 CC=""
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513 CC=$ac_ct_CC
2520 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2523 See \`config.log' for more details." >&5
2524 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }; }
2528 # Provide some information about the compiler.
2529 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2530 set X $ac_compile
2531 ac_compiler=$2
2532 { (ac_try="$ac_compiler --version >&5"
2533 case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536 esac
2537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2538 $as_echo "$ac_try_echo") >&5
2539 (eval "$ac_compiler --version >&5") 2>&5
2540 ac_status=$?
2541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2543 { (ac_try="$ac_compiler -v >&5"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549 $as_echo "$ac_try_echo") >&5
2550 (eval "$ac_compiler -v >&5") 2>&5
2551 ac_status=$?
2552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554 { (ac_try="$ac_compiler -V >&5"
2555 case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2560 $as_echo "$ac_try_echo") >&5
2561 (eval "$ac_compiler -V >&5") 2>&5
2562 ac_status=$?
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2574 main ()
2578 return 0;
2580 _ACEOF
2581 ac_clean_files_save=$ac_clean_files
2582 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2583 # Try to create an executable without -o first, disregard a.out.
2584 # It will help us diagnose broken compilers, and finding out an intuition
2585 # of exeext.
2586 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2587 $as_echo_n "checking for C compiler default output file name... " >&6; }
2588 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2590 # The possible output files:
2591 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2593 ac_rmfiles=
2594 for ac_file in $ac_files
2596 case $ac_file in
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2598 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2599 esac
2600 done
2601 rm -f $ac_rmfiles
2603 if { (ac_try="$ac_link_default"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609 $as_echo "$ac_try_echo") >&5
2610 (eval "$ac_link_default") 2>&5
2611 ac_status=$?
2612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; then
2614 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2615 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2616 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2617 # so that the user can short-circuit this test for compilers unknown to
2618 # Autoconf.
2619 for ac_file in $ac_files ''
2621 test -f "$ac_file" || continue
2622 case $ac_file in
2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2625 [ab].out )
2626 # We found the default executable, but exeext='' is most
2627 # certainly right.
2628 break;;
2629 *.* )
2630 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2631 then :; else
2632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2634 # We set ac_cv_exeext here because the later test for it is not
2635 # safe: cross compilers may not add the suffix if given an `-o'
2636 # argument, so we may need to know it at that point already.
2637 # Even if this section looks crufty: it has the advantage of
2638 # actually working.
2639 break;;
2641 break;;
2642 esac
2643 done
2644 test "$ac_cv_exeext" = no && ac_cv_exeext=
2646 else
2647 ac_file=''
2650 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2651 $as_echo "$ac_file" >&6; }
2652 if test -z "$ac_file"; then
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: C compiler cannot create executables
2661 See \`config.log' for more details." >&2;}
2662 { (exit 77); exit 77; }; }; }
2665 ac_exeext=$ac_cv_exeext
2667 # Check that the compiler produces executables we can run. If not, either
2668 # the compiler is broken, or we cross compile.
2669 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2670 $as_echo_n "checking whether the C compiler works... " >&6; }
2671 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2672 # If not cross compiling, check that we can run a simple program.
2673 if test "$cross_compiling" != yes; then
2674 if { ac_try='./$ac_file'
2675 { (case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2680 $as_echo "$ac_try_echo") >&5
2681 (eval "$ac_try") 2>&5
2682 ac_status=$?
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2685 cross_compiling=no
2686 else
2687 if test "$cross_compiling" = maybe; then
2688 cross_compiling=yes
2689 else
2690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2692 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2693 If you meant to cross compile, use \`--host'.
2694 See \`config.log' for more details." >&5
2695 $as_echo "$as_me: error: cannot run C compiled programs.
2696 If you meant to cross compile, use \`--host'.
2697 See \`config.log' for more details." >&2;}
2698 { (exit 1); exit 1; }; }; }
2702 { $as_echo "$as_me:$LINENO: result: yes" >&5
2703 $as_echo "yes" >&6; }
2705 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2706 ac_clean_files=$ac_clean_files_save
2707 # Check that the compiler produces executables we can run. If not, either
2708 # the compiler is broken, or we cross compile.
2709 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2710 $as_echo_n "checking whether we are cross compiling... " >&6; }
2711 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2712 $as_echo "$cross_compiling" >&6; }
2714 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2715 $as_echo_n "checking for suffix of executables... " >&6; }
2716 if { (ac_try="$ac_link"
2717 case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720 esac
2721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2722 $as_echo "$ac_try_echo") >&5
2723 (eval "$ac_link") 2>&5
2724 ac_status=$?
2725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2729 # work properly (i.e., refer to `conftest.exe'), while it won't with
2730 # `rm'.
2731 for ac_file in conftest.exe conftest conftest.*; do
2732 test -f "$ac_file" || continue
2733 case $ac_file in
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2735 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736 break;;
2737 * ) break;;
2738 esac
2739 done
2740 else
2741 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2744 See \`config.log' for more details." >&5
2745 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2746 See \`config.log' for more details." >&2;}
2747 { (exit 1); exit 1; }; }; }
2750 rm -f conftest$ac_cv_exeext
2751 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2752 $as_echo "$ac_cv_exeext" >&6; }
2754 rm -f conftest.$ac_ext
2755 EXEEXT=$ac_cv_exeext
2756 ac_exeext=$EXEEXT
2757 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2758 $as_echo_n "checking for suffix of object files... " >&6; }
2759 if test "${ac_cv_objext+set}" = set; then
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2770 main ()
2774 return 0;
2776 _ACEOF
2777 rm -f conftest.o conftest.obj
2778 if { (ac_try="$ac_compile"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2784 $as_echo "$ac_try_echo") >&5
2785 (eval "$ac_compile") 2>&5
2786 ac_status=$?
2787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
2789 for ac_file in conftest.o conftest.obj conftest.*; do
2790 test -f "$ac_file" || continue;
2791 case $ac_file in
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2794 break;;
2795 esac
2796 done
2797 else
2798 $as_echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2801 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2804 See \`config.log' for more details." >&5
2805 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&2;}
2807 { (exit 1); exit 1; }; }; }
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2813 $as_echo "$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2815 ac_objext=$OBJEXT
2816 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2817 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2819 $as_echo_n "(cached) " >&6
2820 else
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2829 main ()
2831 #ifndef __GNUC__
2832 choke me
2833 #endif
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (ac_try="$ac_compile"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2857 ac_compiler_gnu=yes
2858 else
2859 $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 ac_compiler_gnu=no
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2869 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2870 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2871 if test $ac_compiler_gnu = yes; then
2872 GCC=yes
2873 else
2874 GCC=
2876 ac_test_CFLAGS=${CFLAGS+set}
2877 ac_save_CFLAGS=$CFLAGS
2878 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2879 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2880 if test "${ac_cv_prog_cc_g+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2882 else
2883 ac_save_c_werror_flag=$ac_c_werror_flag
2884 ac_c_werror_flag=yes
2885 ac_cv_prog_cc_g=no
2886 CFLAGS="-g"
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2895 main ()
2899 return 0;
2901 _ACEOF
2902 rm -f conftest.$ac_objext
2903 if { (ac_try="$ac_compile"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909 $as_echo "$ac_try_echo") >&5
2910 (eval "$ac_compile") 2>conftest.er1
2911 ac_status=$?
2912 grep -v '^ *+' conftest.er1 >conftest.err
2913 rm -f conftest.er1
2914 cat conftest.err >&5
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } && {
2917 test -z "$ac_c_werror_flag" ||
2918 test ! -s conftest.err
2919 } && test -s conftest.$ac_objext; then
2920 ac_cv_prog_cc_g=yes
2921 else
2922 $as_echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2925 CFLAGS=""
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2934 main ()
2938 return 0;
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2948 $as_echo "$ac_try_echo") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2950 ac_status=$?
2951 grep -v '^ *+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2960 else
2961 $as_echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2964 ac_c_werror_flag=$ac_save_c_werror_flag
2965 CFLAGS="-g"
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2974 main ()
2978 return 0;
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (ac_try="$ac_compile"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 $as_echo "$ac_try_echo") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 ac_cv_prog_cc_g=yes
3000 else
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 ac_c_werror_flag=$ac_save_c_werror_flag
3016 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3017 $as_echo "$ac_cv_prog_cc_g" >&6; }
3018 if test "$ac_test_CFLAGS" = set; then
3019 CFLAGS=$ac_save_CFLAGS
3020 elif test $ac_cv_prog_cc_g = yes; then
3021 if test "$GCC" = yes; then
3022 CFLAGS="-g -O2"
3023 else
3024 CFLAGS="-g"
3026 else
3027 if test "$GCC" = yes; then
3028 CFLAGS="-O2"
3029 else
3030 CFLAGS=
3033 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3035 if test "${ac_cv_prog_cc_c89+set}" = set; then
3036 $as_echo_n "(cached) " >&6
3037 else
3038 ac_cv_prog_cc_c89=no
3039 ac_save_CC=$CC
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <stdarg.h>
3047 #include <stdio.h>
3048 #include <sys/types.h>
3049 #include <sys/stat.h>
3050 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3051 struct buf { int x; };
3052 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3053 static char *e (p, i)
3054 char **p;
3055 int i;
3057 return p[i];
3059 static char *f (char * (*g) (char **, int), char **p, ...)
3061 char *s;
3062 va_list v;
3063 va_start (v,p);
3064 s = g (p, va_arg (v,int));
3065 va_end (v);
3066 return s;
3069 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3070 function prototypes and stuff, but not '\xHH' hex character constants.
3071 These don't provoke an error unfortunately, instead are silently treated
3072 as 'x'. The following induces an error, until -std is added to get
3073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3074 array size at least. It's necessary to write '\x00'==0 to get something
3075 that's true only with -std. */
3076 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3078 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3079 inside strings and character constants. */
3080 #define FOO(x) 'x'
3081 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3083 int test (int i, double x);
3084 struct s1 {int (*f) (int a);};
3085 struct s2 {int (*f) (double a);};
3086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3087 int argc;
3088 char **argv;
3090 main ()
3092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3094 return 0;
3096 _ACEOF
3097 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3100 CC="$ac_save_CC $ac_arg"
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3108 $as_echo "$ac_try_echo") >&5
3109 (eval "$ac_compile") 2>conftest.er1
3110 ac_status=$?
3111 grep -v '^ *+' conftest.er1 >conftest.err
3112 rm -f conftest.er1
3113 cat conftest.err >&5
3114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); } && {
3116 test -z "$ac_c_werror_flag" ||
3117 test ! -s conftest.err
3118 } && test -s conftest.$ac_objext; then
3119 ac_cv_prog_cc_c89=$ac_arg
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3127 rm -f core conftest.err conftest.$ac_objext
3128 test "x$ac_cv_prog_cc_c89" != "xno" && break
3129 done
3130 rm -f conftest.$ac_ext
3131 CC=$ac_save_CC
3134 # AC_CACHE_VAL
3135 case "x$ac_cv_prog_cc_c89" in
3137 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3138 $as_echo "none needed" >&6; } ;;
3139 xno)
3140 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3141 $as_echo "unsupported" >&6; } ;;
3143 CC="$CC $ac_cv_prog_cc_c89"
3144 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3145 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3146 esac
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3163 # On Suns, sometimes $CPP names a directory.
3164 if test -n "$CPP" && test -d "$CPP"; then
3165 CPP=
3167 if test -z "$CPP"; then
3168 if test "${ac_cv_prog_CPP+set}" = set; then
3169 $as_echo_n "(cached) " >&6
3170 else
3171 # Double quotes because CPP needs to be expanded
3172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3174 ac_preproc_ok=false
3175 for ac_c_preproc_warn_flag in '' yes
3177 # Use a header file that comes with gcc, so configuring glibc
3178 # with a fresh cross-compiler works.
3179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3180 # <limits.h> exists even on freestanding compilers.
3181 # On the NeXT, cc -E runs the code through the compiler's parser,
3182 # not just through cpp. "Syntax error" is here to catch this case.
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #ifdef __STDC__
3190 # include <limits.h>
3191 #else
3192 # include <assert.h>
3193 #endif
3194 Syntax error
3195 _ACEOF
3196 if { (ac_try="$ac_cpp conftest.$ac_ext"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null && {
3210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3211 test ! -s conftest.err
3212 }; then
3214 else
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Broken: fails on valid input.
3219 continue
3222 rm -f conftest.err conftest.$ac_ext
3224 # OK, works on sane cases. Now check whether nonexistent headers
3225 # can be detected and how.
3226 cat >conftest.$ac_ext <<_ACEOF
3227 /* confdefs.h. */
3228 _ACEOF
3229 cat confdefs.h >>conftest.$ac_ext
3230 cat >>conftest.$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3232 #include <ac_nonexistent.h>
3233 _ACEOF
3234 if { (ac_try="$ac_cpp conftest.$ac_ext"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3240 $as_echo "$ac_try_echo") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null && {
3248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 }; then
3251 # Broken: success on invalid input.
3252 continue
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 # Passes both tests.
3258 ac_preproc_ok=:
3259 break
3262 rm -f conftest.err conftest.$ac_ext
3264 done
3265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266 rm -f conftest.err conftest.$ac_ext
3267 if $ac_preproc_ok; then
3268 break
3271 done
3272 ac_cv_prog_CPP=$CPP
3275 CPP=$ac_cv_prog_CPP
3276 else
3277 ac_cv_prog_CPP=$CPP
3279 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3280 $as_echo "$CPP" >&6; }
3281 ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3284 # Use a header file that comes with gcc, so configuring glibc
3285 # with a fresh cross-compiler works.
3286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287 # <limits.h> exists even on freestanding compilers.
3288 # On the NeXT, cc -E runs the code through the compiler's parser,
3289 # not just through cpp. "Syntax error" is here to catch this case.
3290 cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h. */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301 Syntax error
3302 _ACEOF
3303 if { (ac_try="$ac_cpp conftest.$ac_ext"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } >/dev/null && {
3317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 }; then
3321 else
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Broken: fails on valid input.
3326 continue
3329 rm -f conftest.err conftest.$ac_ext
3331 # OK, works on sane cases. Now check whether nonexistent headers
3332 # can be detected and how.
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (ac_try="$ac_cpp conftest.$ac_ext"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3347 $as_echo "$ac_try_echo") >&5
3348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } >/dev/null && {
3355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3356 test ! -s conftest.err
3357 }; then
3358 # Broken: success on invalid input.
3359 continue
3360 else
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 # Passes both tests.
3365 ac_preproc_ok=:
3366 break
3369 rm -f conftest.err conftest.$ac_ext
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3376 else
3377 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3380 See \`config.log' for more details." >&5
3381 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }; }
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3394 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3395 if test "${ac_cv_path_GREP+set}" = set; then
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -z "$GREP"; then
3399 ac_path_GREP_found=false
3400 # Loop through the user's path and test for each of PROGNAME-LIST
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_prog in grep ggrep; do
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3409 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3410 # Check for GNU ac_path_GREP and select it if it is found.
3411 # Check for GNU $ac_path_GREP
3412 case `"$ac_path_GREP" --version 2>&1` in
3413 *GNU*)
3414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3416 ac_count=0
3417 $as_echo_n 0123456789 >"conftest.in"
3418 while :
3420 cat "conftest.in" "conftest.in" >"conftest.tmp"
3421 mv "conftest.tmp" "conftest.in"
3422 cp "conftest.in" "conftest.nl"
3423 $as_echo 'GREP' >> "conftest.nl"
3424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3426 ac_count=`expr $ac_count + 1`
3427 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3428 # Best one so far, save it but keep looking for a better one
3429 ac_cv_path_GREP="$ac_path_GREP"
3430 ac_path_GREP_max=$ac_count
3432 # 10*(2^10) chars as input seems more than enough
3433 test $ac_count -gt 10 && break
3434 done
3435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3436 esac
3438 $ac_path_GREP_found && break 3
3439 done
3440 done
3441 done
3442 IFS=$as_save_IFS
3443 if test -z "$ac_cv_path_GREP"; then
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3445 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3446 { (exit 1); exit 1; }; }
3448 else
3449 ac_cv_path_GREP=$GREP
3453 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3454 $as_echo "$ac_cv_path_GREP" >&6; }
3455 GREP="$ac_cv_path_GREP"
3458 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3459 $as_echo_n "checking for egrep... " >&6; }
3460 if test "${ac_cv_path_EGREP+set}" = set; then
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3464 then ac_cv_path_EGREP="$GREP -E"
3465 else
3466 if test -z "$EGREP"; then
3467 ac_path_EGREP_found=false
3468 # Loop through the user's path and test for each of PROGNAME-LIST
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_prog in egrep; do
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3478 # Check for GNU ac_path_EGREP and select it if it is found.
3479 # Check for GNU $ac_path_EGREP
3480 case `"$ac_path_EGREP" --version 2>&1` in
3481 *GNU*)
3482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3484 ac_count=0
3485 $as_echo_n 0123456789 >"conftest.in"
3486 while :
3488 cat "conftest.in" "conftest.in" >"conftest.tmp"
3489 mv "conftest.tmp" "conftest.in"
3490 cp "conftest.in" "conftest.nl"
3491 $as_echo 'EGREP' >> "conftest.nl"
3492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3494 ac_count=`expr $ac_count + 1`
3495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3496 # Best one so far, save it but keep looking for a better one
3497 ac_cv_path_EGREP="$ac_path_EGREP"
3498 ac_path_EGREP_max=$ac_count
3500 # 10*(2^10) chars as input seems more than enough
3501 test $ac_count -gt 10 && break
3502 done
3503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3504 esac
3506 $ac_path_EGREP_found && break 3
3507 done
3508 done
3509 done
3510 IFS=$as_save_IFS
3511 if test -z "$ac_cv_path_EGREP"; then
3512 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3513 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3514 { (exit 1); exit 1; }; }
3516 else
3517 ac_cv_path_EGREP=$EGREP
3522 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3523 $as_echo "$ac_cv_path_EGREP" >&6; }
3524 EGREP="$ac_cv_path_EGREP"
3527 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3528 $as_echo_n "checking for ANSI C header files... " >&6; }
3529 if test "${ac_cv_header_stdc+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3531 else
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <stdlib.h>
3539 #include <stdarg.h>
3540 #include <string.h>
3541 #include <float.h>
3544 main ()
3548 return 0;
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (ac_try="$ac_compile"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>conftest.er1
3560 ac_status=$?
3561 grep -v '^ *+' conftest.er1 >conftest.err
3562 rm -f conftest.er1
3563 cat conftest.err >&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } && {
3566 test -z "$ac_c_werror_flag" ||
3567 test ! -s conftest.err
3568 } && test -s conftest.$ac_objext; then
3569 ac_cv_header_stdc=yes
3570 else
3571 $as_echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 ac_cv_header_stdc=no
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 if test $ac_cv_header_stdc = yes; then
3580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3581 cat >conftest.$ac_ext <<_ACEOF
3582 /* confdefs.h. */
3583 _ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <string.h>
3589 _ACEOF
3590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3591 $EGREP "memchr" >/dev/null 2>&1; then
3593 else
3594 ac_cv_header_stdc=no
3596 rm -f conftest*
3600 if test $ac_cv_header_stdc = yes; then
3601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3602 cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h. */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <stdlib.h>
3610 _ACEOF
3611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3612 $EGREP "free" >/dev/null 2>&1; then
3614 else
3615 ac_cv_header_stdc=no
3617 rm -f conftest*
3621 if test $ac_cv_header_stdc = yes; then
3622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3623 if test "$cross_compiling" = yes; then
3625 else
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ctype.h>
3633 #include <stdlib.h>
3634 #if ((' ' & 0x0FF) == 0x020)
3635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3637 #else
3638 # define ISLOWER(c) \
3639 (('a' <= (c) && (c) <= 'i') \
3640 || ('j' <= (c) && (c) <= 'r') \
3641 || ('s' <= (c) && (c) <= 'z'))
3642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3643 #endif
3645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3647 main ()
3649 int i;
3650 for (i = 0; i < 256; i++)
3651 if (XOR (islower (i), ISLOWER (i))
3652 || toupper (i) != TOUPPER (i))
3653 return 2;
3654 return 0;
3656 _ACEOF
3657 rm -f conftest$ac_exeext
3658 if { (ac_try="$ac_link"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3664 $as_echo "$ac_try_echo") >&5
3665 (eval "$ac_link") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3669 { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3674 $as_echo "$ac_try_echo") >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3680 else
3681 $as_echo "$as_me: program exited with status $ac_status" >&5
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ( exit $ac_status )
3686 ac_cv_header_stdc=no
3688 rm -rf conftest.dSYM
3689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3695 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3696 $as_echo "$ac_cv_header_stdc" >&6; }
3697 if test $ac_cv_header_stdc = yes; then
3699 cat >>confdefs.h <<\_ACEOF
3700 #define STDC_HEADERS 1
3701 _ACEOF
3705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3715 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3716 inttypes.h stdint.h unistd.h
3718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3720 $as_echo_n "checking for $ac_header... " >&6; }
3721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3722 $as_echo_n "(cached) " >&6
3723 else
3724 cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h. */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3730 $ac_includes_default
3732 #include <$ac_header>
3733 _ACEOF
3734 rm -f conftest.$ac_objext
3735 if { (ac_try="$ac_compile"
3736 case "(($ac_try" in
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3739 esac
3740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3741 $as_echo "$ac_try_echo") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3743 ac_status=$?
3744 grep -v '^ *+' conftest.er1 >conftest.err
3745 rm -f conftest.er1
3746 cat conftest.err >&5
3747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3752 eval "$as_ac_Header=yes"
3753 else
3754 $as_echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 eval "$as_ac_Header=no"
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_res=`eval 'as_val=${'$as_ac_Header'}
3763 $as_echo "$as_val"'`
3764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3765 $as_echo "$ac_res" >&6; }
3766 as_val=`eval 'as_val=${'$as_ac_Header'}
3767 $as_echo "$as_val"'`
3768 if test "x$as_val" = x""yes; then
3769 cat >>confdefs.h <<_ACEOF
3770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3771 _ACEOF
3775 done
3779 if test "${ac_cv_header_minix_config_h+set}" = set; then
3780 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3781 $as_echo_n "checking for minix/config.h... " >&6; }
3782 if test "${ac_cv_header_minix_config_h+set}" = set; then
3783 $as_echo_n "(cached) " >&6
3785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3786 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3787 else
3788 # Is the header compilable?
3789 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3790 $as_echo_n "checking minix/config.h usability... " >&6; }
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 $ac_includes_default
3798 #include <minix/config.h>
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3807 $as_echo "$ac_try_echo") >&5
3808 (eval "$ac_compile") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } && {
3815 test -z "$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3817 } && test -s conftest.$ac_objext; then
3818 ac_header_compiler=yes
3819 else
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 ac_header_compiler=no
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3828 $as_echo "$ac_header_compiler" >&6; }
3830 # Is the header present?
3831 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3832 $as_echo_n "checking minix/config.h presence... " >&6; }
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <minix/config.h>
3840 _ACEOF
3841 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3847 $as_echo "$ac_try_echo") >&5
3848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } >/dev/null && {
3855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 }; then
3858 ac_header_preproc=yes
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 ac_header_preproc=no
3866 rm -f conftest.err conftest.$ac_ext
3867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3868 $as_echo "$ac_header_preproc" >&6; }
3870 # So? What about this header?
3871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3872 yes:no: )
3873 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3874 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3875 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3876 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3877 ac_header_preproc=yes
3879 no:yes:* )
3880 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3881 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3882 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3883 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3884 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3885 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3886 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3887 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3888 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3889 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3890 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3891 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3894 esac
3895 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3896 $as_echo_n "checking for minix/config.h... " >&6; }
3897 if test "${ac_cv_header_minix_config_h+set}" = set; then
3898 $as_echo_n "(cached) " >&6
3899 else
3900 ac_cv_header_minix_config_h=$ac_header_preproc
3902 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3903 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3906 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3907 MINIX=yes
3908 else
3909 MINIX=
3913 if test "$MINIX" = yes; then
3915 cat >>confdefs.h <<\_ACEOF
3916 #define _POSIX_SOURCE 1
3917 _ACEOF
3920 cat >>confdefs.h <<\_ACEOF
3921 #define _POSIX_1_SOURCE 2
3922 _ACEOF
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _MINIX 1
3927 _ACEOF
3933 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3934 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3935 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3945 # define __EXTENSIONS__ 1
3946 $ac_includes_default
3948 main ()
3952 return 0;
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (ac_try="$ac_compile"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
3973 ac_cv_safe_to_define___extensions__=yes
3974 else
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3978 ac_cv_safe_to_define___extensions__=no
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3984 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3985 test $ac_cv_safe_to_define___extensions__ = yes &&
3986 cat >>confdefs.h <<\_ACEOF
3987 #define __EXTENSIONS__ 1
3988 _ACEOF
3990 cat >>confdefs.h <<\_ACEOF
3991 #define _ALL_SOURCE 1
3992 _ACEOF
3994 cat >>confdefs.h <<\_ACEOF
3995 #define _GNU_SOURCE 1
3996 _ACEOF
3998 cat >>confdefs.h <<\_ACEOF
3999 #define _POSIX_PTHREAD_SEMANTICS 1
4000 _ACEOF
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _TANDEM_SOURCE 1
4004 _ACEOF
4007 ac_aux_dir=
4008 for ac_dir in $srcdir/build-scripts; do
4009 if test -f "$ac_dir/install-sh"; then
4010 ac_aux_dir=$ac_dir
4011 ac_install_sh="$ac_aux_dir/install-sh -c"
4012 break
4013 elif test -f "$ac_dir/install.sh"; then
4014 ac_aux_dir=$ac_dir
4015 ac_install_sh="$ac_aux_dir/install.sh -c"
4016 break
4017 elif test -f "$ac_dir/shtool"; then
4018 ac_aux_dir=$ac_dir
4019 ac_install_sh="$ac_aux_dir/shtool install -c"
4020 break
4022 done
4023 if test -z "$ac_aux_dir"; then
4024 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
4025 $as_echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
4026 { (exit 1); exit 1; }; }
4029 # These three variables are undocumented and unsupported,
4030 # and are intended to be withdrawn in a future Autoconf release.
4031 # They can cause serious problems if a builder's source tree is in a directory
4032 # whose full name contains unusual characters.
4033 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4034 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4035 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4040 # Making releases:
4041 # Edit include/SDL/SDL_version.h and change the version, then:
4042 # SDL_MICRO_VERSION += 1;
4043 # SDL_INTERFACE_AGE += 1;
4044 # SDL_BINARY_AGE += 1;
4045 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
4046 # if backwards compatibility has been broken,
4047 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
4049 SDL_MAJOR_VERSION=1
4050 SDL_MINOR_VERSION=2
4051 SDL_MICRO_VERSION=14
4052 SDL_INTERFACE_AGE=3
4053 SDL_BINARY_AGE=14
4054 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
4063 # libtool versioning
4064 case `pwd` in
4065 *\ * | *\ *)
4066 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4067 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4068 esac
4072 macro_version='2.2.6'
4073 macro_revision='1.3012'
4087 ltmain="$ac_aux_dir/ltmain.sh"
4089 # Make sure we can run config.sub.
4090 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4091 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4092 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4093 { (exit 1); exit 1; }; }
4095 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4096 $as_echo_n "checking build system type... " >&6; }
4097 if test "${ac_cv_build+set}" = set; then
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_build_alias=$build_alias
4101 test "x$ac_build_alias" = x &&
4102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4103 test "x$ac_build_alias" = x &&
4104 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4105 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4106 { (exit 1); exit 1; }; }
4107 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4108 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4109 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4110 { (exit 1); exit 1; }; }
4113 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4114 $as_echo "$ac_cv_build" >&6; }
4115 case $ac_cv_build in
4116 *-*-*) ;;
4117 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4118 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4119 { (exit 1); exit 1; }; };;
4120 esac
4121 build=$ac_cv_build
4122 ac_save_IFS=$IFS; IFS='-'
4123 set x $ac_cv_build
4124 shift
4125 build_cpu=$1
4126 build_vendor=$2
4127 shift; shift
4128 # Remember, the first character of IFS is used to create $*,
4129 # except with old shells:
4130 build_os=$*
4131 IFS=$ac_save_IFS
4132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4135 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4136 $as_echo_n "checking host system type... " >&6; }
4137 if test "${ac_cv_host+set}" = set; then
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if test "x$host_alias" = x; then
4141 ac_cv_host=$ac_cv_build
4142 else
4143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4144 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4145 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4146 { (exit 1); exit 1; }; }
4150 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4151 $as_echo "$ac_cv_host" >&6; }
4152 case $ac_cv_host in
4153 *-*-*) ;;
4154 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4155 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4156 { (exit 1); exit 1; }; };;
4157 esac
4158 host=$ac_cv_host
4159 ac_save_IFS=$IFS; IFS='-'
4160 set x $ac_cv_host
4161 shift
4162 host_cpu=$1
4163 host_vendor=$2
4164 shift; shift
4165 # Remember, the first character of IFS is used to create $*,
4166 # except with old shells:
4167 host_os=$*
4168 IFS=$ac_save_IFS
4169 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4172 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4173 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4174 if test "${ac_cv_path_SED+set}" = set; then
4175 $as_echo_n "(cached) " >&6
4176 else
4177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4178 for ac_i in 1 2 3 4 5 6 7; do
4179 ac_script="$ac_script$as_nl$ac_script"
4180 done
4181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4182 $as_unset ac_script || ac_script=
4183 if test -z "$SED"; then
4184 ac_path_SED_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in sed gsed; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4195 # Check for GNU ac_path_SED and select it if it is found.
4196 # Check for GNU $ac_path_SED
4197 case `"$ac_path_SED" --version 2>&1` in
4198 *GNU*)
4199 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4201 ac_count=0
4202 $as_echo_n 0123456789 >"conftest.in"
4203 while :
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo '' >> "conftest.nl"
4209 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 ac_count=`expr $ac_count + 1`
4212 if test $ac_count -gt ${ac_path_SED_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_SED="$ac_path_SED"
4215 ac_path_SED_max=$ac_count
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4219 done
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4223 $ac_path_SED_found && break 3
4224 done
4225 done
4226 done
4227 IFS=$as_save_IFS
4228 if test -z "$ac_cv_path_SED"; then
4229 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4230 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4231 { (exit 1); exit 1; }; }
4233 else
4234 ac_cv_path_SED=$SED
4238 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4239 $as_echo "$ac_cv_path_SED" >&6; }
4240 SED="$ac_cv_path_SED"
4241 rm -f conftest.sed
4243 test -z "$SED" && SED=sed
4244 Xsed="$SED -e 1s/^X//"
4256 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4257 $as_echo_n "checking for fgrep... " >&6; }
4258 if test "${ac_cv_path_FGREP+set}" = set; then
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4262 then ac_cv_path_FGREP="$GREP -F"
4263 else
4264 if test -z "$FGREP"; then
4265 ac_path_FGREP_found=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in fgrep; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4275 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4276 # Check for GNU ac_path_FGREP and select it if it is found.
4277 # Check for GNU $ac_path_FGREP
4278 case `"$ac_path_FGREP" --version 2>&1` in
4279 *GNU*)
4280 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4282 ac_count=0
4283 $as_echo_n 0123456789 >"conftest.in"
4284 while :
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo 'FGREP' >> "conftest.nl"
4290 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292 ac_count=`expr $ac_count + 1`
4293 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_FGREP="$ac_path_FGREP"
4296 ac_path_FGREP_max=$ac_count
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4300 done
4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4302 esac
4304 $ac_path_FGREP_found && break 3
4305 done
4306 done
4307 done
4308 IFS=$as_save_IFS
4309 if test -z "$ac_cv_path_FGREP"; then
4310 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4311 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4312 { (exit 1); exit 1; }; }
4314 else
4315 ac_cv_path_FGREP=$FGREP
4320 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4321 $as_echo "$ac_cv_path_FGREP" >&6; }
4322 FGREP="$ac_cv_path_FGREP"
4325 test -z "$GREP" && GREP=grep
4345 # Check whether --with-gnu-ld was given.
4346 if test "${with_gnu_ld+set}" = set; then
4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4348 else
4349 with_gnu_ld=no
4352 ac_prog=ld
4353 if test "$GCC" = yes; then
4354 # Check if gcc -print-prog-name=ld gives a path.
4355 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4356 $as_echo_n "checking for ld used by $CC... " >&6; }
4357 case $host in
4358 *-*-mingw*)
4359 # gcc leaves a trailing carriage return which upsets mingw
4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4363 esac
4364 case $ac_prog in
4365 # Accept absolute paths.
4366 [\\/]* | ?:[\\/]*)
4367 re_direlt='/[^/][^/]*/\.\./'
4368 # Canonicalize the pathname of ld
4369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4372 done
4373 test -z "$LD" && LD="$ac_prog"
4376 # If it fails, then pretend we aren't using GCC.
4377 ac_prog=ld
4380 # If it is relative, then search for the first ld in PATH.
4381 with_gnu_ld=unknown
4383 esac
4384 elif test "$with_gnu_ld" = yes; then
4385 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4386 $as_echo_n "checking for GNU ld... " >&6; }
4387 else
4388 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4389 $as_echo_n "checking for non-GNU ld... " >&6; }
4391 if test "${lt_cv_path_LD+set}" = set; then
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -z "$LD"; then
4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4396 for ac_dir in $PATH; do
4397 IFS="$lt_save_ifs"
4398 test -z "$ac_dir" && ac_dir=.
4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4400 lt_cv_path_LD="$ac_dir/$ac_prog"
4401 # Check to see if the program is GNU ld. I'd rather use --version,
4402 # but apparently some variants of GNU ld only accept -v.
4403 # Break only if it was the GNU/non-GNU ld that we prefer.
4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4405 *GNU* | *'with BFD'*)
4406 test "$with_gnu_ld" != no && break
4409 test "$with_gnu_ld" != yes && break
4411 esac
4413 done
4414 IFS="$lt_save_ifs"
4415 else
4416 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4420 LD="$lt_cv_path_LD"
4421 if test -n "$LD"; then
4422 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4423 $as_echo "$LD" >&6; }
4424 else
4425 { $as_echo "$as_me:$LINENO: result: no" >&5
4426 $as_echo "no" >&6; }
4428 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4429 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4430 { (exit 1); exit 1; }; }
4431 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4433 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4435 else
4436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4437 case `$LD -v 2>&1 </dev/null` in
4438 *GNU* | *'with BFD'*)
4439 lt_cv_prog_gnu_ld=yes
4442 lt_cv_prog_gnu_ld=no
4444 esac
4446 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4448 with_gnu_ld=$lt_cv_prog_gnu_ld
4458 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4459 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4460 if test "${lt_cv_path_NM+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$NM"; then
4464 # Let the user override the test.
4465 lt_cv_path_NM="$NM"
4466 else
4467 lt_nm_to_check="${ac_tool_prefix}nm"
4468 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4469 lt_nm_to_check="$lt_nm_to_check nm"
4471 for lt_tmp_nm in $lt_nm_to_check; do
4472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4473 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4474 IFS="$lt_save_ifs"
4475 test -z "$ac_dir" && ac_dir=.
4476 tmp_nm="$ac_dir/$lt_tmp_nm"
4477 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4478 # Check to see if the nm accepts a BSD-compat flag.
4479 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4480 # nm: unknown option "B" ignored
4481 # Tru64's nm complains that /dev/null is an invalid object file
4482 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4483 */dev/null* | *'Invalid file or object type'*)
4484 lt_cv_path_NM="$tmp_nm -B"
4485 break
4488 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4489 */dev/null*)
4490 lt_cv_path_NM="$tmp_nm -p"
4491 break
4494 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4495 continue # so that we can try to find one that supports BSD flags
4497 esac
4499 esac
4501 done
4502 IFS="$lt_save_ifs"
4503 done
4504 : ${lt_cv_path_NM=no}
4507 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4508 $as_echo "$lt_cv_path_NM" >&6; }
4509 if test "$lt_cv_path_NM" != "no"; then
4510 NM="$lt_cv_path_NM"
4511 else
4512 # Didn't find any BSD compatible name lister, look for dumpbin.
4513 if test -n "$ac_tool_prefix"; then
4514 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 $as_echo_n "checking for $ac_word... " >&6; }
4520 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -n "$DUMPBIN"; then
4524 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 DUMPBIN=$ac_cv_prog_DUMPBIN
4544 if test -n "$DUMPBIN"; then
4545 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4546 $as_echo "$DUMPBIN" >&6; }
4547 else
4548 { $as_echo "$as_me:$LINENO: result: no" >&5
4549 $as_echo "no" >&6; }
4553 test -n "$DUMPBIN" && break
4554 done
4556 if test -z "$DUMPBIN"; then
4557 ac_ct_DUMPBIN=$DUMPBIN
4558 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4560 # Extract the first word of "$ac_prog", so it can be a program name with args.
4561 set dummy $ac_prog; ac_word=$2
4562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$ac_ct_DUMPBIN"; then
4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4588 if test -n "$ac_ct_DUMPBIN"; then
4589 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4590 $as_echo "$ac_ct_DUMPBIN" >&6; }
4591 else
4592 { $as_echo "$as_me:$LINENO: result: no" >&5
4593 $as_echo "no" >&6; }
4597 test -n "$ac_ct_DUMPBIN" && break
4598 done
4600 if test "x$ac_ct_DUMPBIN" = x; then
4601 DUMPBIN=":"
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604 yes:)
4605 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607 ac_tool_warned=yes ;;
4608 esac
4609 DUMPBIN=$ac_ct_DUMPBIN
4614 if test "$DUMPBIN" != ":"; then
4615 NM="$DUMPBIN"
4618 test -z "$NM" && NM=nm
4625 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4627 if test "${lt_cv_nm_interface+set}" = set; then
4628 $as_echo_n "(cached) " >&6
4629 else
4630 lt_cv_nm_interface="BSD nm"
4631 echo "int some_variable = 0;" > conftest.$ac_ext
4632 (eval echo "\"\$as_me:4632: $ac_compile\"" >&5)
4633 (eval "$ac_compile" 2>conftest.err)
4634 cat conftest.err >&5
4635 (eval echo "\"\$as_me:4635: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4637 cat conftest.err >&5
4638 (eval echo "\"\$as_me:4638: output\"" >&5)
4639 cat conftest.out >&5
4640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4641 lt_cv_nm_interface="MS dumpbin"
4643 rm -f conftest*
4645 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4646 $as_echo "$lt_cv_nm_interface" >&6; }
4648 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4649 $as_echo_n "checking whether ln -s works... " >&6; }
4650 LN_S=$as_ln_s
4651 if test "$LN_S" = "ln -s"; then
4652 { $as_echo "$as_me:$LINENO: result: yes" >&5
4653 $as_echo "yes" >&6; }
4654 else
4655 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4656 $as_echo "no, using $LN_S" >&6; }
4659 # find the maximum length of command line arguments
4660 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4661 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4662 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4663 $as_echo_n "(cached) " >&6
4664 else
4666 teststring="ABCD"
4668 case $build_os in
4669 msdosdjgpp*)
4670 # On DJGPP, this test can blow up pretty badly due to problems in libc
4671 # (any single argument exceeding 2000 bytes causes a buffer overrun
4672 # during glob expansion). Even if it were fixed, the result of this
4673 # check would be larger than it should be.
4674 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4677 gnu*)
4678 # Under GNU Hurd, this test is not required because there is
4679 # no limit to the length of command line arguments.
4680 # Libtool will interpret -1 as no limit whatsoever
4681 lt_cv_sys_max_cmd_len=-1;
4684 cygwin* | mingw* | cegcc*)
4685 # On Win9x/ME, this test blows up -- it succeeds, but takes
4686 # about 5 minutes as the teststring grows exponentially.
4687 # Worse, since 9x/ME are not pre-emptively multitasking,
4688 # you end up with a "frozen" computer, even though with patience
4689 # the test eventually succeeds (with a max line length of 256k).
4690 # Instead, let's just punt: use the minimum linelength reported by
4691 # all of the supported platforms: 8192 (on NT/2K/XP).
4692 lt_cv_sys_max_cmd_len=8192;
4695 beos*)
4696 # On BeOS, this test takes a really really long time.
4697 # So we just punt and use a minimum line length of 8192.
4698 lt_cv_sys_max_cmd_len=8192;
4701 amigaos*)
4702 # On AmigaOS with pdksh, this test takes hours, literally.
4703 # So we just punt and use a minimum line length of 8192.
4704 lt_cv_sys_max_cmd_len=8192;
4707 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4708 # This has been around since 386BSD, at least. Likely further.
4709 if test -x /sbin/sysctl; then
4710 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4711 elif test -x /usr/sbin/sysctl; then
4712 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4713 else
4714 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4716 # And add a safety zone
4717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4721 interix*)
4722 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4723 lt_cv_sys_max_cmd_len=196608
4726 osf*)
4727 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4728 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4729 # nice to cause kernel panics so lets avoid the loop below.
4730 # First set a reasonable default.
4731 lt_cv_sys_max_cmd_len=16384
4733 if test -x /sbin/sysconfig; then
4734 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4735 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4736 esac
4739 sco3.2v5*)
4740 lt_cv_sys_max_cmd_len=102400
4742 sysv5* | sco5v6* | sysv4.2uw2*)
4743 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4744 if test -n "$kargmax"; then
4745 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4746 else
4747 lt_cv_sys_max_cmd_len=32768
4751 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4752 if test -n "$lt_cv_sys_max_cmd_len"; then
4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4755 else
4756 # Make teststring a little bigger before we do anything with it.
4757 # a 1K string should be a reasonable start.
4758 for i in 1 2 3 4 5 6 7 8 ; do
4759 teststring=$teststring$teststring
4760 done
4761 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4762 # If test is not a shell built-in, we'll probably end up computing a
4763 # maximum length that is only half of the actual maximum length, but
4764 # we can't tell.
4765 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4766 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4767 test $i != 17 # 1/2 MB should be enough
4769 i=`expr $i + 1`
4770 teststring=$teststring$teststring
4771 done
4772 # Only check the string length outside the loop.
4773 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4774 teststring=
4775 # Add a significant safety factor because C++ compilers can tack on
4776 # massive amounts of additional arguments before passing them to the
4777 # linker. It appears as though 1/2 is a usable value.
4778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4781 esac
4785 if test -n $lt_cv_sys_max_cmd_len ; then
4786 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4787 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4788 else
4789 { $as_echo "$as_me:$LINENO: result: none" >&5
4790 $as_echo "none" >&6; }
4792 max_cmd_len=$lt_cv_sys_max_cmd_len
4799 : ${CP="cp -f"}
4800 : ${MV="mv -f"}
4801 : ${RM="rm -f"}
4803 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4804 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4805 # Try some XSI features
4806 xsi_shell=no
4807 ( _lt_dummy="a/b/c"
4808 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4809 = c,a/b,, \
4810 && eval 'test $(( 1 + 1 )) -eq 2 \
4811 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4812 && xsi_shell=yes
4813 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4814 $as_echo "$xsi_shell" >&6; }
4817 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4818 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4819 lt_shell_append=no
4820 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4821 >/dev/null 2>&1 \
4822 && lt_shell_append=yes
4823 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4824 $as_echo "$lt_shell_append" >&6; }
4827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4828 lt_unset=unset
4829 else
4830 lt_unset=false
4837 # test EBCDIC or ASCII
4838 case `echo X|tr X '\101'` in
4839 A) # ASCII based system
4840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4841 lt_SP2NL='tr \040 \012'
4842 lt_NL2SP='tr \015\012 \040\040'
4844 *) # EBCDIC based system
4845 lt_SP2NL='tr \100 \n'
4846 lt_NL2SP='tr \r\n \100\100'
4848 esac
4858 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4859 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4860 if test "${lt_cv_ld_reload_flag+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862 else
4863 lt_cv_ld_reload_flag='-r'
4865 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4866 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4867 reload_flag=$lt_cv_ld_reload_flag
4868 case $reload_flag in
4869 "" | " "*) ;;
4870 *) reload_flag=" $reload_flag" ;;
4871 esac
4872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4873 case $host_os in
4874 darwin*)
4875 if test "$GCC" = yes; then
4876 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4877 else
4878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4881 esac
4891 if test -n "$ac_tool_prefix"; then
4892 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$OBJDUMP"; then
4900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 OBJDUMP=$ac_cv_prog_OBJDUMP
4920 if test -n "$OBJDUMP"; then
4921 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4922 $as_echo "$OBJDUMP" >&6; }
4923 else
4924 { $as_echo "$as_me:$LINENO: result: no" >&5
4925 $as_echo "no" >&6; }
4930 if test -z "$ac_cv_prog_OBJDUMP"; then
4931 ac_ct_OBJDUMP=$OBJDUMP
4932 # Extract the first word of "objdump", so it can be a program name with args.
4933 set dummy objdump; ac_word=$2
4934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$ac_ct_OBJDUMP"; then
4940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4960 if test -n "$ac_ct_OBJDUMP"; then
4961 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4962 $as_echo "$ac_ct_OBJDUMP" >&6; }
4963 else
4964 { $as_echo "$as_me:$LINENO: result: no" >&5
4965 $as_echo "no" >&6; }
4968 if test "x$ac_ct_OBJDUMP" = x; then
4969 OBJDUMP="false"
4970 else
4971 case $cross_compiling:$ac_tool_warned in
4972 yes:)
4973 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 OBJDUMP=$ac_ct_OBJDUMP
4979 else
4980 OBJDUMP="$ac_cv_prog_OBJDUMP"
4983 test -z "$OBJDUMP" && OBJDUMP=objdump
4990 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4991 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4992 if test "${lt_cv_deplibs_check_method+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4994 else
4995 lt_cv_file_magic_cmd='$MAGIC_CMD'
4996 lt_cv_file_magic_test_file=
4997 lt_cv_deplibs_check_method='unknown'
4998 # Need to set the preceding variable on all platforms that support
4999 # interlibrary dependencies.
5000 # 'none' -- dependencies not supported.
5001 # `unknown' -- same as none, but documents that we really don't know.
5002 # 'pass_all' -- all dependencies passed with no checks.
5003 # 'test_compile' -- check by making test program.
5004 # 'file_magic [[regex]]' -- check by looking for files in library path
5005 # which responds to the $file_magic_cmd with a given extended regex.
5006 # If you have `file' or equivalent on your system and you're not sure
5007 # whether `pass_all' will *always* work, you probably want this one.
5009 case $host_os in
5010 aix[4-9]*)
5011 lt_cv_deplibs_check_method=pass_all
5014 beos*)
5015 lt_cv_deplibs_check_method=pass_all
5018 bsdi[45]*)
5019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5020 lt_cv_file_magic_cmd='/usr/bin/file -L'
5021 lt_cv_file_magic_test_file=/shlib/libc.so
5024 cygwin*)
5025 # func_win32_libid is a shell function defined in ltmain.sh
5026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5027 lt_cv_deplibs_check_method=pass_all
5028 lt_cv_file_magic_cmd='func_win32_libid'
5031 mingw* | pw32*)
5032 # Base MSYS/MinGW do not provide the 'file' command needed by
5033 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5034 # unless we find 'file', for example because we are cross-compiling.
5035 if ( file / ) >/dev/null 2>&1; then
5036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5037 lt_cv_file_magic_cmd='func_win32_libid'
5038 else
5039 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5040 lt_cv_file_magic_cmd='$OBJDUMP -f'
5042 lt_cv_deplibs_check_method=pass_all
5045 cegcc)
5046 # use the weaker test based on 'objdump'. See mingw*.
5047 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5048 lt_cv_file_magic_cmd='$OBJDUMP -f'
5051 darwin* | rhapsody*)
5052 lt_cv_deplibs_check_method=pass_all
5055 freebsd* | dragonfly*)
5056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5057 case $host_cpu in
5058 i*86 )
5059 # Not sure whether the presence of OpenBSD here was a mistake.
5060 # Let's accept both of them until this is cleared up.
5061 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5065 esac
5066 else
5067 lt_cv_deplibs_check_method=pass_all
5071 gnu*)
5072 lt_cv_deplibs_check_method=pass_all
5075 hpux10.20* | hpux11*)
5076 lt_cv_file_magic_cmd=/usr/bin/file
5077 case $host_cpu in
5078 ia64*)
5079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5082 hppa*64*)
5083 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]'
5084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5090 esac
5093 interix[3-9]*)
5094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5098 irix5* | irix6* | nonstopux*)
5099 case $LD in
5100 *-32|*"-32 ") libmagic=32-bit;;
5101 *-n32|*"-n32 ") libmagic=N32;;
5102 *-64|*"-64 ") libmagic=64-bit;;
5103 *) libmagic=never-match;;
5104 esac
5105 lt_cv_deplibs_check_method=pass_all
5108 # This must be Linux ELF.
5109 linux* | k*bsd*-gnu)
5110 lt_cv_deplibs_check_method=pass_all
5113 netbsd*)
5114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5116 else
5117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5121 newos6*)
5122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5123 lt_cv_file_magic_cmd=/usr/bin/file
5124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5127 *nto* | *qnx*)
5128 lt_cv_deplibs_check_method=pass_all
5131 openbsd*)
5132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5134 else
5135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5139 osf3* | osf4* | osf5*)
5140 lt_cv_deplibs_check_method=pass_all
5143 rdos*)
5144 lt_cv_deplibs_check_method=pass_all
5147 solaris*)
5148 lt_cv_deplibs_check_method=pass_all
5151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5152 lt_cv_deplibs_check_method=pass_all
5155 sysv4 | sysv4.3*)
5156 case $host_vendor in
5157 motorola)
5158 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]'
5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5161 ncr)
5162 lt_cv_deplibs_check_method=pass_all
5164 sequent)
5165 lt_cv_file_magic_cmd='/bin/file'
5166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5168 sni)
5169 lt_cv_file_magic_cmd='/bin/file'
5170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5171 lt_cv_file_magic_test_file=/lib/libc.so
5173 siemens)
5174 lt_cv_deplibs_check_method=pass_all
5177 lt_cv_deplibs_check_method=pass_all
5179 esac
5182 tpf*)
5183 lt_cv_deplibs_check_method=pass_all
5185 esac
5188 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5189 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5190 file_magic_cmd=$lt_cv_file_magic_cmd
5191 deplibs_check_method=$lt_cv_deplibs_check_method
5192 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}ar; ac_word=$2
5208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_AR+set}" = set; then
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$AR"; then
5214 ac_cv_prog_AR="$AR" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_AR="${ac_tool_prefix}ar"
5224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 AR=$ac_cv_prog_AR
5234 if test -n "$AR"; then
5235 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5236 $as_echo "$AR" >&6; }
5237 else
5238 { $as_echo "$as_me:$LINENO: result: no" >&5
5239 $as_echo "no" >&6; }
5244 if test -z "$ac_cv_prog_AR"; then
5245 ac_ct_AR=$AR
5246 # Extract the first word of "ar", so it can be a program name with args.
5247 set dummy ar; ac_word=$2
5248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_AR"; then
5254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_AR="ar"
5264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5274 if test -n "$ac_ct_AR"; then
5275 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5276 $as_echo "$ac_ct_AR" >&6; }
5277 else
5278 { $as_echo "$as_me:$LINENO: result: no" >&5
5279 $as_echo "no" >&6; }
5282 if test "x$ac_ct_AR" = x; then
5283 AR="false"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 AR=$ac_ct_AR
5293 else
5294 AR="$ac_cv_prog_AR"
5297 test -z "$AR" && AR=ar
5298 test -z "$AR_FLAGS" && AR_FLAGS=cru
5310 if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5312 set dummy ${ac_tool_prefix}strip; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_STRIP+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$STRIP"; then
5319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 STRIP=$ac_cv_prog_STRIP
5339 if test -n "$STRIP"; then
5340 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5341 $as_echo "$STRIP" >&6; }
5342 else
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5349 if test -z "$ac_cv_prog_STRIP"; then
5350 ac_ct_STRIP=$STRIP
5351 # Extract the first word of "strip", so it can be a program name with args.
5352 set dummy strip; ac_word=$2
5353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$ac_ct_STRIP"; then
5359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_STRIP="strip"
5369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5379 if test -n "$ac_ct_STRIP"; then
5380 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5381 $as_echo "$ac_ct_STRIP" >&6; }
5382 else
5383 { $as_echo "$as_me:$LINENO: result: no" >&5
5384 $as_echo "no" >&6; }
5387 if test "x$ac_ct_STRIP" = x; then
5388 STRIP=":"
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396 STRIP=$ac_ct_STRIP
5398 else
5399 STRIP="$ac_cv_prog_STRIP"
5402 test -z "$STRIP" && STRIP=:
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5411 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if test "${ac_cv_prog_RANLIB+set}" = set; then
5415 $as_echo_n "(cached) " >&6
5416 else
5417 if test -n "$RANLIB"; then
5418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5437 RANLIB=$ac_cv_prog_RANLIB
5438 if test -n "$RANLIB"; then
5439 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5440 $as_echo "$RANLIB" >&6; }
5441 else
5442 { $as_echo "$as_me:$LINENO: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$ac_cv_prog_RANLIB"; then
5449 ac_ct_RANLIB=$RANLIB
5450 # Extract the first word of "ranlib", so it can be a program name with args.
5451 set dummy ranlib; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$ac_ct_RANLIB"; then
5458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_ac_ct_RANLIB="ranlib"
5468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5478 if test -n "$ac_ct_RANLIB"; then
5479 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5480 $as_echo "$ac_ct_RANLIB" >&6; }
5481 else
5482 { $as_echo "$as_me:$LINENO: result: no" >&5
5483 $as_echo "no" >&6; }
5486 if test "x$ac_ct_RANLIB" = x; then
5487 RANLIB=":"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490 yes:)
5491 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5494 esac
5495 RANLIB=$ac_ct_RANLIB
5497 else
5498 RANLIB="$ac_cv_prog_RANLIB"
5501 test -z "$RANLIB" && RANLIB=:
5508 # Determine commands to create old-style static archives.
5509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5510 old_postinstall_cmds='chmod 644 $oldlib'
5511 old_postuninstall_cmds=
5513 if test -n "$RANLIB"; then
5514 case $host_os in
5515 openbsd*)
5516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5521 esac
5522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5558 # If no C compiler was specified, use CC.
5559 LTCC=${LTCC-"$CC"}
5561 # If no C compiler flags were specified, use CFLAGS.
5562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5564 # Allow CC to be a program name with arguments.
5565 compiler=$CC
5568 # Check for command to grab the raw symbol name followed by C symbol from nm.
5569 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5570 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5571 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5572 $as_echo_n "(cached) " >&6
5573 else
5575 # These are sane defaults that work on at least a few old systems.
5576 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5578 # Character class describing NM global symbol codes.
5579 symcode='[BCDEGRST]'
5581 # Regexp to match symbols that can be accessed directly from C.
5582 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5584 # Define system-specific variables.
5585 case $host_os in
5586 aix*)
5587 symcode='[BCDT]'
5589 cygwin* | mingw* | pw32* | cegcc*)
5590 symcode='[ABCDGISTW]'
5592 hpux*)
5593 if test "$host_cpu" = ia64; then
5594 symcode='[ABCDEGRST]'
5597 irix* | nonstopux*)
5598 symcode='[BCDEGRST]'
5600 osf*)
5601 symcode='[BCDEGQRST]'
5603 solaris*)
5604 symcode='[BDRT]'
5606 sco3.2v5*)
5607 symcode='[DT]'
5609 sysv4.2uw2*)
5610 symcode='[DT]'
5612 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5613 symcode='[ABDT]'
5615 sysv4)
5616 symcode='[DFNSTU]'
5618 esac
5620 # If we're using GNU nm, then use its standard symbol codes.
5621 case `$NM -V 2>&1` in
5622 *GNU* | *'with BFD'*)
5623 symcode='[ABCDGIRSTW]' ;;
5624 esac
5626 # Transform an extracted symbol line into a proper C declaration.
5627 # Some systems (esp. on ia64) link data and code symbols differently,
5628 # so use this general approach.
5629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5631 # Transform an extracted symbol line into symbol name and symbol address
5632 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5633 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'"
5635 # Handle CRLF in mingw tool chain
5636 opt_cr=
5637 case $build_os in
5638 mingw*)
5639 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5641 esac
5643 # Try without a prefix underscore, then with it.
5644 for ac_symprfx in "" "_"; do
5646 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5647 symxfrm="\\1 $ac_symprfx\\2 \\2"
5649 # Write the raw and C identifiers.
5650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5651 # Fake it for dumpbin and say T for any non-static function
5652 # and D for any global variable.
5653 # Also find C++ and __fastcall symbols from MSVC++,
5654 # which start with @ or ?.
5655 lt_cv_sys_global_symbol_pipe="$AWK '"\
5656 " {last_section=section; section=\$ 3};"\
5657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5658 " \$ 0!~/External *\|/{next};"\
5659 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5660 " {if(hide[section]) next};"\
5661 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5662 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5663 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5664 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5665 " ' prfx=^$ac_symprfx"
5666 else
5667 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5670 # Check to see that the pipe works correctly.
5671 pipe_works=no
5673 rm -f conftest*
5674 cat > conftest.$ac_ext <<_LT_EOF
5675 #ifdef __cplusplus
5676 extern "C" {
5677 #endif
5678 char nm_test_var;
5679 void nm_test_func(void);
5680 void nm_test_func(void){}
5681 #ifdef __cplusplus
5683 #endif
5684 int main(){nm_test_var='a';nm_test_func();return(0);}
5685 _LT_EOF
5687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5688 (eval $ac_compile) 2>&5
5689 ac_status=$?
5690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; then
5692 # Now try to grab the symbols.
5693 nlist=conftest.nm
5694 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5695 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && test -s "$nlist"; then
5699 # Try sorting and uniquifying the output.
5700 if sort "$nlist" | uniq > "$nlist"T; then
5701 mv -f "$nlist"T "$nlist"
5702 else
5703 rm -f "$nlist"T
5706 # Make sure that we snagged all the symbols we need.
5707 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5708 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5709 cat <<_LT_EOF > conftest.$ac_ext
5710 #ifdef __cplusplus
5711 extern "C" {
5712 #endif
5714 _LT_EOF
5715 # Now generate the symbol file.
5716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5718 cat <<_LT_EOF >> conftest.$ac_ext
5720 /* The mapping between symbol names and symbols. */
5721 const struct {
5722 const char *name;
5723 void *address;
5725 lt__PROGRAM__LTX_preloaded_symbols[] =
5727 { "@PROGRAM@", (void *) 0 },
5728 _LT_EOF
5729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730 cat <<\_LT_EOF >> conftest.$ac_ext
5731 {0, (void *) 0}
5734 /* This works around a problem in FreeBSD linker */
5735 #ifdef FREEBSD_WORKAROUND
5736 static const void *lt_preloaded_setup() {
5737 return lt__PROGRAM__LTX_preloaded_symbols;
5739 #endif
5741 #ifdef __cplusplus
5743 #endif
5744 _LT_EOF
5745 # Now try linking the two files.
5746 mv conftest.$ac_objext conftstm.$ac_objext
5747 lt_save_LIBS="$LIBS"
5748 lt_save_CFLAGS="$CFLAGS"
5749 LIBS="conftstm.$ac_objext"
5750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752 (eval $ac_link) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5756 pipe_works=yes
5758 LIBS="$lt_save_LIBS"
5759 CFLAGS="$lt_save_CFLAGS"
5760 else
5761 echo "cannot find nm_test_func in $nlist" >&5
5763 else
5764 echo "cannot find nm_test_var in $nlist" >&5
5766 else
5767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5769 else
5770 echo "$progname: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5773 rm -rf conftest* conftst*
5775 # Do not use the global_symbol_pipe unless it works.
5776 if test "$pipe_works" = yes; then
5777 break
5778 else
5779 lt_cv_sys_global_symbol_pipe=
5781 done
5785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786 lt_cv_sys_global_symbol_to_cdecl=
5788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5789 { $as_echo "$as_me:$LINENO: result: failed" >&5
5790 $as_echo "failed" >&6; }
5791 else
5792 { $as_echo "$as_me:$LINENO: result: ok" >&5
5793 $as_echo "ok" >&6; }
5817 # Check whether --enable-libtool-lock was given.
5818 if test "${enable_libtool_lock+set}" = set; then
5819 enableval=$enable_libtool_lock;
5822 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5824 # Some flags need to be propagated to the compiler or linker for good
5825 # libtool support.
5826 case $host in
5827 ia64-*-hpux*)
5828 # Find out which ABI we are using.
5829 echo 'int i;' > conftest.$ac_ext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; then
5835 case `/usr/bin/file conftest.$ac_objext` in
5836 *ELF-32*)
5837 HPUX_IA64_MODE="32"
5839 *ELF-64*)
5840 HPUX_IA64_MODE="64"
5842 esac
5844 rm -rf conftest*
5846 *-*-irix6*)
5847 # Find out which ABI we are using.
5848 echo '#line 5848 "configure"' > conftest.$ac_ext
5849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5851 ac_status=$?
5852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; then
5854 if test "$lt_cv_prog_gnu_ld" = yes; then
5855 case `/usr/bin/file conftest.$ac_objext` in
5856 *32-bit*)
5857 LD="${LD-ld} -melf32bsmip"
5859 *N32*)
5860 LD="${LD-ld} -melf32bmipn32"
5862 *64-bit*)
5863 LD="${LD-ld} -melf64bmip"
5865 esac
5866 else
5867 case `/usr/bin/file conftest.$ac_objext` in
5868 *32-bit*)
5869 LD="${LD-ld} -32"
5871 *N32*)
5872 LD="${LD-ld} -n32"
5874 *64-bit*)
5875 LD="${LD-ld} -64"
5877 esac
5880 rm -rf conftest*
5883 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5884 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5885 # Find out which ABI we are using.
5886 echo 'int i;' > conftest.$ac_ext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; then
5892 case `/usr/bin/file conftest.o` in
5893 *32-bit*)
5894 case $host in
5895 x86_64-*kfreebsd*-gnu)
5896 LD="${LD-ld} -m elf_i386_fbsd"
5898 x86_64-*linux*)
5899 LD="${LD-ld} -m elf_i386"
5901 ppc64-*linux*|powerpc64-*linux*)
5902 LD="${LD-ld} -m elf32ppclinux"
5904 s390x-*linux*)
5905 LD="${LD-ld} -m elf_s390"
5907 sparc64-*linux*)
5908 LD="${LD-ld} -m elf32_sparc"
5910 esac
5912 *64-bit*)
5913 case $host in
5914 x86_64-*kfreebsd*-gnu)
5915 LD="${LD-ld} -m elf_x86_64_fbsd"
5917 x86_64-*linux*)
5918 LD="${LD-ld} -m elf_x86_64"
5920 ppc*-*linux*|powerpc*-*linux*)
5921 LD="${LD-ld} -m elf64ppc"
5923 s390*-*linux*|s390*-*tpf*)
5924 LD="${LD-ld} -m elf64_s390"
5926 sparc*-*linux*)
5927 LD="${LD-ld} -m elf64_sparc"
5929 esac
5931 esac
5933 rm -rf conftest*
5936 *-*-sco3.2v5*)
5937 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5938 SAVE_CFLAGS="$CFLAGS"
5939 CFLAGS="$CFLAGS -belf"
5940 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5942 if test "${lt_cv_cc_needs_belf+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5944 else
5945 ac_ext=c
5946 ac_cpp='$CPP $CPPFLAGS'
5947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5959 main ()
5963 return 0;
5965 _ACEOF
5966 rm -f conftest.$ac_objext conftest$ac_exeext
5967 if { (ac_try="$ac_link"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5973 $as_echo "$ac_try_echo") >&5
5974 (eval "$ac_link") 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && {
5981 test -z "$ac_c_werror_flag" ||
5982 test ! -s conftest.err
5983 } && test -s conftest$ac_exeext && {
5984 test "$cross_compiling" = yes ||
5985 $as_test_x conftest$ac_exeext
5986 }; then
5987 lt_cv_cc_needs_belf=yes
5988 else
5989 $as_echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 lt_cv_cc_needs_belf=no
5995 rm -rf conftest.dSYM
5996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5997 conftest$ac_exeext conftest.$ac_ext
5998 ac_ext=c
5999 ac_cpp='$CPP $CPPFLAGS'
6000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6006 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6007 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6009 CFLAGS="$SAVE_CFLAGS"
6012 sparc*-*solaris*)
6013 # Find out which ABI we are using.
6014 echo 'int i;' > conftest.$ac_ext
6015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6016 (eval $ac_compile) 2>&5
6017 ac_status=$?
6018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; then
6020 case `/usr/bin/file conftest.o` in
6021 *64-bit*)
6022 case $lt_cv_prog_gnu_ld in
6023 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6025 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6026 LD="${LD-ld} -64"
6029 esac
6031 esac
6033 rm -rf conftest*
6035 esac
6037 need_locks="$enable_libtool_lock"
6040 case $host_os in
6041 rhapsody* | darwin*)
6042 if test -n "$ac_tool_prefix"; then
6043 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6044 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6045 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 $as_echo_n "checking for $ac_word... " >&6; }
6047 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6048 $as_echo_n "(cached) " >&6
6049 else
6050 if test -n "$DSYMUTIL"; then
6051 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6061 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6064 done
6065 done
6066 IFS=$as_save_IFS
6070 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6071 if test -n "$DSYMUTIL"; then
6072 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6073 $as_echo "$DSYMUTIL" >&6; }
6074 else
6075 { $as_echo "$as_me:$LINENO: result: no" >&5
6076 $as_echo "no" >&6; }
6081 if test -z "$ac_cv_prog_DSYMUTIL"; then
6082 ac_ct_DSYMUTIL=$DSYMUTIL
6083 # Extract the first word of "dsymutil", so it can be a program name with args.
6084 set dummy dsymutil; ac_word=$2
6085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6088 $as_echo_n "(cached) " >&6
6089 else
6090 if test -n "$ac_ct_DSYMUTIL"; then
6091 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6104 done
6105 done
6106 IFS=$as_save_IFS
6110 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6111 if test -n "$ac_ct_DSYMUTIL"; then
6112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6113 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6114 else
6115 { $as_echo "$as_me:$LINENO: result: no" >&5
6116 $as_echo "no" >&6; }
6119 if test "x$ac_ct_DSYMUTIL" = x; then
6120 DSYMUTIL=":"
6121 else
6122 case $cross_compiling:$ac_tool_warned in
6123 yes:)
6124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128 DSYMUTIL=$ac_ct_DSYMUTIL
6130 else
6131 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$NMEDIT"; then
6143 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6148 IFS=$as_save_IFS
6149 test -z "$as_dir" && as_dir=.
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 break 2
6156 done
6157 done
6158 IFS=$as_save_IFS
6162 NMEDIT=$ac_cv_prog_NMEDIT
6163 if test -n "$NMEDIT"; then
6164 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6165 $as_echo "$NMEDIT" >&6; }
6166 else
6167 { $as_echo "$as_me:$LINENO: result: no" >&5
6168 $as_echo "no" >&6; }
6173 if test -z "$ac_cv_prog_NMEDIT"; then
6174 ac_ct_NMEDIT=$NMEDIT
6175 # Extract the first word of "nmedit", so it can be a program name with args.
6176 set dummy nmedit; ac_word=$2
6177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6181 else
6182 if test -n "$ac_ct_NMEDIT"; then
6183 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6192 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6196 done
6197 done
6198 IFS=$as_save_IFS
6202 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6203 if test -n "$ac_ct_NMEDIT"; then
6204 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6205 $as_echo "$ac_ct_NMEDIT" >&6; }
6206 else
6207 { $as_echo "$as_me:$LINENO: result: no" >&5
6208 $as_echo "no" >&6; }
6211 if test "x$ac_ct_NMEDIT" = x; then
6212 NMEDIT=":"
6213 else
6214 case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6218 ac_tool_warned=yes ;;
6219 esac
6220 NMEDIT=$ac_ct_NMEDIT
6222 else
6223 NMEDIT="$ac_cv_prog_NMEDIT"
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_LIPO+set}" = set; then
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$LIPO"; then
6235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6248 done
6249 done
6250 IFS=$as_save_IFS
6254 LIPO=$ac_cv_prog_LIPO
6255 if test -n "$LIPO"; then
6256 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6257 $as_echo "$LIPO" >&6; }
6258 else
6259 { $as_echo "$as_me:$LINENO: result: no" >&5
6260 $as_echo "no" >&6; }
6265 if test -z "$ac_cv_prog_LIPO"; then
6266 ac_ct_LIPO=$LIPO
6267 # Extract the first word of "lipo", so it can be a program name with args.
6268 set dummy lipo; ac_word=$2
6269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_LIPO"; then
6275 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_prog_ac_ct_LIPO="lipo"
6285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6288 done
6289 done
6290 IFS=$as_save_IFS
6294 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6295 if test -n "$ac_ct_LIPO"; then
6296 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6297 $as_echo "$ac_ct_LIPO" >&6; }
6298 else
6299 { $as_echo "$as_me:$LINENO: result: no" >&5
6300 $as_echo "no" >&6; }
6303 if test "x$ac_ct_LIPO" = x; then
6304 LIPO=":"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 LIPO=$ac_ct_LIPO
6314 else
6315 LIPO="$ac_cv_prog_LIPO"
6318 if test -n "$ac_tool_prefix"; then
6319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6320 set dummy ${ac_tool_prefix}otool; ac_word=$2
6321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_OTOOL+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$OTOOL"; then
6327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6340 done
6341 done
6342 IFS=$as_save_IFS
6346 OTOOL=$ac_cv_prog_OTOOL
6347 if test -n "$OTOOL"; then
6348 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6349 $as_echo "$OTOOL" >&6; }
6350 else
6351 { $as_echo "$as_me:$LINENO: result: no" >&5
6352 $as_echo "no" >&6; }
6357 if test -z "$ac_cv_prog_OTOOL"; then
6358 ac_ct_OTOOL=$OTOOL
6359 # Extract the first word of "otool", so it can be a program name with args.
6360 set dummy otool; ac_word=$2
6361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6364 $as_echo_n "(cached) " >&6
6365 else
6366 if test -n "$ac_ct_OTOOL"; then
6367 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6368 else
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 for as_dir in $PATH
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_ac_ct_OTOOL="otool"
6377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6378 break 2
6380 done
6381 done
6382 IFS=$as_save_IFS
6386 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6387 if test -n "$ac_ct_OTOOL"; then
6388 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6389 $as_echo "$ac_ct_OTOOL" >&6; }
6390 else
6391 { $as_echo "$as_me:$LINENO: result: no" >&5
6392 $as_echo "no" >&6; }
6395 if test "x$ac_ct_OTOOL" = x; then
6396 OTOOL=":"
6397 else
6398 case $cross_compiling:$ac_tool_warned in
6399 yes:)
6400 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6403 esac
6404 OTOOL=$ac_ct_OTOOL
6406 else
6407 OTOOL="$ac_cv_prog_OTOOL"
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$OTOOL64"; then
6419 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6434 IFS=$as_save_IFS
6438 OTOOL64=$ac_cv_prog_OTOOL64
6439 if test -n "$OTOOL64"; then
6440 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6441 $as_echo "$OTOOL64" >&6; }
6442 else
6443 { $as_echo "$as_me:$LINENO: result: no" >&5
6444 $as_echo "no" >&6; }
6449 if test -z "$ac_cv_prog_OTOOL64"; then
6450 ac_ct_OTOOL64=$OTOOL64
6451 # Extract the first word of "otool64", so it can be a program name with args.
6452 set dummy otool64; ac_word=$2
6453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$ac_ct_OTOOL64"; then
6459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_ac_ct_OTOOL64="otool64"
6469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6472 done
6473 done
6474 IFS=$as_save_IFS
6478 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6479 if test -n "$ac_ct_OTOOL64"; then
6480 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6481 $as_echo "$ac_ct_OTOOL64" >&6; }
6482 else
6483 { $as_echo "$as_me:$LINENO: result: no" >&5
6484 $as_echo "no" >&6; }
6487 if test "x$ac_ct_OTOOL64" = x; then
6488 OTOOL64=":"
6489 else
6490 case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496 OTOOL64=$ac_ct_OTOOL64
6498 else
6499 OTOOL64="$ac_cv_prog_OTOOL64"
6528 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6529 $as_echo_n "checking for -single_module linker flag... " >&6; }
6530 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6531 $as_echo_n "(cached) " >&6
6532 else
6533 lt_cv_apple_cc_single_mod=no
6534 if test -z "${LT_MULTI_MODULE}"; then
6535 # By default we will add the -single_module flag. You can override
6536 # by either setting the environment variable LT_MULTI_MODULE
6537 # non-empty at configure time, or by adding -multi_module to the
6538 # link flags.
6539 rm -rf libconftest.dylib*
6540 echo "int foo(void){return 1;}" > conftest.c
6541 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6542 -dynamiclib -Wl,-single_module conftest.c" >&5
6543 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6544 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6545 _lt_result=$?
6546 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6547 lt_cv_apple_cc_single_mod=yes
6548 else
6549 cat conftest.err >&5
6551 rm -rf libconftest.dylib*
6552 rm -f conftest.*
6555 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6556 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6557 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6558 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6559 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6561 else
6562 lt_cv_ld_exported_symbols_list=no
6563 save_LDFLAGS=$LDFLAGS
6564 echo "_main" > conftest.sym
6565 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6574 main ()
6578 return 0;
6580 _ACEOF
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (ac_try="$ac_link"
6583 case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586 esac
6587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6588 $as_echo "$ac_try_echo") >&5
6589 (eval "$ac_link") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest$ac_exeext && {
6599 test "$cross_compiling" = yes ||
6600 $as_test_x conftest$ac_exeext
6601 }; then
6602 lt_cv_ld_exported_symbols_list=yes
6603 else
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 lt_cv_ld_exported_symbols_list=no
6610 rm -rf conftest.dSYM
6611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6612 conftest$ac_exeext conftest.$ac_ext
6613 LDFLAGS="$save_LDFLAGS"
6616 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6617 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6618 case $host_os in
6619 rhapsody* | darwin1.[012])
6620 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6621 darwin1.*)
6622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6623 darwin*) # darwin 5.x on
6624 # if running on 10.5 or later, the deployment target defaults
6625 # to the OS version, if on x86, and 10.4, the deployment
6626 # target defaults to 10.4. Don't you love it?
6627 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6628 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6629 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6630 10.[012]*)
6631 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6632 10.*)
6633 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6634 esac
6636 esac
6637 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6638 _lt_dar_single_mod='$single_module'
6640 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6641 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6642 else
6643 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6645 if test "$DSYMUTIL" != ":"; then
6646 _lt_dsymutil='~$DSYMUTIL $lib || :'
6647 else
6648 _lt_dsymutil=
6651 esac
6654 for ac_header in dlfcn.h
6656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6657 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6658 $as_echo_n "checking for $ac_header... " >&6; }
6659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 $ac_includes_default
6670 #include <$ac_header>
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677 esac
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 eval "$as_ac_Header=yes"
6691 else
6692 $as_echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6695 eval "$as_ac_Header=no"
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 ac_res=`eval 'as_val=${'$as_ac_Header'}
6701 $as_echo "$as_val"'`
6702 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6703 $as_echo "$ac_res" >&6; }
6704 as_val=`eval 'as_val=${'$as_ac_Header'}
6705 $as_echo "$as_val"'`
6706 if test "x$as_val" = x""yes; then
6707 cat >>confdefs.h <<_ACEOF
6708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709 _ACEOF
6713 done
6717 # Set options
6718 enable_win32_dll=yes
6720 case $host in
6721 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}as; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_AS+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$AS"; then
6731 ac_cv_prog_AS="$AS" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_AS="${ac_tool_prefix}as"
6741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 AS=$ac_cv_prog_AS
6751 if test -n "$AS"; then
6752 { $as_echo "$as_me:$LINENO: result: $AS" >&5
6753 $as_echo "$AS" >&6; }
6754 else
6755 { $as_echo "$as_me:$LINENO: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_AS"; then
6762 ac_ct_AS=$AS
6763 # Extract the first word of "as", so it can be a program name with args.
6764 set dummy as; ac_word=$2
6765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_AS"; then
6771 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_AS="as"
6781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6791 if test -n "$ac_ct_AS"; then
6792 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6793 $as_echo "$ac_ct_AS" >&6; }
6794 else
6795 { $as_echo "$as_me:$LINENO: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_AS" = x; then
6800 AS="false"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 AS=$ac_ct_AS
6810 else
6811 AS="$ac_cv_prog_AS"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$DLLTOOL"; then
6823 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 DLLTOOL=$ac_cv_prog_DLLTOOL
6843 if test -n "$DLLTOOL"; then
6844 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6845 $as_echo "$DLLTOOL" >&6; }
6846 else
6847 { $as_echo "$as_me:$LINENO: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_DLLTOOL"; then
6854 ac_ct_DLLTOOL=$DLLTOOL
6855 # Extract the first word of "dlltool", so it can be a program name with args.
6856 set dummy dlltool; ac_word=$2
6857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_DLLTOOL"; then
6863 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6883 if test -n "$ac_ct_DLLTOOL"; then
6884 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6885 $as_echo "$ac_ct_DLLTOOL" >&6; }
6886 else
6887 { $as_echo "$as_me:$LINENO: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_DLLTOOL" = x; then
6892 DLLTOOL="false"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 DLLTOOL=$ac_ct_DLLTOOL
6902 else
6903 DLLTOOL="$ac_cv_prog_DLLTOOL"
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$OBJDUMP"; then
6915 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6934 OBJDUMP=$ac_cv_prog_OBJDUMP
6935 if test -n "$OBJDUMP"; then
6936 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6937 $as_echo "$OBJDUMP" >&6; }
6938 else
6939 { $as_echo "$as_me:$LINENO: result: no" >&5
6940 $as_echo "no" >&6; }
6945 if test -z "$ac_cv_prog_OBJDUMP"; then
6946 ac_ct_OBJDUMP=$OBJDUMP
6947 # Extract the first word of "objdump", so it can be a program name with args.
6948 set dummy objdump; ac_word=$2
6949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_OBJDUMP"; then
6955 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6975 if test -n "$ac_ct_OBJDUMP"; then
6976 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6977 $as_echo "$ac_ct_OBJDUMP" >&6; }
6978 else
6979 { $as_echo "$as_me:$LINENO: result: no" >&5
6980 $as_echo "no" >&6; }
6983 if test "x$ac_ct_OBJDUMP" = x; then
6984 OBJDUMP="false"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 OBJDUMP=$ac_ct_OBJDUMP
6994 else
6995 OBJDUMP="$ac_cv_prog_OBJDUMP"
6999 esac
7001 test -z "$AS" && AS=as
7007 test -z "$DLLTOOL" && DLLTOOL=dlltool
7013 test -z "$OBJDUMP" && OBJDUMP=objdump
7021 enable_dlopen=no
7025 # Check whether --enable-shared was given.
7026 if test "${enable_shared+set}" = set; then
7027 enableval=$enable_shared; p=${PACKAGE-default}
7028 case $enableval in
7029 yes) enable_shared=yes ;;
7030 no) enable_shared=no ;;
7032 enable_shared=no
7033 # Look at the argument we got. We use all the common list separators.
7034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7035 for pkg in $enableval; do
7036 IFS="$lt_save_ifs"
7037 if test "X$pkg" = "X$p"; then
7038 enable_shared=yes
7040 done
7041 IFS="$lt_save_ifs"
7043 esac
7044 else
7045 enable_shared=yes
7056 # Check whether --enable-static was given.
7057 if test "${enable_static+set}" = set; then
7058 enableval=$enable_static; p=${PACKAGE-default}
7059 case $enableval in
7060 yes) enable_static=yes ;;
7061 no) enable_static=no ;;
7063 enable_static=no
7064 # Look at the argument we got. We use all the common list separators.
7065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7066 for pkg in $enableval; do
7067 IFS="$lt_save_ifs"
7068 if test "X$pkg" = "X$p"; then
7069 enable_static=yes
7071 done
7072 IFS="$lt_save_ifs"
7074 esac
7075 else
7076 enable_static=yes
7088 # Check whether --with-pic was given.
7089 if test "${with_pic+set}" = set; then
7090 withval=$with_pic; pic_mode="$withval"
7091 else
7092 pic_mode=default
7096 test -z "$pic_mode" && pic_mode=default
7104 # Check whether --enable-fast-install was given.
7105 if test "${enable_fast_install+set}" = set; then
7106 enableval=$enable_fast_install; p=${PACKAGE-default}
7107 case $enableval in
7108 yes) enable_fast_install=yes ;;
7109 no) enable_fast_install=no ;;
7111 enable_fast_install=no
7112 # Look at the argument we got. We use all the common list separators.
7113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7114 for pkg in $enableval; do
7115 IFS="$lt_save_ifs"
7116 if test "X$pkg" = "X$p"; then
7117 enable_fast_install=yes
7119 done
7120 IFS="$lt_save_ifs"
7122 esac
7123 else
7124 enable_fast_install=yes
7137 # This can be used to rebuild libtool when needed
7138 LIBTOOL_DEPS="$ltmain"
7140 # Always use our own libtool.
7141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7167 test -z "$LN_S" && LN_S="ln -s"
7182 if test -n "${ZSH_VERSION+set}" ; then
7183 setopt NO_GLOB_SUBST
7186 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7187 $as_echo_n "checking for objdir... " >&6; }
7188 if test "${lt_cv_objdir+set}" = set; then
7189 $as_echo_n "(cached) " >&6
7190 else
7191 rm -f .libs 2>/dev/null
7192 mkdir .libs 2>/dev/null
7193 if test -d .libs; then
7194 lt_cv_objdir=.libs
7195 else
7196 # MS-DOS does not allow filenames that begin with a dot.
7197 lt_cv_objdir=_libs
7199 rmdir .libs 2>/dev/null
7201 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7202 $as_echo "$lt_cv_objdir" >&6; }
7203 objdir=$lt_cv_objdir
7209 cat >>confdefs.h <<_ACEOF
7210 #define LT_OBJDIR "$lt_cv_objdir/"
7211 _ACEOF
7229 case $host_os in
7230 aix3*)
7231 # AIX sometimes has problems with the GCC collect2 program. For some
7232 # reason, if we set the COLLECT_NAMES environment variable, the problems
7233 # vanish in a puff of smoke.
7234 if test "X${COLLECT_NAMES+set}" != Xset; then
7235 COLLECT_NAMES=
7236 export COLLECT_NAMES
7239 esac
7241 # Sed substitution that helps us do robust quoting. It backslashifies
7242 # metacharacters that are still active within double-quoted strings.
7243 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7245 # Same as above, but do not quote variable references.
7246 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7248 # Sed substitution to delay expansion of an escaped shell variable in a
7249 # double_quote_subst'ed string.
7250 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7252 # Sed substitution to delay expansion of an escaped single quote.
7253 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7255 # Sed substitution to avoid accidental globbing in evaled expressions
7256 no_glob_subst='s/\*/\\\*/g'
7258 # Global variables:
7259 ofile=libtool
7260 can_build_shared=yes
7262 # All known linkers require a `.a' archive for static linking (except MSVC,
7263 # which needs '.lib').
7264 libext=a
7266 with_gnu_ld="$lt_cv_prog_gnu_ld"
7268 old_CC="$CC"
7269 old_CFLAGS="$CFLAGS"
7271 # Set sane defaults for various variables
7272 test -z "$CC" && CC=cc
7273 test -z "$LTCC" && LTCC=$CC
7274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7275 test -z "$LD" && LD=ld
7276 test -z "$ac_objext" && ac_objext=o
7278 for cc_temp in $compiler""; do
7279 case $cc_temp in
7280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7282 \-*) ;;
7283 *) break;;
7284 esac
7285 done
7286 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7289 # Only perform the check for file, if the check method requires it
7290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7291 case $deplibs_check_method in
7292 file_magic*)
7293 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7294 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7297 $as_echo_n "(cached) " >&6
7298 else
7299 case $MAGIC_CMD in
7300 [\\/*] | ?:[\\/]*)
7301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7304 lt_save_MAGIC_CMD="$MAGIC_CMD"
7305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7307 for ac_dir in $ac_dummy; do
7308 IFS="$lt_save_ifs"
7309 test -z "$ac_dir" && ac_dir=.
7310 if test -f $ac_dir/${ac_tool_prefix}file; then
7311 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7312 if test -n "$file_magic_test_file"; then
7313 case $deplibs_check_method in
7314 "file_magic "*)
7315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7318 $EGREP "$file_magic_regex" > /dev/null; then
7320 else
7321 cat <<_LT_EOF 1>&2
7323 *** Warning: the command libtool uses to detect shared libraries,
7324 *** $file_magic_cmd, produces output that libtool cannot recognize.
7325 *** The result is that libtool may fail to recognize shared libraries
7326 *** as such. This will affect the creation of libtool libraries that
7327 *** depend on shared libraries, but programs linked with such libtool
7328 *** libraries will work regardless of this problem. Nevertheless, you
7329 *** may want to report the problem to your system manager and/or to
7330 *** bug-libtool@gnu.org
7332 _LT_EOF
7333 fi ;;
7334 esac
7336 break
7338 done
7339 IFS="$lt_save_ifs"
7340 MAGIC_CMD="$lt_save_MAGIC_CMD"
7342 esac
7345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7346 if test -n "$MAGIC_CMD"; then
7347 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7348 $as_echo "$MAGIC_CMD" >&6; }
7349 else
7350 { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7358 if test -z "$lt_cv_path_MAGIC_CMD"; then
7359 if test -n "$ac_tool_prefix"; then
7360 { $as_echo "$as_me:$LINENO: checking for file" >&5
7361 $as_echo_n "checking for file... " >&6; }
7362 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7363 $as_echo_n "(cached) " >&6
7364 else
7365 case $MAGIC_CMD in
7366 [\\/*] | ?:[\\/]*)
7367 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7370 lt_save_MAGIC_CMD="$MAGIC_CMD"
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7373 for ac_dir in $ac_dummy; do
7374 IFS="$lt_save_ifs"
7375 test -z "$ac_dir" && ac_dir=.
7376 if test -f $ac_dir/file; then
7377 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7378 if test -n "$file_magic_test_file"; then
7379 case $deplibs_check_method in
7380 "file_magic "*)
7381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7384 $EGREP "$file_magic_regex" > /dev/null; then
7386 else
7387 cat <<_LT_EOF 1>&2
7389 *** Warning: the command libtool uses to detect shared libraries,
7390 *** $file_magic_cmd, produces output that libtool cannot recognize.
7391 *** The result is that libtool may fail to recognize shared libraries
7392 *** as such. This will affect the creation of libtool libraries that
7393 *** depend on shared libraries, but programs linked with such libtool
7394 *** libraries will work regardless of this problem. Nevertheless, you
7395 *** may want to report the problem to your system manager and/or to
7396 *** bug-libtool@gnu.org
7398 _LT_EOF
7399 fi ;;
7400 esac
7402 break
7404 done
7405 IFS="$lt_save_ifs"
7406 MAGIC_CMD="$lt_save_MAGIC_CMD"
7408 esac
7411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7412 if test -n "$MAGIC_CMD"; then
7413 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7414 $as_echo "$MAGIC_CMD" >&6; }
7415 else
7416 { $as_echo "$as_me:$LINENO: result: no" >&5
7417 $as_echo "no" >&6; }
7421 else
7422 MAGIC_CMD=:
7428 esac
7430 # Use C for the default configuration in the libtool script
7432 lt_save_CC="$CC"
7433 ac_ext=c
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7440 # Source file extension for C test sources.
7441 ac_ext=c
7443 # Object file extension for compiled C test sources.
7444 objext=o
7445 objext=$objext
7447 # Code to be used in simple compile tests
7448 lt_simple_compile_test_code="int some_variable = 0;"
7450 # Code to be used in simple link tests
7451 lt_simple_link_test_code='int main(){return(0);}'
7459 # If no C compiler was specified, use CC.
7460 LTCC=${LTCC-"$CC"}
7462 # If no C compiler flags were specified, use CFLAGS.
7463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7465 # Allow CC to be a program name with arguments.
7466 compiler=$CC
7468 # Save the default compiler, since it gets overwritten when the other
7469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7470 compiler_DEFAULT=$CC
7472 # save warnings/boilerplate of simple test code
7473 ac_outfile=conftest.$ac_objext
7474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7476 _lt_compiler_boilerplate=`cat conftest.err`
7477 $RM conftest*
7479 ac_outfile=conftest.$ac_objext
7480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7482 _lt_linker_boilerplate=`cat conftest.err`
7483 $RM -r conftest*
7486 ## CAVEAT EMPTOR:
7487 ## There is no encapsulation within the following macros, do not change
7488 ## the running order or otherwise move them around unless you know exactly
7489 ## what you are doing...
7490 if test -n "$compiler"; then
7492 lt_prog_compiler_no_builtin_flag=
7494 if test "$GCC" = yes; then
7495 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7497 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7498 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7499 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7501 else
7502 lt_cv_prog_compiler_rtti_exceptions=no
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7505 lt_compiler_flag="-fno-rtti -fno-exceptions"
7506 # Insert the option either (1) after the last *FLAGS variable, or
7507 # (2) before a word containing "conftest.", or (3) at the end.
7508 # Note that $ac_compile itself does not contain backslashes and begins
7509 # with a dollar sign (not a hyphen), so the echo should work correctly.
7510 # The option is referenced via a variable to avoid confusing sed.
7511 lt_compile=`echo "$ac_compile" | $SED \
7512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7514 -e 's:$: $lt_compiler_flag:'`
7515 (eval echo "\"\$as_me:7515: $lt_compile\"" >&5)
7516 (eval "$lt_compile" 2>conftest.err)
7517 ac_status=$?
7518 cat conftest.err >&5
7519 echo "$as_me:7519: \$? = $ac_status" >&5
7520 if (exit $ac_status) && test -s "$ac_outfile"; then
7521 # The compiler can only warn and ignore the option if not recognized
7522 # So say no if there are warnings other than the usual output.
7523 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7526 lt_cv_prog_compiler_rtti_exceptions=yes
7529 $RM conftest*
7532 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7533 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7535 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7536 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7537 else
7548 lt_prog_compiler_wl=
7549 lt_prog_compiler_pic=
7550 lt_prog_compiler_static=
7552 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7553 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7555 if test "$GCC" = yes; then
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_static='-static'
7559 case $host_os in
7560 aix*)
7561 # All AIX code is PIC.
7562 if test "$host_cpu" = ia64; then
7563 # AIX 5 now supports IA64 processor
7564 lt_prog_compiler_static='-Bstatic'
7568 amigaos*)
7569 case $host_cpu in
7570 powerpc)
7571 # see comment about AmigaOS4 .so support
7572 lt_prog_compiler_pic='-fPIC'
7574 m68k)
7575 # FIXME: we need at least 68020 code to build shared libraries, but
7576 # adding the `-m68020' flag to GCC prevents building anything better,
7577 # like `-m68040'.
7578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7580 esac
7583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7584 # PIC is the default for these OSes.
7587 mingw* | cygwin* | pw32* | os2* | cegcc*)
7588 # This hack is so that the source file can tell whether it is being
7589 # built for inclusion in a dll (and should export symbols for example).
7590 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7591 # (--disable-auto-import) libraries
7592 lt_prog_compiler_pic='-DDLL_EXPORT'
7595 darwin* | rhapsody*)
7596 # PIC is the default on this platform
7597 # Common symbols not allowed in MH_DYLIB files
7598 lt_prog_compiler_pic='-fno-common'
7601 hpux*)
7602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7604 # sets the default TLS model and affects inlining.
7605 case $host_cpu in
7606 hppa*64*)
7607 # +Z the default
7610 lt_prog_compiler_pic='-fPIC'
7612 esac
7615 interix[3-9]*)
7616 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7617 # Instead, we relocate shared libraries at runtime.
7620 msdosdjgpp*)
7621 # Just because we use GCC doesn't mean we suddenly get shared libraries
7622 # on systems that don't support them.
7623 lt_prog_compiler_can_build_shared=no
7624 enable_shared=no
7627 *nto* | *qnx*)
7628 # QNX uses GNU C++, but need to define -shared option too, otherwise
7629 # it will coredump.
7630 lt_prog_compiler_pic='-fPIC -shared'
7633 sysv4*MP*)
7634 if test -d /usr/nec; then
7635 lt_prog_compiler_pic=-Kconform_pic
7640 lt_prog_compiler_pic='-fPIC'
7642 esac
7643 else
7644 # PORTME Check for flag to pass linker flags through the system compiler.
7645 case $host_os in
7646 aix*)
7647 lt_prog_compiler_wl='-Wl,'
7648 if test "$host_cpu" = ia64; then
7649 # AIX 5 now supports IA64 processor
7650 lt_prog_compiler_static='-Bstatic'
7651 else
7652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7656 mingw* | cygwin* | pw32* | os2* | cegcc*)
7657 # This hack is so that the source file can tell whether it is being
7658 # built for inclusion in a dll (and should export symbols for example).
7659 lt_prog_compiler_pic='-DDLL_EXPORT'
7662 hpux9* | hpux10* | hpux11*)
7663 lt_prog_compiler_wl='-Wl,'
7664 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7665 # not for PA HP-UX.
7666 case $host_cpu in
7667 hppa*64*|ia64*)
7668 # +Z the default
7671 lt_prog_compiler_pic='+Z'
7673 esac
7674 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7675 lt_prog_compiler_static='${wl}-a ${wl}archive'
7678 irix5* | irix6* | nonstopux*)
7679 lt_prog_compiler_wl='-Wl,'
7680 # PIC (with -KPIC) is the default.
7681 lt_prog_compiler_static='-non_shared'
7684 linux* | k*bsd*-gnu)
7685 case $cc_basename in
7686 # old Intel for x86_64 which still supported -KPIC.
7687 ecc*)
7688 lt_prog_compiler_wl='-Wl,'
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-static'
7692 # icc used to be incompatible with GCC.
7693 # ICC 10 doesn't accept -KPIC any more.
7694 icc* | ifort*)
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_pic='-fPIC'
7697 lt_prog_compiler_static='-static'
7699 # Lahey Fortran 8.1.
7700 lf95*)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='--shared'
7703 lt_prog_compiler_static='--static'
7705 pgcc* | pgf77* | pgf90* | pgf95*)
7706 # Portland Group compilers (*not* the Pentium gcc compiler,
7707 # which looks to be a dead project)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-fpic'
7710 lt_prog_compiler_static='-Bstatic'
7712 ccc*)
7713 lt_prog_compiler_wl='-Wl,'
7714 # All Alpha code is PIC.
7715 lt_prog_compiler_static='-non_shared'
7717 xl*)
7718 # IBM XL C 8.0/Fortran 10.1 on PPC
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-qpic'
7721 lt_prog_compiler_static='-qstaticlink'
7724 case `$CC -V 2>&1 | sed 5q` in
7725 *Sun\ C*)
7726 # Sun C 5.9
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 lt_prog_compiler_wl='-Wl,'
7731 *Sun\ F*)
7732 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 lt_prog_compiler_wl=''
7737 esac
7739 esac
7742 newsos6)
7743 lt_prog_compiler_pic='-KPIC'
7744 lt_prog_compiler_static='-Bstatic'
7747 *nto* | *qnx*)
7748 # QNX uses GNU C++, but need to define -shared option too, otherwise
7749 # it will coredump.
7750 lt_prog_compiler_pic='-fPIC -shared'
7753 osf3* | osf4* | osf5*)
7754 lt_prog_compiler_wl='-Wl,'
7755 # All OSF/1 code is PIC.
7756 lt_prog_compiler_static='-non_shared'
7759 rdos*)
7760 lt_prog_compiler_static='-non_shared'
7763 solaris*)
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 case $cc_basename in
7767 f77* | f90* | f95*)
7768 lt_prog_compiler_wl='-Qoption ld ';;
7770 lt_prog_compiler_wl='-Wl,';;
7771 esac
7774 sunos4*)
7775 lt_prog_compiler_wl='-Qoption ld '
7776 lt_prog_compiler_pic='-PIC'
7777 lt_prog_compiler_static='-Bstatic'
7780 sysv4 | sysv4.2uw2* | sysv4.3*)
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='-KPIC'
7783 lt_prog_compiler_static='-Bstatic'
7786 sysv4*MP*)
7787 if test -d /usr/nec ;then
7788 lt_prog_compiler_pic='-Kconform_pic'
7789 lt_prog_compiler_static='-Bstatic'
7793 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7799 unicos*)
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_can_build_shared=no
7804 uts4*)
7805 lt_prog_compiler_pic='-pic'
7806 lt_prog_compiler_static='-Bstatic'
7810 lt_prog_compiler_can_build_shared=no
7812 esac
7815 case $host_os in
7816 # For platforms which do not support PIC, -DPIC is meaningless:
7817 *djgpp*)
7818 lt_prog_compiler_pic=
7821 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7823 esac
7824 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7825 $as_echo "$lt_prog_compiler_pic" >&6; }
7833 # Check to make sure the PIC flag actually works.
7835 if test -n "$lt_prog_compiler_pic"; then
7836 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7837 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7838 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7839 $as_echo_n "(cached) " >&6
7840 else
7841 lt_cv_prog_compiler_pic_works=no
7842 ac_outfile=conftest.$ac_objext
7843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7845 # Insert the option either (1) after the last *FLAGS variable, or
7846 # (2) before a word containing "conftest.", or (3) at the end.
7847 # Note that $ac_compile itself does not contain backslashes and begins
7848 # with a dollar sign (not a hyphen), so the echo should work correctly.
7849 # The option is referenced via a variable to avoid confusing sed.
7850 lt_compile=`echo "$ac_compile" | $SED \
7851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853 -e 's:$: $lt_compiler_flag:'`
7854 (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
7855 (eval "$lt_compile" 2>conftest.err)
7856 ac_status=$?
7857 cat conftest.err >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 if (exit $ac_status) && test -s "$ac_outfile"; then
7860 # The compiler can only warn and ignore the option if not recognized
7861 # So say no if there are warnings other than the usual output.
7862 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7864 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7865 lt_cv_prog_compiler_pic_works=yes
7868 $RM conftest*
7871 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7872 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7874 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7875 case $lt_prog_compiler_pic in
7876 "" | " "*) ;;
7877 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7878 esac
7879 else
7880 lt_prog_compiler_pic=
7881 lt_prog_compiler_can_build_shared=no
7892 # Check to make sure the static flag actually works.
7894 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7895 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7896 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7897 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7899 else
7900 lt_cv_prog_compiler_static_works=no
7901 save_LDFLAGS="$LDFLAGS"
7902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7905 # The linker can only warn and ignore the option if not recognized
7906 # So say no if there are warnings
7907 if test -s conftest.err; then
7908 # Append any errors to the config.log.
7909 cat conftest.err 1>&5
7910 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912 if diff conftest.exp conftest.er2 >/dev/null; then
7913 lt_cv_prog_compiler_static_works=yes
7915 else
7916 lt_cv_prog_compiler_static_works=yes
7919 $RM -r conftest*
7920 LDFLAGS="$save_LDFLAGS"
7923 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7924 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7926 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7928 else
7929 lt_prog_compiler_static=
7938 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7939 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7940 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7942 else
7943 lt_cv_prog_compiler_c_o=no
7944 $RM -r conftest 2>/dev/null
7945 mkdir conftest
7946 cd conftest
7947 mkdir out
7948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7950 lt_compiler_flag="-o out/conftest2.$ac_objext"
7951 # Insert the option either (1) after the last *FLAGS variable, or
7952 # (2) before a word containing "conftest.", or (3) at the end.
7953 # Note that $ac_compile itself does not contain backslashes and begins
7954 # with a dollar sign (not a hyphen), so the echo should work correctly.
7955 lt_compile=`echo "$ac_compile" | $SED \
7956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7958 -e 's:$: $lt_compiler_flag:'`
7959 (eval echo "\"\$as_me:7959: $lt_compile\"" >&5)
7960 (eval "$lt_compile" 2>out/conftest.err)
7961 ac_status=$?
7962 cat out/conftest.err >&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7965 then
7966 # The compiler can only warn and ignore the option if not recognized
7967 # So say no if there are warnings
7968 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7969 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7970 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7971 lt_cv_prog_compiler_c_o=yes
7974 chmod u+w . 2>&5
7975 $RM conftest*
7976 # SGI C++ compiler will create directory out/ii_files/ for
7977 # template instantiation
7978 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7979 $RM out/* && rmdir out
7980 cd ..
7981 $RM -r conftest
7982 $RM conftest*
7985 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7986 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7993 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7994 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7995 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7997 else
7998 lt_cv_prog_compiler_c_o=no
7999 $RM -r conftest 2>/dev/null
8000 mkdir conftest
8001 cd conftest
8002 mkdir out
8003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8005 lt_compiler_flag="-o out/conftest2.$ac_objext"
8006 # Insert the option either (1) after the last *FLAGS variable, or
8007 # (2) before a word containing "conftest.", or (3) at the end.
8008 # Note that $ac_compile itself does not contain backslashes and begins
8009 # with a dollar sign (not a hyphen), so the echo should work correctly.
8010 lt_compile=`echo "$ac_compile" | $SED \
8011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8013 -e 's:$: $lt_compiler_flag:'`
8014 (eval echo "\"\$as_me:8014: $lt_compile\"" >&5)
8015 (eval "$lt_compile" 2>out/conftest.err)
8016 ac_status=$?
8017 cat out/conftest.err >&5
8018 echo "$as_me:8018: \$? = $ac_status" >&5
8019 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8020 then
8021 # The compiler can only warn and ignore the option if not recognized
8022 # So say no if there are warnings
8023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8026 lt_cv_prog_compiler_c_o=yes
8029 chmod u+w . 2>&5
8030 $RM conftest*
8031 # SGI C++ compiler will create directory out/ii_files/ for
8032 # template instantiation
8033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8034 $RM out/* && rmdir out
8035 cd ..
8036 $RM -r conftest
8037 $RM conftest*
8040 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8041 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8046 hard_links="nottested"
8047 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8048 # do not overwrite the value of need_locks provided by the user
8049 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8050 $as_echo_n "checking if we can lock with hard links... " >&6; }
8051 hard_links=yes
8052 $RM conftest*
8053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8054 touch conftest.a
8055 ln conftest.a conftest.b 2>&5 || hard_links=no
8056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8057 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8058 $as_echo "$hard_links" >&6; }
8059 if test "$hard_links" = no; then
8060 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8061 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8062 need_locks=warn
8064 else
8065 need_locks=no
8073 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8074 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8076 runpath_var=
8077 allow_undefined_flag=
8078 always_export_symbols=no
8079 archive_cmds=
8080 archive_expsym_cmds=
8081 compiler_needs_object=no
8082 enable_shared_with_static_runtimes=no
8083 export_dynamic_flag_spec=
8084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8085 hardcode_automatic=no
8086 hardcode_direct=no
8087 hardcode_direct_absolute=no
8088 hardcode_libdir_flag_spec=
8089 hardcode_libdir_flag_spec_ld=
8090 hardcode_libdir_separator=
8091 hardcode_minus_L=no
8092 hardcode_shlibpath_var=unsupported
8093 inherit_rpath=no
8094 link_all_deplibs=unknown
8095 module_cmds=
8096 module_expsym_cmds=
8097 old_archive_from_new_cmds=
8098 old_archive_from_expsyms_cmds=
8099 thread_safe_flag_spec=
8100 whole_archive_flag_spec=
8101 # include_expsyms should be a list of space-separated symbols to be *always*
8102 # included in the symbol list
8103 include_expsyms=
8104 # exclude_expsyms can be an extended regexp of symbols to exclude
8105 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8106 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8107 # as well as any symbol that contains `d'.
8108 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8109 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8110 # platforms (ab)use it in PIC code, but their linkers get confused if
8111 # the symbol is explicitly referenced. Since portable code cannot
8112 # rely on this symbol name, it's probably fine to never include it in
8113 # preloaded symbol tables.
8114 # Exclude shared library initialization/finalization symbols.
8115 extract_expsyms_cmds=
8117 case $host_os in
8118 cygwin* | mingw* | pw32* | cegcc*)
8119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8120 # When not using gcc, we currently assume that we are using
8121 # Microsoft Visual C++.
8122 if test "$GCC" != yes; then
8123 with_gnu_ld=no
8126 interix*)
8127 # we just hope/assume this is gcc and not c89 (= MSVC++)
8128 with_gnu_ld=yes
8130 openbsd*)
8131 with_gnu_ld=no
8133 esac
8135 ld_shlibs=yes
8136 if test "$with_gnu_ld" = yes; then
8137 # If archive_cmds runs LD, not CC, wlarc should be empty
8138 wlarc='${wl}'
8140 # Set some defaults for GNU ld with shared library support. These
8141 # are reset later if shared libraries are not supported. Putting them
8142 # here allows them to be overridden if necessary.
8143 runpath_var=LD_RUN_PATH
8144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8145 export_dynamic_flag_spec='${wl}--export-dynamic'
8146 # ancient GNU ld didn't support --whole-archive et. al.
8147 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8149 else
8150 whole_archive_flag_spec=
8152 supports_anon_versioning=no
8153 case `$LD -v 2>&1` in
8154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8157 *\ 2.11.*) ;; # other 2.11 versions
8158 *) supports_anon_versioning=yes ;;
8159 esac
8161 # See if GNU ld supports shared libraries.
8162 case $host_os in
8163 aix[3-9]*)
8164 # On AIX/PPC, the GNU linker is very broken
8165 if test "$host_cpu" != ia64; then
8166 ld_shlibs=no
8167 cat <<_LT_EOF 1>&2
8169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8170 *** to be unable to reliably create shared libraries on AIX.
8171 *** Therefore, libtool is disabling shared libraries support. If you
8172 *** really care for shared libraries, you may want to modify your PATH
8173 *** so that a non-GNU linker is found, and then restart.
8175 _LT_EOF
8179 amigaos*)
8180 case $host_cpu in
8181 powerpc)
8182 # see comment about AmigaOS4 .so support
8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184 archive_expsym_cmds=''
8186 m68k)
8187 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)'
8188 hardcode_libdir_flag_spec='-L$libdir'
8189 hardcode_minus_L=yes
8191 esac
8194 beos*)
8195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8196 allow_undefined_flag=unsupported
8197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8198 # support --undefined. This deserves some investigation. FIXME
8199 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200 else
8201 ld_shlibs=no
8205 cygwin* | mingw* | pw32* | cegcc*)
8206 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8207 # as there is no search path for DLLs.
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 allow_undefined_flag=unsupported
8210 always_export_symbols=no
8211 enable_shared_with_static_runtimes=yes
8212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8214 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8216 # If the export-symbols file already is a .def file (1st line
8217 # is EXPORTS), use it as is; otherwise, prepend...
8218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8219 cp $export_symbols $output_objdir/$soname.def;
8220 else
8221 echo EXPORTS > $output_objdir/$soname.def;
8222 cat $export_symbols >> $output_objdir/$soname.def;
8224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8225 else
8226 ld_shlibs=no
8230 interix[3-9]*)
8231 hardcode_direct=no
8232 hardcode_shlibpath_var=no
8233 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8234 export_dynamic_flag_spec='${wl}-E'
8235 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8236 # Instead, shared libraries are loaded at an image base (0x10000000 by
8237 # default) and relocated if they conflict, which is a slow very memory
8238 # consuming and fragmenting process. To avoid this, we pick a random,
8239 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8240 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8242 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'
8245 gnu* | linux* | tpf* | k*bsd*-gnu)
8246 tmp_diet=no
8247 if test "$host_os" = linux-dietlibc; then
8248 case $cc_basename in
8249 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8250 esac
8252 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8253 && test "$tmp_diet" = no
8254 then
8255 tmp_addflag=
8256 tmp_sharedflag='-shared'
8257 case $cc_basename,$host_cpu in
8258 pgcc*) # Portland Group C compiler
8259 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'
8260 tmp_addflag=' $pic_flag'
8262 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8263 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'
8264 tmp_addflag=' $pic_flag -Mnomain' ;;
8265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8266 tmp_addflag=' -i_dynamic' ;;
8267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8268 tmp_addflag=' -i_dynamic -nofor_main' ;;
8269 ifc* | ifort*) # Intel Fortran compiler
8270 tmp_addflag=' -nofor_main' ;;
8271 lf95*) # Lahey Fortran 8.1
8272 whole_archive_flag_spec=
8273 tmp_sharedflag='--shared' ;;
8274 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8275 tmp_sharedflag='-qmkshrobj'
8276 tmp_addflag= ;;
8277 esac
8278 case `$CC -V 2>&1 | sed 5q` in
8279 *Sun\ C*) # Sun C 5.9
8280 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'
8281 compiler_needs_object=yes
8282 tmp_sharedflag='-G' ;;
8283 *Sun\ F*) # Sun Fortran 8.3
8284 tmp_sharedflag='-G' ;;
8285 esac
8286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 if test "x$supports_anon_versioning" = xyes; then
8289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8291 echo "local: *; };" >> $output_objdir/$libname.ver~
8292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8295 case $cc_basename in
8296 xlf*)
8297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8299 hardcode_libdir_flag_spec=
8300 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8301 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8302 if test "x$supports_anon_versioning" = xyes; then
8303 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8305 echo "local: *; };" >> $output_objdir/$libname.ver~
8306 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8309 esac
8310 else
8311 ld_shlibs=no
8315 netbsd*)
8316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8317 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8318 wlarc=
8319 else
8320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 solaris*)
8326 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8327 ld_shlibs=no
8328 cat <<_LT_EOF 1>&2
8330 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8331 *** create shared libraries on Solaris systems. Therefore, libtool
8332 *** is disabling shared libraries support. We urge you to upgrade GNU
8333 *** binutils to release 2.9.1 or newer. Another option is to modify
8334 *** your PATH or compiler configuration so that the native linker is
8335 *** used, and then restart.
8337 _LT_EOF
8338 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8341 else
8342 ld_shlibs=no
8346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8347 case `$LD -v 2>&1` in
8348 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8349 ld_shlibs=no
8350 cat <<_LT_EOF 1>&2
8352 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8353 *** reliably create shared libraries on SCO systems. Therefore, libtool
8354 *** is disabling shared libraries support. We urge you to upgrade GNU
8355 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8356 *** your PATH or compiler configuration so that the native linker is
8357 *** used, and then restart.
8359 _LT_EOF
8362 # For security reasons, it is highly recommended that you always
8363 # use absolute paths for naming shared libraries, and exclude the
8364 # DT_RUNPATH tag from executables and libraries. But doing so
8365 # requires that you compile everything twice, which is a pain.
8366 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8370 else
8371 ld_shlibs=no
8374 esac
8377 sunos4*)
8378 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379 wlarc=
8380 hardcode_direct=yes
8381 hardcode_shlibpath_var=no
8385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388 else
8389 ld_shlibs=no
8392 esac
8394 if test "$ld_shlibs" = no; then
8395 runpath_var=
8396 hardcode_libdir_flag_spec=
8397 export_dynamic_flag_spec=
8398 whole_archive_flag_spec=
8400 else
8401 # PORTME fill in a description of your system's linker (not GNU ld)
8402 case $host_os in
8403 aix3*)
8404 allow_undefined_flag=unsupported
8405 always_export_symbols=yes
8406 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'
8407 # Note: this linker hardcodes the directories in LIBPATH if there
8408 # are no directories specified by -L.
8409 hardcode_minus_L=yes
8410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8411 # Neither direct hardcoding nor static linking is supported with a
8412 # broken collect2.
8413 hardcode_direct=unsupported
8417 aix[4-9]*)
8418 if test "$host_cpu" = ia64; then
8419 # On IA64, the linker does run time linking by default, so we don't
8420 # have to do anything special.
8421 aix_use_runtimelinking=no
8422 exp_sym_flag='-Bexport'
8423 no_entry_flag=""
8424 else
8425 # If we're using GNU nm, then we don't want the "-C" option.
8426 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8428 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'
8429 else
8430 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'
8432 aix_use_runtimelinking=no
8434 # Test if we are trying to use run time linking or normal
8435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8436 # need to do runtime linking.
8437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8438 for ld_flag in $LDFLAGS; do
8439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8440 aix_use_runtimelinking=yes
8441 break
8443 done
8445 esac
8447 exp_sym_flag='-bexport'
8448 no_entry_flag='-bnoentry'
8451 # When large executables or shared objects are built, AIX ld can
8452 # have problems creating the table of contents. If linking a library
8453 # or program results in "error TOC overflow" add -mminimal-toc to
8454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8457 archive_cmds=''
8458 hardcode_direct=yes
8459 hardcode_direct_absolute=yes
8460 hardcode_libdir_separator=':'
8461 link_all_deplibs=yes
8462 file_list_spec='${wl}-f,'
8464 if test "$GCC" = yes; then
8465 case $host_os in aix4.[012]|aix4.[012].*)
8466 # We only want to do this on AIX 4.2 and lower, the check
8467 # below for broken collect2 doesn't work under 4.3+
8468 collect2name=`${CC} -print-prog-name=collect2`
8469 if test -f "$collect2name" &&
8470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8471 then
8472 # We have reworked collect2
8474 else
8475 # We have old collect2
8476 hardcode_direct=unsupported
8477 # It fails to find uninstalled libraries when the uninstalled
8478 # path is not listed in the libpath. Setting hardcode_minus_L
8479 # to unsupported forces relinking
8480 hardcode_minus_L=yes
8481 hardcode_libdir_flag_spec='-L$libdir'
8482 hardcode_libdir_separator=
8485 esac
8486 shared_flag='-shared'
8487 if test "$aix_use_runtimelinking" = yes; then
8488 shared_flag="$shared_flag "'${wl}-G'
8490 else
8491 # not using gcc
8492 if test "$host_cpu" = ia64; then
8493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8494 # chokes on -Wl,-G. The following line is correct:
8495 shared_flag='-G'
8496 else
8497 if test "$aix_use_runtimelinking" = yes; then
8498 shared_flag='${wl}-G'
8499 else
8500 shared_flag='${wl}-bM:SRE'
8505 export_dynamic_flag_spec='${wl}-bexpall'
8506 # It seems that -bexpall does not export symbols beginning with
8507 # underscore (_), so it is better to generate a list of symbols to export.
8508 always_export_symbols=yes
8509 if test "$aix_use_runtimelinking" = yes; then
8510 # Warning - without using the other runtime loading flags (-brtl),
8511 # -berok will link without error, but may produce a broken library.
8512 allow_undefined_flag='-berok'
8513 # Determine the default libpath from the value encoded in an
8514 # empty executable.
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8523 main ()
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8537 $as_echo "$ac_try_echo") >&5
8538 (eval "$ac_link") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest$ac_exeext && {
8548 test "$cross_compiling" = yes ||
8549 $as_test_x conftest$ac_exeext
8550 }; then
8552 lt_aix_libpath_sed='
8553 /Import File Strings/,/^$/ {
8554 /^0/ {
8555 s/^0 *\(.*\)$/\1/
8559 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8560 # Check for a 64-bit object if we didn't find anything.
8561 if test -z "$aix_libpath"; then
8562 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564 else
8565 $as_echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8571 rm -rf conftest.dSYM
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573 conftest$ac_exeext conftest.$ac_ext
8574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8577 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"
8578 else
8579 if test "$host_cpu" = ia64; then
8580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8581 allow_undefined_flag="-z nodefs"
8582 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"
8583 else
8584 # Determine the default libpath from the value encoded in an
8585 # empty executable.
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8594 main ()
8598 return 0;
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (ac_try="$ac_link"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609 (eval "$ac_link") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest$ac_exeext && {
8619 test "$cross_compiling" = yes ||
8620 $as_test_x conftest$ac_exeext
8621 }; then
8623 lt_aix_libpath_sed='
8624 /Import File Strings/,/^$/ {
8625 /^0/ {
8626 s/^0 *\(.*\)$/\1/
8630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8631 # Check for a 64-bit object if we didn't find anything.
8632 if test -z "$aix_libpath"; then
8633 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8635 else
8636 $as_echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8642 rm -rf conftest.dSYM
8643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8644 conftest$ac_exeext conftest.$ac_ext
8645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8647 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8648 # Warning - without using the other run time loading flags,
8649 # -berok will link without error, but may produce a broken library.
8650 no_undefined_flag=' ${wl}-bernotok'
8651 allow_undefined_flag=' ${wl}-berok'
8652 # Exported symbols can be pulled into shared objects from archives
8653 whole_archive_flag_spec='$convenience'
8654 archive_cmds_need_lc=yes
8655 # This is similar to how AIX traditionally builds its shared libraries.
8656 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'
8661 amigaos*)
8662 case $host_cpu in
8663 powerpc)
8664 # see comment about AmigaOS4 .so support
8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666 archive_expsym_cmds=''
8668 m68k)
8669 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)'
8670 hardcode_libdir_flag_spec='-L$libdir'
8671 hardcode_minus_L=yes
8673 esac
8676 bsdi[45]*)
8677 export_dynamic_flag_spec=-rdynamic
8680 cygwin* | mingw* | pw32* | cegcc*)
8681 # When not using gcc, we currently assume that we are using
8682 # Microsoft Visual C++.
8683 # hardcode_libdir_flag_spec is actually meaningless, as there is
8684 # no search path for DLLs.
8685 hardcode_libdir_flag_spec=' '
8686 allow_undefined_flag=unsupported
8687 # Tell ltmain to make .lib files, not .a files.
8688 libext=lib
8689 # Tell ltmain to make .dll files, not .so files.
8690 shrext_cmds=".dll"
8691 # FIXME: Setting linknames here is a bad hack.
8692 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8693 # The linker will automatically build a .lib file if we build a DLL.
8694 old_archive_from_new_cmds='true'
8695 # FIXME: Should let the user specify the lib program.
8696 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8697 fix_srcfile_path='`cygpath -w "$srcfile"`'
8698 enable_shared_with_static_runtimes=yes
8701 darwin* | rhapsody*)
8704 archive_cmds_need_lc=no
8705 hardcode_direct=no
8706 hardcode_automatic=yes
8707 hardcode_shlibpath_var=unsupported
8708 whole_archive_flag_spec=''
8709 link_all_deplibs=yes
8710 allow_undefined_flag="$_lt_dar_allow_undefined"
8711 case $cc_basename in
8712 ifort*) _lt_dar_can_shared=yes ;;
8713 *) _lt_dar_can_shared=$GCC ;;
8714 esac
8715 if test "$_lt_dar_can_shared" = "yes"; then
8716 output_verbose_link_cmd=echo
8717 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719 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}"
8720 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}"
8722 else
8723 ld_shlibs=no
8728 dgux*)
8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730 hardcode_libdir_flag_spec='-L$libdir'
8731 hardcode_shlibpath_var=no
8734 freebsd1*)
8735 ld_shlibs=no
8738 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8739 # support. Future versions do this automatically, but an explicit c++rt0.o
8740 # does not break anything, and helps significantly (at the cost of a little
8741 # extra space).
8742 freebsd2.2*)
8743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8744 hardcode_libdir_flag_spec='-R$libdir'
8745 hardcode_direct=yes
8746 hardcode_shlibpath_var=no
8749 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8750 freebsd2*)
8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_direct=yes
8753 hardcode_minus_L=yes
8754 hardcode_shlibpath_var=no
8757 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8758 freebsd* | dragonfly*)
8759 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8760 hardcode_libdir_flag_spec='-R$libdir'
8761 hardcode_direct=yes
8762 hardcode_shlibpath_var=no
8765 hpux9*)
8766 if test "$GCC" = yes; then
8767 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'
8768 else
8769 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'
8771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8772 hardcode_libdir_separator=:
8773 hardcode_direct=yes
8775 # hardcode_minus_L: Not really in the search PATH,
8776 # but as the default location of the library.
8777 hardcode_minus_L=yes
8778 export_dynamic_flag_spec='${wl}-E'
8781 hpux10*)
8782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8783 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8784 else
8785 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8787 if test "$with_gnu_ld" = no; then
8788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789 hardcode_libdir_flag_spec_ld='+b $libdir'
8790 hardcode_libdir_separator=:
8791 hardcode_direct=yes
8792 hardcode_direct_absolute=yes
8793 export_dynamic_flag_spec='${wl}-E'
8794 # hardcode_minus_L: Not really in the search PATH,
8795 # but as the default location of the library.
8796 hardcode_minus_L=yes
8800 hpux11*)
8801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802 case $host_cpu in
8803 hppa*64*)
8804 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 ia64*)
8807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8812 esac
8813 else
8814 case $host_cpu in
8815 hppa*64*)
8816 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 ia64*)
8819 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8824 esac
8826 if test "$with_gnu_ld" = no; then
8827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8828 hardcode_libdir_separator=:
8830 case $host_cpu in
8831 hppa*64*|ia64*)
8832 hardcode_direct=no
8833 hardcode_shlibpath_var=no
8836 hardcode_direct=yes
8837 hardcode_direct_absolute=yes
8838 export_dynamic_flag_spec='${wl}-E'
8840 # hardcode_minus_L: Not really in the search PATH,
8841 # but as the default location of the library.
8842 hardcode_minus_L=yes
8844 esac
8848 irix5* | irix6* | nonstopux*)
8849 if test "$GCC" = yes; then
8850 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'
8851 # Try to use the -exported_symbol ld option, if it does not
8852 # work, assume that -exports_file does not work either and
8853 # implicitly export all symbols.
8854 save_LDFLAGS="$LDFLAGS"
8855 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8856 cat >conftest.$ac_ext <<_ACEOF
8857 int foo(void) {}
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8861 case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864 esac
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867 (eval "$ac_link") 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8876 } && test -s conftest$ac_exeext && {
8877 test "$cross_compiling" = yes ||
8878 $as_test_x conftest$ac_exeext
8879 }; then
8880 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'
8882 else
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -rf conftest.dSYM
8890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LDFLAGS="$save_LDFLAGS"
8893 else
8894 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'
8895 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'
8897 archive_cmds_need_lc='no'
8898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8899 hardcode_libdir_separator=:
8900 inherit_rpath=yes
8901 link_all_deplibs=yes
8904 netbsd*)
8905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8907 else
8908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8910 hardcode_libdir_flag_spec='-R$libdir'
8911 hardcode_direct=yes
8912 hardcode_shlibpath_var=no
8915 newsos6)
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=yes
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 hardcode_shlibpath_var=no
8923 *nto* | *qnx*)
8926 openbsd*)
8927 if test -f /usr/libexec/ld.so; then
8928 hardcode_direct=yes
8929 hardcode_shlibpath_var=no
8930 hardcode_direct_absolute=yes
8931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 export_dynamic_flag_spec='${wl}-E'
8936 else
8937 case $host_os in
8938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_libdir_flag_spec='-R$libdir'
8943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946 esac
8948 else
8949 ld_shlibs=no
8953 os2*)
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 allow_undefined_flag=unsupported
8957 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'
8958 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8961 osf3*)
8962 if test "$GCC" = yes; then
8963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8964 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'
8965 else
8966 allow_undefined_flag=' -expect_unresolved \*'
8967 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'
8969 archive_cmds_need_lc='no'
8970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971 hardcode_libdir_separator=:
8974 osf4* | osf5*) # as osf3* with the addition of -msym flag
8975 if test "$GCC" = yes; then
8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977 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'
8978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979 else
8980 allow_undefined_flag=' -expect_unresolved \*'
8981 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'
8982 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~
8983 $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'
8985 # Both c and cxx compiler support -rpath directly
8986 hardcode_libdir_flag_spec='-rpath $libdir'
8988 archive_cmds_need_lc='no'
8989 hardcode_libdir_separator=:
8992 solaris*)
8993 no_undefined_flag=' -z defs'
8994 if test "$GCC" = yes; then
8995 wlarc='${wl}'
8996 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8998 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8999 else
9000 case `$CC -V 2>&1` in
9001 *"Compilers 5.0"*)
9002 wlarc=''
9003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9008 wlarc='${wl}'
9009 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9011 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9013 esac
9015 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_shlibpath_var=no
9017 case $host_os in
9018 solaris2.[0-5] | solaris2.[0-5].*) ;;
9020 # The compiler driver will combine and reorder linker options,
9021 # but understands `-z linker_flag'. GCC discards it without `$wl',
9022 # but is careful enough not to reorder.
9023 # Supported since Solaris 2.6 (maybe 2.5.1?)
9024 if test "$GCC" = yes; then
9025 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9026 else
9027 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9030 esac
9031 link_all_deplibs=yes
9034 sunos4*)
9035 if test "x$host_vendor" = xsequent; then
9036 # Use $CC to link under sequent, because it throws in some extra .o
9037 # files that make .init and .fini sections work.
9038 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_direct=yes
9044 hardcode_minus_L=yes
9045 hardcode_shlibpath_var=no
9048 sysv4)
9049 case $host_vendor in
9050 sni)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=yes # is this really true???
9054 siemens)
9055 ## LD is ld it makes a PLAMLIB
9056 ## CC just makes a GrossModule.
9057 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9058 reload_cmds='$CC -r -o $output$reload_objs'
9059 hardcode_direct=no
9061 motorola)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9065 esac
9066 runpath_var='LD_RUN_PATH'
9067 hardcode_shlibpath_var=no
9070 sysv4.3*)
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_shlibpath_var=no
9073 export_dynamic_flag_spec='-Bexport'
9076 sysv4*MP*)
9077 if test -d /usr/nec; then
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 runpath_var=LD_RUN_PATH
9081 hardcode_runpath_var=yes
9082 ld_shlibs=yes
9086 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9087 no_undefined_flag='${wl}-z,text'
9088 archive_cmds_need_lc=no
9089 hardcode_shlibpath_var=no
9090 runpath_var='LD_RUN_PATH'
9092 if test "$GCC" = yes; then
9093 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9094 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9095 else
9096 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 sysv5* | sco3.2v5* | sco5v6*)
9102 # Note: We can NOT use -z defs as we might desire, because we do not
9103 # link with -lc, and that would cause any symbols used from libc to
9104 # always be unresolved, which means just about no library would
9105 # ever link correctly. If we're not using GNU ld we use -z text
9106 # though, which does catch some bad symbols but isn't as heavy-handed
9107 # as -z defs.
9108 no_undefined_flag='${wl}-z,text'
9109 allow_undefined_flag='${wl}-z,nodefs'
9110 archive_cmds_need_lc=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9113 hardcode_libdir_separator=':'
9114 link_all_deplibs=yes
9115 export_dynamic_flag_spec='${wl}-Bexport'
9116 runpath_var='LD_RUN_PATH'
9118 if test "$GCC" = yes; then
9119 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 else
9122 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 uts4*)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_libdir_flag_spec='-L$libdir'
9130 hardcode_shlibpath_var=no
9134 ld_shlibs=no
9136 esac
9138 if test x$host_vendor = xsni; then
9139 case $host in
9140 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9143 esac
9147 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9148 $as_echo "$ld_shlibs" >&6; }
9149 test "$ld_shlibs" = no && can_build_shared=no
9151 with_gnu_ld=$with_gnu_ld
9168 # Do we need to explicitly link libc?
9170 case "x$archive_cmds_need_lc" in
9171 x|xyes)
9172 # Assume -lc should be added
9173 archive_cmds_need_lc=yes
9175 if test "$enable_shared" = yes && test "$GCC" = yes; then
9176 case $archive_cmds in
9177 *'~'*)
9178 # FIXME: we may have to deal with multi-command sequences.
9180 '$CC '*)
9181 # Test whether the compiler implicitly links with -lc since on some
9182 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9183 # to ld, don't add -lc before -lgcc.
9184 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9185 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9186 $RM conftest*
9187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>&5
9191 ac_status=$?
9192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } 2>conftest.err; then
9194 soname=conftest
9195 lib=conftest
9196 libobjs=conftest.$ac_objext
9197 deplibs=
9198 wl=$lt_prog_compiler_wl
9199 pic_flag=$lt_prog_compiler_pic
9200 compiler_flags=-v
9201 linker_flags=-v
9202 verstring=
9203 output_objdir=.
9204 libname=conftest
9205 lt_save_allow_undefined_flag=$allow_undefined_flag
9206 allow_undefined_flag=
9207 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9208 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9209 ac_status=$?
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }
9212 then
9213 archive_cmds_need_lc=no
9214 else
9215 archive_cmds_need_lc=yes
9217 allow_undefined_flag=$lt_save_allow_undefined_flag
9218 else
9219 cat conftest.err 1>&5
9221 $RM conftest*
9222 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9223 $as_echo "$archive_cmds_need_lc" >&6; }
9225 esac
9228 esac
9386 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9387 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9389 if test "$GCC" = yes; then
9390 case $host_os in
9391 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9392 *) lt_awk_arg="/^libraries:/" ;;
9393 esac
9394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9404 # Ok, now we have the path, separated by spaces, we can step through it
9405 # and add multilib dir if necessary.
9406 lt_tmp_lt_search_path_spec=
9407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9408 for lt_sys_path in $lt_search_path_spec; do
9409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9411 else
9412 test -d "$lt_sys_path" && \
9413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9415 done
9416 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9417 BEGIN {RS=" "; FS="/|\n";} {
9418 lt_foo="";
9419 lt_count=0;
9420 for (lt_i = NF; lt_i > 0; lt_i--) {
9421 if ($lt_i != "" && $lt_i != ".") {
9422 if ($lt_i == "..") {
9423 lt_count++;
9424 } else {
9425 if (lt_count == 0) {
9426 lt_foo="/" $lt_i lt_foo;
9427 } else {
9428 lt_count--;
9433 if (lt_foo != "") { lt_freq[lt_foo]++; }
9434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9436 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9437 else
9438 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9440 library_names_spec=
9441 libname_spec='lib$name'
9442 soname_spec=
9443 shrext_cmds=".so"
9444 postinstall_cmds=
9445 postuninstall_cmds=
9446 finish_cmds=
9447 finish_eval=
9448 shlibpath_var=
9449 shlibpath_overrides_runpath=unknown
9450 version_type=none
9451 dynamic_linker="$host_os ld.so"
9452 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9453 need_lib_prefix=unknown
9454 hardcode_into_libs=no
9456 # when you set need_version to no, make sure it does not cause -set_version
9457 # flags to be left without arguments
9458 need_version=unknown
9460 case $host_os in
9461 aix3*)
9462 version_type=linux
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9464 shlibpath_var=LIBPATH
9466 # AIX 3 has no versioning support, so we append a major version to the name.
9467 soname_spec='${libname}${release}${shared_ext}$major'
9470 aix[4-9]*)
9471 version_type=linux
9472 need_lib_prefix=no
9473 need_version=no
9474 hardcode_into_libs=yes
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 supports IA64
9477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 else
9480 # With GCC up to 2.95.x, collect2 would create an import file
9481 # for dependence libraries. The import file would start with
9482 # the line `#! .'. This would cause the generated library to
9483 # depend on `.', always an invalid library. This was fixed in
9484 # development snapshots of GCC prior to 3.0.
9485 case $host_os in
9486 aix4 | aix4.[01] | aix4.[01].*)
9487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9488 echo ' yes '
9489 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9491 else
9492 can_build_shared=no
9495 esac
9496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9497 # soname into executable. Probably we can add versioning support to
9498 # collect2, so additional links can be useful in future.
9499 if test "$aix_use_runtimelinking" = yes; then
9500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9501 # instead of lib<name>.a to let people know that these are not
9502 # typical AIX shared libraries.
9503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504 else
9505 # We preserve .a as extension for shared libraries through AIX4.2
9506 # and later when we are not doing run time linking.
9507 library_names_spec='${libname}${release}.a $libname.a'
9508 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LIBPATH
9514 amigaos*)
9515 case $host_cpu in
9516 powerpc)
9517 # Since July 2007 AmigaOS4 officially supports .so libraries.
9518 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521 m68k)
9522 library_names_spec='$libname.ixlibrary $libname.a'
9523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9524 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'
9526 esac
9529 beos*)
9530 library_names_spec='${libname}${shared_ext}'
9531 dynamic_linker="$host_os ld.so"
9532 shlibpath_var=LIBRARY_PATH
9535 bsdi[45]*)
9536 version_type=linux
9537 need_version=no
9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539 soname_spec='${libname}${release}${shared_ext}$major'
9540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9544 # the default ld.so.conf also contains /usr/contrib/lib and
9545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9546 # libtool to hard-code these into programs
9549 cygwin* | mingw* | pw32* | cegcc*)
9550 version_type=windows
9551 shrext_cmds=".dll"
9552 need_version=no
9553 need_lib_prefix=no
9555 case $GCC,$host_os in
9556 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9557 library_names_spec='$libname.dll.a'
9558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9559 postinstall_cmds='base_file=`basename \${file}`~
9560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9561 dldir=$destdir/`dirname \$dlpath`~
9562 test -d \$dldir || mkdir -p \$dldir~
9563 $install_prog $dir/$dlname \$dldir/$dlname~
9564 chmod a+x \$dldir/$dlname~
9565 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9566 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9569 dlpath=$dir/\$dldll~
9570 $RM \$dlpath'
9571 shlibpath_overrides_runpath=yes
9573 case $host_os in
9574 cygwin*)
9575 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9576 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9577 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9578 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9580 mingw* | cegcc*)
9581 # MinGW DLLs use traditional 'lib' prefix
9582 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9583 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9584 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9585 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9586 # It is most probably a Windows format PATH printed by
9587 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9588 # path with ; separators, and with drive letters. We can handle the
9589 # drive letters (cygwin fileutils understands them), so leave them,
9590 # especially as we might pass files found there to a mingw objdump,
9591 # which wouldn't understand a cygwinified path. Ahh.
9592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9593 else
9594 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9597 pw32*)
9598 # pw32 DLLs use 'pw' prefix rather than 'lib'
9599 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9601 esac
9605 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9607 esac
9608 dynamic_linker='Win32 ld.exe'
9609 # FIXME: first we should search . and the directory the executable is in
9610 shlibpath_var=PATH
9613 darwin* | rhapsody*)
9614 dynamic_linker="$host_os dyld"
9615 version_type=darwin
9616 need_lib_prefix=no
9617 need_version=no
9618 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9619 soname_spec='${libname}${release}${major}$shared_ext'
9620 shlibpath_overrides_runpath=yes
9621 shlibpath_var=DYLD_LIBRARY_PATH
9622 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9624 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9625 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9628 dgux*)
9629 version_type=linux
9630 need_lib_prefix=no
9631 need_version=no
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9633 soname_spec='${libname}${release}${shared_ext}$major'
9634 shlibpath_var=LD_LIBRARY_PATH
9637 freebsd1*)
9638 dynamic_linker=no
9641 freebsd* | dragonfly*)
9642 # DragonFly does not have aout. When/if they implement a new
9643 # versioning mechanism, adjust this.
9644 if test -x /usr/bin/objformat; then
9645 objformat=`/usr/bin/objformat`
9646 else
9647 case $host_os in
9648 freebsd[123]*) objformat=aout ;;
9649 *) objformat=elf ;;
9650 esac
9652 version_type=freebsd-$objformat
9653 case $version_type in
9654 freebsd-elf*)
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656 need_version=no
9657 need_lib_prefix=no
9659 freebsd-*)
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9661 need_version=yes
9663 esac
9664 shlibpath_var=LD_LIBRARY_PATH
9665 case $host_os in
9666 freebsd2*)
9667 shlibpath_overrides_runpath=yes
9669 freebsd3.[01]* | freebsdelf3.[01]*)
9670 shlibpath_overrides_runpath=yes
9671 hardcode_into_libs=yes
9673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9675 shlibpath_overrides_runpath=no
9676 hardcode_into_libs=yes
9678 *) # from 4.6 on, and DragonFly
9679 shlibpath_overrides_runpath=yes
9680 hardcode_into_libs=yes
9682 esac
9685 gnu*)
9686 version_type=linux
9687 need_lib_prefix=no
9688 need_version=no
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 shlibpath_var=LD_LIBRARY_PATH
9692 hardcode_into_libs=yes
9695 hpux9* | hpux10* | hpux11*)
9696 # Give a soname corresponding to the major version so that dld.sl refuses to
9697 # link against other versions.
9698 version_type=sunos
9699 need_lib_prefix=no
9700 need_version=no
9701 case $host_cpu in
9702 ia64*)
9703 shrext_cmds='.so'
9704 hardcode_into_libs=yes
9705 dynamic_linker="$host_os dld.so"
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 if test "X$HPUX_IA64_MODE" = X32; then
9711 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9712 else
9713 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9717 hppa*64*)
9718 shrext_cmds='.sl'
9719 hardcode_into_libs=yes
9720 dynamic_linker="$host_os dld.sl"
9721 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9729 shrext_cmds='.sl'
9730 dynamic_linker="$host_os dld.sl"
9731 shlibpath_var=SHLIB_PATH
9732 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9736 esac
9737 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9738 postinstall_cmds='chmod 555 $lib'
9741 interix[3-9]*)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9748 shlibpath_var=LD_LIBRARY_PATH
9749 shlibpath_overrides_runpath=no
9750 hardcode_into_libs=yes
9753 irix5* | irix6* | nonstopux*)
9754 case $host_os in
9755 nonstopux*) version_type=nonstopux ;;
9757 if test "$lt_cv_prog_gnu_ld" = yes; then
9758 version_type=linux
9759 else
9760 version_type=irix
9761 fi ;;
9762 esac
9763 need_lib_prefix=no
9764 need_version=no
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9767 case $host_os in
9768 irix5* | nonstopux*)
9769 libsuff= shlibsuff=
9772 case $LD in # libtool.m4 will add one of these switches to LD
9773 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9774 libsuff= shlibsuff= libmagic=32-bit;;
9775 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9776 libsuff=32 shlibsuff=N32 libmagic=N32;;
9777 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9778 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9779 *) libsuff= shlibsuff= libmagic=never-match;;
9780 esac
9782 esac
9783 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9784 shlibpath_overrides_runpath=no
9785 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9786 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9787 hardcode_into_libs=yes
9790 # No shared lib support for Linux oldld, aout, or coff.
9791 linux*oldld* | linux*aout* | linux*coff*)
9792 dynamic_linker=no
9795 # This must be Linux ELF.
9796 linux* | k*bsd*-gnu)
9797 version_type=linux
9798 need_lib_prefix=no
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 shlibpath_overrides_runpath=no
9805 # Some binutils ld are patched to set DT_RUNPATH
9806 save_LDFLAGS=$LDFLAGS
9807 save_libdir=$libdir
9808 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9809 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9818 main ()
9822 return 0;
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9832 $as_echo "$ac_try_echo") >&5
9833 (eval "$ac_link") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest$ac_exeext && {
9843 test "$cross_compiling" = yes ||
9844 $as_test_x conftest$ac_exeext
9845 }; then
9846 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9847 shlibpath_overrides_runpath=yes
9850 else
9851 $as_echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9857 rm -rf conftest.dSYM
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LDFLAGS=$save_LDFLAGS
9861 libdir=$save_libdir
9863 # This implies no fast_install, which is unacceptable.
9864 # Some rework will be needed to allow for fast_install
9865 # before this can be enabled.
9866 hardcode_into_libs=yes
9868 # Append ld.so.conf contents to the search path
9869 if test -f /etc/ld.so.conf; then
9870 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' ' '`
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9874 # We used to test for /lib/ld.so.1 and disable shared libraries on
9875 # powerpc, because MkLinux only supported shared libraries with the
9876 # GNU dynamic linker. Since this was broken with cross compilers,
9877 # most powerpc-linux boxes support dynamic linking these days and
9878 # people can always --disable-shared, the test was removed, and we
9879 # assume the GNU/Linux dynamic linker is in use.
9880 dynamic_linker='GNU/Linux ld.so'
9883 netbsd*)
9884 version_type=sunos
9885 need_lib_prefix=no
9886 need_version=no
9887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9890 dynamic_linker='NetBSD (a.out) ld.so'
9891 else
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893 soname_spec='${libname}${release}${shared_ext}$major'
9894 dynamic_linker='NetBSD ld.elf_so'
9896 shlibpath_var=LD_LIBRARY_PATH
9897 shlibpath_overrides_runpath=yes
9898 hardcode_into_libs=yes
9901 newsos6)
9902 version_type=linux
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 shlibpath_overrides_runpath=yes
9908 *nto* | *qnx*)
9909 version_type=qnx
9910 need_lib_prefix=no
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=no
9916 hardcode_into_libs=yes
9917 dynamic_linker='ldqnx.so'
9920 openbsd*)
9921 version_type=sunos
9922 sys_lib_dlsearch_path_spec="/usr/lib"
9923 need_lib_prefix=no
9924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9925 case $host_os in
9926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9927 *) need_version=no ;;
9928 esac
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9933 case $host_os in
9934 openbsd2.[89] | openbsd2.[89].*)
9935 shlibpath_overrides_runpath=no
9938 shlibpath_overrides_runpath=yes
9940 esac
9941 else
9942 shlibpath_overrides_runpath=yes
9946 os2*)
9947 libname_spec='$name'
9948 shrext_cmds=".dll"
9949 need_lib_prefix=no
9950 library_names_spec='$libname${shared_ext} $libname.a'
9951 dynamic_linker='OS/2 ld.exe'
9952 shlibpath_var=LIBPATH
9955 osf3* | osf4* | osf5*)
9956 version_type=osf
9957 need_lib_prefix=no
9958 need_version=no
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9966 rdos*)
9967 dynamic_linker=no
9970 solaris*)
9971 version_type=linux
9972 need_lib_prefix=no
9973 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9976 shlibpath_var=LD_LIBRARY_PATH
9977 shlibpath_overrides_runpath=yes
9978 hardcode_into_libs=yes
9979 # ldd complains unless libraries are executable
9980 postinstall_cmds='chmod +x $lib'
9983 sunos4*)
9984 version_type=sunos
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=yes
9989 if test "$with_gnu_ld" = yes; then
9990 need_lib_prefix=no
9992 need_version=yes
9995 sysv4 | sysv4.3*)
9996 version_type=linux
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 case $host_vendor in
10001 sni)
10002 shlibpath_overrides_runpath=no
10003 need_lib_prefix=no
10004 runpath_var=LD_RUN_PATH
10006 siemens)
10007 need_lib_prefix=no
10009 motorola)
10010 need_lib_prefix=no
10011 need_version=no
10012 shlibpath_overrides_runpath=no
10013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10015 esac
10018 sysv4*MP*)
10019 if test -d /usr/nec ;then
10020 version_type=linux
10021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10022 soname_spec='$libname${shared_ext}.$major'
10023 shlibpath_var=LD_LIBRARY_PATH
10027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10028 version_type=freebsd-elf
10029 need_lib_prefix=no
10030 need_version=no
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes
10035 hardcode_into_libs=yes
10036 if test "$with_gnu_ld" = yes; then
10037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10038 else
10039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10040 case $host_os in
10041 sco3.2v5*)
10042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10044 esac
10046 sys_lib_dlsearch_path_spec='/usr/lib'
10049 tpf*)
10050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10051 version_type=linux
10052 need_lib_prefix=no
10053 need_version=no
10054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 shlibpath_overrides_runpath=no
10057 hardcode_into_libs=yes
10060 uts4*)
10061 version_type=linux
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063 soname_spec='${libname}${release}${shared_ext}$major'
10064 shlibpath_var=LD_LIBRARY_PATH
10068 dynamic_linker=no
10070 esac
10071 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10072 $as_echo "$dynamic_linker" >&6; }
10073 test "$dynamic_linker" = no && can_build_shared=no
10075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10076 if test "$GCC" = yes; then
10077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10081 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10173 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10174 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10175 hardcode_action=
10176 if test -n "$hardcode_libdir_flag_spec" ||
10177 test -n "$runpath_var" ||
10178 test "X$hardcode_automatic" = "Xyes" ; then
10180 # We can hardcode non-existent directories.
10181 if test "$hardcode_direct" != no &&
10182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10183 # have to relink, otherwise we might link with an installed library
10184 # when we should be linking with a yet-to-be-installed one
10185 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10186 test "$hardcode_minus_L" != no; then
10187 # Linking always hardcodes the temporary library directory.
10188 hardcode_action=relink
10189 else
10190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10191 hardcode_action=immediate
10193 else
10194 # We cannot hardcode anything, or else we can only hardcode existing
10195 # directories.
10196 hardcode_action=unsupported
10198 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10199 $as_echo "$hardcode_action" >&6; }
10201 if test "$hardcode_action" = relink ||
10202 test "$inherit_rpath" = yes; then
10203 # Fast installation is not supported
10204 enable_fast_install=no
10205 elif test "$shlibpath_overrides_runpath" = yes ||
10206 test "$enable_shared" = no; then
10207 # Fast installation is not necessary
10208 enable_fast_install=needless
10216 if test "x$enable_dlopen" != xyes; then
10217 enable_dlopen=unknown
10218 enable_dlopen_self=unknown
10219 enable_dlopen_self_static=unknown
10220 else
10221 lt_cv_dlopen=no
10222 lt_cv_dlopen_libs=
10224 case $host_os in
10225 beos*)
10226 lt_cv_dlopen="load_add_on"
10227 lt_cv_dlopen_libs=
10228 lt_cv_dlopen_self=yes
10231 mingw* | pw32* | cegcc*)
10232 lt_cv_dlopen="LoadLibrary"
10233 lt_cv_dlopen_libs=
10236 cygwin*)
10237 lt_cv_dlopen="dlopen"
10238 lt_cv_dlopen_libs=
10241 darwin*)
10242 # if libdl is installed we need to link against it
10243 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10244 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10246 $as_echo_n "(cached) " >&6
10247 else
10248 ac_check_lib_save_LIBS=$LIBS
10249 LIBS="-ldl $LIBS"
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10257 /* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char dlopen ();
10265 main ()
10267 return dlopen ();
10269 return 0;
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10277 esac
10278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10279 $as_echo "$ac_try_echo") >&5
10280 (eval "$ac_link") 2>conftest.er1
10281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } && {
10287 test -z "$ac_c_werror_flag" ||
10288 test ! -s conftest.err
10289 } && test -s conftest$ac_exeext && {
10290 test "$cross_compiling" = yes ||
10291 $as_test_x conftest$ac_exeext
10292 }; then
10293 ac_cv_lib_dl_dlopen=yes
10294 else
10295 $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_cv_lib_dl_dlopen=no
10301 rm -rf conftest.dSYM
10302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303 conftest$ac_exeext conftest.$ac_ext
10304 LIBS=$ac_check_lib_save_LIBS
10306 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10308 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10310 else
10312 lt_cv_dlopen="dyld"
10313 lt_cv_dlopen_libs=
10314 lt_cv_dlopen_self=yes
10321 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10322 $as_echo_n "checking for shl_load... " >&6; }
10323 if test "${ac_cv_func_shl_load+set}" = set; then
10324 $as_echo_n "(cached) " >&6
10325 else
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define shl_load innocuous_shl_load
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char shl_load (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10347 #undef shl_load
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char shl_load ();
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub_shl_load || defined __stub___shl_load
10360 choke me
10361 #endif
10364 main ()
10366 return shl_load ();
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10378 $as_echo "$ac_try_echo") >&5
10379 (eval "$ac_link") 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest$ac_exeext && {
10389 test "$cross_compiling" = yes ||
10390 $as_test_x conftest$ac_exeext
10391 }; then
10392 ac_cv_func_shl_load=yes
10393 else
10394 $as_echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_func_shl_load=no
10400 rm -rf conftest.dSYM
10401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10402 conftest$ac_exeext conftest.$ac_ext
10404 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10405 $as_echo "$ac_cv_func_shl_load" >&6; }
10406 if test "x$ac_cv_func_shl_load" = x""yes; then
10407 lt_cv_dlopen="shl_load"
10408 else
10409 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10410 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10411 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10412 $as_echo_n "(cached) " >&6
10413 else
10414 ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldld $LIBS"
10416 cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char shl_load ();
10431 main ()
10433 return shl_load ();
10435 return 0;
10437 _ACEOF
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (ac_try="$ac_link"
10440 case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443 esac
10444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10445 $as_echo "$ac_try_echo") >&5
10446 (eval "$ac_link") 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest$ac_exeext && {
10456 test "$cross_compiling" = yes ||
10457 $as_test_x conftest$ac_exeext
10458 }; then
10459 ac_cv_lib_dld_shl_load=yes
10460 else
10461 $as_echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_cv_lib_dld_shl_load=no
10467 rm -rf conftest.dSYM
10468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10469 conftest$ac_exeext conftest.$ac_ext
10470 LIBS=$ac_check_lib_save_LIBS
10472 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10473 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10474 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10476 else
10477 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10478 $as_echo_n "checking for dlopen... " >&6; }
10479 if test "${ac_cv_func_dlopen+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10481 else
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h. */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10490 #define dlopen innocuous_dlopen
10492 /* System header to define __stub macros and hopefully few prototypes,
10493 which can conflict with char dlopen (); below.
10494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10495 <limits.h> exists even on freestanding compilers. */
10497 #ifdef __STDC__
10498 # include <limits.h>
10499 #else
10500 # include <assert.h>
10501 #endif
10503 #undef dlopen
10505 /* Override any GCC internal prototype to avoid an error.
10506 Use char because int might match the return type of a GCC
10507 builtin and then its argument prototype would still apply. */
10508 #ifdef __cplusplus
10509 extern "C"
10510 #endif
10511 char dlopen ();
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined __stub_dlopen || defined __stub___dlopen
10516 choke me
10517 #endif
10520 main ()
10522 return dlopen ();
10524 return 0;
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532 esac
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535 (eval "$ac_link") 2>conftest.er1
10536 ac_status=$?
10537 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1
10539 cat conftest.err >&5
10540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && {
10542 test -z "$ac_c_werror_flag" ||
10543 test ! -s conftest.err
10544 } && test -s conftest$ac_exeext && {
10545 test "$cross_compiling" = yes ||
10546 $as_test_x conftest$ac_exeext
10547 }; then
10548 ac_cv_func_dlopen=yes
10549 else
10550 $as_echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 ac_cv_func_dlopen=no
10556 rm -rf conftest.dSYM
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10560 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10561 $as_echo "$ac_cv_func_dlopen" >&6; }
10562 if test "x$ac_cv_func_dlopen" = x""yes; then
10563 lt_cv_dlopen="dlopen"
10564 else
10565 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10566 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10569 else
10570 ac_check_lib_save_LIBS=$LIBS
10571 LIBS="-ldl $LIBS"
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char dlopen ();
10587 main ()
10589 return dlopen ();
10591 return 0;
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (ac_try="$ac_link"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599 esac
10600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601 $as_echo "$ac_try_echo") >&5
10602 (eval "$ac_link") 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest$ac_exeext && {
10612 test "$cross_compiling" = yes ||
10613 $as_test_x conftest$ac_exeext
10614 }; then
10615 ac_cv_lib_dl_dlopen=yes
10616 else
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 ac_cv_lib_dl_dlopen=no
10623 rm -rf conftest.dSYM
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10629 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10630 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10632 else
10633 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10634 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10635 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10636 $as_echo_n "(cached) " >&6
10637 else
10638 ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-lsvld $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10647 /* Override any GCC internal prototype to avoid an error.
10648 Use char because int might match the return type of a GCC
10649 builtin and then its argument prototype would still apply. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char dlopen ();
10655 main ()
10657 return dlopen ();
10659 return 0;
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667 esac
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670 (eval "$ac_link") 2>conftest.er1
10671 ac_status=$?
10672 grep -v '^ *+' conftest.er1 >conftest.err
10673 rm -f conftest.er1
10674 cat conftest.err >&5
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && {
10677 test -z "$ac_c_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest$ac_exeext && {
10680 test "$cross_compiling" = yes ||
10681 $as_test_x conftest$ac_exeext
10682 }; then
10683 ac_cv_lib_svld_dlopen=yes
10684 else
10685 $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 ac_cv_lib_svld_dlopen=no
10691 rm -rf conftest.dSYM
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10697 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10698 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10700 else
10701 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10702 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10703 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10704 $as_echo_n "(cached) " >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-ldld $LIBS"
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char dld_link ();
10723 main ()
10725 return dld_link ();
10727 return 0;
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (ac_try="$ac_link"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10737 $as_echo "$ac_try_echo") >&5
10738 (eval "$ac_link") 2>conftest.er1
10739 ac_status=$?
10740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
10743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest$ac_exeext && {
10748 test "$cross_compiling" = yes ||
10749 $as_test_x conftest$ac_exeext
10750 }; then
10751 ac_cv_lib_dld_dld_link=yes
10752 else
10753 $as_echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_cv_lib_dld_dld_link=no
10759 rm -rf conftest.dSYM
10760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10761 conftest$ac_exeext conftest.$ac_ext
10762 LIBS=$ac_check_lib_save_LIBS
10764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10765 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10766 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10786 esac
10788 if test "x$lt_cv_dlopen" != xno; then
10789 enable_dlopen=yes
10790 else
10791 enable_dlopen=no
10794 case $lt_cv_dlopen in
10795 dlopen)
10796 save_CPPFLAGS="$CPPFLAGS"
10797 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10799 save_LDFLAGS="$LDFLAGS"
10800 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10802 save_LIBS="$LIBS"
10803 LIBS="$lt_cv_dlopen_libs $LIBS"
10805 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10806 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10807 if test "${lt_cv_dlopen_self+set}" = set; then
10808 $as_echo_n "(cached) " >&6
10809 else
10810 if test "$cross_compiling" = yes; then :
10811 lt_cv_dlopen_self=cross
10812 else
10813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10814 lt_status=$lt_dlunknown
10815 cat > conftest.$ac_ext <<_LT_EOF
10816 #line 10816 "configure"
10817 #include "confdefs.h"
10819 #if HAVE_DLFCN_H
10820 #include <dlfcn.h>
10821 #endif
10823 #include <stdio.h>
10825 #ifdef RTLD_GLOBAL
10826 # define LT_DLGLOBAL RTLD_GLOBAL
10827 #else
10828 # ifdef DL_GLOBAL
10829 # define LT_DLGLOBAL DL_GLOBAL
10830 # else
10831 # define LT_DLGLOBAL 0
10832 # endif
10833 #endif
10835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10836 find out it does not work in some platform. */
10837 #ifndef LT_DLLAZY_OR_NOW
10838 # ifdef RTLD_LAZY
10839 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10840 # else
10841 # ifdef DL_LAZY
10842 # define LT_DLLAZY_OR_NOW DL_LAZY
10843 # else
10844 # ifdef RTLD_NOW
10845 # define LT_DLLAZY_OR_NOW RTLD_NOW
10846 # else
10847 # ifdef DL_NOW
10848 # define LT_DLLAZY_OR_NOW DL_NOW
10849 # else
10850 # define LT_DLLAZY_OR_NOW 0
10851 # endif
10852 # endif
10853 # endif
10854 # endif
10855 #endif
10857 void fnord() { int i=42;}
10858 int main ()
10860 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10861 int status = $lt_dlunknown;
10863 if (self)
10865 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10866 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10867 /* dlclose (self); */
10869 else
10870 puts (dlerror ());
10872 return status;
10874 _LT_EOF
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>&5
10877 ac_status=$?
10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10880 (./conftest; exit; ) >&5 2>/dev/null
10881 lt_status=$?
10882 case x$lt_status in
10883 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10884 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10885 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10886 esac
10887 else :
10888 # compilation failed
10889 lt_cv_dlopen_self=no
10892 rm -fr conftest*
10896 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10897 $as_echo "$lt_cv_dlopen_self" >&6; }
10899 if test "x$lt_cv_dlopen_self" = xyes; then
10900 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10901 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10902 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10903 if test "${lt_cv_dlopen_self_static+set}" = set; then
10904 $as_echo_n "(cached) " >&6
10905 else
10906 if test "$cross_compiling" = yes; then :
10907 lt_cv_dlopen_self_static=cross
10908 else
10909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10910 lt_status=$lt_dlunknown
10911 cat > conftest.$ac_ext <<_LT_EOF
10912 #line 10912 "configure"
10913 #include "confdefs.h"
10915 #if HAVE_DLFCN_H
10916 #include <dlfcn.h>
10917 #endif
10919 #include <stdio.h>
10921 #ifdef RTLD_GLOBAL
10922 # define LT_DLGLOBAL RTLD_GLOBAL
10923 #else
10924 # ifdef DL_GLOBAL
10925 # define LT_DLGLOBAL DL_GLOBAL
10926 # else
10927 # define LT_DLGLOBAL 0
10928 # endif
10929 #endif
10931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10932 find out it does not work in some platform. */
10933 #ifndef LT_DLLAZY_OR_NOW
10934 # ifdef RTLD_LAZY
10935 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10936 # else
10937 # ifdef DL_LAZY
10938 # define LT_DLLAZY_OR_NOW DL_LAZY
10939 # else
10940 # ifdef RTLD_NOW
10941 # define LT_DLLAZY_OR_NOW RTLD_NOW
10942 # else
10943 # ifdef DL_NOW
10944 # define LT_DLLAZY_OR_NOW DL_NOW
10945 # else
10946 # define LT_DLLAZY_OR_NOW 0
10947 # endif
10948 # endif
10949 # endif
10950 # endif
10951 #endif
10953 void fnord() { int i=42;}
10954 int main ()
10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10957 int status = $lt_dlunknown;
10959 if (self)
10961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10962 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10963 /* dlclose (self); */
10965 else
10966 puts (dlerror ());
10968 return status;
10970 _LT_EOF
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10973 ac_status=$?
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10976 (./conftest; exit; ) >&5 2>/dev/null
10977 lt_status=$?
10978 case x$lt_status in
10979 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10980 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10981 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10982 esac
10983 else :
10984 # compilation failed
10985 lt_cv_dlopen_self_static=no
10988 rm -fr conftest*
10992 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10993 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10996 CPPFLAGS="$save_CPPFLAGS"
10997 LDFLAGS="$save_LDFLAGS"
10998 LIBS="$save_LIBS"
11000 esac
11002 case $lt_cv_dlopen_self in
11003 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11004 *) enable_dlopen_self=unknown ;;
11005 esac
11007 case $lt_cv_dlopen_self_static in
11008 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11009 *) enable_dlopen_self_static=unknown ;;
11010 esac
11029 striplib=
11030 old_striplib=
11031 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11032 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11033 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11036 { $as_echo "$as_me:$LINENO: result: yes" >&5
11037 $as_echo "yes" >&6; }
11038 else
11039 # FIXME - insert some real tests, host_os isn't really good enough
11040 case $host_os in
11041 darwin*)
11042 if test -n "$STRIP" ; then
11043 striplib="$STRIP -x"
11044 old_striplib="$STRIP -S"
11045 { $as_echo "$as_me:$LINENO: result: yes" >&5
11046 $as_echo "yes" >&6; }
11047 else
11048 { $as_echo "$as_me:$LINENO: result: no" >&5
11049 $as_echo "no" >&6; }
11053 { $as_echo "$as_me:$LINENO: result: no" >&5
11054 $as_echo "no" >&6; }
11056 esac
11070 # Report which library types will actually be built
11071 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11072 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11073 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11074 $as_echo "$can_build_shared" >&6; }
11076 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11077 $as_echo_n "checking whether to build shared libraries... " >&6; }
11078 test "$can_build_shared" = "no" && enable_shared=no
11080 # On AIX, shared libraries and static libraries use the same namespace, and
11081 # are all built from PIC.
11082 case $host_os in
11083 aix3*)
11084 test "$enable_shared" = yes && enable_static=no
11085 if test -n "$RANLIB"; then
11086 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11087 postinstall_cmds='$RANLIB $lib'
11091 aix[4-9]*)
11092 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11093 test "$enable_shared" = yes && enable_static=no
11096 esac
11097 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11098 $as_echo "$enable_shared" >&6; }
11100 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11101 $as_echo_n "checking whether to build static libraries... " >&6; }
11102 # Make sure either enable_shared or enable_static is yes.
11103 test "$enable_shared" = yes || enable_static=yes
11104 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11105 $as_echo "$enable_static" >&6; }
11111 ac_ext=c
11112 ac_cpp='$CPP $CPPFLAGS'
11113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11117 CC="$lt_save_CC"
11131 ac_config_commands="$ac_config_commands libtool"
11136 # Only expand once:
11140 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
11141 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
11142 LT_REVISION=$SDL_INTERFACE_AGE
11143 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
11151 ac_aux_dir=
11152 for ac_dir in build-scripts "$srcdir"/build-scripts; do
11153 if test -f "$ac_dir/install-sh"; then
11154 ac_aux_dir=$ac_dir
11155 ac_install_sh="$ac_aux_dir/install-sh -c"
11156 break
11157 elif test -f "$ac_dir/install.sh"; then
11158 ac_aux_dir=$ac_dir
11159 ac_install_sh="$ac_aux_dir/install.sh -c"
11160 break
11161 elif test -f "$ac_dir/shtool"; then
11162 ac_aux_dir=$ac_dir
11163 ac_install_sh="$ac_aux_dir/shtool install -c"
11164 break
11166 done
11167 if test -z "$ac_aux_dir"; then
11168 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&5
11169 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&2;}
11170 { (exit 1); exit 1; }; }
11173 # These three variables are undocumented and unsupported,
11174 # and are intended to be withdrawn in a future Autoconf release.
11175 # They can cause serious problems if a builder's source tree is in a directory
11176 # whose full name contains unusual characters.
11177 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
11178 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
11179 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
11183 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11184 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11185 if test "${ac_cv_c_bigendian+set}" = set; then
11186 $as_echo_n "(cached) " >&6
11187 else
11188 ac_cv_c_bigendian=unknown
11189 # See if we're dealing with a universal compiler.
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 #ifndef __APPLE_CC__
11197 not a universal capable compiler
11198 #endif
11199 typedef int dummy;
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207 esac
11208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11209 $as_echo "$ac_try_echo") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11221 # Check for potential -arch flags. It is not universal unless
11222 # there are some -arch flags. Note that *ppc* also matches
11223 # ppc64. This check is also rather less than ideal.
11224 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
11225 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
11226 esac
11227 else
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 if test $ac_cv_c_bigendian = unknown; then
11236 # See if sys/param.h defines the BYTE_ORDER macro.
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h. */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 #include <sys/types.h>
11244 #include <sys/param.h>
11247 main ()
11249 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11250 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11251 && LITTLE_ENDIAN)
11252 bogus endian macros
11253 #endif
11256 return 0;
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (ac_try="$ac_compile"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11266 $as_echo "$ac_try_echo") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest.$ac_objext; then
11277 # It does; now see whether it defined to BIG_ENDIAN or not.
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 #include <sys/types.h>
11285 #include <sys/param.h>
11288 main ()
11290 #if BYTE_ORDER != BIG_ENDIAN
11291 not big endian
11292 #endif
11295 return 0;
11297 _ACEOF
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303 esac
11304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305 $as_echo "$ac_try_echo") >&5
11306 (eval "$ac_compile") 2>conftest.er1
11307 ac_status=$?
11308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest.$ac_objext; then
11316 ac_cv_c_bigendian=yes
11317 else
11318 $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11321 ac_cv_c_bigendian=no
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 else
11326 $as_echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 if test $ac_cv_c_bigendian = unknown; then
11335 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <limits.h>
11345 main ()
11347 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11348 bogus endian macros
11349 #endif
11352 return 0;
11354 _ACEOF
11355 rm -f conftest.$ac_objext
11356 if { (ac_try="$ac_compile"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11362 $as_echo "$ac_try_echo") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 # It does; now see whether it defined to _BIG_ENDIAN or not.
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 #include <limits.h>
11383 main ()
11385 #ifndef _BIG_ENDIAN
11386 not big endian
11387 #endif
11390 return 0;
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (ac_try="$ac_compile"
11395 case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398 esac
11399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11400 $as_echo "$ac_try_echo") >&5
11401 (eval "$ac_compile") 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } && {
11408 test -z "$ac_c_werror_flag" ||
11409 test ! -s conftest.err
11410 } && test -s conftest.$ac_objext; then
11411 ac_cv_c_bigendian=yes
11412 else
11413 $as_echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_cv_c_bigendian=no
11419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11420 else
11421 $as_echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.$ac_ext >&5
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 if test $ac_cv_c_bigendian = unknown; then
11430 # Compile a test program.
11431 if test "$cross_compiling" = yes; then
11432 # Try to guess by grepping values from an object file.
11433 cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h. */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 short int ascii_mm[] =
11440 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11441 short int ascii_ii[] =
11442 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11443 int use_ascii (int i) {
11444 return ascii_mm[i] + ascii_ii[i];
11446 short int ebcdic_ii[] =
11447 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11448 short int ebcdic_mm[] =
11449 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11450 int use_ebcdic (int i) {
11451 return ebcdic_mm[i] + ebcdic_ii[i];
11453 extern int foo;
11456 main ()
11458 return use_ascii (foo) == use_ebcdic (foo);
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (ac_try="$ac_compile"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471 (eval "$ac_compile") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest.$ac_objext; then
11481 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11482 ac_cv_c_bigendian=yes
11484 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11485 if test "$ac_cv_c_bigendian" = unknown; then
11486 ac_cv_c_bigendian=no
11487 else
11488 # finding both strings is unlikely to happen, but who knows?
11489 ac_cv_c_bigendian=unknown
11492 else
11493 $as_echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 else
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h. */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11509 main ()
11512 /* Are we little or big endian? From Harbison&Steele. */
11513 union
11515 long int l;
11516 char c[sizeof (long int)];
11517 } u;
11518 u.l = 1;
11519 return u.c[sizeof (long int) - 1] == 1;
11522 return 0;
11524 _ACEOF
11525 rm -f conftest$ac_exeext
11526 if { (ac_try="$ac_link"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532 $as_echo "$ac_try_echo") >&5
11533 (eval "$ac_link") 2>&5
11534 ac_status=$?
11535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11537 { (case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540 esac
11541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11542 $as_echo "$ac_try_echo") >&5
11543 (eval "$ac_try") 2>&5
11544 ac_status=$?
11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_c_bigendian=no
11548 else
11549 $as_echo "$as_me: program exited with status $ac_status" >&5
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ( exit $ac_status )
11554 ac_cv_c_bigendian=yes
11556 rm -rf conftest.dSYM
11557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11563 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11564 $as_echo "$ac_cv_c_bigendian" >&6; }
11565 case $ac_cv_c_bigendian in #(
11566 yes)
11567 cat >>confdefs.h <<\_ACEOF
11568 #define WORDS_BIGENDIAN 1
11569 _ACEOF
11570 ;; #(
11572 ;; #(
11573 universal)
11575 cat >>confdefs.h <<\_ACEOF
11576 #define AC_APPLE_UNIVERSAL_BUILD 1
11577 _ACEOF
11579 ;; #(
11581 { { $as_echo "$as_me:$LINENO: error: unknown endianness
11582 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11583 $as_echo "$as_me: error: unknown endianness
11584 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11585 { (exit 1); exit 1; }; } ;;
11586 esac
11588 if test x$ac_cv_c_bigendian = xyes; then
11589 cat >>confdefs.h <<\_ACEOF
11590 #define SDL_BYTEORDER 4321
11591 _ACEOF
11593 else
11594 cat >>confdefs.h <<\_ACEOF
11595 #define SDL_BYTEORDER 1234
11596 _ACEOF
11601 ac_ext=c
11602 ac_cpp='$CPP $CPPFLAGS'
11603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606 if test -n "$ac_tool_prefix"; then
11607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 $as_echo_n "checking for $ac_word... " >&6; }
11611 if test "${ac_cv_prog_CC+set}" = set; then
11612 $as_echo_n "(cached) " >&6
11613 else
11614 if test -n "$CC"; then
11615 ac_cv_prog_CC="$CC" # Let the user override the test.
11616 else
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11634 CC=$ac_cv_prog_CC
11635 if test -n "$CC"; then
11636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11637 $as_echo "$CC" >&6; }
11638 else
11639 { $as_echo "$as_me:$LINENO: result: no" >&5
11640 $as_echo "no" >&6; }
11645 if test -z "$ac_cv_prog_CC"; then
11646 ac_ct_CC=$CC
11647 # Extract the first word of "gcc", so it can be a program name with args.
11648 set dummy gcc; ac_word=$2
11649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test -n "$ac_ct_CC"; then
11655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11656 else
11657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11664 ac_cv_prog_ac_ct_CC="gcc"
11665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 break 2
11668 done
11669 done
11670 IFS=$as_save_IFS
11674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11675 if test -n "$ac_ct_CC"; then
11676 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11677 $as_echo "$ac_ct_CC" >&6; }
11678 else
11679 { $as_echo "$as_me:$LINENO: result: no" >&5
11680 $as_echo "no" >&6; }
11683 if test "x$ac_ct_CC" = x; then
11684 CC=""
11685 else
11686 case $cross_compiling:$ac_tool_warned in
11687 yes:)
11688 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11690 ac_tool_warned=yes ;;
11691 esac
11692 CC=$ac_ct_CC
11694 else
11695 CC="$ac_cv_prog_CC"
11698 if test -z "$CC"; then
11699 if test -n "$ac_tool_prefix"; then
11700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11701 set dummy ${ac_tool_prefix}cc; ac_word=$2
11702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11703 $as_echo_n "checking for $ac_word... " >&6; }
11704 if test "${ac_cv_prog_CC+set}" = set; then
11705 $as_echo_n "(cached) " >&6
11706 else
11707 if test -n "$CC"; then
11708 ac_cv_prog_CC="$CC" # Let the user override the test.
11709 else
11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711 for as_dir in $PATH
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11717 ac_cv_prog_CC="${ac_tool_prefix}cc"
11718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 break 2
11721 done
11722 done
11723 IFS=$as_save_IFS
11727 CC=$ac_cv_prog_CC
11728 if test -n "$CC"; then
11729 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11730 $as_echo "$CC" >&6; }
11731 else
11732 { $as_echo "$as_me:$LINENO: result: no" >&5
11733 $as_echo "no" >&6; }
11739 if test -z "$CC"; then
11740 # Extract the first word of "cc", so it can be a program name with args.
11741 set dummy cc; ac_word=$2
11742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11743 $as_echo_n "checking for $ac_word... " >&6; }
11744 if test "${ac_cv_prog_CC+set}" = set; then
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test -n "$CC"; then
11748 ac_cv_prog_CC="$CC" # Let the user override the test.
11749 else
11750 ac_prog_rejected=no
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11759 ac_prog_rejected=yes
11760 continue
11762 ac_cv_prog_CC="cc"
11763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11770 if test $ac_prog_rejected = yes; then
11771 # We found a bogon in the path, so make sure we never use it.
11772 set dummy $ac_cv_prog_CC
11773 shift
11774 if test $# != 0; then
11775 # We chose a different compiler from the bogus one.
11776 # However, it has the same basename, so the bogon will be chosen
11777 # first if we set CC to just the basename; use the full file name.
11778 shift
11779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11784 CC=$ac_cv_prog_CC
11785 if test -n "$CC"; then
11786 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11787 $as_echo "$CC" >&6; }
11788 else
11789 { $as_echo "$as_me:$LINENO: result: no" >&5
11790 $as_echo "no" >&6; }
11795 if test -z "$CC"; then
11796 if test -n "$ac_tool_prefix"; then
11797 for ac_prog in cl.exe
11799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11802 $as_echo_n "checking for $ac_word... " >&6; }
11803 if test "${ac_cv_prog_CC+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11805 else
11806 if test -n "$CC"; then
11807 ac_cv_prog_CC="$CC" # Let the user override the test.
11808 else
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810 for as_dir in $PATH
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
11815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11820 done
11821 done
11822 IFS=$as_save_IFS
11826 CC=$ac_cv_prog_CC
11827 if test -n "$CC"; then
11828 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11829 $as_echo "$CC" >&6; }
11830 else
11831 { $as_echo "$as_me:$LINENO: result: no" >&5
11832 $as_echo "no" >&6; }
11836 test -n "$CC" && break
11837 done
11839 if test -z "$CC"; then
11840 ac_ct_CC=$CC
11841 for ac_prog in cl.exe
11843 # Extract the first word of "$ac_prog", so it can be a program name with args.
11844 set dummy $ac_prog; ac_word=$2
11845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11846 $as_echo_n "checking for $ac_word... " >&6; }
11847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11848 $as_echo_n "(cached) " >&6
11849 else
11850 if test -n "$ac_ct_CC"; then
11851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11852 else
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_prog_ac_ct_CC="$ac_prog"
11861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11864 done
11865 done
11866 IFS=$as_save_IFS
11870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11871 if test -n "$ac_ct_CC"; then
11872 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11873 $as_echo "$ac_ct_CC" >&6; }
11874 else
11875 { $as_echo "$as_me:$LINENO: result: no" >&5
11876 $as_echo "no" >&6; }
11880 test -n "$ac_ct_CC" && break
11881 done
11883 if test "x$ac_ct_CC" = x; then
11884 CC=""
11885 else
11886 case $cross_compiling:$ac_tool_warned in
11887 yes:)
11888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11890 ac_tool_warned=yes ;;
11891 esac
11892 CC=$ac_ct_CC
11899 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11902 See \`config.log' for more details." >&5
11903 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11904 See \`config.log' for more details." >&2;}
11905 { (exit 1); exit 1; }; }; }
11907 # Provide some information about the compiler.
11908 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11909 set X $ac_compile
11910 ac_compiler=$2
11911 { (ac_try="$ac_compiler --version >&5"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915 esac
11916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11917 $as_echo "$ac_try_echo") >&5
11918 (eval "$ac_compiler --version >&5") 2>&5
11919 ac_status=$?
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }
11922 { (ac_try="$ac_compiler -v >&5"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926 esac
11927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11928 $as_echo "$ac_try_echo") >&5
11929 (eval "$ac_compiler -v >&5") 2>&5
11930 ac_status=$?
11931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }
11933 { (ac_try="$ac_compiler -V >&5"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939 $as_echo "$ac_try_echo") >&5
11940 (eval "$ac_compiler -V >&5") 2>&5
11941 ac_status=$?
11942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }
11945 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11947 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11948 $as_echo_n "(cached) " >&6
11949 else
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11958 main ()
11960 #ifndef __GNUC__
11961 choke me
11962 #endif
11965 return 0;
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (ac_try="$ac_compile"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11975 $as_echo "$ac_try_echo") >&5
11976 (eval "$ac_compile") 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } && {
11983 test -z "$ac_c_werror_flag" ||
11984 test ! -s conftest.err
11985 } && test -s conftest.$ac_objext; then
11986 ac_compiler_gnu=yes
11987 else
11988 $as_echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_compiler_gnu=no
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11998 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11999 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12000 if test $ac_compiler_gnu = yes; then
12001 GCC=yes
12002 else
12003 GCC=
12005 ac_test_CFLAGS=${CFLAGS+set}
12006 ac_save_CFLAGS=$CFLAGS
12007 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12008 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12009 if test "${ac_cv_prog_cc_g+set}" = set; then
12010 $as_echo_n "(cached) " >&6
12011 else
12012 ac_save_c_werror_flag=$ac_c_werror_flag
12013 ac_c_werror_flag=yes
12014 ac_cv_prog_cc_g=no
12015 CFLAGS="-g"
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12024 main ()
12028 return 0;
12030 _ACEOF
12031 rm -f conftest.$ac_objext
12032 if { (ac_try="$ac_compile"
12033 case "(($ac_try" in
12034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12036 esac
12037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12038 $as_echo "$ac_try_echo") >&5
12039 (eval "$ac_compile") 2>conftest.er1
12040 ac_status=$?
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
12044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } && {
12046 test -z "$ac_c_werror_flag" ||
12047 test ! -s conftest.err
12048 } && test -s conftest.$ac_objext; then
12049 ac_cv_prog_cc_g=yes
12050 else
12051 $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 CFLAGS=""
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h. */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */
12063 main ()
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12077 $as_echo "$ac_try_echo") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
12089 else
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_c_werror_flag=$ac_save_c_werror_flag
12094 CFLAGS="-g"
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12103 main ()
12107 return 0;
12109 _ACEOF
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115 esac
12116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12117 $as_echo "$ac_try_echo") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 ac_cv_prog_cc_g=yes
12129 else
12130 $as_echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 ac_c_werror_flag=$ac_save_c_werror_flag
12145 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12146 $as_echo "$ac_cv_prog_cc_g" >&6; }
12147 if test "$ac_test_CFLAGS" = set; then
12148 CFLAGS=$ac_save_CFLAGS
12149 elif test $ac_cv_prog_cc_g = yes; then
12150 if test "$GCC" = yes; then
12151 CFLAGS="-g -O2"
12152 else
12153 CFLAGS="-g"
12155 else
12156 if test "$GCC" = yes; then
12157 CFLAGS="-O2"
12158 else
12159 CFLAGS=
12162 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12164 if test "${ac_cv_prog_cc_c89+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12166 else
12167 ac_cv_prog_cc_c89=no
12168 ac_save_CC=$CC
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <stdarg.h>
12176 #include <stdio.h>
12177 #include <sys/types.h>
12178 #include <sys/stat.h>
12179 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12180 struct buf { int x; };
12181 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12182 static char *e (p, i)
12183 char **p;
12184 int i;
12186 return p[i];
12188 static char *f (char * (*g) (char **, int), char **p, ...)
12190 char *s;
12191 va_list v;
12192 va_start (v,p);
12193 s = g (p, va_arg (v,int));
12194 va_end (v);
12195 return s;
12198 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12199 function prototypes and stuff, but not '\xHH' hex character constants.
12200 These don't provoke an error unfortunately, instead are silently treated
12201 as 'x'. The following induces an error, until -std is added to get
12202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12203 array size at least. It's necessary to write '\x00'==0 to get something
12204 that's true only with -std. */
12205 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12207 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12208 inside strings and character constants. */
12209 #define FOO(x) 'x'
12210 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12212 int test (int i, double x);
12213 struct s1 {int (*f) (int a);};
12214 struct s2 {int (*f) (double a);};
12215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12216 int argc;
12217 char **argv;
12219 main ()
12221 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12223 return 0;
12225 _ACEOF
12226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12229 CC="$ac_save_CC $ac_arg"
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12237 $as_echo "$ac_try_echo") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_cv_prog_cc_c89=$ac_arg
12249 else
12250 $as_echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12256 rm -f core conftest.err conftest.$ac_objext
12257 test "x$ac_cv_prog_cc_c89" != "xno" && break
12258 done
12259 rm -f conftest.$ac_ext
12260 CC=$ac_save_CC
12263 # AC_CACHE_VAL
12264 case "x$ac_cv_prog_cc_c89" in
12266 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12267 $as_echo "none needed" >&6; } ;;
12268 xno)
12269 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12270 $as_echo "unsupported" >&6; } ;;
12272 CC="$CC $ac_cv_prog_cc_c89"
12273 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12275 esac
12278 ac_ext=c
12279 ac_cpp='$CPP $CPPFLAGS'
12280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12284 ac_ext=cpp
12285 ac_cpp='$CXXCPP $CPPFLAGS'
12286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12289 if test -z "$CXX"; then
12290 if test -n "$CCC"; then
12291 CXX=$CCC
12292 else
12293 if test -n "$ac_tool_prefix"; then
12294 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12299 $as_echo_n "checking for $ac_word... " >&6; }
12300 if test "${ac_cv_prog_CXX+set}" = set; then
12301 $as_echo_n "(cached) " >&6
12302 else
12303 if test -n "$CXX"; then
12304 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12305 else
12306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12309 IFS=$as_save_IFS
12310 test -z "$as_dir" && as_dir=.
12311 for ac_exec_ext in '' $ac_executable_extensions; do
12312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 break 2
12317 done
12318 done
12319 IFS=$as_save_IFS
12323 CXX=$ac_cv_prog_CXX
12324 if test -n "$CXX"; then
12325 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12326 $as_echo "$CXX" >&6; }
12327 else
12328 { $as_echo "$as_me:$LINENO: result: no" >&5
12329 $as_echo "no" >&6; }
12333 test -n "$CXX" && break
12334 done
12336 if test -z "$CXX"; then
12337 ac_ct_CXX=$CXX
12338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12340 # Extract the first word of "$ac_prog", so it can be a program name with args.
12341 set dummy $ac_prog; ac_word=$2
12342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12345 $as_echo_n "(cached) " >&6
12346 else
12347 if test -n "$ac_ct_CXX"; then
12348 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12349 else
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_ac_ct_CXX="$ac_prog"
12358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12361 done
12362 done
12363 IFS=$as_save_IFS
12367 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12368 if test -n "$ac_ct_CXX"; then
12369 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12370 $as_echo "$ac_ct_CXX" >&6; }
12371 else
12372 { $as_echo "$as_me:$LINENO: result: no" >&5
12373 $as_echo "no" >&6; }
12377 test -n "$ac_ct_CXX" && break
12378 done
12380 if test "x$ac_ct_CXX" = x; then
12381 CXX="g++"
12382 else
12383 case $cross_compiling:$ac_tool_warned in
12384 yes:)
12385 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12387 ac_tool_warned=yes ;;
12388 esac
12389 CXX=$ac_ct_CXX
12395 # Provide some information about the compiler.
12396 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12397 set X $ac_compile
12398 ac_compiler=$2
12399 { (ac_try="$ac_compiler --version >&5"
12400 case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403 esac
12404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12405 $as_echo "$ac_try_echo") >&5
12406 (eval "$ac_compiler --version >&5") 2>&5
12407 ac_status=$?
12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }
12410 { (ac_try="$ac_compiler -v >&5"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12416 $as_echo "$ac_try_echo") >&5
12417 (eval "$ac_compiler -v >&5") 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }
12421 { (ac_try="$ac_compiler -V >&5"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425 esac
12426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12427 $as_echo "$ac_try_echo") >&5
12428 (eval "$ac_compiler -V >&5") 2>&5
12429 ac_status=$?
12430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }
12433 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12435 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12436 $as_echo_n "(cached) " >&6
12437 else
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h. */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12446 main ()
12448 #ifndef __GNUC__
12449 choke me
12450 #endif
12453 return 0;
12455 _ACEOF
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12461 esac
12462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12463 $as_echo "$ac_try_echo") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_cxx_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.$ac_objext; then
12474 ac_compiler_gnu=yes
12475 else
12476 $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_compiler_gnu=no
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12486 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12488 if test $ac_compiler_gnu = yes; then
12489 GXX=yes
12490 else
12491 GXX=
12493 ac_test_CXXFLAGS=${CXXFLAGS+set}
12494 ac_save_CXXFLAGS=$CXXFLAGS
12495 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12497 if test "${ac_cv_prog_cxx_g+set}" = set; then
12498 $as_echo_n "(cached) " >&6
12499 else
12500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12501 ac_cxx_werror_flag=yes
12502 ac_cv_prog_cxx_g=no
12503 CXXFLAGS="-g"
12504 cat >conftest.$ac_ext <<_ACEOF
12505 /* confdefs.h. */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12512 main ()
12516 return 0;
12518 _ACEOF
12519 rm -f conftest.$ac_objext
12520 if { (ac_try="$ac_compile"
12521 case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12524 esac
12525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12526 $as_echo "$ac_try_echo") >&5
12527 (eval "$ac_compile") 2>conftest.er1
12528 ac_status=$?
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
12532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && {
12534 test -z "$ac_cxx_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest.$ac_objext; then
12537 ac_cv_prog_cxx_g=yes
12538 else
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 CXXFLAGS=""
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12551 main ()
12555 return 0;
12557 _ACEOF
12558 rm -f conftest.$ac_objext
12559 if { (ac_try="$ac_compile"
12560 case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12565 $as_echo "$ac_try_echo") >&5
12566 (eval "$ac_compile") 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_cxx_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
12577 else
12578 $as_echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12581 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12582 CXXFLAGS="-g"
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12591 main ()
12595 return 0;
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_cxx_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_cv_prog_cxx_g=yes
12617 else
12618 $as_echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12634 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12635 if test "$ac_test_CXXFLAGS" = set; then
12636 CXXFLAGS=$ac_save_CXXFLAGS
12637 elif test $ac_cv_prog_cxx_g = yes; then
12638 if test "$GXX" = yes; then
12639 CXXFLAGS="-g -O2"
12640 else
12641 CXXFLAGS="-g"
12643 else
12644 if test "$GXX" = yes; then
12645 CXXFLAGS="-O2"
12646 else
12647 CXXFLAGS=
12650 ac_ext=c
12651 ac_cpp='$CPP $CPPFLAGS'
12652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657 ac_ext=cpp
12658 ac_cpp='$CXXCPP $CPPFLAGS'
12659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12662 if test -z "$CXX"; then
12663 if test -n "$CCC"; then
12664 CXX=$CCC
12665 else
12666 if test -n "$ac_tool_prefix"; then
12667 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if test "${ac_cv_prog_CXX+set}" = set; then
12674 $as_echo_n "(cached) " >&6
12675 else
12676 if test -n "$CXX"; then
12677 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12678 else
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 break 2
12690 done
12691 done
12692 IFS=$as_save_IFS
12696 CXX=$ac_cv_prog_CXX
12697 if test -n "$CXX"; then
12698 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12699 $as_echo "$CXX" >&6; }
12700 else
12701 { $as_echo "$as_me:$LINENO: result: no" >&5
12702 $as_echo "no" >&6; }
12706 test -n "$CXX" && break
12707 done
12709 if test -z "$CXX"; then
12710 ac_ct_CXX=$CXX
12711 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12713 # Extract the first word of "$ac_prog", so it can be a program name with args.
12714 set dummy $ac_prog; ac_word=$2
12715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$ac_ct_CXX"; then
12721 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_prog_ac_ct_CXX="$ac_prog"
12731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12740 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12741 if test -n "$ac_ct_CXX"; then
12742 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12743 $as_echo "$ac_ct_CXX" >&6; }
12744 else
12745 { $as_echo "$as_me:$LINENO: result: no" >&5
12746 $as_echo "no" >&6; }
12750 test -n "$ac_ct_CXX" && break
12751 done
12753 if test "x$ac_ct_CXX" = x; then
12754 CXX="g++"
12755 else
12756 case $cross_compiling:$ac_tool_warned in
12757 yes:)
12758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12760 ac_tool_warned=yes ;;
12761 esac
12762 CXX=$ac_ct_CXX
12768 # Provide some information about the compiler.
12769 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12770 set X $ac_compile
12771 ac_compiler=$2
12772 { (ac_try="$ac_compiler --version >&5"
12773 case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12776 esac
12777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12778 $as_echo "$ac_try_echo") >&5
12779 (eval "$ac_compiler --version >&5") 2>&5
12780 ac_status=$?
12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }
12783 { (ac_try="$ac_compiler -v >&5"
12784 case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787 esac
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_compiler -v >&5") 2>&5
12791 ac_status=$?
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }
12794 { (ac_try="$ac_compiler -V >&5"
12795 case "(($ac_try" in
12796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12798 esac
12799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12800 $as_echo "$ac_try_echo") >&5
12801 (eval "$ac_compiler -V >&5") 2>&5
12802 ac_status=$?
12803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }
12806 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12807 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12808 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12809 $as_echo_n "(cached) " >&6
12810 else
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h. */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12819 main ()
12821 #ifndef __GNUC__
12822 choke me
12823 #endif
12826 return 0;
12828 _ACEOF
12829 rm -f conftest.$ac_objext
12830 if { (ac_try="$ac_compile"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12834 esac
12835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12836 $as_echo "$ac_try_echo") >&5
12837 (eval "$ac_compile") 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_cxx_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest.$ac_objext; then
12847 ac_compiler_gnu=yes
12848 else
12849 $as_echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 ac_compiler_gnu=no
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12859 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12860 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12861 if test $ac_compiler_gnu = yes; then
12862 GXX=yes
12863 else
12864 GXX=
12866 ac_test_CXXFLAGS=${CXXFLAGS+set}
12867 ac_save_CXXFLAGS=$CXXFLAGS
12868 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12869 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12870 if test "${ac_cv_prog_cxx_g+set}" = set; then
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12874 ac_cxx_werror_flag=yes
12875 ac_cv_prog_cxx_g=no
12876 CXXFLAGS="-g"
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12885 main ()
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_cxx_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
12910 ac_cv_prog_cxx_g=yes
12911 else
12912 $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 CXXFLAGS=""
12916 cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h. */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h. */
12924 main ()
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext
12932 if { (ac_try="$ac_compile"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12938 $as_echo "$ac_try_echo") >&5
12939 (eval "$ac_compile") 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } && {
12946 test -z "$ac_cxx_werror_flag" ||
12947 test ! -s conftest.err
12948 } && test -s conftest.$ac_objext; then
12950 else
12951 $as_echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12955 CXXFLAGS="-g"
12956 cat >conftest.$ac_ext <<_ACEOF
12957 /* confdefs.h. */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12964 main ()
12968 return 0;
12970 _ACEOF
12971 rm -f conftest.$ac_objext
12972 if { (ac_try="$ac_compile"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_cxx_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_cv_prog_cxx_g=yes
12990 else
12991 $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13006 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13007 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13008 if test "$ac_test_CXXFLAGS" = set; then
13009 CXXFLAGS=$ac_save_CXXFLAGS
13010 elif test $ac_cv_prog_cxx_g = yes; then
13011 if test "$GXX" = yes; then
13012 CXXFLAGS="-g -O2"
13013 else
13014 CXXFLAGS="-g"
13016 else
13017 if test "$GXX" = yes; then
13018 CXXFLAGS="-O2"
13019 else
13020 CXXFLAGS=
13023 ac_ext=c
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13029 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13030 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13031 (test "X$CXX" != "Xg++"))) ; then
13032 ac_ext=cpp
13033 ac_cpp='$CXXCPP $CPPFLAGS'
13034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13037 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13038 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13039 if test -z "$CXXCPP"; then
13040 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13041 $as_echo_n "(cached) " >&6
13042 else
13043 # Double quotes because CXXCPP needs to be expanded
13044 for CXXCPP in "$CXX -E" "/lib/cpp"
13046 ac_preproc_ok=false
13047 for ac_cxx_preproc_warn_flag in '' yes
13049 # Use a header file that comes with gcc, so configuring glibc
13050 # with a fresh cross-compiler works.
13051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13052 # <limits.h> exists even on freestanding compilers.
13053 # On the NeXT, cc -E runs the code through the compiler's parser,
13054 # not just through cpp. "Syntax error" is here to catch this case.
13055 cat >conftest.$ac_ext <<_ACEOF
13056 /* confdefs.h. */
13057 _ACEOF
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 #ifdef __STDC__
13062 # include <limits.h>
13063 #else
13064 # include <assert.h>
13065 #endif
13066 Syntax error
13067 _ACEOF
13068 if { (ac_try="$ac_cpp conftest.$ac_ext"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev/null && {
13082 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13083 test ! -s conftest.err
13084 }; then
13086 else
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 # Broken: fails on valid input.
13091 continue
13094 rm -f conftest.err conftest.$ac_ext
13096 # OK, works on sane cases. Now check whether nonexistent headers
13097 # can be detected and how.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h. */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <ac_nonexistent.h>
13105 _ACEOF
13106 if { (ac_try="$ac_cpp conftest.$ac_ext"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13112 $as_echo "$ac_try_echo") >&5
13113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } >/dev/null && {
13120 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13121 test ! -s conftest.err
13122 }; then
13123 # Broken: success on invalid input.
13124 continue
13125 else
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 # Passes both tests.
13130 ac_preproc_ok=:
13131 break
13134 rm -f conftest.err conftest.$ac_ext
13136 done
13137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13138 rm -f conftest.err conftest.$ac_ext
13139 if $ac_preproc_ok; then
13140 break
13143 done
13144 ac_cv_prog_CXXCPP=$CXXCPP
13147 CXXCPP=$ac_cv_prog_CXXCPP
13148 else
13149 ac_cv_prog_CXXCPP=$CXXCPP
13151 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13152 $as_echo "$CXXCPP" >&6; }
13153 ac_preproc_ok=false
13154 for ac_cxx_preproc_warn_flag in '' yes
13156 # Use a header file that comes with gcc, so configuring glibc
13157 # with a fresh cross-compiler works.
13158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13159 # <limits.h> exists even on freestanding compilers.
13160 # On the NeXT, cc -E runs the code through the compiler's parser,
13161 # not just through cpp. "Syntax error" is here to catch this case.
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #ifdef __STDC__
13169 # include <limits.h>
13170 #else
13171 # include <assert.h>
13172 #endif
13173 Syntax error
13174 _ACEOF
13175 if { (ac_try="$ac_cpp conftest.$ac_ext"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } >/dev/null && {
13189 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13190 test ! -s conftest.err
13191 }; then
13193 else
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 # Broken: fails on valid input.
13198 continue
13201 rm -f conftest.err conftest.$ac_ext
13203 # OK, works on sane cases. Now check whether nonexistent headers
13204 # can be detected and how.
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 #include <ac_nonexistent.h>
13212 _ACEOF
13213 if { (ac_try="$ac_cpp conftest.$ac_ext"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } >/dev/null && {
13227 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13228 test ! -s conftest.err
13229 }; then
13230 # Broken: success on invalid input.
13231 continue
13232 else
13233 $as_echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 # Passes both tests.
13237 ac_preproc_ok=:
13238 break
13241 rm -f conftest.err conftest.$ac_ext
13243 done
13244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13245 rm -f conftest.err conftest.$ac_ext
13246 if $ac_preproc_ok; then
13248 else
13249 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13251 _lt_caught_CXX_error=yes; }
13254 ac_ext=c
13255 ac_cpp='$CPP $CPPFLAGS'
13256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13260 else
13261 _lt_caught_CXX_error=yes
13267 ac_ext=cpp
13268 ac_cpp='$CXXCPP $CPPFLAGS'
13269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13273 archive_cmds_need_lc_CXX=no
13274 allow_undefined_flag_CXX=
13275 always_export_symbols_CXX=no
13276 archive_expsym_cmds_CXX=
13277 compiler_needs_object_CXX=no
13278 export_dynamic_flag_spec_CXX=
13279 hardcode_direct_CXX=no
13280 hardcode_direct_absolute_CXX=no
13281 hardcode_libdir_flag_spec_CXX=
13282 hardcode_libdir_flag_spec_ld_CXX=
13283 hardcode_libdir_separator_CXX=
13284 hardcode_minus_L_CXX=no
13285 hardcode_shlibpath_var_CXX=unsupported
13286 hardcode_automatic_CXX=no
13287 inherit_rpath_CXX=no
13288 module_cmds_CXX=
13289 module_expsym_cmds_CXX=
13290 link_all_deplibs_CXX=unknown
13291 old_archive_cmds_CXX=$old_archive_cmds
13292 no_undefined_flag_CXX=
13293 whole_archive_flag_spec_CXX=
13294 enable_shared_with_static_runtimes_CXX=no
13296 # Source file extension for C++ test sources.
13297 ac_ext=cpp
13299 # Object file extension for compiled C++ test sources.
13300 objext=o
13301 objext_CXX=$objext
13303 # No sense in running all these tests if we already determined that
13304 # the CXX compiler isn't working. Some variables (like enable_shared)
13305 # are currently assumed to apply to all compilers on this platform,
13306 # and will be corrupted by setting them based on a non-working compiler.
13307 if test "$_lt_caught_CXX_error" != yes; then
13308 # Code to be used in simple compile tests
13309 lt_simple_compile_test_code="int some_variable = 0;"
13311 # Code to be used in simple link tests
13312 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13321 # If no C compiler was specified, use CC.
13322 LTCC=${LTCC-"$CC"}
13324 # If no C compiler flags were specified, use CFLAGS.
13325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13327 # Allow CC to be a program name with arguments.
13328 compiler=$CC
13331 # save warnings/boilerplate of simple test code
13332 ac_outfile=conftest.$ac_objext
13333 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13334 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13335 _lt_compiler_boilerplate=`cat conftest.err`
13336 $RM conftest*
13338 ac_outfile=conftest.$ac_objext
13339 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13340 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13341 _lt_linker_boilerplate=`cat conftest.err`
13342 $RM -r conftest*
13345 # Allow CC to be a program name with arguments.
13346 lt_save_CC=$CC
13347 lt_save_LD=$LD
13348 lt_save_GCC=$GCC
13349 GCC=$GXX
13350 lt_save_with_gnu_ld=$with_gnu_ld
13351 lt_save_path_LD=$lt_cv_path_LD
13352 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13353 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13354 else
13355 $as_unset lt_cv_prog_gnu_ld
13357 if test -n "${lt_cv_path_LDCXX+set}"; then
13358 lt_cv_path_LD=$lt_cv_path_LDCXX
13359 else
13360 $as_unset lt_cv_path_LD
13362 test -z "${LDCXX+set}" || LD=$LDCXX
13363 CC=${CXX-"c++"}
13364 compiler=$CC
13365 compiler_CXX=$CC
13366 for cc_temp in $compiler""; do
13367 case $cc_temp in
13368 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13369 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13370 \-*) ;;
13371 *) break;;
13372 esac
13373 done
13374 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13377 if test -n "$compiler"; then
13378 # We don't want -fno-exception when compiling C++ code, so set the
13379 # no_builtin_flag separately
13380 if test "$GXX" = yes; then
13381 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13382 else
13383 lt_prog_compiler_no_builtin_flag_CXX=
13386 if test "$GXX" = yes; then
13387 # Set up default GNU C++ configuration
13391 # Check whether --with-gnu-ld was given.
13392 if test "${with_gnu_ld+set}" = set; then
13393 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13394 else
13395 with_gnu_ld=no
13398 ac_prog=ld
13399 if test "$GCC" = yes; then
13400 # Check if gcc -print-prog-name=ld gives a path.
13401 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13402 $as_echo_n "checking for ld used by $CC... " >&6; }
13403 case $host in
13404 *-*-mingw*)
13405 # gcc leaves a trailing carriage return which upsets mingw
13406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13409 esac
13410 case $ac_prog in
13411 # Accept absolute paths.
13412 [\\/]* | ?:[\\/]*)
13413 re_direlt='/[^/][^/]*/\.\./'
13414 # Canonicalize the pathname of ld
13415 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13416 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13417 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13418 done
13419 test -z "$LD" && LD="$ac_prog"
13422 # If it fails, then pretend we aren't using GCC.
13423 ac_prog=ld
13426 # If it is relative, then search for the first ld in PATH.
13427 with_gnu_ld=unknown
13429 esac
13430 elif test "$with_gnu_ld" = yes; then
13431 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13432 $as_echo_n "checking for GNU ld... " >&6; }
13433 else
13434 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13435 $as_echo_n "checking for non-GNU ld... " >&6; }
13437 if test "${lt_cv_path_LD+set}" = set; then
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test -z "$LD"; then
13441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13442 for ac_dir in $PATH; do
13443 IFS="$lt_save_ifs"
13444 test -z "$ac_dir" && ac_dir=.
13445 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13446 lt_cv_path_LD="$ac_dir/$ac_prog"
13447 # Check to see if the program is GNU ld. I'd rather use --version,
13448 # but apparently some variants of GNU ld only accept -v.
13449 # Break only if it was the GNU/non-GNU ld that we prefer.
13450 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13451 *GNU* | *'with BFD'*)
13452 test "$with_gnu_ld" != no && break
13455 test "$with_gnu_ld" != yes && break
13457 esac
13459 done
13460 IFS="$lt_save_ifs"
13461 else
13462 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13466 LD="$lt_cv_path_LD"
13467 if test -n "$LD"; then
13468 { $as_echo "$as_me:$LINENO: result: $LD" >&5
13469 $as_echo "$LD" >&6; }
13470 else
13471 { $as_echo "$as_me:$LINENO: result: no" >&5
13472 $as_echo "no" >&6; }
13474 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13475 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13476 { (exit 1); exit 1; }; }
13477 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13478 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13479 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13480 $as_echo_n "(cached) " >&6
13481 else
13482 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13483 case `$LD -v 2>&1 </dev/null` in
13484 *GNU* | *'with BFD'*)
13485 lt_cv_prog_gnu_ld=yes
13488 lt_cv_prog_gnu_ld=no
13490 esac
13492 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13493 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13494 with_gnu_ld=$lt_cv_prog_gnu_ld
13502 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13503 # archiving commands below assume that GNU ld is being used.
13504 if test "$with_gnu_ld" = yes; then
13505 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13506 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'
13508 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13509 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13511 # If archive_cmds runs LD, not CC, wlarc should be empty
13512 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13513 # investigate it a little bit more. (MM)
13514 wlarc='${wl}'
13516 # ancient GNU ld didn't support --whole-archive et. al.
13517 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13518 $GREP 'no-whole-archive' > /dev/null; then
13519 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13520 else
13521 whole_archive_flag_spec_CXX=
13523 else
13524 with_gnu_ld=no
13525 wlarc=
13527 # A generic and very simple default shared library creation
13528 # command for GNU C++ for the case where it uses the native
13529 # linker, instead of GNU ld. If possible, this setting should
13530 # overridden to take advantage of the native linker features on
13531 # the platform it is being used on.
13532 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13535 # Commands to make compiler produce verbose output that lists
13536 # what "hidden" libraries, object files and flags are used when
13537 # linking a shared library.
13538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13540 else
13541 GXX=no
13542 with_gnu_ld=no
13543 wlarc=
13546 # PORTME: fill in a description of your system's C++ link characteristics
13547 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13548 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13549 ld_shlibs_CXX=yes
13550 case $host_os in
13551 aix3*)
13552 # FIXME: insert proper C++ library support
13553 ld_shlibs_CXX=no
13555 aix[4-9]*)
13556 if test "$host_cpu" = ia64; then
13557 # On IA64, the linker does run time linking by default, so we don't
13558 # have to do anything special.
13559 aix_use_runtimelinking=no
13560 exp_sym_flag='-Bexport'
13561 no_entry_flag=""
13562 else
13563 aix_use_runtimelinking=no
13565 # Test if we are trying to use run time linking or normal
13566 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13567 # need to do runtime linking.
13568 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13569 for ld_flag in $LDFLAGS; do
13570 case $ld_flag in
13571 *-brtl*)
13572 aix_use_runtimelinking=yes
13573 break
13575 esac
13576 done
13578 esac
13580 exp_sym_flag='-bexport'
13581 no_entry_flag='-bnoentry'
13584 # When large executables or shared objects are built, AIX ld can
13585 # have problems creating the table of contents. If linking a library
13586 # or program results in "error TOC overflow" add -mminimal-toc to
13587 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13588 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13590 archive_cmds_CXX=''
13591 hardcode_direct_CXX=yes
13592 hardcode_direct_absolute_CXX=yes
13593 hardcode_libdir_separator_CXX=':'
13594 link_all_deplibs_CXX=yes
13595 file_list_spec_CXX='${wl}-f,'
13597 if test "$GXX" = yes; then
13598 case $host_os in aix4.[012]|aix4.[012].*)
13599 # We only want to do this on AIX 4.2 and lower, the check
13600 # below for broken collect2 doesn't work under 4.3+
13601 collect2name=`${CC} -print-prog-name=collect2`
13602 if test -f "$collect2name" &&
13603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13604 then
13605 # We have reworked collect2
13607 else
13608 # We have old collect2
13609 hardcode_direct_CXX=unsupported
13610 # It fails to find uninstalled libraries when the uninstalled
13611 # path is not listed in the libpath. Setting hardcode_minus_L
13612 # to unsupported forces relinking
13613 hardcode_minus_L_CXX=yes
13614 hardcode_libdir_flag_spec_CXX='-L$libdir'
13615 hardcode_libdir_separator_CXX=
13617 esac
13618 shared_flag='-shared'
13619 if test "$aix_use_runtimelinking" = yes; then
13620 shared_flag="$shared_flag "'${wl}-G'
13622 else
13623 # not using gcc
13624 if test "$host_cpu" = ia64; then
13625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13626 # chokes on -Wl,-G. The following line is correct:
13627 shared_flag='-G'
13628 else
13629 if test "$aix_use_runtimelinking" = yes; then
13630 shared_flag='${wl}-G'
13631 else
13632 shared_flag='${wl}-bM:SRE'
13637 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13638 # It seems that -bexpall does not export symbols beginning with
13639 # underscore (_), so it is better to generate a list of symbols to
13640 # export.
13641 always_export_symbols_CXX=yes
13642 if test "$aix_use_runtimelinking" = yes; then
13643 # Warning - without using the other runtime loading flags (-brtl),
13644 # -berok will link without error, but may produce a broken library.
13645 allow_undefined_flag_CXX='-berok'
13646 # Determine the default libpath from the value encoded in an empty
13647 # executable.
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13656 main ()
13660 return 0;
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13668 esac
13669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13670 $as_echo "$ac_try_echo") >&5
13671 (eval "$ac_link") 2>conftest.er1
13672 ac_status=$?
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
13676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } && {
13678 test -z "$ac_cxx_werror_flag" ||
13679 test ! -s conftest.err
13680 } && test -s conftest$ac_exeext && {
13681 test "$cross_compiling" = yes ||
13682 $as_test_x conftest$ac_exeext
13683 }; then
13685 lt_aix_libpath_sed='
13686 /Import File Strings/,/^$/ {
13687 /^0/ {
13688 s/^0 *\(.*\)$/\1/
13692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13693 # Check for a 64-bit object if we didn't find anything.
13694 if test -z "$aix_libpath"; then
13695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13704 rm -rf conftest.dSYM
13705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13706 conftest$ac_exeext conftest.$ac_ext
13707 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13709 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13711 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"
13712 else
13713 if test "$host_cpu" = ia64; then
13714 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13715 allow_undefined_flag_CXX="-z nodefs"
13716 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"
13717 else
13718 # Determine the default libpath from the value encoded in an
13719 # empty executable.
13720 cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h. */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13728 main ()
13732 return 0;
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740 esac
13741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13742 $as_echo "$ac_try_echo") >&5
13743 (eval "$ac_link") 2>conftest.er1
13744 ac_status=$?
13745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && {
13750 test -z "$ac_cxx_werror_flag" ||
13751 test ! -s conftest.err
13752 } && test -s conftest$ac_exeext && {
13753 test "$cross_compiling" = yes ||
13754 $as_test_x conftest$ac_exeext
13755 }; then
13757 lt_aix_libpath_sed='
13758 /Import File Strings/,/^$/ {
13759 /^0/ {
13760 s/^0 *\(.*\)$/\1/
13764 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13765 # Check for a 64-bit object if we didn't find anything.
13766 if test -z "$aix_libpath"; then
13767 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13769 else
13770 $as_echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13776 rm -rf conftest.dSYM
13777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13778 conftest$ac_exeext conftest.$ac_ext
13779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13781 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13782 # Warning - without using the other run time loading flags,
13783 # -berok will link without error, but may produce a broken library.
13784 no_undefined_flag_CXX=' ${wl}-bernotok'
13785 allow_undefined_flag_CXX=' ${wl}-berok'
13786 # Exported symbols can be pulled into shared objects from archives
13787 whole_archive_flag_spec_CXX='$convenience'
13788 archive_cmds_need_lc_CXX=yes
13789 # This is similar to how AIX traditionally builds its shared
13790 # libraries.
13791 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'
13796 beos*)
13797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13798 allow_undefined_flag_CXX=unsupported
13799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13800 # support --undefined. This deserves some investigation. FIXME
13801 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13802 else
13803 ld_shlibs_CXX=no
13807 chorus*)
13808 case $cc_basename in
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13813 esac
13816 cygwin* | mingw* | pw32* | cegcc*)
13817 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13818 # as there is no search path for DLLs.
13819 hardcode_libdir_flag_spec_CXX='-L$libdir'
13820 allow_undefined_flag_CXX=unsupported
13821 always_export_symbols_CXX=no
13822 enable_shared_with_static_runtimes_CXX=yes
13824 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13825 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'
13826 # If the export-symbols file already is a .def file (1st line
13827 # is EXPORTS), use it as is; otherwise, prepend...
13828 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13829 cp $export_symbols $output_objdir/$soname.def;
13830 else
13831 echo EXPORTS > $output_objdir/$soname.def;
13832 cat $export_symbols >> $output_objdir/$soname.def;
13834 $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'
13835 else
13836 ld_shlibs_CXX=no
13839 darwin* | rhapsody*)
13842 archive_cmds_need_lc_CXX=no
13843 hardcode_direct_CXX=no
13844 hardcode_automatic_CXX=yes
13845 hardcode_shlibpath_var_CXX=unsupported
13846 whole_archive_flag_spec_CXX=''
13847 link_all_deplibs_CXX=yes
13848 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13849 case $cc_basename in
13850 ifort*) _lt_dar_can_shared=yes ;;
13851 *) _lt_dar_can_shared=$GCC ;;
13852 esac
13853 if test "$_lt_dar_can_shared" = "yes"; then
13854 output_verbose_link_cmd=echo
13855 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}"
13856 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13857 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}"
13858 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}"
13859 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13860 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}"
13861 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}"
13864 else
13865 ld_shlibs_CXX=no
13870 dgux*)
13871 case $cc_basename in
13872 ec++*)
13873 # FIXME: insert proper C++ library support
13874 ld_shlibs_CXX=no
13876 ghcx*)
13877 # Green Hills C++ Compiler
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13882 # FIXME: insert proper C++ library support
13883 ld_shlibs_CXX=no
13885 esac
13888 freebsd[12]*)
13889 # C++ shared libraries reported to be fairly broken before
13890 # switch to ELF
13891 ld_shlibs_CXX=no
13894 freebsd-elf*)
13895 archive_cmds_need_lc_CXX=no
13898 freebsd* | dragonfly*)
13899 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13900 # conventions
13901 ld_shlibs_CXX=yes
13904 gnu*)
13907 hpux9*)
13908 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13909 hardcode_libdir_separator_CXX=:
13910 export_dynamic_flag_spec_CXX='${wl}-E'
13911 hardcode_direct_CXX=yes
13912 hardcode_minus_L_CXX=yes # Not in the search PATH,
13913 # but as the default
13914 # location of the library.
13916 case $cc_basename in
13917 CC*)
13918 # FIXME: insert proper C++ library support
13919 ld_shlibs_CXX=no
13921 aCC*)
13922 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'
13923 # Commands to make compiler produce verbose output that lists
13924 # what "hidden" libraries, object files and flags are used when
13925 # linking a shared library.
13927 # There doesn't appear to be a way to prevent this compiler from
13928 # explicitly linking system object files so we need to strip them
13929 # from the output so that they don't get included in the library
13930 # dependencies.
13931 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'
13934 if test "$GXX" = yes; then
13935 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'
13936 else
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13941 esac
13944 hpux10*|hpux11*)
13945 if test $with_gnu_ld = no; then
13946 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13947 hardcode_libdir_separator_CXX=:
13949 case $host_cpu in
13950 hppa*64*|ia64*)
13953 export_dynamic_flag_spec_CXX='${wl}-E'
13955 esac
13957 case $host_cpu in
13958 hppa*64*|ia64*)
13959 hardcode_direct_CXX=no
13960 hardcode_shlibpath_var_CXX=no
13963 hardcode_direct_CXX=yes
13964 hardcode_direct_absolute_CXX=yes
13965 hardcode_minus_L_CXX=yes # Not in the search PATH,
13966 # but as the default
13967 # location of the library.
13969 esac
13971 case $cc_basename in
13972 CC*)
13973 # FIXME: insert proper C++ library support
13974 ld_shlibs_CXX=no
13976 aCC*)
13977 case $host_cpu in
13978 hppa*64*)
13979 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13981 ia64*)
13982 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13985 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13987 esac
13988 # Commands to make compiler produce verbose output that lists
13989 # what "hidden" libraries, object files and flags are used when
13990 # linking a shared library.
13992 # There doesn't appear to be a way to prevent this compiler from
13993 # explicitly linking system object files so we need to strip them
13994 # from the output so that they don't get included in the library
13995 # dependencies.
13996 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'
13999 if test "$GXX" = yes; then
14000 if test $with_gnu_ld = no; then
14001 case $host_cpu in
14002 hppa*64*)
14003 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14005 ia64*)
14006 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14009 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'
14011 esac
14013 else
14014 # FIXME: insert proper C++ library support
14015 ld_shlibs_CXX=no
14018 esac
14021 interix[3-9]*)
14022 hardcode_direct_CXX=no
14023 hardcode_shlibpath_var_CXX=no
14024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14025 export_dynamic_flag_spec_CXX='${wl}-E'
14026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14027 # Instead, shared libraries are loaded at an image base (0x10000000 by
14028 # default) and relocated if they conflict, which is a slow very memory
14029 # consuming and fragmenting process. To avoid this, we pick a random,
14030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14032 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'
14033 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'
14035 irix5* | irix6*)
14036 case $cc_basename in
14037 CC*)
14038 # SGI C++
14039 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'
14041 # Archives containing C++ object files must be created using
14042 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14043 # necessary to make sure instantiated templates are included
14044 # in the archive.
14045 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14048 if test "$GXX" = yes; then
14049 if test "$with_gnu_ld" = no; then
14050 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'
14051 else
14052 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'
14055 link_all_deplibs_CXX=yes
14057 esac
14058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14059 hardcode_libdir_separator_CXX=:
14060 inherit_rpath_CXX=yes
14063 linux* | k*bsd*-gnu)
14064 case $cc_basename in
14065 KCC*)
14066 # Kuck and Associates, Inc. (KAI) C++ Compiler
14068 # KCC will only create a shared library if the output file
14069 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14070 # to its proper name (with version) after linking.
14071 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'
14072 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'
14073 # Commands to make compiler produce verbose output that lists
14074 # what "hidden" libraries, object files and flags are used when
14075 # linking a shared library.
14077 # There doesn't appear to be a way to prevent this compiler from
14078 # explicitly linking system object files so we need to strip them
14079 # from the output so that they don't get included in the library
14080 # dependencies.
14081 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'
14083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14086 # Archives containing C++ object files must be created using
14087 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14088 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14090 icpc* | ecpc* )
14091 # Intel C++
14092 with_gnu_ld=yes
14093 # version 8.0 and above of icpc choke on multiply defined symbols
14094 # if we add $predep_objects and $postdep_objects, however 7.1 and
14095 # earlier do not add the objects themselves.
14096 case `$CC -V 2>&1` in
14097 *"Version 7."*)
14098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14099 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'
14101 *) # Version 8.0 or newer
14102 tmp_idyn=
14103 case $host_cpu in
14104 ia64*) tmp_idyn=' -i_dynamic';;
14105 esac
14106 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 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'
14109 esac
14110 archive_cmds_need_lc_CXX=no
14111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14112 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14113 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14115 pgCC* | pgcpp*)
14116 # Portland Group C++ compiler
14117 case `$CC -V` in
14118 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14119 prelink_cmds_CXX='tpldir=Template.dir~
14120 rm -rf $tpldir~
14121 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14122 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14123 old_archive_cmds_CXX='tpldir=Template.dir~
14124 rm -rf $tpldir~
14125 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14126 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14127 $RANLIB $oldlib'
14128 archive_cmds_CXX='tpldir=Template.dir~
14129 rm -rf $tpldir~
14130 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14131 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14132 archive_expsym_cmds_CXX='tpldir=Template.dir~
14133 rm -rf $tpldir~
14134 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14135 $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'
14137 *) # Version 6 will use weak symbols
14138 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14139 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'
14141 esac
14143 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14144 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14145 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'
14147 cxx*)
14148 # Compaq C++
14149 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150 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'
14152 runpath_var=LD_RUN_PATH
14153 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14154 hardcode_libdir_separator_CXX=:
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14160 # There doesn't appear to be a way to prevent this compiler from
14161 # explicitly linking system object files so we need to strip them
14162 # from the output so that they don't get included in the library
14163 # dependencies.
14164 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'
14166 xl*)
14167 # IBM XL 8.0 on PPC, with GNU ld
14168 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14169 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14170 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14171 if test "x$supports_anon_versioning" = xyes; then
14172 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14174 echo "local: *; };" >> $output_objdir/$libname.ver~
14175 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14179 case `$CC -V 2>&1 | sed 5q` in
14180 *Sun\ C*)
14181 # Sun C++ 5.9
14182 no_undefined_flag_CXX=' -zdefs'
14183 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14184 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'
14185 hardcode_libdir_flag_spec_CXX='-R$libdir'
14186 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'
14187 compiler_needs_object_CXX=yes
14189 # Not sure whether something based on
14190 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14191 # would be better.
14192 output_verbose_link_cmd='echo'
14194 # Archives containing C++ object files must be created using
14195 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14196 # necessary to make sure instantiated templates are included
14197 # in the archive.
14198 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14200 esac
14202 esac
14205 lynxos*)
14206 # FIXME: insert proper C++ library support
14207 ld_shlibs_CXX=no
14210 m88k*)
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14215 mvs*)
14216 case $cc_basename in
14217 cxx*)
14218 # FIXME: insert proper C++ library support
14219 ld_shlibs_CXX=no
14222 # FIXME: insert proper C++ library support
14223 ld_shlibs_CXX=no
14225 esac
14228 netbsd*)
14229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14230 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14231 wlarc=
14232 hardcode_libdir_flag_spec_CXX='-R$libdir'
14233 hardcode_direct_CXX=yes
14234 hardcode_shlibpath_var_CXX=no
14236 # Workaround some broken pre-1.5 toolchains
14237 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14240 *nto* | *qnx*)
14241 ld_shlibs_CXX=yes
14244 openbsd2*)
14245 # C++ shared libraries are fairly broken
14246 ld_shlibs_CXX=no
14249 openbsd*)
14250 if test -f /usr/libexec/ld.so; then
14251 hardcode_direct_CXX=yes
14252 hardcode_shlibpath_var_CXX=no
14253 hardcode_direct_absolute_CXX=yes
14254 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14255 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14257 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14258 export_dynamic_flag_spec_CXX='${wl}-E'
14259 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14261 output_verbose_link_cmd=echo
14262 else
14263 ld_shlibs_CXX=no
14267 osf3* | osf4* | osf5*)
14268 case $cc_basename in
14269 KCC*)
14270 # Kuck and Associates, Inc. (KAI) C++ Compiler
14272 # KCC will only create a shared library if the output file
14273 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14274 # to its proper name (with version) after linking.
14275 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'
14277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14278 hardcode_libdir_separator_CXX=:
14280 # Archives containing C++ object files must be created using
14281 # the KAI C++ compiler.
14282 case $host in
14283 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14284 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14285 esac
14287 RCC*)
14288 # Rational C++ 2.4.1
14289 # FIXME: insert proper C++ library support
14290 ld_shlibs_CXX=no
14292 cxx*)
14293 case $host in
14294 osf3*)
14295 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14296 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'
14297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14300 allow_undefined_flag_CXX=' -expect_unresolved \*'
14301 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'
14302 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14303 echo "-hidden">> $lib.exp~
14304 $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~
14305 $RM $lib.exp'
14306 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14308 esac
14310 hardcode_libdir_separator_CXX=:
14312 # Commands to make compiler produce verbose output that lists
14313 # what "hidden" libraries, object files and flags are used when
14314 # linking a shared library.
14316 # There doesn't appear to be a way to prevent this compiler from
14317 # explicitly linking system object files so we need to strip them
14318 # from the output so that they don't get included in the library
14319 # dependencies.
14320 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'
14323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14324 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14325 case $host in
14326 osf3*)
14327 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'
14330 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'
14332 esac
14334 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14335 hardcode_libdir_separator_CXX=:
14337 # Commands to make compiler produce verbose output that lists
14338 # what "hidden" libraries, object files and flags are used when
14339 # linking a shared library.
14340 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14342 else
14343 # FIXME: insert proper C++ library support
14344 ld_shlibs_CXX=no
14347 esac
14350 psos*)
14351 # FIXME: insert proper C++ library support
14352 ld_shlibs_CXX=no
14355 sunos4*)
14356 case $cc_basename in
14357 CC*)
14358 # Sun C++ 4.x
14359 # FIXME: insert proper C++ library support
14360 ld_shlibs_CXX=no
14362 lcc*)
14363 # Lucid
14364 # FIXME: insert proper C++ library support
14365 ld_shlibs_CXX=no
14368 # FIXME: insert proper C++ library support
14369 ld_shlibs_CXX=no
14371 esac
14374 solaris*)
14375 case $cc_basename in
14376 CC*)
14377 # Sun C++ 4.2, 5.x and Centerline C++
14378 archive_cmds_need_lc_CXX=yes
14379 no_undefined_flag_CXX=' -zdefs'
14380 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14381 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14382 $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'
14384 hardcode_libdir_flag_spec_CXX='-R$libdir'
14385 hardcode_shlibpath_var_CXX=no
14386 case $host_os in
14387 solaris2.[0-5] | solaris2.[0-5].*) ;;
14389 # The compiler driver will combine and reorder linker options,
14390 # but understands `-z linker_flag'.
14391 # Supported since Solaris 2.6 (maybe 2.5.1?)
14392 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14394 esac
14395 link_all_deplibs_CXX=yes
14397 output_verbose_link_cmd='echo'
14399 # Archives containing C++ object files must be created using
14400 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14401 # necessary to make sure instantiated templates are included
14402 # in the archive.
14403 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14405 gcx*)
14406 # Green Hills C++ Compiler
14407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14409 # The C++ compiler must be used to create the archive.
14410 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14413 # GNU C++ compiler with Solaris linker
14414 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14415 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14416 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14417 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14418 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14419 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14421 # Commands to make compiler produce verbose output that lists
14422 # what "hidden" libraries, object files and flags are used when
14423 # linking a shared library.
14424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14425 else
14426 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14427 # platform.
14428 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14429 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14430 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14432 # Commands to make compiler produce verbose output that lists
14433 # what "hidden" libraries, object files and flags are used when
14434 # linking a shared library.
14435 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14438 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14439 case $host_os in
14440 solaris2.[0-5] | solaris2.[0-5].*) ;;
14442 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14444 esac
14447 esac
14450 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14451 no_undefined_flag_CXX='${wl}-z,text'
14452 archive_cmds_need_lc_CXX=no
14453 hardcode_shlibpath_var_CXX=no
14454 runpath_var='LD_RUN_PATH'
14456 case $cc_basename in
14457 CC*)
14458 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14463 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14465 esac
14468 sysv5* | sco3.2v5* | sco5v6*)
14469 # Note: We can NOT use -z defs as we might desire, because we do not
14470 # link with -lc, and that would cause any symbols used from libc to
14471 # always be unresolved, which means just about no library would
14472 # ever link correctly. If we're not using GNU ld we use -z text
14473 # though, which does catch some bad symbols but isn't as heavy-handed
14474 # as -z defs.
14475 no_undefined_flag_CXX='${wl}-z,text'
14476 allow_undefined_flag_CXX='${wl}-z,nodefs'
14477 archive_cmds_need_lc_CXX=no
14478 hardcode_shlibpath_var_CXX=no
14479 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14480 hardcode_libdir_separator_CXX=':'
14481 link_all_deplibs_CXX=yes
14482 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14483 runpath_var='LD_RUN_PATH'
14485 case $cc_basename in
14486 CC*)
14487 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14494 esac
14497 tandem*)
14498 case $cc_basename in
14499 NCC*)
14500 # NonStop-UX NCC 3.20
14501 # FIXME: insert proper C++ library support
14502 ld_shlibs_CXX=no
14505 # FIXME: insert proper C++ library support
14506 ld_shlibs_CXX=no
14508 esac
14511 vxworks*)
14512 # FIXME: insert proper C++ library support
14513 ld_shlibs_CXX=no
14517 # FIXME: insert proper C++ library support
14518 ld_shlibs_CXX=no
14520 esac
14522 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14523 $as_echo "$ld_shlibs_CXX" >&6; }
14524 test "$ld_shlibs_CXX" = no && can_build_shared=no
14526 GCC_CXX="$GXX"
14527 LD_CXX="$LD"
14529 ## CAVEAT EMPTOR:
14530 ## There is no encapsulation within the following macros, do not change
14531 ## the running order or otherwise move them around unless you know exactly
14532 ## what you are doing...
14533 # Dependencies to place before and after the object being linked:
14534 predep_objects_CXX=
14535 postdep_objects_CXX=
14536 predeps_CXX=
14537 postdeps_CXX=
14538 compiler_lib_search_path_CXX=
14540 cat > conftest.$ac_ext <<_LT_EOF
14541 class Foo
14543 public:
14544 Foo (void) { a = 0; }
14545 private:
14546 int a;
14548 _LT_EOF
14550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>&5
14552 ac_status=$?
14553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; then
14555 # Parse the compiler output and extract the necessary
14556 # objects, libraries and library flags.
14558 # Sentinel used to keep track of whether or not we are before
14559 # the conftest object file.
14560 pre_test_object_deps_done=no
14562 for p in `eval "$output_verbose_link_cmd"`; do
14563 case $p in
14565 -L* | -R* | -l*)
14566 # Some compilers place space between "-{L,R}" and the path.
14567 # Remove the space.
14568 if test $p = "-L" ||
14569 test $p = "-R"; then
14570 prev=$p
14571 continue
14572 else
14573 prev=
14576 if test "$pre_test_object_deps_done" = no; then
14577 case $p in
14578 -L* | -R*)
14579 # Internal compiler library paths should come after those
14580 # provided the user. The postdeps already come after the
14581 # user supplied libs so there is no need to process them.
14582 if test -z "$compiler_lib_search_path_CXX"; then
14583 compiler_lib_search_path_CXX="${prev}${p}"
14584 else
14585 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14588 # The "-l" case would never come before the object being
14589 # linked, so don't bother handling this case.
14590 esac
14591 else
14592 if test -z "$postdeps_CXX"; then
14593 postdeps_CXX="${prev}${p}"
14594 else
14595 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14600 *.$objext)
14601 # This assumes that the test object file only shows up
14602 # once in the compiler output.
14603 if test "$p" = "conftest.$objext"; then
14604 pre_test_object_deps_done=yes
14605 continue
14608 if test "$pre_test_object_deps_done" = no; then
14609 if test -z "$predep_objects_CXX"; then
14610 predep_objects_CXX="$p"
14611 else
14612 predep_objects_CXX="$predep_objects_CXX $p"
14614 else
14615 if test -z "$postdep_objects_CXX"; then
14616 postdep_objects_CXX="$p"
14617 else
14618 postdep_objects_CXX="$postdep_objects_CXX $p"
14623 *) ;; # Ignore the rest.
14625 esac
14626 done
14628 # Clean up.
14629 rm -f a.out a.exe
14630 else
14631 echo "libtool.m4: error: problem compiling CXX test program"
14634 $RM -f confest.$objext
14636 # PORTME: override above test on systems where it is broken
14637 case $host_os in
14638 interix[3-9]*)
14639 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14640 # hack all around it, let's just trust "g++" to DTRT.
14641 predep_objects_CXX=
14642 postdep_objects_CXX=
14643 postdeps_CXX=
14646 linux*)
14647 case `$CC -V 2>&1 | sed 5q` in
14648 *Sun\ C*)
14649 # Sun C++ 5.9
14651 # The more standards-conforming stlport4 library is
14652 # incompatible with the Cstd library. Avoid specifying
14653 # it if it's in CXXFLAGS. Ignore libCrun as
14654 # -library=stlport4 depends on it.
14655 case " $CXX $CXXFLAGS " in
14656 *" -library=stlport4 "*)
14657 solaris_use_stlport4=yes
14659 esac
14661 if test "$solaris_use_stlport4" != yes; then
14662 postdeps_CXX='-library=Cstd -library=Crun'
14665 esac
14668 solaris*)
14669 case $cc_basename in
14670 CC*)
14671 # The more standards-conforming stlport4 library is
14672 # incompatible with the Cstd library. Avoid specifying
14673 # it if it's in CXXFLAGS. Ignore libCrun as
14674 # -library=stlport4 depends on it.
14675 case " $CXX $CXXFLAGS " in
14676 *" -library=stlport4 "*)
14677 solaris_use_stlport4=yes
14679 esac
14681 # Adding this requires a known-good setup of shared libraries for
14682 # Sun compiler versions before 5.6, else PIC objects from an old
14683 # archive will be linked into the output, leading to subtle bugs.
14684 if test "$solaris_use_stlport4" != yes; then
14685 postdeps_CXX='-library=Cstd -library=Crun'
14688 esac
14690 esac
14693 case " $postdeps_CXX " in
14694 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14695 esac
14696 compiler_lib_search_dirs_CXX=
14697 if test -n "${compiler_lib_search_path_CXX}"; then
14698 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14731 lt_prog_compiler_wl_CXX=
14732 lt_prog_compiler_pic_CXX=
14733 lt_prog_compiler_static_CXX=
14735 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14736 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14738 # C++ specific cases for pic, static, wl, etc.
14739 if test "$GXX" = yes; then
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_static_CXX='-static'
14743 case $host_os in
14744 aix*)
14745 # All AIX code is PIC.
14746 if test "$host_cpu" = ia64; then
14747 # AIX 5 now supports IA64 processor
14748 lt_prog_compiler_static_CXX='-Bstatic'
14752 amigaos*)
14753 case $host_cpu in
14754 powerpc)
14755 # see comment about AmigaOS4 .so support
14756 lt_prog_compiler_pic_CXX='-fPIC'
14758 m68k)
14759 # FIXME: we need at least 68020 code to build shared libraries, but
14760 # adding the `-m68020' flag to GCC prevents building anything better,
14761 # like `-m68040'.
14762 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14764 esac
14767 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14768 # PIC is the default for these OSes.
14770 mingw* | cygwin* | os2* | pw32* | cegcc*)
14771 # This hack is so that the source file can tell whether it is being
14772 # built for inclusion in a dll (and should export symbols for example).
14773 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14774 # (--disable-auto-import) libraries
14775 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14777 darwin* | rhapsody*)
14778 # PIC is the default on this platform
14779 # Common symbols not allowed in MH_DYLIB files
14780 lt_prog_compiler_pic_CXX='-fno-common'
14782 *djgpp*)
14783 # DJGPP does not support shared libraries at all
14784 lt_prog_compiler_pic_CXX=
14786 interix[3-9]*)
14787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14788 # Instead, we relocate shared libraries at runtime.
14790 sysv4*MP*)
14791 if test -d /usr/nec; then
14792 lt_prog_compiler_pic_CXX=-Kconform_pic
14795 hpux*)
14796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14798 # sets the default TLS model and affects inlining.
14799 case $host_cpu in
14800 hppa*64*)
14803 lt_prog_compiler_pic_CXX='-fPIC'
14805 esac
14807 *qnx* | *nto*)
14808 # QNX uses GNU C++, but need to define -shared option too, otherwise
14809 # it will coredump.
14810 lt_prog_compiler_pic_CXX='-fPIC -shared'
14813 lt_prog_compiler_pic_CXX='-fPIC'
14815 esac
14816 else
14817 case $host_os in
14818 aix[4-9]*)
14819 # All AIX code is PIC.
14820 if test "$host_cpu" = ia64; then
14821 # AIX 5 now supports IA64 processor
14822 lt_prog_compiler_static_CXX='-Bstatic'
14823 else
14824 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14827 chorus*)
14828 case $cc_basename in
14829 cxch68*)
14830 # Green Hills C++ Compiler
14831 # _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"
14833 esac
14835 dgux*)
14836 case $cc_basename in
14837 ec++*)
14838 lt_prog_compiler_pic_CXX='-KPIC'
14840 ghcx*)
14841 # Green Hills C++ Compiler
14842 lt_prog_compiler_pic_CXX='-pic'
14846 esac
14848 freebsd* | dragonfly*)
14849 # FreeBSD uses GNU C++
14851 hpux9* | hpux10* | hpux11*)
14852 case $cc_basename in
14853 CC*)
14854 lt_prog_compiler_wl_CXX='-Wl,'
14855 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14856 if test "$host_cpu" != ia64; then
14857 lt_prog_compiler_pic_CXX='+Z'
14860 aCC*)
14861 lt_prog_compiler_wl_CXX='-Wl,'
14862 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14863 case $host_cpu in
14864 hppa*64*|ia64*)
14865 # +Z the default
14868 lt_prog_compiler_pic_CXX='+Z'
14870 esac
14874 esac
14876 interix*)
14877 # This is c89, which is MS Visual C++ (no shared libs)
14878 # Anyone wants to do a port?
14880 irix5* | irix6* | nonstopux*)
14881 case $cc_basename in
14882 CC*)
14883 lt_prog_compiler_wl_CXX='-Wl,'
14884 lt_prog_compiler_static_CXX='-non_shared'
14885 # CC pic flag -KPIC is the default.
14889 esac
14891 linux* | k*bsd*-gnu)
14892 case $cc_basename in
14893 KCC*)
14894 # KAI C++ Compiler
14895 lt_prog_compiler_wl_CXX='--backend -Wl,'
14896 lt_prog_compiler_pic_CXX='-fPIC'
14898 ecpc* )
14899 # old Intel C++ for x86_64 which still supported -KPIC.
14900 lt_prog_compiler_wl_CXX='-Wl,'
14901 lt_prog_compiler_pic_CXX='-KPIC'
14902 lt_prog_compiler_static_CXX='-static'
14904 icpc* )
14905 # Intel C++, used to be incompatible with GCC.
14906 # ICC 10 doesn't accept -KPIC any more.
14907 lt_prog_compiler_wl_CXX='-Wl,'
14908 lt_prog_compiler_pic_CXX='-fPIC'
14909 lt_prog_compiler_static_CXX='-static'
14911 pgCC* | pgcpp*)
14912 # Portland Group C++ compiler
14913 lt_prog_compiler_wl_CXX='-Wl,'
14914 lt_prog_compiler_pic_CXX='-fpic'
14915 lt_prog_compiler_static_CXX='-Bstatic'
14917 cxx*)
14918 # Compaq C++
14919 # Make sure the PIC flag is empty. It appears that all Alpha
14920 # Linux and Compaq Tru64 Unix objects are PIC.
14921 lt_prog_compiler_pic_CXX=
14922 lt_prog_compiler_static_CXX='-non_shared'
14924 xlc* | xlC*)
14925 # IBM XL 8.0 on PPC
14926 lt_prog_compiler_wl_CXX='-Wl,'
14927 lt_prog_compiler_pic_CXX='-qpic'
14928 lt_prog_compiler_static_CXX='-qstaticlink'
14931 case `$CC -V 2>&1 | sed 5q` in
14932 *Sun\ C*)
14933 # Sun C++ 5.9
14934 lt_prog_compiler_pic_CXX='-KPIC'
14935 lt_prog_compiler_static_CXX='-Bstatic'
14936 lt_prog_compiler_wl_CXX='-Qoption ld '
14938 esac
14940 esac
14942 lynxos*)
14944 m88k*)
14946 mvs*)
14947 case $cc_basename in
14948 cxx*)
14949 lt_prog_compiler_pic_CXX='-W c,exportall'
14953 esac
14955 netbsd*)
14957 *qnx* | *nto*)
14958 # QNX uses GNU C++, but need to define -shared option too, otherwise
14959 # it will coredump.
14960 lt_prog_compiler_pic_CXX='-fPIC -shared'
14962 osf3* | osf4* | osf5*)
14963 case $cc_basename in
14964 KCC*)
14965 lt_prog_compiler_wl_CXX='--backend -Wl,'
14967 RCC*)
14968 # Rational C++ 2.4.1
14969 lt_prog_compiler_pic_CXX='-pic'
14971 cxx*)
14972 # Digital/Compaq C++
14973 lt_prog_compiler_wl_CXX='-Wl,'
14974 # Make sure the PIC flag is empty. It appears that all Alpha
14975 # Linux and Compaq Tru64 Unix objects are PIC.
14976 lt_prog_compiler_pic_CXX=
14977 lt_prog_compiler_static_CXX='-non_shared'
14981 esac
14983 psos*)
14985 solaris*)
14986 case $cc_basename in
14987 CC*)
14988 # Sun C++ 4.2, 5.x and Centerline C++
14989 lt_prog_compiler_pic_CXX='-KPIC'
14990 lt_prog_compiler_static_CXX='-Bstatic'
14991 lt_prog_compiler_wl_CXX='-Qoption ld '
14993 gcx*)
14994 # Green Hills C++ Compiler
14995 lt_prog_compiler_pic_CXX='-PIC'
14999 esac
15001 sunos4*)
15002 case $cc_basename in
15003 CC*)
15004 # Sun C++ 4.x
15005 lt_prog_compiler_pic_CXX='-pic'
15006 lt_prog_compiler_static_CXX='-Bstatic'
15008 lcc*)
15009 # Lucid
15010 lt_prog_compiler_pic_CXX='-pic'
15014 esac
15016 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15017 case $cc_basename in
15018 CC*)
15019 lt_prog_compiler_wl_CXX='-Wl,'
15020 lt_prog_compiler_pic_CXX='-KPIC'
15021 lt_prog_compiler_static_CXX='-Bstatic'
15023 esac
15025 tandem*)
15026 case $cc_basename in
15027 NCC*)
15028 # NonStop-UX NCC 3.20
15029 lt_prog_compiler_pic_CXX='-KPIC'
15033 esac
15035 vxworks*)
15038 lt_prog_compiler_can_build_shared_CXX=no
15040 esac
15043 case $host_os in
15044 # For platforms which do not support PIC, -DPIC is meaningless:
15045 *djgpp*)
15046 lt_prog_compiler_pic_CXX=
15049 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15051 esac
15052 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15053 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15058 # Check to make sure the PIC flag actually works.
15060 if test -n "$lt_prog_compiler_pic_CXX"; then
15061 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15062 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15063 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15064 $as_echo_n "(cached) " >&6
15065 else
15066 lt_cv_prog_compiler_pic_works_CXX=no
15067 ac_outfile=conftest.$ac_objext
15068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15069 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15070 # Insert the option either (1) after the last *FLAGS variable, or
15071 # (2) before a word containing "conftest.", or (3) at the end.
15072 # Note that $ac_compile itself does not contain backslashes and begins
15073 # with a dollar sign (not a hyphen), so the echo should work correctly.
15074 # The option is referenced via a variable to avoid confusing sed.
15075 lt_compile=`echo "$ac_compile" | $SED \
15076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15078 -e 's:$: $lt_compiler_flag:'`
15079 (eval echo "\"\$as_me:15079: $lt_compile\"" >&5)
15080 (eval "$lt_compile" 2>conftest.err)
15081 ac_status=$?
15082 cat conftest.err >&5
15083 echo "$as_me:15083: \$? = $ac_status" >&5
15084 if (exit $ac_status) && test -s "$ac_outfile"; then
15085 # The compiler can only warn and ignore the option if not recognized
15086 # So say no if there are warnings other than the usual output.
15087 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15090 lt_cv_prog_compiler_pic_works_CXX=yes
15093 $RM conftest*
15096 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15097 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15099 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15100 case $lt_prog_compiler_pic_CXX in
15101 "" | " "*) ;;
15102 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15103 esac
15104 else
15105 lt_prog_compiler_pic_CXX=
15106 lt_prog_compiler_can_build_shared_CXX=no
15114 # Check to make sure the static flag actually works.
15116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15117 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15119 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15120 $as_echo_n "(cached) " >&6
15121 else
15122 lt_cv_prog_compiler_static_works_CXX=no
15123 save_LDFLAGS="$LDFLAGS"
15124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15127 # The linker can only warn and ignore the option if not recognized
15128 # So say no if there are warnings
15129 if test -s conftest.err; then
15130 # Append any errors to the config.log.
15131 cat conftest.err 1>&5
15132 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15134 if diff conftest.exp conftest.er2 >/dev/null; then
15135 lt_cv_prog_compiler_static_works_CXX=yes
15137 else
15138 lt_cv_prog_compiler_static_works_CXX=yes
15141 $RM -r conftest*
15142 LDFLAGS="$save_LDFLAGS"
15145 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15146 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15148 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15150 else
15151 lt_prog_compiler_static_CXX=
15157 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15159 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15160 $as_echo_n "(cached) " >&6
15161 else
15162 lt_cv_prog_compiler_c_o_CXX=no
15163 $RM -r conftest 2>/dev/null
15164 mkdir conftest
15165 cd conftest
15166 mkdir out
15167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15169 lt_compiler_flag="-o out/conftest2.$ac_objext"
15170 # Insert the option either (1) after the last *FLAGS variable, or
15171 # (2) before a word containing "conftest.", or (3) at the end.
15172 # Note that $ac_compile itself does not contain backslashes and begins
15173 # with a dollar sign (not a hyphen), so the echo should work correctly.
15174 lt_compile=`echo "$ac_compile" | $SED \
15175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15177 -e 's:$: $lt_compiler_flag:'`
15178 (eval echo "\"\$as_me:15178: $lt_compile\"" >&5)
15179 (eval "$lt_compile" 2>out/conftest.err)
15180 ac_status=$?
15181 cat out/conftest.err >&5
15182 echo "$as_me:15182: \$? = $ac_status" >&5
15183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15184 then
15185 # The compiler can only warn and ignore the option if not recognized
15186 # So say no if there are warnings
15187 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15190 lt_cv_prog_compiler_c_o_CXX=yes
15193 chmod u+w . 2>&5
15194 $RM conftest*
15195 # SGI C++ compiler will create directory out/ii_files/ for
15196 # template instantiation
15197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15198 $RM out/* && rmdir out
15199 cd ..
15200 $RM -r conftest
15201 $RM conftest*
15204 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15205 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15209 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15211 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15212 $as_echo_n "(cached) " >&6
15213 else
15214 lt_cv_prog_compiler_c_o_CXX=no
15215 $RM -r conftest 2>/dev/null
15216 mkdir conftest
15217 cd conftest
15218 mkdir out
15219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15221 lt_compiler_flag="-o out/conftest2.$ac_objext"
15222 # Insert the option either (1) after the last *FLAGS variable, or
15223 # (2) before a word containing "conftest.", or (3) at the end.
15224 # Note that $ac_compile itself does not contain backslashes and begins
15225 # with a dollar sign (not a hyphen), so the echo should work correctly.
15226 lt_compile=`echo "$ac_compile" | $SED \
15227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15229 -e 's:$: $lt_compiler_flag:'`
15230 (eval echo "\"\$as_me:15230: $lt_compile\"" >&5)
15231 (eval "$lt_compile" 2>out/conftest.err)
15232 ac_status=$?
15233 cat out/conftest.err >&5
15234 echo "$as_me:15234: \$? = $ac_status" >&5
15235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15236 then
15237 # The compiler can only warn and ignore the option if not recognized
15238 # So say no if there are warnings
15239 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15242 lt_cv_prog_compiler_c_o_CXX=yes
15245 chmod u+w . 2>&5
15246 $RM conftest*
15247 # SGI C++ compiler will create directory out/ii_files/ for
15248 # template instantiation
15249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15250 $RM out/* && rmdir out
15251 cd ..
15252 $RM -r conftest
15253 $RM conftest*
15256 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15257 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15262 hard_links="nottested"
15263 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15264 # do not overwrite the value of need_locks provided by the user
15265 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15266 $as_echo_n "checking if we can lock with hard links... " >&6; }
15267 hard_links=yes
15268 $RM conftest*
15269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15270 touch conftest.a
15271 ln conftest.a conftest.b 2>&5 || hard_links=no
15272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15273 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15274 $as_echo "$hard_links" >&6; }
15275 if test "$hard_links" = no; then
15276 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15278 need_locks=warn
15280 else
15281 need_locks=no
15286 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15289 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15290 case $host_os in
15291 aix[4-9]*)
15292 # If we're using GNU nm, then we don't want the "-C" option.
15293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15295 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'
15296 else
15297 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'
15300 pw32*)
15301 export_symbols_cmds_CXX="$ltdll_cmds"
15303 cygwin* | mingw* | cegcc*)
15304 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'
15307 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15309 esac
15310 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15312 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15313 $as_echo "$ld_shlibs_CXX" >&6; }
15314 test "$ld_shlibs_CXX" = no && can_build_shared=no
15316 with_gnu_ld_CXX=$with_gnu_ld
15324 # Do we need to explicitly link libc?
15326 case "x$archive_cmds_need_lc_CXX" in
15327 x|xyes)
15328 # Assume -lc should be added
15329 archive_cmds_need_lc_CXX=yes
15331 if test "$enable_shared" = yes && test "$GCC" = yes; then
15332 case $archive_cmds_CXX in
15333 *'~'*)
15334 # FIXME: we may have to deal with multi-command sequences.
15336 '$CC '*)
15337 # Test whether the compiler implicitly links with -lc since on some
15338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15339 # to ld, don't add -lc before -lgcc.
15340 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15341 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15342 $RM conftest*
15343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15346 (eval $ac_compile) 2>&5
15347 ac_status=$?
15348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } 2>conftest.err; then
15350 soname=conftest
15351 lib=conftest
15352 libobjs=conftest.$ac_objext
15353 deplibs=
15354 wl=$lt_prog_compiler_wl_CXX
15355 pic_flag=$lt_prog_compiler_pic_CXX
15356 compiler_flags=-v
15357 linker_flags=-v
15358 verstring=
15359 output_objdir=.
15360 libname=conftest
15361 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15362 allow_undefined_flag_CXX=
15363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15364 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15365 ac_status=$?
15366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }
15368 then
15369 archive_cmds_need_lc_CXX=no
15370 else
15371 archive_cmds_need_lc_CXX=yes
15373 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15374 else
15375 cat conftest.err 1>&5
15377 $RM conftest*
15378 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15379 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15381 esac
15384 esac
15449 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15450 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15452 library_names_spec=
15453 libname_spec='lib$name'
15454 soname_spec=
15455 shrext_cmds=".so"
15456 postinstall_cmds=
15457 postuninstall_cmds=
15458 finish_cmds=
15459 finish_eval=
15460 shlibpath_var=
15461 shlibpath_overrides_runpath=unknown
15462 version_type=none
15463 dynamic_linker="$host_os ld.so"
15464 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15465 need_lib_prefix=unknown
15466 hardcode_into_libs=no
15468 # when you set need_version to no, make sure it does not cause -set_version
15469 # flags to be left without arguments
15470 need_version=unknown
15472 case $host_os in
15473 aix3*)
15474 version_type=linux
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15476 shlibpath_var=LIBPATH
15478 # AIX 3 has no versioning support, so we append a major version to the name.
15479 soname_spec='${libname}${release}${shared_ext}$major'
15482 aix[4-9]*)
15483 version_type=linux
15484 need_lib_prefix=no
15485 need_version=no
15486 hardcode_into_libs=yes
15487 if test "$host_cpu" = ia64; then
15488 # AIX 5 supports IA64
15489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 else
15492 # With GCC up to 2.95.x, collect2 would create an import file
15493 # for dependence libraries. The import file would start with
15494 # the line `#! .'. This would cause the generated library to
15495 # depend on `.', always an invalid library. This was fixed in
15496 # development snapshots of GCC prior to 3.0.
15497 case $host_os in
15498 aix4 | aix4.[01] | aix4.[01].*)
15499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15500 echo ' yes '
15501 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15503 else
15504 can_build_shared=no
15507 esac
15508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15509 # soname into executable. Probably we can add versioning support to
15510 # collect2, so additional links can be useful in future.
15511 if test "$aix_use_runtimelinking" = yes; then
15512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15513 # instead of lib<name>.a to let people know that these are not
15514 # typical AIX shared libraries.
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 else
15517 # We preserve .a as extension for shared libraries through AIX4.2
15518 # and later when we are not doing run time linking.
15519 library_names_spec='${libname}${release}.a $libname.a'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LIBPATH
15526 amigaos*)
15527 case $host_cpu in
15528 powerpc)
15529 # Since July 2007 AmigaOS4 officially supports .so libraries.
15530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 m68k)
15534 library_names_spec='$libname.ixlibrary $libname.a'
15535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15536 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'
15538 esac
15541 beos*)
15542 library_names_spec='${libname}${shared_ext}'
15543 dynamic_linker="$host_os ld.so"
15544 shlibpath_var=LIBRARY_PATH
15547 bsdi[45]*)
15548 version_type=linux
15549 need_version=no
15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551 soname_spec='${libname}${release}${shared_ext}$major'
15552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15553 shlibpath_var=LD_LIBRARY_PATH
15554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15556 # the default ld.so.conf also contains /usr/contrib/lib and
15557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15558 # libtool to hard-code these into programs
15561 cygwin* | mingw* | pw32* | cegcc*)
15562 version_type=windows
15563 shrext_cmds=".dll"
15564 need_version=no
15565 need_lib_prefix=no
15567 case $GCC,$host_os in
15568 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15569 library_names_spec='$libname.dll.a'
15570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15571 postinstall_cmds='base_file=`basename \${file}`~
15572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15573 dldir=$destdir/`dirname \$dlpath`~
15574 test -d \$dldir || mkdir -p \$dldir~
15575 $install_prog $dir/$dlname \$dldir/$dlname~
15576 chmod a+x \$dldir/$dlname~
15577 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15578 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15580 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15581 dlpath=$dir/\$dldll~
15582 $RM \$dlpath'
15583 shlibpath_overrides_runpath=yes
15585 case $host_os in
15586 cygwin*)
15587 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15588 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15589 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15590 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15592 mingw* | cegcc*)
15593 # MinGW DLLs use traditional 'lib' prefix
15594 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15595 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15596 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15597 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15598 # It is most probably a Windows format PATH printed by
15599 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15600 # path with ; separators, and with drive letters. We can handle the
15601 # drive letters (cygwin fileutils understands them), so leave them,
15602 # especially as we might pass files found there to a mingw objdump,
15603 # which wouldn't understand a cygwinified path. Ahh.
15604 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15605 else
15606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15609 pw32*)
15610 # pw32 DLLs use 'pw' prefix rather than 'lib'
15611 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15613 esac
15617 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15619 esac
15620 dynamic_linker='Win32 ld.exe'
15621 # FIXME: first we should search . and the directory the executable is in
15622 shlibpath_var=PATH
15625 darwin* | rhapsody*)
15626 dynamic_linker="$host_os dyld"
15627 version_type=darwin
15628 need_lib_prefix=no
15629 need_version=no
15630 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15631 soname_spec='${libname}${release}${major}$shared_ext'
15632 shlibpath_overrides_runpath=yes
15633 shlibpath_var=DYLD_LIBRARY_PATH
15634 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15639 dgux*)
15640 version_type=linux
15641 need_lib_prefix=no
15642 need_version=no
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15644 soname_spec='${libname}${release}${shared_ext}$major'
15645 shlibpath_var=LD_LIBRARY_PATH
15648 freebsd1*)
15649 dynamic_linker=no
15652 freebsd* | dragonfly*)
15653 # DragonFly does not have aout. When/if they implement a new
15654 # versioning mechanism, adjust this.
15655 if test -x /usr/bin/objformat; then
15656 objformat=`/usr/bin/objformat`
15657 else
15658 case $host_os in
15659 freebsd[123]*) objformat=aout ;;
15660 *) objformat=elf ;;
15661 esac
15663 version_type=freebsd-$objformat
15664 case $version_type in
15665 freebsd-elf*)
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15667 need_version=no
15668 need_lib_prefix=no
15670 freebsd-*)
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15672 need_version=yes
15674 esac
15675 shlibpath_var=LD_LIBRARY_PATH
15676 case $host_os in
15677 freebsd2*)
15678 shlibpath_overrides_runpath=yes
15680 freebsd3.[01]* | freebsdelf3.[01]*)
15681 shlibpath_overrides_runpath=yes
15682 hardcode_into_libs=yes
15684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15686 shlibpath_overrides_runpath=no
15687 hardcode_into_libs=yes
15689 *) # from 4.6 on, and DragonFly
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15693 esac
15696 gnu*)
15697 version_type=linux
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 hardcode_into_libs=yes
15706 hpux9* | hpux10* | hpux11*)
15707 # Give a soname corresponding to the major version so that dld.sl refuses to
15708 # link against other versions.
15709 version_type=sunos
15710 need_lib_prefix=no
15711 need_version=no
15712 case $host_cpu in
15713 ia64*)
15714 shrext_cmds='.so'
15715 hardcode_into_libs=yes
15716 dynamic_linker="$host_os dld.so"
15717 shlibpath_var=LD_LIBRARY_PATH
15718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 if test "X$HPUX_IA64_MODE" = X32; then
15722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15723 else
15724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15728 hppa*64*)
15729 shrext_cmds='.sl'
15730 hardcode_into_libs=yes
15731 dynamic_linker="$host_os dld.sl"
15732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15740 shrext_cmds='.sl'
15741 dynamic_linker="$host_os dld.sl"
15742 shlibpath_var=SHLIB_PATH
15743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15747 esac
15748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15749 postinstall_cmds='chmod 555 $lib'
15752 interix[3-9]*)
15753 version_type=linux
15754 need_lib_prefix=no
15755 need_version=no
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 shlibpath_overrides_runpath=no
15761 hardcode_into_libs=yes
15764 irix5* | irix6* | nonstopux*)
15765 case $host_os in
15766 nonstopux*) version_type=nonstopux ;;
15768 if test "$lt_cv_prog_gnu_ld" = yes; then
15769 version_type=linux
15770 else
15771 version_type=irix
15772 fi ;;
15773 esac
15774 need_lib_prefix=no
15775 need_version=no
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15778 case $host_os in
15779 irix5* | nonstopux*)
15780 libsuff= shlibsuff=
15783 case $LD in # libtool.m4 will add one of these switches to LD
15784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15785 libsuff= shlibsuff= libmagic=32-bit;;
15786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15787 libsuff=32 shlibsuff=N32 libmagic=N32;;
15788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15789 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15790 *) libsuff= shlibsuff= libmagic=never-match;;
15791 esac
15793 esac
15794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15795 shlibpath_overrides_runpath=no
15796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15798 hardcode_into_libs=yes
15801 # No shared lib support for Linux oldld, aout, or coff.
15802 linux*oldld* | linux*aout* | linux*coff*)
15803 dynamic_linker=no
15806 # This must be Linux ELF.
15807 linux* | k*bsd*-gnu)
15808 version_type=linux
15809 need_lib_prefix=no
15810 need_version=no
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812 soname_spec='${libname}${release}${shared_ext}$major'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15814 shlibpath_var=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath=no
15816 # Some binutils ld are patched to set DT_RUNPATH
15817 save_LDFLAGS=$LDFLAGS
15818 save_libdir=$libdir
15819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h. */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15829 main ()
15833 return 0;
15835 _ACEOF
15836 rm -f conftest.$ac_objext conftest$ac_exeext
15837 if { (ac_try="$ac_link"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841 esac
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844 (eval "$ac_link") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } && {
15851 test -z "$ac_cxx_werror_flag" ||
15852 test ! -s conftest.err
15853 } && test -s conftest$ac_exeext && {
15854 test "$cross_compiling" = yes ||
15855 $as_test_x conftest$ac_exeext
15856 }; then
15857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15858 shlibpath_overrides_runpath=yes
15861 else
15862 $as_echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15868 rm -rf conftest.dSYM
15869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15870 conftest$ac_exeext conftest.$ac_ext
15871 LDFLAGS=$save_LDFLAGS
15872 libdir=$save_libdir
15874 # This implies no fast_install, which is unacceptable.
15875 # Some rework will be needed to allow for fast_install
15876 # before this can be enabled.
15877 hardcode_into_libs=yes
15879 # Append ld.so.conf contents to the search path
15880 if test -f /etc/ld.so.conf; then
15881 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' ' '`
15882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15885 # We used to test for /lib/ld.so.1 and disable shared libraries on
15886 # powerpc, because MkLinux only supported shared libraries with the
15887 # GNU dynamic linker. Since this was broken with cross compilers,
15888 # most powerpc-linux boxes support dynamic linking these days and
15889 # people can always --disable-shared, the test was removed, and we
15890 # assume the GNU/Linux dynamic linker is in use.
15891 dynamic_linker='GNU/Linux ld.so'
15894 netbsd*)
15895 version_type=sunos
15896 need_lib_prefix=no
15897 need_version=no
15898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15901 dynamic_linker='NetBSD (a.out) ld.so'
15902 else
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 dynamic_linker='NetBSD ld.elf_so'
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes
15909 hardcode_into_libs=yes
15912 newsos6)
15913 version_type=linux
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=yes
15919 *nto* | *qnx*)
15920 version_type=qnx
15921 need_lib_prefix=no
15922 need_version=no
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15924 soname_spec='${libname}${release}${shared_ext}$major'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=no
15927 hardcode_into_libs=yes
15928 dynamic_linker='ldqnx.so'
15931 openbsd*)
15932 version_type=sunos
15933 sys_lib_dlsearch_path_spec="/usr/lib"
15934 need_lib_prefix=no
15935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15936 case $host_os in
15937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15938 *) need_version=no ;;
15939 esac
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15942 shlibpath_var=LD_LIBRARY_PATH
15943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944 case $host_os in
15945 openbsd2.[89] | openbsd2.[89].*)
15946 shlibpath_overrides_runpath=no
15949 shlibpath_overrides_runpath=yes
15951 esac
15952 else
15953 shlibpath_overrides_runpath=yes
15957 os2*)
15958 libname_spec='$name'
15959 shrext_cmds=".dll"
15960 need_lib_prefix=no
15961 library_names_spec='$libname${shared_ext} $libname.a'
15962 dynamic_linker='OS/2 ld.exe'
15963 shlibpath_var=LIBPATH
15966 osf3* | osf4* | osf5*)
15967 version_type=osf
15968 need_lib_prefix=no
15969 need_version=no
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972 shlibpath_var=LD_LIBRARY_PATH
15973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15977 rdos*)
15978 dynamic_linker=no
15981 solaris*)
15982 version_type=linux
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15988 shlibpath_overrides_runpath=yes
15989 hardcode_into_libs=yes
15990 # ldd complains unless libraries are executable
15991 postinstall_cmds='chmod +x $lib'
15994 sunos4*)
15995 version_type=sunos
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 shlibpath_overrides_runpath=yes
16000 if test "$with_gnu_ld" = yes; then
16001 need_lib_prefix=no
16003 need_version=yes
16006 sysv4 | sysv4.3*)
16007 version_type=linux
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 soname_spec='${libname}${release}${shared_ext}$major'
16010 shlibpath_var=LD_LIBRARY_PATH
16011 case $host_vendor in
16012 sni)
16013 shlibpath_overrides_runpath=no
16014 need_lib_prefix=no
16015 runpath_var=LD_RUN_PATH
16017 siemens)
16018 need_lib_prefix=no
16020 motorola)
16021 need_lib_prefix=no
16022 need_version=no
16023 shlibpath_overrides_runpath=no
16024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16026 esac
16029 sysv4*MP*)
16030 if test -d /usr/nec ;then
16031 version_type=linux
16032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16033 soname_spec='$libname${shared_ext}.$major'
16034 shlibpath_var=LD_LIBRARY_PATH
16038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16039 version_type=freebsd-elf
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=yes
16046 hardcode_into_libs=yes
16047 if test "$with_gnu_ld" = yes; then
16048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16049 else
16050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16051 case $host_os in
16052 sco3.2v5*)
16053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16055 esac
16057 sys_lib_dlsearch_path_spec='/usr/lib'
16060 tpf*)
16061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 shlibpath_overrides_runpath=no
16068 hardcode_into_libs=yes
16071 uts4*)
16072 version_type=linux
16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074 soname_spec='${libname}${release}${shared_ext}$major'
16075 shlibpath_var=LD_LIBRARY_PATH
16079 dynamic_linker=no
16081 esac
16082 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16083 $as_echo "$dynamic_linker" >&6; }
16084 test "$dynamic_linker" = no && can_build_shared=no
16086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16087 if test "$GCC" = yes; then
16088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16091 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16094 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16133 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16134 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16135 hardcode_action_CXX=
16136 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16137 test -n "$runpath_var_CXX" ||
16138 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16140 # We can hardcode non-existent directories.
16141 if test "$hardcode_direct_CXX" != no &&
16142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16143 # have to relink, otherwise we might link with an installed library
16144 # when we should be linking with a yet-to-be-installed one
16145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16146 test "$hardcode_minus_L_CXX" != no; then
16147 # Linking always hardcodes the temporary library directory.
16148 hardcode_action_CXX=relink
16149 else
16150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16151 hardcode_action_CXX=immediate
16153 else
16154 # We cannot hardcode anything, or else we can only hardcode existing
16155 # directories.
16156 hardcode_action_CXX=unsupported
16158 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16159 $as_echo "$hardcode_action_CXX" >&6; }
16161 if test "$hardcode_action_CXX" = relink ||
16162 test "$inherit_rpath_CXX" = yes; then
16163 # Fast installation is not supported
16164 enable_fast_install=no
16165 elif test "$shlibpath_overrides_runpath" = yes ||
16166 test "$enable_shared" = no; then
16167 # Fast installation is not necessary
16168 enable_fast_install=needless
16177 fi # test -n "$compiler"
16179 CC=$lt_save_CC
16180 LDCXX=$LD
16181 LD=$lt_save_LD
16182 GCC=$lt_save_GCC
16183 with_gnu_ld=$lt_save_with_gnu_ld
16184 lt_cv_path_LDCXX=$lt_cv_path_LD
16185 lt_cv_path_LD=$lt_save_path_LD
16186 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16187 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16188 fi # test "$_lt_caught_CXX_error" != yes
16190 ac_ext=c
16191 ac_cpp='$CPP $CPPFLAGS'
16192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16197 # Find a good install program. We prefer a C program (faster),
16198 # so one script is as good as another. But avoid the broken or
16199 # incompatible versions:
16200 # SysV /etc/install, /usr/sbin/install
16201 # SunOS /usr/etc/install
16202 # IRIX /sbin/install
16203 # AIX /bin/install
16204 # AmigaOS /C/install, which installs bootblocks on floppy discs
16205 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16208 # OS/2's system install, which has a completely different semantic
16209 # ./install, which can be erroneously created by make from ./install.sh.
16210 # Reject install programs that cannot install multiple files.
16211 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16212 $as_echo_n "checking for a BSD-compatible install... " >&6; }
16213 if test -z "$INSTALL"; then
16214 if test "${ac_cv_path_install+set}" = set; then
16215 $as_echo_n "(cached) " >&6
16216 else
16217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16218 for as_dir in $PATH
16220 IFS=$as_save_IFS
16221 test -z "$as_dir" && as_dir=.
16222 # Account for people who put trailing slashes in PATH elements.
16223 case $as_dir/ in
16224 ./ | .// | /cC/* | \
16225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16226 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16227 /usr/ucb/* ) ;;
16229 # OSF1 and SCO ODT 3.0 have their own names for install.
16230 # Don't use installbsd from OSF since it installs stuff as root
16231 # by default.
16232 for ac_prog in ginstall scoinst install; do
16233 for ac_exec_ext in '' $ac_executable_extensions; do
16234 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
16235 if test $ac_prog = install &&
16236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16237 # AIX install. It has an incompatible calling convention.
16239 elif test $ac_prog = install &&
16240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16241 # program-specific install script used by HP pwplus--don't use.
16243 else
16244 rm -rf conftest.one conftest.two conftest.dir
16245 echo one > conftest.one
16246 echo two > conftest.two
16247 mkdir conftest.dir
16248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16249 test -s conftest.one && test -s conftest.two &&
16250 test -s conftest.dir/conftest.one &&
16251 test -s conftest.dir/conftest.two
16252 then
16253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16254 break 3
16258 done
16259 done
16261 esac
16263 done
16264 IFS=$as_save_IFS
16266 rm -rf conftest.one conftest.two conftest.dir
16269 if test "${ac_cv_path_install+set}" = set; then
16270 INSTALL=$ac_cv_path_install
16271 else
16272 # As a last resort, use the slow shell script. Don't cache a
16273 # value for INSTALL within a source directory, because that will
16274 # break other packages using the cache if that directory is
16275 # removed, or if the value is a relative name.
16276 INSTALL=$ac_install_sh
16279 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
16280 $as_echo "$INSTALL" >&6; }
16282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16283 # It thinks the first close brace ends the variable substitution.
16284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16290 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16291 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16292 set x ${MAKE-make}
16293 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16294 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16295 $as_echo_n "(cached) " >&6
16296 else
16297 cat >conftest.make <<\_ACEOF
16298 SHELL = /bin/sh
16299 all:
16300 @echo '@@@%%%=$(MAKE)=@@@%%%'
16301 _ACEOF
16302 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16303 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16304 *@@@%%%=?*=@@@%%%*)
16305 eval ac_cv_prog_make_${ac_make}_set=yes;;
16307 eval ac_cv_prog_make_${ac_make}_set=no;;
16308 esac
16309 rm -f conftest.make
16311 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16312 { $as_echo "$as_me:$LINENO: result: yes" >&5
16313 $as_echo "yes" >&6; }
16314 SET_MAKE=
16315 else
16316 { $as_echo "$as_me:$LINENO: result: no" >&5
16317 $as_echo "no" >&6; }
16318 SET_MAKE="MAKE=${MAKE-make}"
16321 if test -z "$host_alias"; then
16322 hostaliaswindres=
16323 else
16324 hostaliaswindres="$host_alias-windres"
16326 for ac_prog in windres $hostaliaswindres $host_os-windres
16328 # Extract the first word of "$ac_prog", so it can be a program name with args.
16329 set dummy $ac_prog; ac_word=$2
16330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16331 $as_echo_n "checking for $ac_word... " >&6; }
16332 if test "${ac_cv_prog_WINDRES+set}" = set; then
16333 $as_echo_n "(cached) " >&6
16334 else
16335 if test -n "$WINDRES"; then
16336 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
16337 else
16338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339 for as_dir in $PATH
16341 IFS=$as_save_IFS
16342 test -z "$as_dir" && as_dir=.
16343 for ac_exec_ext in '' $ac_executable_extensions; do
16344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16345 ac_cv_prog_WINDRES="$ac_prog"
16346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16347 break 2
16349 done
16350 done
16351 IFS=$as_save_IFS
16355 WINDRES=$ac_cv_prog_WINDRES
16356 if test -n "$WINDRES"; then
16357 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
16358 $as_echo "$WINDRES" >&6; }
16359 else
16360 { $as_echo "$as_me:$LINENO: result: no" >&5
16361 $as_echo "no" >&6; }
16365 test -n "$WINDRES" && break
16366 done
16369 INCLUDE="-I$srcdir/include"
16370 if test x$srcdir != x.; then
16371 # Remove SDL_config.h from the source directory, since it's the
16372 # default one, and we want to include the one that we generate.
16373 if test -f $srcdir/include/SDL_config.h; then
16374 rm $srcdir/include/SDL_config.h
16376 INCLUDE="-Iinclude $INCLUDE"
16378 case "$host" in
16379 *-*-cygwin*)
16380 # We build SDL on cygwin without the UNIX emulation layer
16381 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
16382 BASE_LDFLAGS="-mno-cygwin"
16385 BASE_CFLAGS="-D_GNU_SOURCE=1"
16386 BASE_LDFLAGS=""
16388 esac
16389 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
16390 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
16391 BUILD_LDFLAGS="$LDFLAGS"
16392 EXTRA_LDFLAGS="$BASE_LDFLAGS"
16393 ## These are common directories to find software packages
16394 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
16395 # if test -d $path/include; then
16396 # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
16397 # fi
16398 # if test -d $path/lib; then
16399 # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
16400 # fi
16401 #done
16402 SDL_CFLAGS="$BASE_CFLAGS"
16403 SDL_LIBS="-lSDL $BASE_LDFLAGS"
16404 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
16405 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
16406 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
16408 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
16410 find_lib()
16412 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16413 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
16414 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
16415 if test "$cross_compiling" = yes; then
16416 host_lib_path=""
16417 else
16418 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
16420 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
16421 lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
16422 if test x$lib != x; then
16423 echo $lib
16424 return
16426 done
16429 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16430 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16431 if test "${ac_cv_c_const+set}" = set; then
16432 $as_echo_n "(cached) " >&6
16433 else
16434 cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h. */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16442 main ()
16444 /* FIXME: Include the comments suggested by Paul. */
16445 #ifndef __cplusplus
16446 /* Ultrix mips cc rejects this. */
16447 typedef int charset[2];
16448 const charset cs;
16449 /* SunOS 4.1.1 cc rejects this. */
16450 char const *const *pcpcc;
16451 char **ppc;
16452 /* NEC SVR4.0.2 mips cc rejects this. */
16453 struct point {int x, y;};
16454 static struct point const zero = {0,0};
16455 /* AIX XL C 1.02.0.0 rejects this.
16456 It does not let you subtract one const X* pointer from another in
16457 an arm of an if-expression whose if-part is not a constant
16458 expression */
16459 const char *g = "string";
16460 pcpcc = &g + (g ? g-g : 0);
16461 /* HPUX 7.0 cc rejects these. */
16462 ++pcpcc;
16463 ppc = (char**) pcpcc;
16464 pcpcc = (char const *const *) ppc;
16465 { /* SCO 3.2v4 cc rejects this. */
16466 char *t;
16467 char const *s = 0 ? (char *) 0 : (char const *) 0;
16469 *t++ = 0;
16470 if (s) return 0;
16472 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16473 int x[] = {25, 17};
16474 const int *foo = &x[0];
16475 ++foo;
16477 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16478 typedef const int *iptr;
16479 iptr p = 0;
16480 ++p;
16482 { /* AIX XL C 1.02.0.0 rejects this saying
16483 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16484 struct s { int j; const int *ap[3]; };
16485 struct s *b; b->j = 5;
16487 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16488 const int foo = 10;
16489 if (!foo) return 0;
16491 return !cs[0] && !zero.x;
16492 #endif
16495 return 0;
16497 _ACEOF
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16505 $as_echo "$ac_try_echo") >&5
16506 (eval "$ac_compile") 2>conftest.er1
16507 ac_status=$?
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
16511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } && {
16513 test -z "$ac_c_werror_flag" ||
16514 test ! -s conftest.err
16515 } && test -s conftest.$ac_objext; then
16516 ac_cv_c_const=yes
16517 else
16518 $as_echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_c_const=no
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16527 $as_echo "$ac_cv_c_const" >&6; }
16528 if test $ac_cv_c_const = no; then
16530 cat >>confdefs.h <<\_ACEOF
16531 #define const /**/
16532 _ACEOF
16536 { $as_echo "$as_me:$LINENO: checking for inline" >&5
16537 $as_echo_n "checking for inline... " >&6; }
16538 if test "${ac_cv_c_inline+set}" = set; then
16539 $as_echo_n "(cached) " >&6
16540 else
16541 ac_cv_c_inline=no
16542 for ac_kw in inline __inline__ __inline; do
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #ifndef __cplusplus
16550 typedef int foo_t;
16551 static $ac_kw foo_t static_foo () {return 0; }
16552 $ac_kw foo_t foo () {return 0; }
16553 #endif
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561 esac
16562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16563 $as_echo "$ac_try_echo") >&5
16564 (eval "$ac_compile") 2>conftest.er1
16565 ac_status=$?
16566 grep -v '^ *+' conftest.er1 >conftest.err
16567 rm -f conftest.er1
16568 cat conftest.err >&5
16569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } && {
16571 test -z "$ac_c_werror_flag" ||
16572 test ! -s conftest.err
16573 } && test -s conftest.$ac_objext; then
16574 ac_cv_c_inline=$ac_kw
16575 else
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 test "$ac_cv_c_inline" != no && break
16584 done
16587 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16588 $as_echo "$ac_cv_c_inline" >&6; }
16591 case $ac_cv_c_inline in
16592 inline | yes) ;;
16594 case $ac_cv_c_inline in
16595 no) ac_val=;;
16596 *) ac_val=$ac_cv_c_inline;;
16597 esac
16598 cat >>confdefs.h <<_ACEOF
16599 #ifndef __cplusplus
16600 #define inline $ac_val
16601 #endif
16602 _ACEOF
16604 esac
16606 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
16607 $as_echo_n "checking for working volatile... " >&6; }
16608 if test "${ac_cv_c_volatile+set}" = set; then
16609 $as_echo_n "(cached) " >&6
16610 else
16611 cat >conftest.$ac_ext <<_ACEOF
16612 /* confdefs.h. */
16613 _ACEOF
16614 cat confdefs.h >>conftest.$ac_ext
16615 cat >>conftest.$ac_ext <<_ACEOF
16616 /* end confdefs.h. */
16619 main ()
16622 volatile int x;
16623 int * volatile y = (int *) 0;
16624 return !x && !y;
16626 return 0;
16628 _ACEOF
16629 rm -f conftest.$ac_objext
16630 if { (ac_try="$ac_compile"
16631 case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634 esac
16635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16636 $as_echo "$ac_try_echo") >&5
16637 (eval "$ac_compile") 2>conftest.er1
16638 ac_status=$?
16639 grep -v '^ *+' conftest.er1 >conftest.err
16640 rm -f conftest.er1
16641 cat conftest.err >&5
16642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest.$ac_objext; then
16647 ac_cv_c_volatile=yes
16648 else
16649 $as_echo "$as_me: failed program was:" >&5
16650 sed 's/^/| /' conftest.$ac_ext >&5
16652 ac_cv_c_volatile=no
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
16658 $as_echo "$ac_cv_c_volatile" >&6; }
16659 if test $ac_cv_c_volatile = no; then
16661 cat >>confdefs.h <<\_ACEOF
16662 #define volatile /**/
16663 _ACEOF
16668 # Check whether --enable-libc was given.
16669 if test "${enable_libc+set}" = set; then
16670 enableval=$enable_libc;
16671 else
16672 enable_libc=yes
16675 if test x$enable_libc = xyes; then
16676 cat >>confdefs.h <<\_ACEOF
16677 #define HAVE_LIBC 1
16678 _ACEOF
16681 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16682 $as_echo_n "checking for ANSI C header files... " >&6; }
16683 if test "${ac_cv_header_stdc+set}" = set; then
16684 $as_echo_n "(cached) " >&6
16685 else
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 #include <stdlib.h>
16693 #include <stdarg.h>
16694 #include <string.h>
16695 #include <float.h>
16698 main ()
16702 return 0;
16704 _ACEOF
16705 rm -f conftest.$ac_objext
16706 if { (ac_try="$ac_compile"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16712 $as_echo "$ac_try_echo") >&5
16713 (eval "$ac_compile") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest.$ac_objext; then
16723 ac_cv_header_stdc=yes
16724 else
16725 $as_echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16728 ac_cv_header_stdc=no
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 if test $ac_cv_header_stdc = yes; then
16734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h. */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <string.h>
16743 _ACEOF
16744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16745 $EGREP "memchr" >/dev/null 2>&1; then
16747 else
16748 ac_cv_header_stdc=no
16750 rm -f conftest*
16754 if test $ac_cv_header_stdc = yes; then
16755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <stdlib.h>
16764 _ACEOF
16765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16766 $EGREP "free" >/dev/null 2>&1; then
16768 else
16769 ac_cv_header_stdc=no
16771 rm -f conftest*
16775 if test $ac_cv_header_stdc = yes; then
16776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16777 if test "$cross_compiling" = yes; then
16779 else
16780 cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h. */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 #include <ctype.h>
16787 #include <stdlib.h>
16788 #if ((' ' & 0x0FF) == 0x020)
16789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16791 #else
16792 # define ISLOWER(c) \
16793 (('a' <= (c) && (c) <= 'i') \
16794 || ('j' <= (c) && (c) <= 'r') \
16795 || ('s' <= (c) && (c) <= 'z'))
16796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16797 #endif
16799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16801 main ()
16803 int i;
16804 for (i = 0; i < 256; i++)
16805 if (XOR (islower (i), ISLOWER (i))
16806 || toupper (i) != TOUPPER (i))
16807 return 2;
16808 return 0;
16810 _ACEOF
16811 rm -f conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816 esac
16817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818 $as_echo "$ac_try_echo") >&5
16819 (eval "$ac_link") 2>&5
16820 ac_status=$?
16821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826 esac
16827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16828 $as_echo "$ac_try_echo") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16834 else
16835 $as_echo "$as_me: program exited with status $ac_status" >&5
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ( exit $ac_status )
16840 ac_cv_header_stdc=no
16842 rm -rf conftest.dSYM
16843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16849 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16850 $as_echo "$ac_cv_header_stdc" >&6; }
16851 if test $ac_cv_header_stdc = yes; then
16853 cat >>confdefs.h <<\_ACEOF
16854 #define STDC_HEADERS 1
16855 _ACEOF
16874 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
16876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16879 $as_echo_n "checking for $ac_header... " >&6; }
16880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16881 $as_echo_n "(cached) " >&6
16883 ac_res=`eval 'as_val=${'$as_ac_Header'}
16884 $as_echo "$as_val"'`
16885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16886 $as_echo "$ac_res" >&6; }
16887 else
16888 # Is the header compilable?
16889 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16890 $as_echo_n "checking $ac_header usability... " >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h. */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 $ac_includes_default
16898 #include <$ac_header>
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905 esac
16906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907 $as_echo "$ac_try_echo") >&5
16908 (eval "$ac_compile") 2>conftest.er1
16909 ac_status=$?
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } && {
16915 test -z "$ac_c_werror_flag" ||
16916 test ! -s conftest.err
16917 } && test -s conftest.$ac_objext; then
16918 ac_header_compiler=yes
16919 else
16920 $as_echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 ac_header_compiler=no
16926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16928 $as_echo "$ac_header_compiler" >&6; }
16930 # Is the header present?
16931 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16932 $as_echo_n "checking $ac_header presence... " >&6; }
16933 cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h. */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h. */
16939 #include <$ac_header>
16940 _ACEOF
16941 if { (ac_try="$ac_cpp conftest.$ac_ext"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945 esac
16946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16947 $as_echo "$ac_try_echo") >&5
16948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } >/dev/null && {
16955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 }; then
16958 ac_header_preproc=yes
16959 else
16960 $as_echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ac_header_preproc=no
16966 rm -f conftest.err conftest.$ac_ext
16967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16968 $as_echo "$ac_header_preproc" >&6; }
16970 # So? What about this header?
16971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16972 yes:no: )
16973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16974 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16977 ac_header_preproc=yes
16979 no:yes:* )
16980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16981 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16983 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16985 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16987 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16991 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16994 esac
16995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16996 $as_echo_n "checking for $ac_header... " >&6; }
16997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16998 $as_echo_n "(cached) " >&6
16999 else
17000 eval "$as_ac_Header=\$ac_header_preproc"
17002 ac_res=`eval 'as_val=${'$as_ac_Header'}
17003 $as_echo "$as_val"'`
17004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17005 $as_echo "$ac_res" >&6; }
17008 as_val=`eval 'as_val=${'$as_ac_Header'}
17009 $as_echo "$as_val"'`
17010 if test "x$as_val" = x""yes; then
17011 cat >>confdefs.h <<_ACEOF
17012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17013 _ACEOF
17017 done
17020 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17021 $as_echo_n "checking for size_t... " >&6; }
17022 if test "${ac_cv_type_size_t+set}" = set; then
17023 $as_echo_n "(cached) " >&6
17024 else
17025 ac_cv_type_size_t=no
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h. */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 $ac_includes_default
17034 main ()
17036 if (sizeof (size_t))
17037 return 0;
17039 return 0;
17041 _ACEOF
17042 rm -f conftest.$ac_objext
17043 if { (ac_try="$ac_compile"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047 esac
17048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17049 $as_echo "$ac_try_echo") >&5
17050 (eval "$ac_compile") 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest.$ac_objext; then
17060 cat >conftest.$ac_ext <<_ACEOF
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 $ac_includes_default
17068 main ()
17070 if (sizeof ((size_t)))
17071 return 0;
17073 return 0;
17075 _ACEOF
17076 rm -f conftest.$ac_objext
17077 if { (ac_try="$ac_compile"
17078 case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081 esac
17082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17083 $as_echo "$ac_try_echo") >&5
17084 (eval "$ac_compile") 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } && {
17091 test -z "$ac_c_werror_flag" ||
17092 test ! -s conftest.err
17093 } && test -s conftest.$ac_objext; then
17095 else
17096 $as_echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17099 ac_cv_type_size_t=yes
17102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 else
17104 $as_echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17113 $as_echo "$ac_cv_type_size_t" >&6; }
17114 if test "x$ac_cv_type_size_t" = x""yes; then
17116 else
17118 cat >>confdefs.h <<_ACEOF
17119 #define size_t unsigned int
17120 _ACEOF
17124 if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
17125 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
17126 $as_echo_n "checking for int64_t... " >&6; }
17127 if test "${ac_cv_type_int64_t+set}" = set; then
17128 $as_echo_n "(cached) " >&6
17129 else
17130 ac_cv_type_int64_t=no
17131 cat >conftest.$ac_ext <<_ACEOF
17132 /* confdefs.h. */
17133 _ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 $ac_includes_default
17139 main ()
17141 if (sizeof (int64_t))
17142 return 0;
17144 return 0;
17146 _ACEOF
17147 rm -f conftest.$ac_objext
17148 if { (ac_try="$ac_compile"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152 esac
17153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17154 $as_echo "$ac_try_echo") >&5
17155 (eval "$ac_compile") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } && {
17162 test -z "$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 } && test -s conftest.$ac_objext; then
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171 $ac_includes_default
17173 main ()
17175 if (sizeof ((int64_t)))
17176 return 0;
17178 return 0;
17180 _ACEOF
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186 esac
17187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189 (eval "$ac_compile") 2>conftest.er1
17190 ac_status=$?
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17200 else
17201 $as_echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_type_int64_t=yes
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 else
17209 $as_echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17218 $as_echo "$ac_cv_type_int64_t" >&6; }
17220 if test x$ac_cv_type_int64_t = xyes; then
17221 cat >>confdefs.h <<\_ACEOF
17222 #define SDL_HAS_64BIT_TYPE 1
17223 _ACEOF
17226 have_inttypes=yes
17229 case "$host" in
17230 *-*-cygwin* | *-*-mingw32*)
17233 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17234 # for constant arguments. Useless!
17235 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
17236 $as_echo_n "checking for working alloca.h... " >&6; }
17237 if test "${ac_cv_working_alloca_h+set}" = set; then
17238 $as_echo_n "(cached) " >&6
17239 else
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 #include <alloca.h>
17248 main ()
17250 char *p = (char *) alloca (2 * sizeof (int));
17251 if (p) return 0;
17253 return 0;
17255 _ACEOF
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17261 esac
17262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17276 }; then
17277 ac_cv_working_alloca_h=yes
17278 else
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_working_alloca_h=no
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17287 conftest$ac_exeext conftest.$ac_ext
17289 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17290 $as_echo "$ac_cv_working_alloca_h" >&6; }
17291 if test $ac_cv_working_alloca_h = yes; then
17293 cat >>confdefs.h <<\_ACEOF
17294 #define HAVE_ALLOCA_H 1
17295 _ACEOF
17299 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
17300 $as_echo_n "checking for alloca... " >&6; }
17301 if test "${ac_cv_func_alloca_works+set}" = set; then
17302 $as_echo_n "(cached) " >&6
17303 else
17304 cat >conftest.$ac_ext <<_ACEOF
17305 /* confdefs.h. */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h. */
17310 #ifdef __GNUC__
17311 # define alloca __builtin_alloca
17312 #else
17313 # ifdef _MSC_VER
17314 # include <malloc.h>
17315 # define alloca _alloca
17316 # else
17317 # ifdef HAVE_ALLOCA_H
17318 # include <alloca.h>
17319 # else
17320 # ifdef _AIX
17321 #pragma alloca
17322 # else
17323 # ifndef alloca /* predefined by HP cc +Olibcalls */
17324 char *alloca ();
17325 # endif
17326 # endif
17327 # endif
17328 # endif
17329 #endif
17332 main ()
17334 char *p = (char *) alloca (1);
17335 if (p) return 0;
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17347 $as_echo "$ac_try_echo") >&5
17348 (eval "$ac_link") 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } && {
17355 test -z "$ac_c_werror_flag" ||
17356 test ! -s conftest.err
17357 } && test -s conftest$ac_exeext && {
17358 test "$cross_compiling" = yes ||
17359 $as_test_x conftest$ac_exeext
17360 }; then
17361 ac_cv_func_alloca_works=yes
17362 else
17363 $as_echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_cv_func_alloca_works=no
17369 rm -rf conftest.dSYM
17370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17371 conftest$ac_exeext conftest.$ac_ext
17373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17374 $as_echo "$ac_cv_func_alloca_works" >&6; }
17376 if test $ac_cv_func_alloca_works = yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_ALLOCA 1
17380 _ACEOF
17382 else
17383 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17384 # that cause trouble. Some versions do not even contain alloca or
17385 # contain a buggy version. If you still want to use their alloca,
17386 # use ar to extract alloca.o from them instead of compiling alloca.c.
17388 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17390 cat >>confdefs.h <<\_ACEOF
17391 #define C_ALLOCA 1
17392 _ACEOF
17395 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17396 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17397 if test "${ac_cv_os_cray+set}" = set; then
17398 $as_echo_n "(cached) " >&6
17399 else
17400 cat >conftest.$ac_ext <<_ACEOF
17401 /* confdefs.h. */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 #if defined CRAY && ! defined CRAY2
17407 webecray
17408 #else
17409 wenotbecray
17410 #endif
17412 _ACEOF
17413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17414 $EGREP "webecray" >/dev/null 2>&1; then
17415 ac_cv_os_cray=yes
17416 else
17417 ac_cv_os_cray=no
17419 rm -f conftest*
17422 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17423 $as_echo "$ac_cv_os_cray" >&6; }
17424 if test $ac_cv_os_cray = yes; then
17425 for ac_func in _getb67 GETB67 getb67; do
17426 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17427 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17428 $as_echo_n "checking for $ac_func... " >&6; }
17429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17430 $as_echo_n "(cached) " >&6
17431 else
17432 cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h. */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17440 #define $ac_func innocuous_$ac_func
17442 /* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func (); below.
17444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17445 <limits.h> exists even on freestanding compilers. */
17447 #ifdef __STDC__
17448 # include <limits.h>
17449 #else
17450 # include <assert.h>
17451 #endif
17453 #undef $ac_func
17455 /* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17458 #ifdef __cplusplus
17459 extern "C"
17460 #endif
17461 char $ac_func ();
17462 /* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465 #if defined __stub_$ac_func || defined __stub___$ac_func
17466 choke me
17467 #endif
17470 main ()
17472 return $ac_func ();
17474 return 0;
17476 _ACEOF
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (ac_try="$ac_link"
17479 case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482 esac
17483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17484 $as_echo "$ac_try_echo") >&5
17485 (eval "$ac_link") 2>conftest.er1
17486 ac_status=$?
17487 grep -v '^ *+' conftest.er1 >conftest.err
17488 rm -f conftest.er1
17489 cat conftest.err >&5
17490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); } && {
17492 test -z "$ac_c_werror_flag" ||
17493 test ! -s conftest.err
17494 } && test -s conftest$ac_exeext && {
17495 test "$cross_compiling" = yes ||
17496 $as_test_x conftest$ac_exeext
17497 }; then
17498 eval "$as_ac_var=yes"
17499 else
17500 $as_echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17503 eval "$as_ac_var=no"
17506 rm -rf conftest.dSYM
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17510 ac_res=`eval 'as_val=${'$as_ac_var'}
17511 $as_echo "$as_val"'`
17512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17513 $as_echo "$ac_res" >&6; }
17514 as_val=`eval 'as_val=${'$as_ac_var'}
17515 $as_echo "$as_val"'`
17516 if test "x$as_val" = x""yes; then
17518 cat >>confdefs.h <<_ACEOF
17519 #define CRAY_STACKSEG_END $ac_func
17520 _ACEOF
17522 break
17525 done
17528 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17529 $as_echo_n "checking stack direction for C alloca... " >&6; }
17530 if test "${ac_cv_c_stack_direction+set}" = set; then
17531 $as_echo_n "(cached) " >&6
17532 else
17533 if test "$cross_compiling" = yes; then
17534 ac_cv_c_stack_direction=0
17535 else
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 $ac_includes_default
17544 find_stack_direction ()
17546 static char *addr = 0;
17547 auto char dummy;
17548 if (addr == 0)
17550 addr = &dummy;
17551 return find_stack_direction ();
17553 else
17554 return (&dummy > addr) ? 1 : -1;
17558 main ()
17560 return find_stack_direction () < 0;
17562 _ACEOF
17563 rm -f conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17570 $as_echo "$ac_try_echo") >&5
17571 (eval "$ac_link") 2>&5
17572 ac_status=$?
17573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17575 { (case "(($ac_try" in
17576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17577 *) ac_try_echo=$ac_try;;
17578 esac
17579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17580 $as_echo "$ac_try_echo") >&5
17581 (eval "$ac_try") 2>&5
17582 ac_status=$?
17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_c_stack_direction=1
17586 else
17587 $as_echo "$as_me: program exited with status $ac_status" >&5
17588 $as_echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ( exit $ac_status )
17592 ac_cv_c_stack_direction=-1
17594 rm -rf conftest.dSYM
17595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17600 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17601 $as_echo "$ac_cv_c_stack_direction" >&6; }
17603 cat >>confdefs.h <<_ACEOF
17604 #define STACK_DIRECTION $ac_cv_c_stack_direction
17605 _ACEOF
17611 esac
17613 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
17614 $as_echo_n "checking for working memcmp... " >&6; }
17615 if test "${ac_cv_func_memcmp_working+set}" = set; then
17616 $as_echo_n "(cached) " >&6
17617 else
17618 if test "$cross_compiling" = yes; then
17619 ac_cv_func_memcmp_working=no
17620 else
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 $ac_includes_default
17629 main ()
17632 /* Some versions of memcmp are not 8-bit clean. */
17633 char c0 = '\100', c1 = '\200', c2 = '\201';
17634 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
17635 return 1;
17637 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
17638 or more and with at least one buffer not starting on a 4-byte boundary.
17639 William Lewis provided this test program. */
17641 char foo[21];
17642 char bar[21];
17643 int i;
17644 for (i = 0; i < 4; i++)
17646 char *a = foo + i;
17647 char *b = bar + i;
17648 strcpy (a, "--------01111111");
17649 strcpy (b, "--------10000000");
17650 if (memcmp (a, b, 16) >= 0)
17651 return 1;
17653 return 0;
17657 return 0;
17659 _ACEOF
17660 rm -f conftest$ac_exeext
17661 if { (ac_try="$ac_link"
17662 case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665 esac
17666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17667 $as_echo "$ac_try_echo") >&5
17668 (eval "$ac_link") 2>&5
17669 ac_status=$?
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17672 { (case "(($ac_try" in
17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674 *) ac_try_echo=$ac_try;;
17675 esac
17676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17677 $as_echo "$ac_try_echo") >&5
17678 (eval "$ac_try") 2>&5
17679 ac_status=$?
17680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_func_memcmp_working=yes
17683 else
17684 $as_echo "$as_me: program exited with status $ac_status" >&5
17685 $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ( exit $ac_status )
17689 ac_cv_func_memcmp_working=no
17691 rm -rf conftest.dSYM
17692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17697 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17698 $as_echo "$ac_cv_func_memcmp_working" >&6; }
17699 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17700 *" memcmp.$ac_objext "* ) ;;
17701 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17703 esac
17706 if test x$ac_cv_func_memcmp_working = xyes; then
17707 cat >>confdefs.h <<\_ACEOF
17708 #define HAVE_MEMCMP 1
17709 _ACEOF
17712 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
17713 $as_echo_n "checking for working strtod... " >&6; }
17714 if test "${ac_cv_func_strtod+set}" = set; then
17715 $as_echo_n "(cached) " >&6
17716 else
17717 if test "$cross_compiling" = yes; then
17718 ac_cv_func_strtod=no
17719 else
17720 cat >conftest.$ac_ext <<_ACEOF
17721 /* confdefs.h. */
17722 _ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17727 $ac_includes_default
17728 #ifndef strtod
17729 double strtod ();
17730 #endif
17732 main()
17735 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
17736 char *string = " +69";
17737 char *term;
17738 double value;
17739 value = strtod (string, &term);
17740 if (value != 69 || term != (string + 4))
17741 return 1;
17745 /* Under Solaris 2.4, strtod returns the wrong value for the
17746 terminating character under some conditions. */
17747 char *string = "NaN";
17748 char *term;
17749 strtod (string, &term);
17750 if (term != string && *(term - 1) == 0)
17751 return 1;
17753 return 0;
17756 _ACEOF
17757 rm -f conftest$ac_exeext
17758 if { (ac_try="$ac_link"
17759 case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762 esac
17763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17764 $as_echo "$ac_try_echo") >&5
17765 (eval "$ac_link") 2>&5
17766 ac_status=$?
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772 esac
17773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17774 $as_echo "$ac_try_echo") >&5
17775 (eval "$ac_try") 2>&5
17776 ac_status=$?
17777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_cv_func_strtod=yes
17780 else
17781 $as_echo "$as_me: program exited with status $ac_status" >&5
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.$ac_ext >&5
17785 ( exit $ac_status )
17786 ac_cv_func_strtod=no
17788 rm -rf conftest.dSYM
17789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17794 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
17795 $as_echo "$ac_cv_func_strtod" >&6; }
17796 if test $ac_cv_func_strtod = no; then
17797 case " $LIBOBJS " in
17798 *" strtod.$ac_objext "* ) ;;
17799 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17801 esac
17803 { $as_echo "$as_me:$LINENO: checking for pow" >&5
17804 $as_echo_n "checking for pow... " >&6; }
17805 if test "${ac_cv_func_pow+set}" = set; then
17806 $as_echo_n "(cached) " >&6
17807 else
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
17815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17816 #define pow innocuous_pow
17818 /* System header to define __stub macros and hopefully few prototypes,
17819 which can conflict with char pow (); below.
17820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17821 <limits.h> exists even on freestanding compilers. */
17823 #ifdef __STDC__
17824 # include <limits.h>
17825 #else
17826 # include <assert.h>
17827 #endif
17829 #undef pow
17831 /* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17834 #ifdef __cplusplus
17835 extern "C"
17836 #endif
17837 char pow ();
17838 /* The GNU C library defines this for functions which it implements
17839 to always fail with ENOSYS. Some functions are actually named
17840 something starting with __ and the normal name is an alias. */
17841 #if defined __stub_pow || defined __stub___pow
17842 choke me
17843 #endif
17846 main ()
17848 return pow ();
17850 return 0;
17852 _ACEOF
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (ac_try="$ac_link"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858 esac
17859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17860 $as_echo "$ac_try_echo") >&5
17861 (eval "$ac_link") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest$ac_exeext && {
17871 test "$cross_compiling" = yes ||
17872 $as_test_x conftest$ac_exeext
17873 }; then
17874 ac_cv_func_pow=yes
17875 else
17876 $as_echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_cv_func_pow=no
17882 rm -rf conftest.dSYM
17883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17884 conftest$ac_exeext conftest.$ac_ext
17886 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
17887 $as_echo "$ac_cv_func_pow" >&6; }
17889 if test $ac_cv_func_pow = no; then
17890 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
17891 $as_echo_n "checking for pow in -lm... " >&6; }
17892 if test "${ac_cv_lib_m_pow+set}" = set; then
17893 $as_echo_n "(cached) " >&6
17894 else
17895 ac_check_lib_save_LIBS=$LIBS
17896 LIBS="-lm $LIBS"
17897 cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h. */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17904 /* Override any GCC internal prototype to avoid an error.
17905 Use char because int might match the return type of a GCC
17906 builtin and then its argument prototype would still apply. */
17907 #ifdef __cplusplus
17908 extern "C"
17909 #endif
17910 char pow ();
17912 main ()
17914 return pow ();
17916 return 0;
17918 _ACEOF
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924 esac
17925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17926 $as_echo "$ac_try_echo") >&5
17927 (eval "$ac_link") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } && {
17934 test -z "$ac_c_werror_flag" ||
17935 test ! -s conftest.err
17936 } && test -s conftest$ac_exeext && {
17937 test "$cross_compiling" = yes ||
17938 $as_test_x conftest$ac_exeext
17939 }; then
17940 ac_cv_lib_m_pow=yes
17941 else
17942 $as_echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 ac_cv_lib_m_pow=no
17948 rm -rf conftest.dSYM
17949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17950 conftest$ac_exeext conftest.$ac_ext
17951 LIBS=$ac_check_lib_save_LIBS
17953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17954 $as_echo "$ac_cv_lib_m_pow" >&6; }
17955 if test "x$ac_cv_lib_m_pow" = x""yes; then
17956 POW_LIB=-lm
17957 else
17958 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
17959 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17966 if test x$ac_cv_func_strtod = xyes; then
17967 cat >>confdefs.h <<\_ACEOF
17968 #define HAVE_STRTOD 1
17969 _ACEOF
17972 { $as_echo "$as_me:$LINENO: checking for mprotect" >&5
17973 $as_echo_n "checking for mprotect... " >&6; }
17974 if test "${ac_cv_func_mprotect+set}" = set; then
17975 $as_echo_n "(cached) " >&6
17976 else
17977 cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h. */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
17984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17985 #define mprotect innocuous_mprotect
17987 /* System header to define __stub macros and hopefully few prototypes,
17988 which can conflict with char mprotect (); below.
17989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17990 <limits.h> exists even on freestanding compilers. */
17992 #ifdef __STDC__
17993 # include <limits.h>
17994 #else
17995 # include <assert.h>
17996 #endif
17998 #undef mprotect
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char mprotect ();
18007 /* The GNU C library defines this for functions which it implements
18008 to always fail with ENOSYS. Some functions are actually named
18009 something starting with __ and the normal name is an alias. */
18010 #if defined __stub_mprotect || defined __stub___mprotect
18011 choke me
18012 #endif
18015 main ()
18017 return mprotect ();
18019 return 0;
18021 _ACEOF
18022 rm -f conftest.$ac_objext conftest$ac_exeext
18023 if { (ac_try="$ac_link"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18029 $as_echo "$ac_try_echo") >&5
18030 (eval "$ac_link") 2>conftest.er1
18031 ac_status=$?
18032 grep -v '^ *+' conftest.er1 >conftest.err
18033 rm -f conftest.er1
18034 cat conftest.err >&5
18035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && {
18037 test -z "$ac_c_werror_flag" ||
18038 test ! -s conftest.err
18039 } && test -s conftest$ac_exeext && {
18040 test "$cross_compiling" = yes ||
18041 $as_test_x conftest$ac_exeext
18042 }; then
18043 ac_cv_func_mprotect=yes
18044 else
18045 $as_echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_cv_func_mprotect=no
18051 rm -rf conftest.dSYM
18052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18053 conftest$ac_exeext conftest.$ac_ext
18055 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
18056 $as_echo "$ac_cv_func_mprotect" >&6; }
18057 if test "x$ac_cv_func_mprotect" = x""yes; then
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18065 #include <sys/types.h>
18066 #include <sys/mman.h>
18069 main ()
18074 return 0;
18076 _ACEOF
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18082 esac
18083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18084 $as_echo "$ac_try_echo") >&5
18085 (eval "$ac_compile") 2>conftest.er1
18086 ac_status=$?
18087 grep -v '^ *+' conftest.er1 >conftest.err
18088 rm -f conftest.er1
18089 cat conftest.err >&5
18090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && {
18092 test -z "$ac_c_werror_flag" ||
18093 test ! -s conftest.err
18094 } && test -s conftest.$ac_objext; then
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_MPROTECT 1
18098 _ACEOF
18101 else
18102 $as_echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159 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
18161 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 $as_echo_n "checking for $ac_func... " >&6; }
18164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define $ac_func innocuous_$ac_func
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char $ac_func (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18188 #undef $ac_func
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char $ac_func ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 choke me
18202 #endif
18205 main ()
18207 return $ac_func ();
18209 return 0;
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217 esac
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
18233 eval "$as_ac_var=yes"
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no"
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18245 ac_res=`eval 'as_val=${'$as_ac_var'}
18246 $as_echo "$as_val"'`
18247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18248 $as_echo "$ac_res" >&6; }
18249 as_val=`eval 'as_val=${'$as_ac_var'}
18250 $as_echo "$as_val"'`
18251 if test "x$as_val" = x""yes; then
18252 cat >>confdefs.h <<_ACEOF
18253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18254 _ACEOF
18257 done
18260 { $as_echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
18261 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
18262 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
18263 $as_echo_n "(cached) " >&6
18264 else
18265 ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-liconv $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h. */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18274 /* Override any GCC internal prototype to avoid an error.
18275 Use char because int might match the return type of a GCC
18276 builtin and then its argument prototype would still apply. */
18277 #ifdef __cplusplus
18278 extern "C"
18279 #endif
18280 char libiconv_open ();
18282 main ()
18284 return libiconv_open ();
18286 return 0;
18288 _ACEOF
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (ac_try="$ac_link"
18291 case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294 esac
18295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18296 $as_echo "$ac_try_echo") >&5
18297 (eval "$ac_link") 2>conftest.er1
18298 ac_status=$?
18299 grep -v '^ *+' conftest.er1 >conftest.err
18300 rm -f conftest.er1
18301 cat conftest.err >&5
18302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); } && {
18304 test -z "$ac_c_werror_flag" ||
18305 test ! -s conftest.err
18306 } && test -s conftest$ac_exeext && {
18307 test "$cross_compiling" = yes ||
18308 $as_test_x conftest$ac_exeext
18309 }; then
18310 ac_cv_lib_iconv_libiconv_open=yes
18311 else
18312 $as_echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_cv_lib_iconv_libiconv_open=no
18318 rm -rf conftest.dSYM
18319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
18324 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
18325 if test "x$ac_cv_lib_iconv_libiconv_open" = x""yes; then
18326 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
18329 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
18330 $as_echo_n "checking for pow in -lm... " >&6; }
18331 if test "${ac_cv_lib_m_pow+set}" = set; then
18332 $as_echo_n "(cached) " >&6
18333 else
18334 ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lm $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h. */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18343 /* Override any GCC internal prototype to avoid an error.
18344 Use char because int might match the return type of a GCC
18345 builtin and then its argument prototype would still apply. */
18346 #ifdef __cplusplus
18347 extern "C"
18348 #endif
18349 char pow ();
18351 main ()
18353 return pow ();
18355 return 0;
18357 _ACEOF
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (ac_try="$ac_link"
18360 case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363 esac
18364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18365 $as_echo "$ac_try_echo") >&5
18366 (eval "$ac_link") 2>conftest.er1
18367 ac_status=$?
18368 grep -v '^ *+' conftest.er1 >conftest.err
18369 rm -f conftest.er1
18370 cat conftest.err >&5
18371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); } && {
18373 test -z "$ac_c_werror_flag" ||
18374 test ! -s conftest.err
18375 } && test -s conftest$ac_exeext && {
18376 test "$cross_compiling" = yes ||
18377 $as_test_x conftest$ac_exeext
18378 }; then
18379 ac_cv_lib_m_pow=yes
18380 else
18381 $as_echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_cv_lib_m_pow=no
18387 rm -rf conftest.dSYM
18388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18392 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
18393 $as_echo "$ac_cv_lib_m_pow" >&6; }
18394 if test "x$ac_cv_lib_m_pow" = x""yes; then
18395 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
18400 if test x$have_inttypes != xyes; then
18401 # The cast to long int works around a bug in the HP C Compiler
18402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18404 # This bug is HP SR number 8606223364.
18405 { $as_echo "$as_me:$LINENO: checking size of char" >&5
18406 $as_echo_n "checking size of char... " >&6; }
18407 if test "${ac_cv_sizeof_char+set}" = set; then
18408 $as_echo_n "(cached) " >&6
18409 else
18410 if test "$cross_compiling" = yes; then
18411 # Depending upon the size, compute the lo and hi bounds.
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 $ac_includes_default
18420 main ()
18422 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
18423 test_array [0] = 0
18426 return 0;
18428 _ACEOF
18429 rm -f conftest.$ac_objext
18430 if { (ac_try="$ac_compile"
18431 case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18434 esac
18435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18436 $as_echo "$ac_try_echo") >&5
18437 (eval "$ac_compile") 2>conftest.er1
18438 ac_status=$?
18439 grep -v '^ *+' conftest.er1 >conftest.err
18440 rm -f conftest.er1
18441 cat conftest.err >&5
18442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); } && {
18444 test -z "$ac_c_werror_flag" ||
18445 test ! -s conftest.err
18446 } && test -s conftest.$ac_objext; then
18447 ac_lo=0 ac_mid=0
18448 while :; do
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h. */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h. */
18455 $ac_includes_default
18457 main ()
18459 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
18460 test_array [0] = 0
18463 return 0;
18465 _ACEOF
18466 rm -f conftest.$ac_objext
18467 if { (ac_try="$ac_compile"
18468 case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471 esac
18472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18473 $as_echo "$ac_try_echo") >&5
18474 (eval "$ac_compile") 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest.$ac_objext; then
18484 ac_hi=$ac_mid; break
18485 else
18486 $as_echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_lo=`expr $ac_mid + 1`
18490 if test $ac_lo -le $ac_mid; then
18491 ac_lo= ac_hi=
18492 break
18494 ac_mid=`expr 2 '*' $ac_mid + 1`
18497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18498 done
18499 else
18500 $as_echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 $ac_includes_default
18511 main ()
18513 static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
18514 test_array [0] = 0
18517 return 0;
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (ac_try="$ac_compile"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18527 $as_echo "$ac_try_echo") >&5
18528 (eval "$ac_compile") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } && {
18535 test -z "$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 } && test -s conftest.$ac_objext; then
18538 ac_hi=-1 ac_mid=-1
18539 while :; do
18540 cat >conftest.$ac_ext <<_ACEOF
18541 /* confdefs.h. */
18542 _ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $ac_includes_default
18548 main ()
18550 static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
18551 test_array [0] = 0
18554 return 0;
18556 _ACEOF
18557 rm -f conftest.$ac_objext
18558 if { (ac_try="$ac_compile"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18562 esac
18563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18564 $as_echo "$ac_try_echo") >&5
18565 (eval "$ac_compile") 2>conftest.er1
18566 ac_status=$?
18567 grep -v '^ *+' conftest.er1 >conftest.err
18568 rm -f conftest.er1
18569 cat conftest.err >&5
18570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest.$ac_objext; then
18575 ac_lo=$ac_mid; break
18576 else
18577 $as_echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 ac_hi=`expr '(' $ac_mid ')' - 1`
18581 if test $ac_mid -le $ac_hi; then
18582 ac_lo= ac_hi=
18583 break
18585 ac_mid=`expr 2 '*' $ac_mid`
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589 done
18590 else
18591 $as_echo "$as_me: failed program was:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_lo= ac_hi=
18597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 # Binary search between lo and hi bounds.
18602 while test "x$ac_lo" != "x$ac_hi"; do
18603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 $ac_includes_default
18612 main ()
18614 static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
18615 test_array [0] = 0
18618 return 0;
18620 _ACEOF
18621 rm -f conftest.$ac_objext
18622 if { (ac_try="$ac_compile"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18626 esac
18627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18628 $as_echo "$ac_try_echo") >&5
18629 (eval "$ac_compile") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_hi=$ac_mid
18640 else
18641 $as_echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_lo=`expr '(' $ac_mid ')' + 1`
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 done
18649 case $ac_lo in
18650 ?*) ac_cv_sizeof_char=$ac_lo;;
18651 '') if test "$ac_cv_type_char" = yes; then
18652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18654 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18655 See \`config.log' for more details." >&5
18656 $as_echo "$as_me: error: cannot compute sizeof (char)
18657 See \`config.log' for more details." >&2;}
18658 { (exit 77); exit 77; }; }; }
18659 else
18660 ac_cv_sizeof_char=0
18661 fi ;;
18662 esac
18663 else
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h. */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 $ac_includes_default
18671 static long int longval () { return (long int) (sizeof (char)); }
18672 static unsigned long int ulongval () { return (long int) (sizeof (char)); }
18673 #include <stdio.h>
18674 #include <stdlib.h>
18676 main ()
18679 FILE *f = fopen ("conftest.val", "w");
18680 if (! f)
18681 return 1;
18682 if (((long int) (sizeof (char))) < 0)
18684 long int i = longval ();
18685 if (i != ((long int) (sizeof (char))))
18686 return 1;
18687 fprintf (f, "%ld", i);
18689 else
18691 unsigned long int i = ulongval ();
18692 if (i != ((long int) (sizeof (char))))
18693 return 1;
18694 fprintf (f, "%lu", i);
18696 /* Do not output a trailing newline, as this causes \r\n confusion
18697 on some platforms. */
18698 return ferror (f) || fclose (f) != 0;
18701 return 0;
18703 _ACEOF
18704 rm -f conftest$ac_exeext
18705 if { (ac_try="$ac_link"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709 esac
18710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18711 $as_echo "$ac_try_echo") >&5
18712 (eval "$ac_link") 2>&5
18713 ac_status=$?
18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719 esac
18720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18721 $as_echo "$ac_try_echo") >&5
18722 (eval "$ac_try") 2>&5
18723 ac_status=$?
18724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_cv_sizeof_char=`cat conftest.val`
18727 else
18728 $as_echo "$as_me: program exited with status $ac_status" >&5
18729 $as_echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ( exit $ac_status )
18733 if test "$ac_cv_type_char" = yes; then
18734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18736 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18737 See \`config.log' for more details." >&5
18738 $as_echo "$as_me: error: cannot compute sizeof (char)
18739 See \`config.log' for more details." >&2;}
18740 { (exit 77); exit 77; }; }; }
18741 else
18742 ac_cv_sizeof_char=0
18745 rm -rf conftest.dSYM
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18748 rm -f conftest.val
18750 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18751 $as_echo "$ac_cv_sizeof_char" >&6; }
18755 cat >>confdefs.h <<_ACEOF
18756 #define SIZEOF_CHAR $ac_cv_sizeof_char
18757 _ACEOF
18760 # The cast to long int works around a bug in the HP C Compiler
18761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18763 # This bug is HP SR number 8606223364.
18764 { $as_echo "$as_me:$LINENO: checking size of short" >&5
18765 $as_echo_n "checking size of short... " >&6; }
18766 if test "${ac_cv_sizeof_short+set}" = set; then
18767 $as_echo_n "(cached) " >&6
18768 else
18769 if test "$cross_compiling" = yes; then
18770 # Depending upon the size, compute the lo and hi bounds.
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 $ac_includes_default
18779 main ()
18781 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
18782 test_array [0] = 0
18785 return 0;
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (ac_try="$ac_compile"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18795 $as_echo "$ac_try_echo") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18797 ac_status=$?
18798 grep -v '^ *+' conftest.er1 >conftest.err
18799 rm -f conftest.er1
18800 cat conftest.err >&5
18801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18806 ac_lo=0 ac_mid=0
18807 while :; do
18808 cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h. */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 $ac_includes_default
18816 main ()
18818 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
18819 test_array [0] = 0
18822 return 0;
18824 _ACEOF
18825 rm -f conftest.$ac_objext
18826 if { (ac_try="$ac_compile"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18830 esac
18831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18832 $as_echo "$ac_try_echo") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
18843 ac_hi=$ac_mid; break
18844 else
18845 $as_echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_lo=`expr $ac_mid + 1`
18849 if test $ac_lo -le $ac_mid; then
18850 ac_lo= ac_hi=
18851 break
18853 ac_mid=`expr 2 '*' $ac_mid + 1`
18856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 done
18858 else
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h. */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 $ac_includes_default
18870 main ()
18872 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
18873 test_array [0] = 0
18876 return 0;
18878 _ACEOF
18879 rm -f conftest.$ac_objext
18880 if { (ac_try="$ac_compile"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18886 $as_echo "$ac_try_echo") >&5
18887 (eval "$ac_compile") 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest.$ac_objext; then
18897 ac_hi=-1 ac_mid=-1
18898 while :; do
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 $ac_includes_default
18907 main ()
18909 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
18910 test_array [0] = 0
18913 return 0;
18915 _ACEOF
18916 rm -f conftest.$ac_objext
18917 if { (ac_try="$ac_compile"
18918 case "(($ac_try" in
18919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18920 *) ac_try_echo=$ac_try;;
18921 esac
18922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18923 $as_echo "$ac_try_echo") >&5
18924 (eval "$ac_compile") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && {
18931 test -z "$ac_c_werror_flag" ||
18932 test ! -s conftest.err
18933 } && test -s conftest.$ac_objext; then
18934 ac_lo=$ac_mid; break
18935 else
18936 $as_echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18939 ac_hi=`expr '(' $ac_mid ')' - 1`
18940 if test $ac_mid -le $ac_hi; then
18941 ac_lo= ac_hi=
18942 break
18944 ac_mid=`expr 2 '*' $ac_mid`
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948 done
18949 else
18950 $as_echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_lo= ac_hi=
18956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18960 # Binary search between lo and hi bounds.
18961 while test "x$ac_lo" != "x$ac_hi"; do
18962 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 $ac_includes_default
18971 main ()
18973 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
18974 test_array [0] = 0
18977 return 0;
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
18982 case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18985 esac
18986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18987 $as_echo "$ac_try_echo") >&5
18988 (eval "$ac_compile") 2>conftest.er1
18989 ac_status=$?
18990 grep -v '^ *+' conftest.er1 >conftest.err
18991 rm -f conftest.er1
18992 cat conftest.err >&5
18993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); } && {
18995 test -z "$ac_c_werror_flag" ||
18996 test ! -s conftest.err
18997 } && test -s conftest.$ac_objext; then
18998 ac_hi=$ac_mid
18999 else
19000 $as_echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19003 ac_lo=`expr '(' $ac_mid ')' + 1`
19006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19007 done
19008 case $ac_lo in
19009 ?*) ac_cv_sizeof_short=$ac_lo;;
19010 '') if test "$ac_cv_type_short" = yes; then
19011 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19013 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19014 See \`config.log' for more details." >&5
19015 $as_echo "$as_me: error: cannot compute sizeof (short)
19016 See \`config.log' for more details." >&2;}
19017 { (exit 77); exit 77; }; }; }
19018 else
19019 ac_cv_sizeof_short=0
19020 fi ;;
19021 esac
19022 else
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19030 static long int longval () { return (long int) (sizeof (short)); }
19031 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
19032 #include <stdio.h>
19033 #include <stdlib.h>
19035 main ()
19038 FILE *f = fopen ("conftest.val", "w");
19039 if (! f)
19040 return 1;
19041 if (((long int) (sizeof (short))) < 0)
19043 long int i = longval ();
19044 if (i != ((long int) (sizeof (short))))
19045 return 1;
19046 fprintf (f, "%ld", i);
19048 else
19050 unsigned long int i = ulongval ();
19051 if (i != ((long int) (sizeof (short))))
19052 return 1;
19053 fprintf (f, "%lu", i);
19055 /* Do not output a trailing newline, as this causes \r\n confusion
19056 on some platforms. */
19057 return ferror (f) || fclose (f) != 0;
19060 return 0;
19062 _ACEOF
19063 rm -f conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068 esac
19069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19070 $as_echo "$ac_try_echo") >&5
19071 (eval "$ac_link") 2>&5
19072 ac_status=$?
19073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19075 { (case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19078 esac
19079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19080 $as_echo "$ac_try_echo") >&5
19081 (eval "$ac_try") 2>&5
19082 ac_status=$?
19083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; }; then
19085 ac_cv_sizeof_short=`cat conftest.val`
19086 else
19087 $as_echo "$as_me: program exited with status $ac_status" >&5
19088 $as_echo "$as_me: failed program was:" >&5
19089 sed 's/^/| /' conftest.$ac_ext >&5
19091 ( exit $ac_status )
19092 if test "$ac_cv_type_short" = yes; then
19093 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19095 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19096 See \`config.log' for more details." >&5
19097 $as_echo "$as_me: error: cannot compute sizeof (short)
19098 See \`config.log' for more details." >&2;}
19099 { (exit 77); exit 77; }; }; }
19100 else
19101 ac_cv_sizeof_short=0
19104 rm -rf conftest.dSYM
19105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19107 rm -f conftest.val
19109 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19110 $as_echo "$ac_cv_sizeof_short" >&6; }
19114 cat >>confdefs.h <<_ACEOF
19115 #define SIZEOF_SHORT $ac_cv_sizeof_short
19116 _ACEOF
19119 # The cast to long int works around a bug in the HP C Compiler
19120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19122 # This bug is HP SR number 8606223364.
19123 { $as_echo "$as_me:$LINENO: checking size of int" >&5
19124 $as_echo_n "checking size of int... " >&6; }
19125 if test "${ac_cv_sizeof_int+set}" = set; then
19126 $as_echo_n "(cached) " >&6
19127 else
19128 if test "$cross_compiling" = yes; then
19129 # Depending upon the size, compute the lo and hi bounds.
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h. */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19138 main ()
19140 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
19141 test_array [0] = 0
19144 return 0;
19146 _ACEOF
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152 esac
19153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19154 $as_echo "$ac_try_echo") >&5
19155 (eval "$ac_compile") 2>conftest.er1
19156 ac_status=$?
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
19160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } && {
19162 test -z "$ac_c_werror_flag" ||
19163 test ! -s conftest.err
19164 } && test -s conftest.$ac_objext; then
19165 ac_lo=0 ac_mid=0
19166 while :; do
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 $ac_includes_default
19175 main ()
19177 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
19178 test_array [0] = 0
19181 return 0;
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19191 $as_echo "$ac_try_echo") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest.$ac_objext; then
19202 ac_hi=$ac_mid; break
19203 else
19204 $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19207 ac_lo=`expr $ac_mid + 1`
19208 if test $ac_lo -le $ac_mid; then
19209 ac_lo= ac_hi=
19210 break
19212 ac_mid=`expr 2 '*' $ac_mid + 1`
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 done
19217 else
19218 $as_echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h. */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 $ac_includes_default
19229 main ()
19231 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
19232 test_array [0] = 0
19235 return 0;
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243 esac
19244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245 $as_echo "$ac_try_echo") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest.$ac_objext; then
19256 ac_hi=-1 ac_mid=-1
19257 while :; do
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 $ac_includes_default
19266 main ()
19268 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
19269 test_array [0] = 0
19272 return 0;
19274 _ACEOF
19275 rm -f conftest.$ac_objext
19276 if { (ac_try="$ac_compile"
19277 case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280 esac
19281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19282 $as_echo "$ac_try_echo") >&5
19283 (eval "$ac_compile") 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } && {
19290 test -z "$ac_c_werror_flag" ||
19291 test ! -s conftest.err
19292 } && test -s conftest.$ac_objext; then
19293 ac_lo=$ac_mid; break
19294 else
19295 $as_echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_hi=`expr '(' $ac_mid ')' - 1`
19299 if test $ac_mid -le $ac_hi; then
19300 ac_lo= ac_hi=
19301 break
19303 ac_mid=`expr 2 '*' $ac_mid`
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 done
19308 else
19309 $as_echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_lo= ac_hi=
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319 # Binary search between lo and hi bounds.
19320 while test "x$ac_lo" != "x$ac_hi"; do
19321 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19322 cat >conftest.$ac_ext <<_ACEOF
19323 /* confdefs.h. */
19324 _ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 $ac_includes_default
19330 main ()
19332 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
19333 test_array [0] = 0
19336 return 0;
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (ac_try="$ac_compile"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19344 esac
19345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19346 $as_echo "$ac_try_echo") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest.$ac_objext; then
19357 ac_hi=$ac_mid
19358 else
19359 $as_echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 ac_lo=`expr '(' $ac_mid ')' + 1`
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 done
19367 case $ac_lo in
19368 ?*) ac_cv_sizeof_int=$ac_lo;;
19369 '') if test "$ac_cv_type_int" = yes; then
19370 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19372 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19373 See \`config.log' for more details." >&5
19374 $as_echo "$as_me: error: cannot compute sizeof (int)
19375 See \`config.log' for more details." >&2;}
19376 { (exit 77); exit 77; }; }; }
19377 else
19378 ac_cv_sizeof_int=0
19379 fi ;;
19380 esac
19381 else
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h. */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19388 $ac_includes_default
19389 static long int longval () { return (long int) (sizeof (int)); }
19390 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
19391 #include <stdio.h>
19392 #include <stdlib.h>
19394 main ()
19397 FILE *f = fopen ("conftest.val", "w");
19398 if (! f)
19399 return 1;
19400 if (((long int) (sizeof (int))) < 0)
19402 long int i = longval ();
19403 if (i != ((long int) (sizeof (int))))
19404 return 1;
19405 fprintf (f, "%ld", i);
19407 else
19409 unsigned long int i = ulongval ();
19410 if (i != ((long int) (sizeof (int))))
19411 return 1;
19412 fprintf (f, "%lu", i);
19414 /* Do not output a trailing newline, as this causes \r\n confusion
19415 on some platforms. */
19416 return ferror (f) || fclose (f) != 0;
19419 return 0;
19421 _ACEOF
19422 rm -f conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19427 esac
19428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19429 $as_echo "$ac_try_echo") >&5
19430 (eval "$ac_link") 2>&5
19431 ac_status=$?
19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19439 $as_echo "$ac_try_echo") >&5
19440 (eval "$ac_try") 2>&5
19441 ac_status=$?
19442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_cv_sizeof_int=`cat conftest.val`
19445 else
19446 $as_echo "$as_me: program exited with status $ac_status" >&5
19447 $as_echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ( exit $ac_status )
19451 if test "$ac_cv_type_int" = yes; then
19452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19454 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
19455 See \`config.log' for more details." >&5
19456 $as_echo "$as_me: error: cannot compute sizeof (int)
19457 See \`config.log' for more details." >&2;}
19458 { (exit 77); exit 77; }; }; }
19459 else
19460 ac_cv_sizeof_int=0
19463 rm -rf conftest.dSYM
19464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19466 rm -f conftest.val
19468 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19469 $as_echo "$ac_cv_sizeof_int" >&6; }
19473 cat >>confdefs.h <<_ACEOF
19474 #define SIZEOF_INT $ac_cv_sizeof_int
19475 _ACEOF
19478 # The cast to long int works around a bug in the HP C Compiler
19479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19481 # This bug is HP SR number 8606223364.
19482 { $as_echo "$as_me:$LINENO: checking size of long" >&5
19483 $as_echo_n "checking size of long... " >&6; }
19484 if test "${ac_cv_sizeof_long+set}" = set; then
19485 $as_echo_n "(cached) " >&6
19486 else
19487 if test "$cross_compiling" = yes; then
19488 # Depending upon the size, compute the lo and hi bounds.
19489 cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h. */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h. */
19495 $ac_includes_default
19497 main ()
19499 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
19500 test_array [0] = 0
19503 return 0;
19505 _ACEOF
19506 rm -f conftest.$ac_objext
19507 if { (ac_try="$ac_compile"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19511 esac
19512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19513 $as_echo "$ac_try_echo") >&5
19514 (eval "$ac_compile") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest.$ac_objext; then
19524 ac_lo=0 ac_mid=0
19525 while :; do
19526 cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h. */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 $ac_includes_default
19534 main ()
19536 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
19537 test_array [0] = 0
19540 return 0;
19542 _ACEOF
19543 rm -f conftest.$ac_objext
19544 if { (ac_try="$ac_compile"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19548 esac
19549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19550 $as_echo "$ac_try_echo") >&5
19551 (eval "$ac_compile") 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest.$ac_objext; then
19561 ac_hi=$ac_mid; break
19562 else
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_lo=`expr $ac_mid + 1`
19567 if test $ac_lo -le $ac_mid; then
19568 ac_lo= ac_hi=
19569 break
19571 ac_mid=`expr 2 '*' $ac_mid + 1`
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 done
19576 else
19577 $as_echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19580 cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h. */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 $ac_includes_default
19588 main ()
19590 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
19591 test_array [0] = 0
19594 return 0;
19596 _ACEOF
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_compile") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest.$ac_objext; then
19615 ac_hi=-1 ac_mid=-1
19616 while :; do
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h. */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 $ac_includes_default
19625 main ()
19627 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
19628 test_array [0] = 0
19631 return 0;
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642 (eval "$ac_compile") 2>conftest.er1
19643 ac_status=$?
19644 grep -v '^ *+' conftest.er1 >conftest.err
19645 rm -f conftest.er1
19646 cat conftest.err >&5
19647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest.$ac_objext; then
19652 ac_lo=$ac_mid; break
19653 else
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_hi=`expr '(' $ac_mid ')' - 1`
19658 if test $ac_mid -le $ac_hi; then
19659 ac_lo= ac_hi=
19660 break
19662 ac_mid=`expr 2 '*' $ac_mid`
19665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666 done
19667 else
19668 $as_echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_lo= ac_hi=
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19678 # Binary search between lo and hi bounds.
19679 while test "x$ac_lo" != "x$ac_hi"; do
19680 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 $ac_includes_default
19689 main ()
19691 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
19692 test_array [0] = 0
19695 return 0;
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 ac_hi=$ac_mid
19717 else
19718 $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_lo=`expr '(' $ac_mid ')' + 1`
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 done
19726 case $ac_lo in
19727 ?*) ac_cv_sizeof_long=$ac_lo;;
19728 '') if test "$ac_cv_type_long" = yes; then
19729 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19731 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19732 See \`config.log' for more details." >&5
19733 $as_echo "$as_me: error: cannot compute sizeof (long)
19734 See \`config.log' for more details." >&2;}
19735 { (exit 77); exit 77; }; }; }
19736 else
19737 ac_cv_sizeof_long=0
19738 fi ;;
19739 esac
19740 else
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h. */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19747 $ac_includes_default
19748 static long int longval () { return (long int) (sizeof (long)); }
19749 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
19750 #include <stdio.h>
19751 #include <stdlib.h>
19753 main ()
19756 FILE *f = fopen ("conftest.val", "w");
19757 if (! f)
19758 return 1;
19759 if (((long int) (sizeof (long))) < 0)
19761 long int i = longval ();
19762 if (i != ((long int) (sizeof (long))))
19763 return 1;
19764 fprintf (f, "%ld", i);
19766 else
19768 unsigned long int i = ulongval ();
19769 if (i != ((long int) (sizeof (long))))
19770 return 1;
19771 fprintf (f, "%lu", i);
19773 /* Do not output a trailing newline, as this causes \r\n confusion
19774 on some platforms. */
19775 return ferror (f) || fclose (f) != 0;
19778 return 0;
19780 _ACEOF
19781 rm -f conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789 (eval "$ac_link") 2>&5
19790 ac_status=$?
19791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19793 { (case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19796 esac
19797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19798 $as_echo "$ac_try_echo") >&5
19799 (eval "$ac_try") 2>&5
19800 ac_status=$?
19801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_cv_sizeof_long=`cat conftest.val`
19804 else
19805 $as_echo "$as_me: program exited with status $ac_status" >&5
19806 $as_echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 ( exit $ac_status )
19810 if test "$ac_cv_type_long" = yes; then
19811 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19813 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19814 See \`config.log' for more details." >&5
19815 $as_echo "$as_me: error: cannot compute sizeof (long)
19816 See \`config.log' for more details." >&2;}
19817 { (exit 77); exit 77; }; }; }
19818 else
19819 ac_cv_sizeof_long=0
19822 rm -rf conftest.dSYM
19823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19825 rm -f conftest.val
19827 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19828 $as_echo "$ac_cv_sizeof_long" >&6; }
19832 cat >>confdefs.h <<_ACEOF
19833 #define SIZEOF_LONG $ac_cv_sizeof_long
19834 _ACEOF
19837 # The cast to long int works around a bug in the HP C Compiler
19838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19840 # This bug is HP SR number 8606223364.
19841 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
19842 $as_echo_n "checking size of long long... " >&6; }
19843 if test "${ac_cv_sizeof_long_long+set}" = set; then
19844 $as_echo_n "(cached) " >&6
19845 else
19846 if test "$cross_compiling" = yes; then
19847 # Depending upon the size, compute the lo and hi bounds.
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 $ac_includes_default
19856 main ()
19858 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
19859 test_array [0] = 0
19862 return 0;
19864 _ACEOF
19865 rm -f conftest.$ac_objext
19866 if { (ac_try="$ac_compile"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19870 esac
19871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19872 $as_echo "$ac_try_echo") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19874 ac_status=$?
19875 grep -v '^ *+' conftest.er1 >conftest.err
19876 rm -f conftest.er1
19877 cat conftest.err >&5
19878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && {
19880 test -z "$ac_c_werror_flag" ||
19881 test ! -s conftest.err
19882 } && test -s conftest.$ac_objext; then
19883 ac_lo=0 ac_mid=0
19884 while :; do
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 $ac_includes_default
19893 main ()
19895 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
19896 test_array [0] = 0
19899 return 0;
19901 _ACEOF
19902 rm -f conftest.$ac_objext
19903 if { (ac_try="$ac_compile"
19904 case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19907 esac
19908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19909 $as_echo "$ac_try_echo") >&5
19910 (eval "$ac_compile") 2>conftest.er1
19911 ac_status=$?
19912 grep -v '^ *+' conftest.er1 >conftest.err
19913 rm -f conftest.er1
19914 cat conftest.err >&5
19915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest.$ac_objext; then
19920 ac_hi=$ac_mid; break
19921 else
19922 $as_echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_lo=`expr $ac_mid + 1`
19926 if test $ac_lo -le $ac_mid; then
19927 ac_lo= ac_hi=
19928 break
19930 ac_mid=`expr 2 '*' $ac_mid + 1`
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 done
19935 else
19936 $as_echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19947 main ()
19949 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
19950 test_array [0] = 0
19953 return 0;
19955 _ACEOF
19956 rm -f conftest.$ac_objext
19957 if { (ac_try="$ac_compile"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19963 $as_echo "$ac_try_echo") >&5
19964 (eval "$ac_compile") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest.$ac_objext; then
19974 ac_hi=-1 ac_mid=-1
19975 while :; do
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 $ac_includes_default
19984 main ()
19986 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
19987 test_array [0] = 0
19990 return 0;
19992 _ACEOF
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998 esac
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.$ac_objext; then
20011 ac_lo=$ac_mid; break
20012 else
20013 $as_echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_hi=`expr '(' $ac_mid ')' - 1`
20017 if test $ac_mid -le $ac_hi; then
20018 ac_lo= ac_hi=
20019 break
20021 ac_mid=`expr 2 '*' $ac_mid`
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 done
20026 else
20027 $as_echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20030 ac_lo= ac_hi=
20033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 # Binary search between lo and hi bounds.
20038 while test "x$ac_lo" != "x$ac_hi"; do
20039 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046 $ac_includes_default
20048 main ()
20050 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
20051 test_array [0] = 0
20054 return 0;
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest.$ac_objext; then
20075 ac_hi=$ac_mid
20076 else
20077 $as_echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_lo=`expr '(' $ac_mid ')' + 1`
20083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084 done
20085 case $ac_lo in
20086 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20087 '') if test "$ac_cv_type_long_long" = yes; then
20088 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20090 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
20091 See \`config.log' for more details." >&5
20092 $as_echo "$as_me: error: cannot compute sizeof (long long)
20093 See \`config.log' for more details." >&2;}
20094 { (exit 77); exit 77; }; }; }
20095 else
20096 ac_cv_sizeof_long_long=0
20097 fi ;;
20098 esac
20099 else
20100 cat >conftest.$ac_ext <<_ACEOF
20101 /* confdefs.h. */
20102 _ACEOF
20103 cat confdefs.h >>conftest.$ac_ext
20104 cat >>conftest.$ac_ext <<_ACEOF
20105 /* end confdefs.h. */
20106 $ac_includes_default
20107 static long int longval () { return (long int) (sizeof (long long)); }
20108 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
20109 #include <stdio.h>
20110 #include <stdlib.h>
20112 main ()
20115 FILE *f = fopen ("conftest.val", "w");
20116 if (! f)
20117 return 1;
20118 if (((long int) (sizeof (long long))) < 0)
20120 long int i = longval ();
20121 if (i != ((long int) (sizeof (long long))))
20122 return 1;
20123 fprintf (f, "%ld", i);
20125 else
20127 unsigned long int i = ulongval ();
20128 if (i != ((long int) (sizeof (long long))))
20129 return 1;
20130 fprintf (f, "%lu", i);
20132 /* Do not output a trailing newline, as this causes \r\n confusion
20133 on some platforms. */
20134 return ferror (f) || fclose (f) != 0;
20137 return 0;
20139 _ACEOF
20140 rm -f conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147 $as_echo "$ac_try_echo") >&5
20148 (eval "$ac_link") 2>&5
20149 ac_status=$?
20150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20152 { (case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155 esac
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158 (eval "$ac_try") 2>&5
20159 ac_status=$?
20160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_sizeof_long_long=`cat conftest.val`
20163 else
20164 $as_echo "$as_me: program exited with status $ac_status" >&5
20165 $as_echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20168 ( exit $ac_status )
20169 if test "$ac_cv_type_long_long" = yes; then
20170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20172 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
20173 See \`config.log' for more details." >&5
20174 $as_echo "$as_me: error: cannot compute sizeof (long long)
20175 See \`config.log' for more details." >&2;}
20176 { (exit 77); exit 77; }; }; }
20177 else
20178 ac_cv_sizeof_long_long=0
20181 rm -rf conftest.dSYM
20182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20184 rm -f conftest.val
20186 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20187 $as_echo "$ac_cv_sizeof_long_long" >&6; }
20191 cat >>confdefs.h <<_ACEOF
20192 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20193 _ACEOF
20196 if test x$ac_cv_sizeof_char = x1; then
20197 cat >>confdefs.h <<\_ACEOF
20198 #define int8_t signed char
20199 _ACEOF
20201 cat >>confdefs.h <<\_ACEOF
20202 #define uint8_t unsigned char
20203 _ACEOF
20206 if test x$ac_cv_sizeof_short = x2; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define int16_t signed short
20209 _ACEOF
20211 cat >>confdefs.h <<\_ACEOF
20212 #define uint16_t unsigned short
20213 _ACEOF
20215 else
20216 if test x$ac_cv_sizeof_int = x2; then
20217 cat >>confdefs.h <<\_ACEOF
20218 #define int16_t signed int
20219 _ACEOF
20221 cat >>confdefs.h <<\_ACEOF
20222 #define uint16_t unsigned int
20223 _ACEOF
20227 if test x$ac_cv_sizeof_int = x4; then
20228 cat >>confdefs.h <<\_ACEOF
20229 #define int32_t signed int
20230 _ACEOF
20232 cat >>confdefs.h <<\_ACEOF
20233 #define uint32_t unsigned int
20234 _ACEOF
20236 else
20237 if test x$ac_cv_sizeof_long = x4; then
20238 cat >>confdefs.h <<\_ACEOF
20239 #define int32_t signed long
20240 _ACEOF
20242 cat >>confdefs.h <<\_ACEOF
20243 #define uint32_t unsigned long
20244 _ACEOF
20248 if test x$ac_cv_sizeof_long = x8; then
20249 cat >>confdefs.h <<\_ACEOF
20250 #define int64_t signed long
20251 _ACEOF
20253 cat >>confdefs.h <<\_ACEOF
20254 #define uint64_t unsigned long
20255 _ACEOF
20257 cat >>confdefs.h <<\_ACEOF
20258 #define SDL_HAS_64BIT_TYPE 1
20259 _ACEOF
20261 else
20262 if test x$ac_cv_sizeof_long_long = x8; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define int64_t signed long long
20265 _ACEOF
20267 cat >>confdefs.h <<\_ACEOF
20268 #define uint64_t unsigned long long
20269 _ACEOF
20271 cat >>confdefs.h <<\_ACEOF
20272 #define SDL_HAS_64BIT_TYPE 1
20273 _ACEOF
20277 cat >>confdefs.h <<\_ACEOF
20278 #define size_t unsigned int
20279 _ACEOF
20281 cat >>confdefs.h <<\_ACEOF
20282 #define uintptr_t unsigned long
20283 _ACEOF
20287 # Standard C sources
20288 SOURCES="$SOURCES $srcdir/src/*.c"
20289 SOURCES="$SOURCES $srcdir/src/audio/*.c"
20290 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
20291 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
20292 SOURCES="$SOURCES $srcdir/src/events/*.c"
20293 SOURCES="$SOURCES $srcdir/src/file/*.c"
20294 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
20295 SOURCES="$SOURCES $srcdir/src/thread/*.c"
20296 SOURCES="$SOURCES $srcdir/src/timer/*.c"
20297 SOURCES="$SOURCES $srcdir/src/video/*.c"
20300 # Check whether --enable-audio was given.
20301 if test "${enable_audio+set}" = set; then
20302 enableval=$enable_audio;
20303 else
20304 enable_audio=yes
20307 if test x$enable_audio != xyes; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define SDL_AUDIO_DISABLED 1
20310 _ACEOF
20313 # Check whether --enable-video was given.
20314 if test "${enable_video+set}" = set; then
20315 enableval=$enable_video;
20316 else
20317 enable_video=yes
20320 if test x$enable_video != xyes; then
20321 cat >>confdefs.h <<\_ACEOF
20322 #define SDL_VIDEO_DISABLED 1
20323 _ACEOF
20326 # Check whether --enable-events was given.
20327 if test "${enable_events+set}" = set; then
20328 enableval=$enable_events;
20329 else
20330 enable_events=yes
20333 if test x$enable_events != xyes; then
20334 cat >>confdefs.h <<\_ACEOF
20335 #define SDL_EVENTS_DISABLED 1
20336 _ACEOF
20339 # Check whether --enable-joystick was given.
20340 if test "${enable_joystick+set}" = set; then
20341 enableval=$enable_joystick;
20342 else
20343 enable_joystick=yes
20346 if test x$enable_joystick != xyes; then
20347 cat >>confdefs.h <<\_ACEOF
20348 #define SDL_JOYSTICK_DISABLED 1
20349 _ACEOF
20351 else
20352 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
20354 # Check whether --enable-cdrom was given.
20355 if test "${enable_cdrom+set}" = set; then
20356 enableval=$enable_cdrom;
20357 else
20358 enable_cdrom=yes
20361 if test x$enable_cdrom != xyes; then
20362 cat >>confdefs.h <<\_ACEOF
20363 #define SDL_CDROM_DISABLED 1
20364 _ACEOF
20367 # Check whether --enable-threads was given.
20368 if test "${enable_threads+set}" = set; then
20369 enableval=$enable_threads;
20370 else
20371 enable_threads=yes
20374 if test x$enable_threads != xyes; then
20375 cat >>confdefs.h <<\_ACEOF
20376 #define SDL_THREADS_DISABLED 1
20377 _ACEOF
20380 # Check whether --enable-timers was given.
20381 if test "${enable_timers+set}" = set; then
20382 enableval=$enable_timers;
20383 else
20384 enable_timers=yes
20387 if test x$enable_timers != xyes; then
20388 cat >>confdefs.h <<\_ACEOF
20389 #define SDL_TIMERS_DISABLED 1
20390 _ACEOF
20393 # Check whether --enable-file was given.
20394 if test "${enable_file+set}" = set; then
20395 enableval=$enable_file;
20396 else
20397 enable_file=yes
20400 if test x$enable_file != xyes; then
20401 cat >>confdefs.h <<\_ACEOF
20402 #define SDL_FILE_DISABLED 1
20403 _ACEOF
20406 # Check whether --enable-loadso was given.
20407 if test "${enable_loadso+set}" = set; then
20408 enableval=$enable_loadso;
20409 else
20410 enable_loadso=yes
20413 if test x$enable_loadso != xyes; then
20414 cat >>confdefs.h <<\_ACEOF
20415 #define SDL_LOADSO_DISABLED 1
20416 _ACEOF
20419 # Check whether --enable-cpuinfo was given.
20420 if test "${enable_cpuinfo+set}" = set; then
20421 enableval=$enable_cpuinfo;
20422 else
20423 enable_cpuinfo=yes
20426 if test x$enable_cpuinfo != xyes; then
20427 cat >>confdefs.h <<\_ACEOF
20428 #define SDL_CPUINFO_DISABLED 1
20429 _ACEOF
20432 # Check whether --enable-assembly was given.
20433 if test "${enable_assembly+set}" = set; then
20434 enableval=$enable_assembly;
20435 else
20436 enable_assembly=yes
20439 if test x$enable_assembly = xyes; then
20440 cat >>confdefs.h <<\_ACEOF
20441 #define SDL_ASSEMBLY_ROUTINES 1
20442 _ACEOF
20446 CheckOSS()
20448 # Check whether --enable-oss was given.
20449 if test "${enable_oss+set}" = set; then
20450 enableval=$enable_oss;
20451 else
20452 enable_oss=yes
20455 if test x$enable_audio = xyes -a x$enable_oss = xyes; then
20456 { $as_echo "$as_me:$LINENO: checking for OSS audio support" >&5
20457 $as_echo_n "checking for OSS audio support... " >&6; }
20458 have_oss=no
20459 if test x$have_oss != xyes; then
20460 cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h. */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20467 #include <sys/soundcard.h>
20470 main ()
20473 int arg = SNDCTL_DSP_SETFRAGMENT;
20476 return 0;
20478 _ACEOF
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484 esac
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20498 have_oss=yes
20500 else
20501 $as_echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509 if test x$have_oss != xyes; then
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h. */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20517 #include <soundcard.h>
20520 main ()
20523 int arg = SNDCTL_DSP_SETFRAGMENT;
20526 return 0;
20528 _ACEOF
20529 rm -f conftest.$ac_objext
20530 if { (ac_try="$ac_compile"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534 esac
20535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20536 $as_echo "$ac_try_echo") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20548 have_oss=yes
20549 cat >>confdefs.h <<\_ACEOF
20550 #define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
20551 _ACEOF
20554 else
20555 $as_echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { $as_echo "$as_me:$LINENO: result: $have_oss" >&5
20564 $as_echo "$have_oss" >&6; }
20565 if test x$have_oss = xyes; then
20566 cat >>confdefs.h <<\_ACEOF
20567 #define SDL_AUDIO_DRIVER_OSS 1
20568 _ACEOF
20570 SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
20571 SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
20572 have_audio=yes
20574 # We may need to link with ossaudio emulation library
20575 case "$host" in
20576 *-*-openbsd*|*-*-netbsd*)
20577 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
20578 esac
20583 CheckALSA()
20585 # Check whether --enable-alsa was given.
20586 if test "${enable_alsa+set}" = set; then
20587 enableval=$enable_alsa;
20588 else
20589 enable_alsa=yes
20592 if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
20593 alsa_save_CFLAGS="$CFLAGS"
20594 alsa_save_LDFLAGS="$LDFLAGS"
20595 alsa_save_LIBS="$LIBS"
20596 alsa_found=yes
20599 # Check whether --with-alsa-prefix was given.
20600 if test "${with_alsa_prefix+set}" = set; then
20601 withval=$with_alsa_prefix; alsa_prefix="$withval"
20602 else
20603 alsa_prefix=""
20608 # Check whether --with-alsa-inc-prefix was given.
20609 if test "${with_alsa_inc_prefix+set}" = set; then
20610 withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
20611 else
20612 alsa_inc_prefix=""
20616 # Check whether --enable-alsatest was given.
20617 if test "${enable_alsatest+set}" = set; then
20618 enableval=$enable_alsatest; enable_alsatest="$enableval"
20619 else
20620 enable_alsatest=yes
20624 { $as_echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
20625 $as_echo_n "checking for ALSA CFLAGS... " >&6; }
20626 if test "$alsa_inc_prefix" != "" ; then
20627 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
20628 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
20630 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20631 $as_echo "$ALSA_CFLAGS" >&6; }
20633 { $as_echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
20634 $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
20635 if test "$alsa_prefix" != "" ; then
20636 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
20637 LDFLAGS="$LDFLAGS $ALSA_LIBS"
20640 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
20641 LIBS=`echo $LIBS | sed 's/-lm//'`
20642 LIBS=`echo $LIBS | sed 's/-ldl//'`
20643 LIBS=`echo $LIBS | sed 's/-lpthread//'`
20644 LIBS=`echo $LIBS | sed 's/ //'`
20645 LIBS="$ALSA_LIBS $LIBS"
20646 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20647 $as_echo "$ALSA_LIBS" >&6; }
20649 min_alsa_version=0.9.0
20650 { $as_echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
20651 $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
20652 no_alsa=""
20653 alsa_min_major_version=`echo $min_alsa_version | \
20654 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20655 alsa_min_minor_version=`echo $min_alsa_version | \
20656 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20657 alsa_min_micro_version=`echo $min_alsa_version | \
20658 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20661 ac_ext=c
20662 ac_cpp='$CPP $CPPFLAGS'
20663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20674 #include <alsa/asoundlib.h>
20677 main ()
20680 /* ensure backward compatibility */
20681 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
20682 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
20683 #endif
20684 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
20685 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
20686 #endif
20687 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
20688 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
20689 #endif
20691 # if(SND_LIB_MAJOR > $alsa_min_major_version)
20692 exit(0);
20693 # else
20694 # if(SND_LIB_MAJOR < $alsa_min_major_version)
20695 # error not present
20696 # endif
20698 # if(SND_LIB_MINOR > $alsa_min_minor_version)
20699 exit(0);
20700 # else
20701 # if(SND_LIB_MINOR < $alsa_min_minor_version)
20702 # error not present
20703 # endif
20705 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
20706 # error not present
20707 # endif
20708 # endif
20709 # endif
20710 exit(0);
20713 return 0;
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20723 $as_echo "$ac_try_echo") >&5
20724 (eval "$ac_compile") 2>conftest.er1
20725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } && {
20731 test -z "$ac_c_werror_flag" ||
20732 test ! -s conftest.err
20733 } && test -s conftest.$ac_objext; then
20734 { $as_echo "$as_me:$LINENO: result: found." >&5
20735 $as_echo "found." >&6; }
20736 else
20737 $as_echo "$as_me: failed program was:" >&5
20738 sed 's/^/| /' conftest.$ac_ext >&5
20740 { $as_echo "$as_me:$LINENO: result: not present." >&5
20741 $as_echo "not present." >&6; }
20743 alsa_found=no
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20748 ac_ext=c
20749 ac_cpp='$CPP $CPPFLAGS'
20750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20755 if test "x$enable_alsatest" = "xyes"; then
20757 { $as_echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
20758 $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
20759 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
20760 $as_echo_n "(cached) " >&6
20761 else
20762 ac_check_lib_save_LIBS=$LIBS
20763 LIBS="-lasound $LIBS"
20764 cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h. */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 char snd_ctl_open ();
20779 main ()
20781 return snd_ctl_open ();
20783 return 0;
20785 _ACEOF
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20791 esac
20792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20793 $as_echo "$ac_try_echo") >&5
20794 (eval "$ac_link") 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest$ac_exeext && {
20804 test "$cross_compiling" = yes ||
20805 $as_test_x conftest$ac_exeext
20806 }; then
20807 ac_cv_lib_asound_snd_ctl_open=yes
20808 else
20809 $as_echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_asound_snd_ctl_open=no
20815 rm -rf conftest.dSYM
20816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818 LIBS=$ac_check_lib_save_LIBS
20820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
20821 $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
20822 if test "x$ac_cv_lib_asound_snd_ctl_open" = x""yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_LIBASOUND 1
20825 _ACEOF
20827 LIBS="-lasound $LIBS"
20829 else
20831 alsa_found=no
20837 if test "x$alsa_found" = "xyes" ; then
20838 have_alsa=yes
20839 LIBS=`echo $LIBS | sed 's/-lasound//g'`
20840 LIBS=`echo $LIBS | sed 's/ //'`
20841 LIBS="-lasound $LIBS"
20843 if test "x$alsa_found" = "xno" ; then
20844 have_alsa=no
20845 CFLAGS="$alsa_save_CFLAGS"
20846 LDFLAGS="$alsa_save_LDFLAGS"
20847 LIBS="$alsa_save_LIBS"
20848 ALSA_CFLAGS=""
20849 ALSA_LIBS=""
20855 # Restore all flags from before the ALSA detection runs
20856 CFLAGS="$alsa_save_CFLAGS"
20857 LDFLAGS="$alsa_save_LDFLAGS"
20858 LIBS="$alsa_save_LIBS"
20859 if test x$have_alsa = xyes; then
20860 # Check whether --enable-alsa-shared was given.
20861 if test "${enable_alsa_shared+set}" = set; then
20862 enableval=$enable_alsa_shared;
20863 else
20864 enable_alsa_shared=yes
20867 alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20869 cat >>confdefs.h <<\_ACEOF
20870 #define SDL_AUDIO_DRIVER_ALSA 1
20871 _ACEOF
20873 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
20874 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
20875 if test x$have_loadso != xyes && \
20876 test x$enable_alsa_shared = xyes; then
20877 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
20878 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
20880 if test x$have_loadso = xyes && \
20881 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
20882 echo "-- dynamic libasound -> $alsa_lib"
20883 cat >>confdefs.h <<_ACEOF
20884 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
20885 _ACEOF
20887 else
20888 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
20890 have_audio=yes
20895 CheckDMEDIA()
20897 if test x$enable_audio = xyes; then
20898 { $as_echo "$as_me:$LINENO: checking for dmedia audio support" >&5
20899 $as_echo_n "checking for dmedia audio support... " >&6; }
20900 have_dmedia=no
20901 cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h. */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20908 #include <dmedia/audio.h>
20911 main ()
20914 ALport audio_port;
20917 return 0;
20919 _ACEOF
20920 rm -f conftest.$ac_objext
20921 if { (ac_try="$ac_compile"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20927 $as_echo "$ac_try_echo") >&5
20928 (eval "$ac_compile") 2>conftest.er1
20929 ac_status=$?
20930 grep -v '^ *+' conftest.er1 >conftest.err
20931 rm -f conftest.er1
20932 cat conftest.err >&5
20933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); } && {
20935 test -z "$ac_c_werror_flag" ||
20936 test ! -s conftest.err
20937 } && test -s conftest.$ac_objext; then
20939 have_dmedia=yes
20941 else
20942 $as_echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 { $as_echo "$as_me:$LINENO: result: $have_dmedia" >&5
20950 $as_echo "$have_dmedia" >&6; }
20951 # Set up files for the audio library
20952 if test x$have_dmedia = xyes; then
20953 cat >>confdefs.h <<\_ACEOF
20954 #define SDL_AUDIO_DRIVER_DMEDIA 1
20955 _ACEOF
20957 SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
20958 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
20959 have_audio=yes
20964 CheckMME()
20966 case $ARCH in
20967 osf)
20970 return
20972 esac
20973 if test x$enable_audio = xyes; then
20974 { $as_echo "$as_me:$LINENO: checking for MME audio support" >&5
20975 $as_echo_n "checking for MME audio support... " >&6; }
20976 MME_CFLAGS="-I/usr/include/mme"
20977 MME_LIBS="-lmme"
20978 have_mme=no
20979 save_CFLAGS="$CFLAGS"
20980 CFLAGS="$CFLAGS $MME_CFLAGS"
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 #include <mme_api.h>
20991 main ()
20994 HWAVEOUT sound;
20997 return 0;
20999 _ACEOF
21000 rm -f conftest.$ac_objext
21001 if { (ac_try="$ac_compile"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005 esac
21006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21007 $as_echo "$ac_try_echo") >&5
21008 (eval "$ac_compile") 2>conftest.er1
21009 ac_status=$?
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
21013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && {
21015 test -z "$ac_c_werror_flag" ||
21016 test ! -s conftest.err
21017 } && test -s conftest.$ac_objext; then
21019 have_mme=yes
21021 else
21022 $as_echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 CFLAGS="$save_CFLAGS"
21030 { $as_echo "$as_me:$LINENO: result: $have_mme" >&5
21031 $as_echo "$have_mme" >&6; }
21032 # Set up files for the audio library
21033 if test x$have_mme = xyes; then
21034 cat >>confdefs.h <<\_ACEOF
21035 #define SDL_AUDIO_DRIVER_MMEAUDIO 1
21036 _ACEOF
21038 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
21039 EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
21040 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
21041 have_audio=yes
21046 CheckESD()
21048 # Check whether --enable-esd was given.
21049 if test "${enable_esd+set}" = set; then
21050 enableval=$enable_esd;
21051 else
21052 enable_esd=yes
21055 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
21057 # Check whether --with-esd-prefix was given.
21058 if test "${with_esd_prefix+set}" = set; then
21059 withval=$with_esd_prefix; esd_prefix="$withval"
21060 else
21061 esd_prefix=""
21065 # Check whether --with-esd-exec-prefix was given.
21066 if test "${with_esd_exec_prefix+set}" = set; then
21067 withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
21068 else
21069 esd_exec_prefix=""
21072 # Check whether --enable-esdtest was given.
21073 if test "${enable_esdtest+set}" = set; then
21074 enableval=$enable_esdtest;
21075 else
21076 enable_esdtest=yes
21080 if test x$esd_exec_prefix != x ; then
21081 esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
21082 if test x${ESD_CONFIG+set} != xset ; then
21083 ESD_CONFIG=$esd_exec_prefix/bin/esd-config
21086 if test x$esd_prefix != x ; then
21087 esd_args="$esd_args --prefix=$esd_prefix"
21088 if test x${ESD_CONFIG+set} != xset ; then
21089 ESD_CONFIG=$esd_prefix/bin/esd-config
21093 # Extract the first word of "esd-config", so it can be a program name with args.
21094 set dummy esd-config; ac_word=$2
21095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21096 $as_echo_n "checking for $ac_word... " >&6; }
21097 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
21098 $as_echo_n "(cached) " >&6
21099 else
21100 case $ESD_CONFIG in
21101 [\\/]* | ?:[\\/]*)
21102 ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
21105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21106 for as_dir in $PATH
21108 IFS=$as_save_IFS
21109 test -z "$as_dir" && as_dir=.
21110 for ac_exec_ext in '' $ac_executable_extensions; do
21111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21112 ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21114 break 2
21116 done
21117 done
21118 IFS=$as_save_IFS
21120 test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
21122 esac
21124 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
21125 if test -n "$ESD_CONFIG"; then
21126 { $as_echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
21127 $as_echo "$ESD_CONFIG" >&6; }
21128 else
21129 { $as_echo "$as_me:$LINENO: result: no" >&5
21130 $as_echo "no" >&6; }
21134 min_esd_version=0.2.8
21135 { $as_echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
21136 $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
21137 no_esd=""
21138 if test "$ESD_CONFIG" = "no" ; then
21139 no_esd=yes
21140 else
21141 ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
21142 ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
21144 esd_major_version=`$ESD_CONFIG $esd_args --version | \
21145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21146 esd_minor_version=`$ESD_CONFIG $esd_args --version | \
21147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21148 esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
21149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21150 if test "x$enable_esdtest" = "xyes" ; then
21151 ac_save_CFLAGS="$CFLAGS"
21152 ac_save_LIBS="$LIBS"
21153 CFLAGS="$CFLAGS $ESD_CFLAGS"
21154 LIBS="$LIBS $ESD_LIBS"
21155 rm -f conf.esdtest
21156 if test "$cross_compiling" = yes; then
21157 echo $ac_n "cross compiling; assumed OK... $ac_c"
21158 else
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21166 #include <stdio.h>
21167 #include <stdlib.h>
21168 #include <string.h>
21169 #include <esd.h>
21171 char*
21172 my_strdup (char *str)
21174 char *new_str;
21176 if (str)
21178 new_str = malloc ((strlen (str) + 1) * sizeof(char));
21179 strcpy (new_str, str);
21181 else
21182 new_str = NULL;
21184 return new_str;
21187 int main ()
21189 int major, minor, micro;
21190 char *tmp_version;
21192 system ("touch conf.esdtest");
21194 /* HP/UX 9 (%@#!) writes to sscanf strings */
21195 tmp_version = my_strdup("$min_esd_version");
21196 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21197 printf("%s, bad version string\n", "$min_esd_version");
21198 exit(1);
21201 if (($esd_major_version > major) ||
21202 (($esd_major_version == major) && ($esd_minor_version > minor)) ||
21203 (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
21205 return 0;
21207 else
21209 printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
21210 printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
21211 printf("*** best to upgrade to the required version.\n");
21212 printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
21213 printf("*** to point to the correct copy of esd-config, and remove the file\n");
21214 printf("*** config.cache before re-running configure\n");
21215 return 1;
21220 _ACEOF
21221 rm -f conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226 esac
21227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228 $as_echo "$ac_try_echo") >&5
21229 (eval "$ac_link") 2>&5
21230 ac_status=$?
21231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21233 { (case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21236 esac
21237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21238 $as_echo "$ac_try_echo") >&5
21239 (eval "$ac_try") 2>&5
21240 ac_status=$?
21241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21244 else
21245 $as_echo "$as_me: program exited with status $ac_status" >&5
21246 $as_echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ( exit $ac_status )
21250 no_esd=yes
21252 rm -rf conftest.dSYM
21253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21257 CFLAGS="$ac_save_CFLAGS"
21258 LIBS="$ac_save_LIBS"
21261 if test "x$no_esd" = x ; then
21262 { $as_echo "$as_me:$LINENO: result: yes" >&5
21263 $as_echo "yes" >&6; }
21264 have_esd=yes
21265 else
21266 { $as_echo "$as_me:$LINENO: result: no" >&5
21267 $as_echo "no" >&6; }
21268 if test "$ESD_CONFIG" = "no" ; then
21269 echo "*** The esd-config script installed by ESD could not be found"
21270 echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
21271 echo "*** your path, or set the ESD_CONFIG environment variable to the"
21272 echo "*** full path to esd-config."
21273 else
21274 if test -f conf.esdtest ; then
21276 else
21277 echo "*** Could not run ESD test program, checking why..."
21278 CFLAGS="$CFLAGS $ESD_CFLAGS"
21279 LIBS="$LIBS $ESD_LIBS"
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 #include <stdio.h>
21288 #include <esd.h>
21291 main ()
21293 return 0;
21295 return 0;
21297 _ACEOF
21298 rm -f conftest.$ac_objext conftest$ac_exeext
21299 if { (ac_try="$ac_link"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21303 esac
21304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21305 $as_echo "$ac_try_echo") >&5
21306 (eval "$ac_link") 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest$ac_exeext && {
21316 test "$cross_compiling" = yes ||
21317 $as_test_x conftest$ac_exeext
21318 }; then
21319 echo "*** The test program compiled, but did not run. This usually means"
21320 echo "*** that the run-time linker is not finding ESD or finding the wrong"
21321 echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
21322 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21323 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21324 echo "*** is required on your system"
21325 echo "***"
21326 echo "*** If you have an old version installed, it is best to remove it, although"
21327 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21328 else
21329 $as_echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 echo "*** The test program failed to compile or link. See the file config.log for the"
21333 echo "*** exact error that occured. This usually means ESD was incorrectly installed"
21334 echo "*** or that you have moved ESD since it was installed. In the latter case, you"
21335 echo "*** may want to edit the esd-config script: $ESD_CONFIG"
21338 rm -rf conftest.dSYM
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext conftest.$ac_ext
21341 CFLAGS="$ac_save_CFLAGS"
21342 LIBS="$ac_save_LIBS"
21345 ESD_CFLAGS=""
21346 ESD_LIBS=""
21347 have_esd=no
21351 rm -f conf.esdtest
21353 if test x$have_esd = xyes; then
21354 # Check whether --enable-esd-shared was given.
21355 if test "${enable_esd_shared+set}" = set; then
21356 enableval=$enable_esd_shared;
21357 else
21358 enable_esd_shared=yes
21361 esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21363 cat >>confdefs.h <<\_ACEOF
21364 #define SDL_AUDIO_DRIVER_ESD 1
21365 _ACEOF
21367 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
21368 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
21369 if test x$have_loadso != xyes && \
21370 test x$enable_esd_shared = xyes; then
21371 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
21372 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
21374 if test x$have_loadso = xyes && \
21375 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
21376 echo "-- dynamic libesd -> $esd_lib"
21377 cat >>confdefs.h <<_ACEOF
21378 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
21379 _ACEOF
21381 else
21382 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
21384 have_audio=yes
21389 CheckPulseAudio()
21391 # Check whether --enable-pulseaudio was given.
21392 if test "${enable_pulseaudio+set}" = set; then
21393 enableval=$enable_pulseaudio;
21394 else
21395 enable_pulseaudio=yes
21398 if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
21399 audio_pulse=no
21401 PULSE_REQUIRED_VERSION=0.9
21403 # Extract the first word of "pkg-config", so it can be a program name with args.
21404 set dummy pkg-config; ac_word=$2
21405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21406 $as_echo_n "checking for $ac_word... " >&6; }
21407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21408 $as_echo_n "(cached) " >&6
21409 else
21410 case $PKG_CONFIG in
21411 [\\/]* | ?:[\\/]*)
21412 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21416 for as_dir in $PATH
21418 IFS=$as_save_IFS
21419 test -z "$as_dir" && as_dir=.
21420 for ac_exec_ext in '' $ac_executable_extensions; do
21421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21422 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21424 break 2
21426 done
21427 done
21428 IFS=$as_save_IFS
21430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21432 esac
21434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21435 if test -n "$PKG_CONFIG"; then
21436 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21437 $as_echo "$PKG_CONFIG" >&6; }
21438 else
21439 { $as_echo "$as_me:$LINENO: result: no" >&5
21440 $as_echo "no" >&6; }
21444 { $as_echo "$as_me:$LINENO: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5
21445 $as_echo_n "checking for PulseAudio $PULSE_REQUIRED_VERSION support... " >&6; }
21446 if test x$PKG_CONFIG != xno; then
21447 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
21448 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
21449 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
21450 audio_pulse=yes
21453 { $as_echo "$as_me:$LINENO: result: $audio_pulse" >&5
21454 $as_echo "$audio_pulse" >&6; }
21456 if test x$audio_pulse = xyes; then
21457 # Check whether --enable-pulseaudio-shared was given.
21458 if test "${enable_pulseaudio_shared+set}" = set; then
21459 enableval=$enable_pulseaudio_shared;
21460 else
21461 enable_pulseaudio_shared=yes
21464 pulse_lib=`find_lib "libpulse-simple.so.*" "$PULSE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21466 cat >>confdefs.h <<\_ACEOF
21467 #define SDL_AUDIO_DRIVER_PULSE 1
21468 _ACEOF
21470 SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
21471 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
21472 if test x$have_loadso != xyes && \
21473 test x$enable_pulseaudio_shared = xyes; then
21474 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
21475 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
21477 if test x$have_loadso = xyes && \
21478 test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
21479 echo "-- dynamic libpulse-simple -> $pulse_lib"
21480 cat >>confdefs.h <<_ACEOF
21481 #define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
21482 _ACEOF
21484 else
21485 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
21487 have_audio=yes
21492 CheckARTSC()
21494 # Check whether --enable-arts was given.
21495 if test "${enable_arts+set}" = set; then
21496 enableval=$enable_arts;
21497 else
21498 enable_arts=yes
21501 if test x$enable_audio = xyes -a x$enable_arts = xyes; then
21502 # Extract the first word of "artsc-config", so it can be a program name with args.
21503 set dummy artsc-config; ac_word=$2
21504 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
21507 $as_echo_n "(cached) " >&6
21508 else
21509 case $ARTSCONFIG in
21510 [\\/]* | ?:[\\/]*)
21511 ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
21514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21517 IFS=$as_save_IFS
21518 test -z "$as_dir" && as_dir=.
21519 for ac_exec_ext in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 break 2
21525 done
21526 done
21527 IFS=$as_save_IFS
21530 esac
21532 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
21533 if test -n "$ARTSCONFIG"; then
21534 { $as_echo "$as_me:$LINENO: result: $ARTSCONFIG" >&5
21535 $as_echo "$ARTSCONFIG" >&6; }
21536 else
21537 { $as_echo "$as_me:$LINENO: result: no" >&5
21538 $as_echo "no" >&6; }
21542 if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
21543 : # arts isn't installed
21544 else
21545 ARTS_CFLAGS=`$ARTSCONFIG --cflags`
21546 ARTS_LIBS=`$ARTSCONFIG --libs`
21547 { $as_echo "$as_me:$LINENO: checking for aRts development environment" >&5
21548 $as_echo_n "checking for aRts development environment... " >&6; }
21549 audio_arts=no
21550 save_CFLAGS="$CFLAGS"
21551 CFLAGS="$CFLAGS $ARTS_CFLAGS"
21552 cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h. */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21559 #include <artsc.h>
21562 main ()
21565 arts_stream_t stream;
21568 return 0;
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576 esac
21577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578 $as_echo "$ac_try_echo") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21580 ac_status=$?
21581 grep -v '^ *+' conftest.er1 >conftest.err
21582 rm -f conftest.er1
21583 cat conftest.err >&5
21584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21590 audio_arts=yes
21592 else
21593 $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 CFLAGS="$save_CFLAGS"
21601 { $as_echo "$as_me:$LINENO: result: $audio_arts" >&5
21602 $as_echo "$audio_arts" >&6; }
21603 if test x$audio_arts = xyes; then
21604 # Check whether --enable-arts-shared was given.
21605 if test "${enable_arts_shared+set}" = set; then
21606 enableval=$enable_arts_shared;
21607 else
21608 enable_arts_shared=yes
21611 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21613 cat >>confdefs.h <<\_ACEOF
21614 #define SDL_AUDIO_DRIVER_ARTS 1
21615 _ACEOF
21617 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
21618 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
21619 if test x$have_loadso != xyes && \
21620 test x$enable_arts_shared = xyes; then
21621 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
21622 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
21624 if test x$have_loadso = xyes && \
21625 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
21626 echo "-- dynamic libartsc -> $arts_lib"
21627 cat >>confdefs.h <<_ACEOF
21628 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
21629 _ACEOF
21631 else
21632 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
21634 have_audio=yes
21640 CheckNAS()
21642 # Check whether --enable-nas was given.
21643 if test "${enable_nas+set}" = set; then
21644 enableval=$enable_nas;
21645 else
21646 enable_nas=yes
21649 if test x$enable_audio = xyes -a x$enable_nas = xyes; then
21650 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21651 { $as_echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21652 $as_echo_n "checking for audio/audiolib.h... " >&6; }
21653 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21654 $as_echo_n "(cached) " >&6
21656 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21657 $as_echo "$ac_cv_header_audio_audiolib_h" >&6; }
21658 else
21659 # Is the header compilable?
21660 { $as_echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
21661 $as_echo_n "checking audio/audiolib.h usability... " >&6; }
21662 cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h. */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21669 #include <audio/audiolib.h>
21670 _ACEOF
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676 esac
21677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21678 $as_echo "$ac_try_echo") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21689 ac_header_compiler=yes
21690 else
21691 $as_echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21694 ac_header_compiler=no
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21699 $as_echo "$ac_header_compiler" >&6; }
21701 # Is the header present?
21702 { $as_echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
21703 $as_echo_n "checking audio/audiolib.h presence... " >&6; }
21704 cat >conftest.$ac_ext <<_ACEOF
21705 /* confdefs.h. */
21706 _ACEOF
21707 cat confdefs.h >>conftest.$ac_ext
21708 cat >>conftest.$ac_ext <<_ACEOF
21709 /* end confdefs.h. */
21710 #include <audio/audiolib.h>
21711 _ACEOF
21712 if { (ac_try="$ac_cpp conftest.$ac_ext"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716 esac
21717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718 $as_echo "$ac_try_echo") >&5
21719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null && {
21726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 }; then
21729 ac_header_preproc=yes
21730 else
21731 $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_header_preproc=no
21737 rm -f conftest.err conftest.$ac_ext
21738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21739 $as_echo "$ac_header_preproc" >&6; }
21741 # So? What about this header?
21742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21743 yes:no: )
21744 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21745 $as_echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21746 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
21747 $as_echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
21748 ac_header_preproc=yes
21750 no:yes:* )
21751 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
21752 $as_echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
21753 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&5
21754 $as_echo "$as_me: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&2;}
21755 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
21756 $as_echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
21757 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&5
21758 $as_echo "$as_me: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21759 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
21760 $as_echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
21761 { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
21762 $as_echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
21765 esac
21766 { $as_echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21767 $as_echo_n "checking for audio/audiolib.h... " >&6; }
21768 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21769 $as_echo_n "(cached) " >&6
21770 else
21771 ac_cv_header_audio_audiolib_h=$ac_header_preproc
21773 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21774 $as_echo "$ac_cv_header_audio_audiolib_h" >&6; }
21777 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then
21778 have_nas_hdr=yes
21782 { $as_echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
21783 $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
21784 if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
21785 $as_echo_n "(cached) " >&6
21786 else
21787 ac_check_lib_save_LIBS=$LIBS
21788 LIBS="-laudio $LIBS"
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21796 /* Override any GCC internal prototype to avoid an error.
21797 Use char because int might match the return type of a GCC
21798 builtin and then its argument prototype would still apply. */
21799 #ifdef __cplusplus
21800 extern "C"
21801 #endif
21802 char AuOpenServer ();
21804 main ()
21806 return AuOpenServer ();
21808 return 0;
21810 _ACEOF
21811 rm -f conftest.$ac_objext conftest$ac_exeext
21812 if { (ac_try="$ac_link"
21813 case "(($ac_try" in
21814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815 *) ac_try_echo=$ac_try;;
21816 esac
21817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21818 $as_echo "$ac_try_echo") >&5
21819 (eval "$ac_link") 2>conftest.er1
21820 ac_status=$?
21821 grep -v '^ *+' conftest.er1 >conftest.err
21822 rm -f conftest.er1
21823 cat conftest.err >&5
21824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } && {
21826 test -z "$ac_c_werror_flag" ||
21827 test ! -s conftest.err
21828 } && test -s conftest$ac_exeext && {
21829 test "$cross_compiling" = yes ||
21830 $as_test_x conftest$ac_exeext
21831 }; then
21832 ac_cv_lib_audio_AuOpenServer=yes
21833 else
21834 $as_echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_lib_audio_AuOpenServer=no
21840 rm -rf conftest.dSYM
21841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21842 conftest$ac_exeext conftest.$ac_ext
21843 LIBS=$ac_check_lib_save_LIBS
21845 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
21846 $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
21847 if test "x$ac_cv_lib_audio_AuOpenServer" = x""yes; then
21848 have_nas_lib=yes
21852 { $as_echo "$as_me:$LINENO: checking for NAS audio support" >&5
21853 $as_echo_n "checking for NAS audio support... " >&6; }
21854 have_nas=no
21856 if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
21857 have_nas=yes
21858 NAS_LIBS="-laudio"
21860 elif test -r /usr/X11R6/include/audio/audiolib.h; then
21861 have_nas=yes
21862 NAS_CFLAGS="-I/usr/X11R6/include/"
21863 NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
21866 elif test -r /usr/freeware/include/nas/audiolib.h; then
21867 have_nas=yes
21868 NAS_LIBS="-lnas -lXt"
21871 { $as_echo "$as_me:$LINENO: result: $have_nas" >&5
21872 $as_echo "$have_nas" >&6; }
21874 if test x$have_nas = xyes; then
21875 # Check whether --enable-nas-shared was given.
21876 if test "${enable_nas_shared+set}" = set; then
21877 enableval=$enable_nas_shared;
21878 else
21879 enable_nas_shared=yes
21882 nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21884 if test x$have_loadso != xyes && \
21885 test x$enable_nas_shared = xyes; then
21886 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
21887 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
21889 if test x$have_loadso = xyes && \
21890 test x$enable_nas_shared = xyes && test x$nas_lib != x; then
21891 echo "-- dynamic libaudio -> $nas_lib"
21892 cat >>confdefs.h <<_ACEOF
21893 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
21894 _ACEOF
21896 else
21897 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
21900 cat >>confdefs.h <<\_ACEOF
21901 #define SDL_AUDIO_DRIVER_NAS 1
21902 _ACEOF
21904 SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
21905 EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
21906 have_audio=yes
21911 CheckDiskAudio()
21913 # Check whether --enable-diskaudio was given.
21914 if test "${enable_diskaudio+set}" = set; then
21915 enableval=$enable_diskaudio;
21916 else
21917 enable_diskaudio=yes
21920 if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
21921 cat >>confdefs.h <<\_ACEOF
21922 #define SDL_AUDIO_DRIVER_DISK 1
21923 _ACEOF
21925 SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
21929 CheckDummyAudio()
21931 # Check whether --enable-dummyaudio was given.
21932 if test "${enable_dummyaudio+set}" = set; then
21933 enableval=$enable_dummyaudio;
21934 else
21935 enable_dummyaudio=yes
21938 if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
21939 cat >>confdefs.h <<\_ACEOF
21940 #define SDL_AUDIO_DRIVER_DUMMY 1
21941 _ACEOF
21943 SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
21947 CheckAtariAudio()
21949 # Check whether --enable-mintaudio was given.
21950 if test "${enable_mintaudio+set}" = set; then
21951 enableval=$enable_mintaudio;
21952 else
21953 enable_mintaudio=yes
21956 if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
21957 mintaudio=no
21958 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21959 { $as_echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21960 $as_echo_n "checking for mint/falcon.h... " >&6; }
21961 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21962 $as_echo_n "(cached) " >&6
21964 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21965 $as_echo "$ac_cv_header_mint_falcon_h" >&6; }
21966 else
21967 # Is the header compilable?
21968 { $as_echo "$as_me:$LINENO: checking mint/falcon.h usability" >&5
21969 $as_echo_n "checking mint/falcon.h usability... " >&6; }
21970 cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h. */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21976 $ac_includes_default
21977 #include <mint/falcon.h>
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21986 $as_echo "$ac_try_echo") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21988 ac_status=$?
21989 grep -v '^ *+' conftest.er1 >conftest.err
21990 rm -f conftest.er1
21991 cat conftest.err >&5
21992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_header_compiler=yes
21998 else
21999 $as_echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_header_compiler=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007 $as_echo "$ac_header_compiler" >&6; }
22009 # Is the header present?
22010 { $as_echo "$as_me:$LINENO: checking mint/falcon.h presence" >&5
22011 $as_echo_n "checking mint/falcon.h presence... " >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22013 /* confdefs.h. */
22014 _ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include <mint/falcon.h>
22019 _ACEOF
22020 if { (ac_try="$ac_cpp conftest.$ac_ext"
22021 case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024 esac
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22028 ac_status=$?
22029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
22032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } >/dev/null && {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22036 }; then
22037 ac_header_preproc=yes
22038 else
22039 $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22042 ac_header_preproc=no
22045 rm -f conftest.err conftest.$ac_ext
22046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 $as_echo "$ac_header_preproc" >&6; }
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22051 yes:no: )
22052 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&5
22053 $as_echo "$as_me: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the compiler's result" >&5
22055 $as_echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc=yes
22058 no:yes:* )
22059 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: present but cannot be compiled" >&5
22060 $as_echo "$as_me: WARNING: mint/falcon.h: present but cannot be compiled" >&2;}
22061 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&5
22062 $as_echo "$as_me: WARNING: mint/falcon.h: check for missing prerequisite headers?" >&2;}
22063 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: see the Autoconf documentation" >&5
22064 $as_echo "$as_me: WARNING: mint/falcon.h: see the Autoconf documentation" >&2;}
22065 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&5
22066 $as_echo "$as_me: WARNING: mint/falcon.h: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&5
22068 $as_echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&2;}
22069 { $as_echo "$as_me:$LINENO: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&5
22070 $as_echo "$as_me: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&2;}
22073 esac
22074 { $as_echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
22075 $as_echo_n "checking for mint/falcon.h... " >&6; }
22076 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
22077 $as_echo_n "(cached) " >&6
22078 else
22079 ac_cv_header_mint_falcon_h=$ac_header_preproc
22081 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
22082 $as_echo "$ac_cv_header_mint_falcon_h" >&6; }
22085 if test "x$ac_cv_header_mint_falcon_h" = x""yes; then
22086 have_mint_falcon_hdr=yes
22090 if test x$have_mint_falcon_hdr = xyes; then
22091 mintaudio=yes
22092 cat >>confdefs.h <<\_ACEOF
22093 #define SDL_AUDIO_DRIVER_MINT 1
22094 _ACEOF
22096 SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
22097 SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
22098 have_audio=yes
22103 # NASM is available from: http://nasm.sourceforge.net
22104 CheckNASM()
22106 case $host in
22107 i?86*)
22110 # Nope, bail early.
22111 return
22113 esac
22115 # The cast to long int works around a bug in the HP C Compiler
22116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22118 # This bug is HP SR number 8606223364.
22119 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22120 $as_echo_n "checking size of void *... " >&6; }
22121 if test "${ac_cv_sizeof_void_p+set}" = set; then
22122 $as_echo_n "(cached) " >&6
22123 else
22124 if test "$cross_compiling" = yes; then
22125 # Depending upon the size, compute the lo and hi bounds.
22126 cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h. */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22134 main ()
22136 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22137 test_array [0] = 0
22140 return 0;
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22150 $as_echo "$ac_try_echo") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 ac_lo=0 ac_mid=0
22162 while :; do
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h. */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 $ac_includes_default
22171 main ()
22173 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22174 test_array [0] = 0
22177 return 0;
22179 _ACEOF
22180 rm -f conftest.$ac_objext
22181 if { (ac_try="$ac_compile"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185 esac
22186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22187 $as_echo "$ac_try_echo") >&5
22188 (eval "$ac_compile") 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && {
22195 test -z "$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22197 } && test -s conftest.$ac_objext; then
22198 ac_hi=$ac_mid; break
22199 else
22200 $as_echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 ac_lo=`expr $ac_mid + 1`
22204 if test $ac_lo -le $ac_mid; then
22205 ac_lo= ac_hi=
22206 break
22208 ac_mid=`expr 2 '*' $ac_mid + 1`
22211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 done
22213 else
22214 $as_echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22217 cat >conftest.$ac_ext <<_ACEOF
22218 /* confdefs.h. */
22219 _ACEOF
22220 cat confdefs.h >>conftest.$ac_ext
22221 cat >>conftest.$ac_ext <<_ACEOF
22222 /* end confdefs.h. */
22223 $ac_includes_default
22225 main ()
22227 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
22228 test_array [0] = 0
22231 return 0;
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (ac_try="$ac_compile"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22243 ac_status=$?
22244 grep -v '^ *+' conftest.er1 >conftest.err
22245 rm -f conftest.er1
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22252 ac_hi=-1 ac_mid=-1
22253 while :; do
22254 cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h. */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 $ac_includes_default
22262 main ()
22264 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
22265 test_array [0] = 0
22268 return 0;
22270 _ACEOF
22271 rm -f conftest.$ac_objext
22272 if { (ac_try="$ac_compile"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22276 esac
22277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22278 $as_echo "$ac_try_echo") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 ac_lo=$ac_mid; break
22290 else
22291 $as_echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 ac_hi=`expr '(' $ac_mid ')' - 1`
22295 if test $ac_mid -le $ac_hi; then
22296 ac_lo= ac_hi=
22297 break
22299 ac_mid=`expr 2 '*' $ac_mid`
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 done
22304 else
22305 $as_echo "$as_me: failed program was:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ac_lo= ac_hi=
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 # Binary search between lo and hi bounds.
22316 while test "x$ac_lo" != "x$ac_hi"; do
22317 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22318 cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h. */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 $ac_includes_default
22326 main ()
22328 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22329 test_array [0] = 0
22332 return 0;
22334 _ACEOF
22335 rm -f conftest.$ac_objext
22336 if { (ac_try="$ac_compile"
22337 case "(($ac_try" in
22338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22339 *) ac_try_echo=$ac_try;;
22340 esac
22341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22342 $as_echo "$ac_try_echo") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_hi=$ac_mid
22354 else
22355 $as_echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_lo=`expr '(' $ac_mid ')' + 1`
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 done
22363 case $ac_lo in
22364 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22365 '') if test "$ac_cv_type_void_p" = yes; then
22366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22368 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22369 See \`config.log' for more details." >&5
22370 $as_echo "$as_me: error: cannot compute sizeof (void *)
22371 See \`config.log' for more details." >&2;}
22372 { (exit 77); exit 77; }; }; }
22373 else
22374 ac_cv_sizeof_void_p=0
22375 fi ;;
22376 esac
22377 else
22378 cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h. */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 $ac_includes_default
22385 static long int longval () { return (long int) (sizeof (void *)); }
22386 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
22387 #include <stdio.h>
22388 #include <stdlib.h>
22390 main ()
22393 FILE *f = fopen ("conftest.val", "w");
22394 if (! f)
22395 return 1;
22396 if (((long int) (sizeof (void *))) < 0)
22398 long int i = longval ();
22399 if (i != ((long int) (sizeof (void *))))
22400 return 1;
22401 fprintf (f, "%ld", i);
22403 else
22405 unsigned long int i = ulongval ();
22406 if (i != ((long int) (sizeof (void *))))
22407 return 1;
22408 fprintf (f, "%lu", i);
22410 /* Do not output a trailing newline, as this causes \r\n confusion
22411 on some platforms. */
22412 return ferror (f) || fclose (f) != 0;
22415 return 0;
22417 _ACEOF
22418 rm -f conftest$ac_exeext
22419 if { (ac_try="$ac_link"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22423 esac
22424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22425 $as_echo "$ac_try_echo") >&5
22426 (eval "$ac_link") 2>&5
22427 ac_status=$?
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22430 { (case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22435 $as_echo "$ac_try_echo") >&5
22436 (eval "$ac_try") 2>&5
22437 ac_status=$?
22438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; }; then
22440 ac_cv_sizeof_void_p=`cat conftest.val`
22441 else
22442 $as_echo "$as_me: program exited with status $ac_status" >&5
22443 $as_echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22446 ( exit $ac_status )
22447 if test "$ac_cv_type_void_p" = yes; then
22448 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22450 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22451 See \`config.log' for more details." >&5
22452 $as_echo "$as_me: error: cannot compute sizeof (void *)
22453 See \`config.log' for more details." >&2;}
22454 { (exit 77); exit 77; }; }; }
22455 else
22456 ac_cv_sizeof_void_p=0
22459 rm -rf conftest.dSYM
22460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22462 rm -f conftest.val
22464 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22465 $as_echo "$ac_cv_sizeof_void_p" >&6; }
22469 cat >>confdefs.h <<_ACEOF
22470 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22471 _ACEOF
22474 if test x$ac_cv_sizeof_void_p != x4; then
22475 return
22478 # Check whether --enable-nasm was given.
22479 if test "${enable_nasm+set}" = set; then
22480 enableval=$enable_nasm;
22481 else
22482 enable_nasm=yes
22485 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
22486 CompileNASM()
22488 # Usage: CompileNASM <filename>
22489 { $as_echo "$as_me:$LINENO: checking to see if $NASM supports $1" >&5
22490 $as_echo_n "checking to see if $NASM supports $1... " >&6; }
22491 if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
22492 CompileNASM_ret="yes"
22493 else
22494 CompileNASM_ret="no"
22496 rm -f $1 $1.o
22497 { $as_echo "$as_me:$LINENO: result: $CompileNASM_ret" >&5
22498 $as_echo "$CompileNASM_ret" >&6; }
22499 test "$CompileNASM_ret" = "yes"
22502 if test x"$NASMFLAGS" = x; then
22503 case $ARCH in
22504 win32)
22505 NASMFLAGS="-f win32"
22507 openbsd)
22508 NASMFLAGS="-f aoutb"
22510 macosx)
22511 NASMFLAGS="-f macho"
22514 NASMFLAGS="-f elf"
22516 esac
22519 # Extract the first word of "yasm", so it can be a program name with args.
22520 set dummy yasm; ac_word=$2
22521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22522 $as_echo_n "checking for $ac_word... " >&6; }
22523 if test "${ac_cv_path_NASM+set}" = set; then
22524 $as_echo_n "(cached) " >&6
22525 else
22526 case $NASM in
22527 [\\/]* | ?:[\\/]*)
22528 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
22531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22532 for as_dir in $PATH
22534 IFS=$as_save_IFS
22535 test -z "$as_dir" && as_dir=.
22536 for ac_exec_ext in '' $ac_executable_extensions; do
22537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22538 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
22539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22540 break 2
22542 done
22543 done
22544 IFS=$as_save_IFS
22547 esac
22549 NASM=$ac_cv_path_NASM
22550 if test -n "$NASM"; then
22551 { $as_echo "$as_me:$LINENO: result: $NASM" >&5
22552 $as_echo "$NASM" >&6; }
22553 else
22554 { $as_echo "$as_me:$LINENO: result: no" >&5
22555 $as_echo "no" >&6; }
22559 echo "%ifidn __OUTPUT_FORMAT__,elf" > unquoted-sections
22560 echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
22561 echo "%endif" >> unquoted-sections
22562 CompileNASM unquoted-sections || NASM=""
22564 if test "x$NASM" = x -o "x$NASM" = x'"$NASM"'; then
22565 $as_unset ac_cv_path_NASM
22566 # Extract the first word of "nasm", so it can be a program name with args.
22567 set dummy nasm; ac_word=$2
22568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22569 $as_echo_n "checking for $ac_word... " >&6; }
22570 if test "${ac_cv_path_NASM+set}" = set; then
22571 $as_echo_n "(cached) " >&6
22572 else
22573 case $NASM in
22574 [\\/]* | ?:[\\/]*)
22575 ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in $PATH
22581 IFS=$as_save_IFS
22582 test -z "$as_dir" && as_dir=.
22583 for ac_exec_ext in '' $ac_executable_extensions; do
22584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585 ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
22586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22587 break 2
22589 done
22590 done
22591 IFS=$as_save_IFS
22594 esac
22596 NASM=$ac_cv_path_NASM
22597 if test -n "$NASM"; then
22598 { $as_echo "$as_me:$LINENO: result: $NASM" >&5
22599 $as_echo "$NASM" >&6; }
22600 else
22601 { $as_echo "$as_me:$LINENO: result: no" >&5
22602 $as_echo "no" >&6; }
22607 if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
22608 cat >>confdefs.h <<\_ACEOF
22609 #define SDL_HERMES_BLITTERS 1
22610 _ACEOF
22612 SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
22613 NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
22615 echo "GLOBAL _bar:function hidden" > symbol-visibility
22616 echo "_bar:" >> symbol-visibility
22617 CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
22622 case "$host" in
22623 # this line is needed for QNX, because it's not defined the __ELF__
22624 *-*-qnx*)
22625 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22626 *-*-solaris*)
22627 EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22628 esac
22633 CheckAltivec()
22635 # Check whether --enable-altivec was given.
22636 if test "${enable_altivec+set}" = set; then
22637 enableval=$enable_altivec;
22638 else
22639 enable_altivec=yes
22642 if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
22643 save_CFLAGS="$CFLAGS"
22644 have_gcc_altivec=no
22645 have_altivec_h_hdr=no
22646 altivec_CFLAGS="-maltivec"
22647 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22649 { $as_echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -maltivec option" >&5
22650 $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
22651 cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h. */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22658 #include <altivec.h>
22659 vector unsigned int vzero() {
22660 return vec_splat_u32(0);
22664 main ()
22669 return 0;
22671 _ACEOF
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22677 esac
22678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22679 $as_echo "$ac_try_echo") >&5
22680 (eval "$ac_compile") 2>conftest.er1
22681 ac_status=$?
22682 grep -v '^ *+' conftest.er1 >conftest.err
22683 rm -f conftest.er1
22684 cat conftest.err >&5
22685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } && {
22687 test -z "$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22689 } && test -s conftest.$ac_objext; then
22691 have_gcc_altivec=yes
22692 have_altivec_h_hdr=yes
22694 else
22695 $as_echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702 { $as_echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22703 $as_echo "$have_gcc_altivec" >&6; }
22705 if test x$have_gcc_altivec = xno; then
22706 { $as_echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
22707 $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22715 vector unsigned int vzero() {
22716 return vec_splat_u32(0);
22720 main ()
22725 return 0;
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22735 $as_echo "$ac_try_echo") >&5
22736 (eval "$ac_compile") 2>conftest.er1
22737 ac_status=$?
22738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
22741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && {
22743 test -z "$ac_c_werror_flag" ||
22744 test ! -s conftest.err
22745 } && test -s conftest.$ac_objext; then
22747 have_gcc_altivec=yes
22749 else
22750 $as_echo "$as_me: failed program was:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 { $as_echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22758 $as_echo "$have_gcc_altivec" >&6; }
22761 if test x$have_gcc_altivec = xno; then
22762 { $as_echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -faltivec option" >&5
22763 $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
22764 altivec_CFLAGS="-faltivec"
22765 CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22773 #include <altivec.h>
22774 vector unsigned int vzero() {
22775 return vec_splat_u32(0);
22779 main ()
22784 return 0;
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22794 $as_echo "$ac_try_echo") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.$ac_objext; then
22806 have_gcc_altivec=yes
22807 have_altivec_h_hdr=yes
22809 else
22810 $as_echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 { $as_echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22818 $as_echo "$have_gcc_altivec" >&6; }
22821 if test x$have_gcc_altivec = xno; then
22822 { $as_echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
22823 $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
22824 cat >conftest.$ac_ext <<_ACEOF
22825 /* confdefs.h. */
22826 _ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22831 vector unsigned int vzero() {
22832 return vec_splat_u32(0);
22836 main ()
22841 return 0;
22843 _ACEOF
22844 rm -f conftest.$ac_objext
22845 if { (ac_try="$ac_compile"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22851 $as_echo "$ac_try_echo") >&5
22852 (eval "$ac_compile") 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest.$ac_objext; then
22863 have_gcc_altivec=yes
22865 else
22866 $as_echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22873 { $as_echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22874 $as_echo "$have_gcc_altivec" >&6; }
22876 CFLAGS="$save_CFLAGS"
22878 if test x$have_gcc_altivec = xyes; then
22879 cat >>confdefs.h <<\_ACEOF
22880 #define SDL_ALTIVEC_BLITTERS 1
22881 _ACEOF
22883 if test x$have_altivec_h_hdr = xyes; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define HAVE_ALTIVEC_H 1
22886 _ACEOF
22889 EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
22894 CheckVisibilityHidden()
22896 { $as_echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
22897 $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
22898 have_gcc_fvisibility=no
22900 visibility_CFLAGS="-fvisibility=hidden"
22901 save_CFLAGS="$CFLAGS"
22902 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h. */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22910 #if !defined(__GNUC__) || __GNUC__ < 4
22911 #error SDL only uses visibility attributes in GCC 4 or newer
22912 #endif
22915 main ()
22920 return 0;
22922 _ACEOF
22923 rm -f conftest.$ac_objext
22924 if { (ac_try="$ac_compile"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22928 esac
22929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22930 $as_echo "$ac_try_echo") >&5
22931 (eval "$ac_compile") 2>conftest.er1
22932 ac_status=$?
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
22936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } && {
22938 test -z "$ac_c_werror_flag" ||
22939 test ! -s conftest.err
22940 } && test -s conftest.$ac_objext; then
22942 have_gcc_fvisibility=yes
22944 else
22945 $as_echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { $as_echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
22953 $as_echo "$have_gcc_fvisibility" >&6; }
22954 CFLAGS="$save_CFLAGS"
22956 if test x$have_gcc_fvisibility = xyes; then
22957 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
22962 CheckIPod()
22964 # Check whether --enable-ipod was given.
22965 if test "${enable_ipod+set}" = set; then
22966 enableval=$enable_ipod;
22967 else
22968 enable_ipod=no
22972 if test x$enable_ipod = xyes; then
22973 EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
22974 cat >>confdefs.h <<\_ACEOF
22975 #define SDL_VIDEO_DRIVER_IPOD 1
22976 _ACEOF
22978 SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
22982 CheckNANOX()
22984 # Check whether --enable-video-nanox was given.
22985 if test "${enable_video_nanox+set}" = set; then
22986 enableval=$enable_video_nanox;
22987 else
22988 enable_video_nanox=no
22992 if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
22993 # Check whether --enable-nanox-debug was given.
22994 if test "${enable_nanox_debug+set}" = set; then
22995 enableval=$enable_nanox_debug;
22996 else
22997 enable_nanox_debug=no
23000 if test x$enable_nanox_debug = xyes; then
23001 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
23004 # Check whether --enable-nanox-share-memory was given.
23005 if test "${enable_nanox_share_memory+set}" = set; then
23006 enableval=$enable_nanox_share_memory;
23007 else
23008 enable_nanox_share_memory=no
23011 if test x$enable_nanox_share_memory = xyes; then
23012 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
23015 # Check whether --enable-nanox_direct_fb was given.
23016 if test "${enable_nanox_direct_fb+set}" = set; then
23017 enableval=$enable_nanox_direct_fb;
23018 else
23019 enable_nanox_direct_fb=no
23022 if test x$enable_nanox_direct_fb = xyes; then
23023 EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
23026 cat >>confdefs.h <<\_ACEOF
23027 #define SDL_VIDEO_DRIVER_NANOX 1
23028 _ACEOF
23030 SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
23031 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
23032 have_video=yes
23036 CheckX11()
23038 # Check whether --enable-video-x11 was given.
23039 if test "${enable_video_x11+set}" = set; then
23040 enableval=$enable_video_x11;
23041 else
23042 enable_video_x11=yes
23045 if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
23046 case "$host" in
23047 *-*-darwin*)
23048 # This isn't necessary for X11, but fixes GLX detection
23049 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then
23050 x_includes="/usr/X11R6/include"
23051 x_libraries="/usr/X11R6/lib"
23054 esac
23055 { $as_echo "$as_me:$LINENO: checking for X" >&5
23056 $as_echo_n "checking for X... " >&6; }
23059 # Check whether --with-x was given.
23060 if test "${with_x+set}" = set; then
23061 withval=$with_x;
23064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23065 if test "x$with_x" = xno; then
23066 # The user explicitly disabled X.
23067 have_x=disabled
23068 else
23069 case $x_includes,$x_libraries in #(
23070 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
23071 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
23072 { (exit 1); exit 1; }; };; #(
23073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
23074 $as_echo_n "(cached) " >&6
23075 else
23076 # One or both of the vars are not set, and there is no cached value.
23077 ac_x_includes=no ac_x_libraries=no
23078 rm -f -r conftest.dir
23079 if mkdir conftest.dir; then
23080 cd conftest.dir
23081 cat >Imakefile <<'_ACEOF'
23082 incroot:
23083 @echo incroot='${INCROOT}'
23084 usrlibdir:
23085 @echo usrlibdir='${USRLIBDIR}'
23086 libdir:
23087 @echo libdir='${LIBDIR}'
23088 _ACEOF
23089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23091 for ac_var in incroot usrlibdir libdir; do
23092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23093 done
23094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23095 for ac_extension in a so sl dylib la dll; do
23096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23098 ac_im_usrlibdir=$ac_im_libdir; break
23100 done
23101 # Screen out bogus values from the imake configuration. They are
23102 # bogus both because they are the default anyway, and because
23103 # using them would break gcc on systems where it needs fixed includes.
23104 case $ac_im_incroot in
23105 /usr/include) ac_x_includes= ;;
23106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23107 esac
23108 case $ac_im_usrlibdir in
23109 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23111 esac
23113 cd ..
23114 rm -f -r conftest.dir
23117 # Standard set of common directories for X headers.
23118 # Check X11 before X11Rn because it is often a symlink to the current release.
23119 ac_x_header_dirs='
23120 /usr/X11/include
23121 /usr/X11R6/include
23122 /usr/X11R5/include
23123 /usr/X11R4/include
23125 /usr/include/X11
23126 /usr/include/X11R6
23127 /usr/include/X11R5
23128 /usr/include/X11R4
23130 /usr/local/X11/include
23131 /usr/local/X11R6/include
23132 /usr/local/X11R5/include
23133 /usr/local/X11R4/include
23135 /usr/local/include/X11
23136 /usr/local/include/X11R6
23137 /usr/local/include/X11R5
23138 /usr/local/include/X11R4
23140 /usr/X386/include
23141 /usr/x386/include
23142 /usr/XFree86/include/X11
23144 /usr/include
23145 /usr/local/include
23146 /usr/unsupported/include
23147 /usr/athena/include
23148 /usr/local/x11r5/include
23149 /usr/lpp/Xamples/include
23151 /usr/openwin/include
23152 /usr/openwin/share/include'
23154 if test "$ac_x_includes" = no; then
23155 # Guess where to find include files, by looking for Xlib.h.
23156 # First, try using that file with no special directory specified.
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 #include <X11/Xlib.h>
23164 _ACEOF
23165 if { (ac_try="$ac_cpp conftest.$ac_ext"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23171 $as_echo "$ac_try_echo") >&5
23172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23173 ac_status=$?
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
23177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } >/dev/null && {
23179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23180 test ! -s conftest.err
23181 }; then
23182 # We can compile using X headers with no special include directory.
23183 ac_x_includes=
23184 else
23185 $as_echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23188 for ac_dir in $ac_x_header_dirs; do
23189 if test -r "$ac_dir/X11/Xlib.h"; then
23190 ac_x_includes=$ac_dir
23191 break
23193 done
23196 rm -f conftest.err conftest.$ac_ext
23197 fi # $ac_x_includes = no
23199 if test "$ac_x_libraries" = no; then
23200 # Check for the libraries.
23201 # See if we find them without any special options.
23202 # Don't add to $LIBS permanently.
23203 ac_save_LIBS=$LIBS
23204 LIBS="-lX11 $LIBS"
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 #include <X11/Xlib.h>
23213 main ()
23215 XrmInitialize ()
23217 return 0;
23219 _ACEOF
23220 rm -f conftest.$ac_objext conftest$ac_exeext
23221 if { (ac_try="$ac_link"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23225 esac
23226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23227 $as_echo "$ac_try_echo") >&5
23228 (eval "$ac_link") 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } && {
23235 test -z "$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 } && test -s conftest$ac_exeext && {
23238 test "$cross_compiling" = yes ||
23239 $as_test_x conftest$ac_exeext
23240 }; then
23241 LIBS=$ac_save_LIBS
23242 # We can link X programs with no special library path.
23243 ac_x_libraries=
23244 else
23245 $as_echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23248 LIBS=$ac_save_LIBS
23249 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23251 # Don't even attempt the hair of trying to link an X program!
23252 for ac_extension in a so sl dylib la dll; do
23253 if test -r "$ac_dir/libX11.$ac_extension"; then
23254 ac_x_libraries=$ac_dir
23255 break 2
23257 done
23258 done
23261 rm -rf conftest.dSYM
23262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23263 conftest$ac_exeext conftest.$ac_ext
23264 fi # $ac_x_libraries = no
23266 case $ac_x_includes,$ac_x_libraries in #(
23267 no,* | *,no | *\'*)
23268 # Didn't find X, or a directory has "'" in its name.
23269 ac_cv_have_x="have_x=no";; #(
23271 # Record where we found X for the cache.
23272 ac_cv_have_x="have_x=yes\
23273 ac_x_includes='$ac_x_includes'\
23274 ac_x_libraries='$ac_x_libraries'"
23275 esac
23277 ;; #(
23278 *) have_x=yes;;
23279 esac
23280 eval "$ac_cv_have_x"
23281 fi # $with_x != no
23283 if test "$have_x" != yes; then
23284 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
23285 $as_echo "$have_x" >&6; }
23286 no_x=yes
23287 else
23288 # If each of the values was on the command line, it overrides each guess.
23289 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23290 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23291 # Update the cache value to reflect the command line values.
23292 ac_cv_have_x="have_x=yes\
23293 ac_x_includes='$x_includes'\
23294 ac_x_libraries='$x_libraries'"
23295 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23296 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23299 if test "$no_x" = yes; then
23300 # Not all programs may use this symbol, but it does not hurt to define it.
23302 cat >>confdefs.h <<\_ACEOF
23303 #define X_DISPLAY_MISSING 1
23304 _ACEOF
23306 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23307 else
23308 if test -n "$x_includes"; then
23309 X_CFLAGS="$X_CFLAGS -I$x_includes"
23312 # It would also be nice to do this for all -L options, not just this one.
23313 if test -n "$x_libraries"; then
23314 X_LIBS="$X_LIBS -L$x_libraries"
23315 # For Solaris; some versions of Sun CC require a space after -R and
23316 # others require no space. Words are not sufficient . . . .
23317 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23318 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
23319 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23320 ac_xsave_c_werror_flag=$ac_c_werror_flag
23321 ac_c_werror_flag=yes
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h. */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h. */
23330 main ()
23334 return 0;
23336 _ACEOF
23337 rm -f conftest.$ac_objext conftest$ac_exeext
23338 if { (ac_try="$ac_link"
23339 case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342 esac
23343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23344 $as_echo "$ac_try_echo") >&5
23345 (eval "$ac_link") 2>conftest.er1
23346 ac_status=$?
23347 grep -v '^ *+' conftest.er1 >conftest.err
23348 rm -f conftest.er1
23349 cat conftest.err >&5
23350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest$ac_exeext && {
23355 test "$cross_compiling" = yes ||
23356 $as_test_x conftest$ac_exeext
23357 }; then
23358 { $as_echo "$as_me:$LINENO: result: no" >&5
23359 $as_echo "no" >&6; }
23360 X_LIBS="$X_LIBS -R$x_libraries"
23361 else
23362 $as_echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23365 LIBS="$ac_xsave_LIBS -R $x_libraries"
23366 cat >conftest.$ac_ext <<_ACEOF
23367 /* confdefs.h. */
23368 _ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23374 main ()
23378 return 0;
23380 _ACEOF
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (ac_try="$ac_link"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386 esac
23387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23388 $as_echo "$ac_try_echo") >&5
23389 (eval "$ac_link") 2>conftest.er1
23390 ac_status=$?
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
23394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } && {
23396 test -z "$ac_c_werror_flag" ||
23397 test ! -s conftest.err
23398 } && test -s conftest$ac_exeext && {
23399 test "$cross_compiling" = yes ||
23400 $as_test_x conftest$ac_exeext
23401 }; then
23402 { $as_echo "$as_me:$LINENO: result: yes" >&5
23403 $as_echo "yes" >&6; }
23404 X_LIBS="$X_LIBS -R $x_libraries"
23405 else
23406 $as_echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 { $as_echo "$as_me:$LINENO: result: neither works" >&5
23410 $as_echo "neither works" >&6; }
23413 rm -rf conftest.dSYM
23414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23415 conftest$ac_exeext conftest.$ac_ext
23418 rm -rf conftest.dSYM
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420 conftest$ac_exeext conftest.$ac_ext
23421 ac_c_werror_flag=$ac_xsave_c_werror_flag
23422 LIBS=$ac_xsave_LIBS
23425 # Check for system-dependent libraries X programs must link with.
23426 # Do this before checking for the system-independent R6 libraries
23427 # (-lICE), since we may need -lsocket or whatever for X linking.
23429 if test "$ISC" = yes; then
23430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23431 else
23432 # Martyn Johnson says this is needed for Ultrix, if the X
23433 # libraries were built with DECnet support. And Karl Berry says
23434 # the Alpha needs dnet_stub (dnet does not exist).
23435 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23443 /* Override any GCC internal prototype to avoid an error.
23444 Use char because int might match the return type of a GCC
23445 builtin and then its argument prototype would still apply. */
23446 #ifdef __cplusplus
23447 extern "C"
23448 #endif
23449 char XOpenDisplay ();
23451 main ()
23453 return XOpenDisplay ();
23455 return 0;
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (ac_try="$ac_link"
23460 case "(($ac_try" in
23461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23462 *) ac_try_echo=$ac_try;;
23463 esac
23464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23465 $as_echo "$ac_try_echo") >&5
23466 (eval "$ac_link") 2>conftest.er1
23467 ac_status=$?
23468 grep -v '^ *+' conftest.er1 >conftest.err
23469 rm -f conftest.er1
23470 cat conftest.err >&5
23471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && {
23473 test -z "$ac_c_werror_flag" ||
23474 test ! -s conftest.err
23475 } && test -s conftest$ac_exeext && {
23476 test "$cross_compiling" = yes ||
23477 $as_test_x conftest$ac_exeext
23478 }; then
23480 else
23481 $as_echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23484 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23485 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23486 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23487 $as_echo_n "(cached) " >&6
23488 else
23489 ac_check_lib_save_LIBS=$LIBS
23490 LIBS="-ldnet $LIBS"
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23498 /* Override any GCC internal prototype to avoid an error.
23499 Use char because int might match the return type of a GCC
23500 builtin and then its argument prototype would still apply. */
23501 #ifdef __cplusplus
23502 extern "C"
23503 #endif
23504 char dnet_ntoa ();
23506 main ()
23508 return dnet_ntoa ();
23510 return 0;
23512 _ACEOF
23513 rm -f conftest.$ac_objext conftest$ac_exeext
23514 if { (ac_try="$ac_link"
23515 case "(($ac_try" in
23516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23517 *) ac_try_echo=$ac_try;;
23518 esac
23519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23520 $as_echo "$ac_try_echo") >&5
23521 (eval "$ac_link") 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest$ac_exeext && {
23531 test "$cross_compiling" = yes ||
23532 $as_test_x conftest$ac_exeext
23533 }; then
23534 ac_cv_lib_dnet_dnet_ntoa=yes
23535 else
23536 $as_echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 ac_cv_lib_dnet_dnet_ntoa=no
23542 rm -rf conftest.dSYM
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23545 LIBS=$ac_check_lib_save_LIBS
23547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23548 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23549 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
23550 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23553 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23554 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23555 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23556 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23557 $as_echo_n "(cached) " >&6
23558 else
23559 ac_check_lib_save_LIBS=$LIBS
23560 LIBS="-ldnet_stub $LIBS"
23561 cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h. */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h. */
23568 /* Override any GCC internal prototype to avoid an error.
23569 Use char because int might match the return type of a GCC
23570 builtin and then its argument prototype would still apply. */
23571 #ifdef __cplusplus
23572 extern "C"
23573 #endif
23574 char dnet_ntoa ();
23576 main ()
23578 return dnet_ntoa ();
23580 return 0;
23582 _ACEOF
23583 rm -f conftest.$ac_objext conftest$ac_exeext
23584 if { (ac_try="$ac_link"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23588 esac
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_link") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest$ac_exeext && {
23601 test "$cross_compiling" = yes ||
23602 $as_test_x conftest$ac_exeext
23603 }; then
23604 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23605 else
23606 $as_echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23609 ac_cv_lib_dnet_stub_dnet_ntoa=no
23612 rm -rf conftest.dSYM
23613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614 conftest$ac_exeext conftest.$ac_ext
23615 LIBS=$ac_check_lib_save_LIBS
23617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23618 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23619 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
23620 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23626 rm -rf conftest.dSYM
23627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23628 conftest$ac_exeext conftest.$ac_ext
23629 LIBS="$ac_xsave_LIBS"
23631 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23632 # to get the SysV transport functions.
23633 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23634 # needs -lnsl.
23635 # The nsl library prevents programs from opening the X display
23636 # on Irix 5.2, according to T.E. Dickey.
23637 # The functions gethostbyname, getservbyname, and inet_addr are
23638 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23639 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
23640 $as_echo_n "checking for gethostbyname... " >&6; }
23641 if test "${ac_cv_func_gethostbyname+set}" = set; then
23642 $as_echo_n "(cached) " >&6
23643 else
23644 cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h. */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23650 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23652 #define gethostbyname innocuous_gethostbyname
23654 /* System header to define __stub macros and hopefully few prototypes,
23655 which can conflict with char gethostbyname (); below.
23656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23657 <limits.h> exists even on freestanding compilers. */
23659 #ifdef __STDC__
23660 # include <limits.h>
23661 #else
23662 # include <assert.h>
23663 #endif
23665 #undef gethostbyname
23667 /* Override any GCC internal prototype to avoid an error.
23668 Use char because int might match the return type of a GCC
23669 builtin and then its argument prototype would still apply. */
23670 #ifdef __cplusplus
23671 extern "C"
23672 #endif
23673 char gethostbyname ();
23674 /* The GNU C library defines this for functions which it implements
23675 to always fail with ENOSYS. Some functions are actually named
23676 something starting with __ and the normal name is an alias. */
23677 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23678 choke me
23679 #endif
23682 main ()
23684 return gethostbyname ();
23686 return 0;
23688 _ACEOF
23689 rm -f conftest.$ac_objext conftest$ac_exeext
23690 if { (ac_try="$ac_link"
23691 case "(($ac_try" in
23692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23694 esac
23695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23696 $as_echo "$ac_try_echo") >&5
23697 (eval "$ac_link") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest$ac_exeext && {
23707 test "$cross_compiling" = yes ||
23708 $as_test_x conftest$ac_exeext
23709 }; then
23710 ac_cv_func_gethostbyname=yes
23711 else
23712 $as_echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 ac_cv_func_gethostbyname=no
23718 rm -rf conftest.dSYM
23719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23720 conftest$ac_exeext conftest.$ac_ext
23722 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23723 $as_echo "$ac_cv_func_gethostbyname" >&6; }
23725 if test $ac_cv_func_gethostbyname = no; then
23726 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23727 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23728 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23729 $as_echo_n "(cached) " >&6
23730 else
23731 ac_check_lib_save_LIBS=$LIBS
23732 LIBS="-lnsl $LIBS"
23733 cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h. */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h. */
23740 /* Override any GCC internal prototype to avoid an error.
23741 Use char because int might match the return type of a GCC
23742 builtin and then its argument prototype would still apply. */
23743 #ifdef __cplusplus
23744 extern "C"
23745 #endif
23746 char gethostbyname ();
23748 main ()
23750 return gethostbyname ();
23752 return 0;
23754 _ACEOF
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760 esac
23761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23762 $as_echo "$ac_try_echo") >&5
23763 (eval "$ac_link") 2>conftest.er1
23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext && {
23773 test "$cross_compiling" = yes ||
23774 $as_test_x conftest$ac_exeext
23775 }; then
23776 ac_cv_lib_nsl_gethostbyname=yes
23777 else
23778 $as_echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23781 ac_cv_lib_nsl_gethostbyname=no
23784 rm -rf conftest.dSYM
23785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23786 conftest$ac_exeext conftest.$ac_ext
23787 LIBS=$ac_check_lib_save_LIBS
23789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23790 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
23791 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
23792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23795 if test $ac_cv_lib_nsl_gethostbyname = no; then
23796 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23797 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
23798 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23799 $as_echo_n "(cached) " >&6
23800 else
23801 ac_check_lib_save_LIBS=$LIBS
23802 LIBS="-lbsd $LIBS"
23803 cat >conftest.$ac_ext <<_ACEOF
23804 /* confdefs.h. */
23805 _ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23810 /* Override any GCC internal prototype to avoid an error.
23811 Use char because int might match the return type of a GCC
23812 builtin and then its argument prototype would still apply. */
23813 #ifdef __cplusplus
23814 extern "C"
23815 #endif
23816 char gethostbyname ();
23818 main ()
23820 return gethostbyname ();
23822 return 0;
23824 _ACEOF
23825 rm -f conftest.$ac_objext conftest$ac_exeext
23826 if { (ac_try="$ac_link"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23830 esac
23831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23832 $as_echo "$ac_try_echo") >&5
23833 (eval "$ac_link") 2>conftest.er1
23834 ac_status=$?
23835 grep -v '^ *+' conftest.er1 >conftest.err
23836 rm -f conftest.er1
23837 cat conftest.err >&5
23838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); } && {
23840 test -z "$ac_c_werror_flag" ||
23841 test ! -s conftest.err
23842 } && test -s conftest$ac_exeext && {
23843 test "$cross_compiling" = yes ||
23844 $as_test_x conftest$ac_exeext
23845 }; then
23846 ac_cv_lib_bsd_gethostbyname=yes
23847 else
23848 $as_echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ac_cv_lib_bsd_gethostbyname=no
23854 rm -rf conftest.dSYM
23855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23856 conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23860 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
23861 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
23862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23868 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23869 # socket/setsockopt and other routines are undefined under SCO ODT
23870 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23871 # on later versions), says Simon Leinen: it contains gethostby*
23872 # variants that don't use the name server (or something). -lsocket
23873 # must be given before -lnsl if both are needed. We assume that
23874 # if connect needs -lnsl, so does gethostbyname.
23875 { $as_echo "$as_me:$LINENO: checking for connect" >&5
23876 $as_echo_n "checking for connect... " >&6; }
23877 if test "${ac_cv_func_connect+set}" = set; then
23878 $as_echo_n "(cached) " >&6
23879 else
23880 cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h. */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23888 #define connect innocuous_connect
23890 /* System header to define __stub macros and hopefully few prototypes,
23891 which can conflict with char connect (); below.
23892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23893 <limits.h> exists even on freestanding compilers. */
23895 #ifdef __STDC__
23896 # include <limits.h>
23897 #else
23898 # include <assert.h>
23899 #endif
23901 #undef connect
23903 /* Override any GCC internal prototype to avoid an error.
23904 Use char because int might match the return type of a GCC
23905 builtin and then its argument prototype would still apply. */
23906 #ifdef __cplusplus
23907 extern "C"
23908 #endif
23909 char connect ();
23910 /* The GNU C library defines this for functions which it implements
23911 to always fail with ENOSYS. Some functions are actually named
23912 something starting with __ and the normal name is an alias. */
23913 #if defined __stub_connect || defined __stub___connect
23914 choke me
23915 #endif
23918 main ()
23920 return connect ();
23922 return 0;
23924 _ACEOF
23925 rm -f conftest.$ac_objext conftest$ac_exeext
23926 if { (ac_try="$ac_link"
23927 case "(($ac_try" in
23928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929 *) ac_try_echo=$ac_try;;
23930 esac
23931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23932 $as_echo "$ac_try_echo") >&5
23933 (eval "$ac_link") 2>conftest.er1
23934 ac_status=$?
23935 grep -v '^ *+' conftest.er1 >conftest.err
23936 rm -f conftest.er1
23937 cat conftest.err >&5
23938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } && {
23940 test -z "$ac_c_werror_flag" ||
23941 test ! -s conftest.err
23942 } && test -s conftest$ac_exeext && {
23943 test "$cross_compiling" = yes ||
23944 $as_test_x conftest$ac_exeext
23945 }; then
23946 ac_cv_func_connect=yes
23947 else
23948 $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ac_cv_func_connect=no
23954 rm -rf conftest.dSYM
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956 conftest$ac_exeext conftest.$ac_ext
23958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23959 $as_echo "$ac_cv_func_connect" >&6; }
23961 if test $ac_cv_func_connect = no; then
23962 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23963 $as_echo_n "checking for connect in -lsocket... " >&6; }
23964 if test "${ac_cv_lib_socket_connect+set}" = set; then
23965 $as_echo_n "(cached) " >&6
23966 else
23967 ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23969 cat >conftest.$ac_ext <<_ACEOF
23970 /* confdefs.h. */
23971 _ACEOF
23972 cat confdefs.h >>conftest.$ac_ext
23973 cat >>conftest.$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23976 /* Override any GCC internal prototype to avoid an error.
23977 Use char because int might match the return type of a GCC
23978 builtin and then its argument prototype would still apply. */
23979 #ifdef __cplusplus
23980 extern "C"
23981 #endif
23982 char connect ();
23984 main ()
23986 return connect ();
23988 return 0;
23990 _ACEOF
23991 rm -f conftest.$ac_objext conftest$ac_exeext
23992 if { (ac_try="$ac_link"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23996 esac
23997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23998 $as_echo "$ac_try_echo") >&5
23999 (eval "$ac_link") 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest$ac_exeext && {
24009 test "$cross_compiling" = yes ||
24010 $as_test_x conftest$ac_exeext
24011 }; then
24012 ac_cv_lib_socket_connect=yes
24013 else
24014 $as_echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ac_cv_lib_socket_connect=no
24020 rm -rf conftest.dSYM
24021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24022 conftest$ac_exeext conftest.$ac_ext
24023 LIBS=$ac_check_lib_save_LIBS
24025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24026 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24027 if test "x$ac_cv_lib_socket_connect" = x""yes; then
24028 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24033 # Guillermo Gomez says -lposix is necessary on A/UX.
24034 { $as_echo "$as_me:$LINENO: checking for remove" >&5
24035 $as_echo_n "checking for remove... " >&6; }
24036 if test "${ac_cv_func_remove+set}" = set; then
24037 $as_echo_n "(cached) " >&6
24038 else
24039 cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h. */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h. */
24045 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24047 #define remove innocuous_remove
24049 /* System header to define __stub macros and hopefully few prototypes,
24050 which can conflict with char remove (); below.
24051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24052 <limits.h> exists even on freestanding compilers. */
24054 #ifdef __STDC__
24055 # include <limits.h>
24056 #else
24057 # include <assert.h>
24058 #endif
24060 #undef remove
24062 /* Override any GCC internal prototype to avoid an error.
24063 Use char because int might match the return type of a GCC
24064 builtin and then its argument prototype would still apply. */
24065 #ifdef __cplusplus
24066 extern "C"
24067 #endif
24068 char remove ();
24069 /* The GNU C library defines this for functions which it implements
24070 to always fail with ENOSYS. Some functions are actually named
24071 something starting with __ and the normal name is an alias. */
24072 #if defined __stub_remove || defined __stub___remove
24073 choke me
24074 #endif
24077 main ()
24079 return remove ();
24081 return 0;
24083 _ACEOF
24084 rm -f conftest.$ac_objext conftest$ac_exeext
24085 if { (ac_try="$ac_link"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24089 esac
24090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24091 $as_echo "$ac_try_echo") >&5
24092 (eval "$ac_link") 2>conftest.er1
24093 ac_status=$?
24094 grep -v '^ *+' conftest.er1 >conftest.err
24095 rm -f conftest.er1
24096 cat conftest.err >&5
24097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest$ac_exeext && {
24102 test "$cross_compiling" = yes ||
24103 $as_test_x conftest$ac_exeext
24104 }; then
24105 ac_cv_func_remove=yes
24106 else
24107 $as_echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_func_remove=no
24113 rm -rf conftest.dSYM
24114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24115 conftest$ac_exeext conftest.$ac_ext
24117 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24118 $as_echo "$ac_cv_func_remove" >&6; }
24120 if test $ac_cv_func_remove = no; then
24121 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24122 $as_echo_n "checking for remove in -lposix... " >&6; }
24123 if test "${ac_cv_lib_posix_remove+set}" = set; then
24124 $as_echo_n "(cached) " >&6
24125 else
24126 ac_check_lib_save_LIBS=$LIBS
24127 LIBS="-lposix $LIBS"
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h. */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24135 /* Override any GCC internal prototype to avoid an error.
24136 Use char because int might match the return type of a GCC
24137 builtin and then its argument prototype would still apply. */
24138 #ifdef __cplusplus
24139 extern "C"
24140 #endif
24141 char remove ();
24143 main ()
24145 return remove ();
24147 return 0;
24149 _ACEOF
24150 rm -f conftest.$ac_objext conftest$ac_exeext
24151 if { (ac_try="$ac_link"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24155 esac
24156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_link") 2>conftest.er1
24159 ac_status=$?
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } && {
24165 test -z "$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24167 } && test -s conftest$ac_exeext && {
24168 test "$cross_compiling" = yes ||
24169 $as_test_x conftest$ac_exeext
24170 }; then
24171 ac_cv_lib_posix_remove=yes
24172 else
24173 $as_echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 ac_cv_lib_posix_remove=no
24179 rm -rf conftest.dSYM
24180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24181 conftest$ac_exeext conftest.$ac_ext
24182 LIBS=$ac_check_lib_save_LIBS
24184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24185 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24186 if test "x$ac_cv_lib_posix_remove" = x""yes; then
24187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24192 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24193 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
24194 $as_echo_n "checking for shmat... " >&6; }
24195 if test "${ac_cv_func_shmat+set}" = set; then
24196 $as_echo_n "(cached) " >&6
24197 else
24198 cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h. */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h. */
24204 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24206 #define shmat innocuous_shmat
24208 /* System header to define __stub macros and hopefully few prototypes,
24209 which can conflict with char shmat (); below.
24210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24211 <limits.h> exists even on freestanding compilers. */
24213 #ifdef __STDC__
24214 # include <limits.h>
24215 #else
24216 # include <assert.h>
24217 #endif
24219 #undef shmat
24221 /* Override any GCC internal prototype to avoid an error.
24222 Use char because int might match the return type of a GCC
24223 builtin and then its argument prototype would still apply. */
24224 #ifdef __cplusplus
24225 extern "C"
24226 #endif
24227 char shmat ();
24228 /* The GNU C library defines this for functions which it implements
24229 to always fail with ENOSYS. Some functions are actually named
24230 something starting with __ and the normal name is an alias. */
24231 #if defined __stub_shmat || defined __stub___shmat
24232 choke me
24233 #endif
24236 main ()
24238 return shmat ();
24240 return 0;
24242 _ACEOF
24243 rm -f conftest.$ac_objext conftest$ac_exeext
24244 if { (ac_try="$ac_link"
24245 case "(($ac_try" in
24246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24247 *) ac_try_echo=$ac_try;;
24248 esac
24249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24250 $as_echo "$ac_try_echo") >&5
24251 (eval "$ac_link") 2>conftest.er1
24252 ac_status=$?
24253 grep -v '^ *+' conftest.er1 >conftest.err
24254 rm -f conftest.er1
24255 cat conftest.err >&5
24256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && {
24258 test -z "$ac_c_werror_flag" ||
24259 test ! -s conftest.err
24260 } && test -s conftest$ac_exeext && {
24261 test "$cross_compiling" = yes ||
24262 $as_test_x conftest$ac_exeext
24263 }; then
24264 ac_cv_func_shmat=yes
24265 else
24266 $as_echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24269 ac_cv_func_shmat=no
24272 rm -rf conftest.dSYM
24273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24274 conftest$ac_exeext conftest.$ac_ext
24276 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24277 $as_echo "$ac_cv_func_shmat" >&6; }
24279 if test $ac_cv_func_shmat = no; then
24280 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24281 $as_echo_n "checking for shmat in -lipc... " >&6; }
24282 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24283 $as_echo_n "(cached) " >&6
24284 else
24285 ac_check_lib_save_LIBS=$LIBS
24286 LIBS="-lipc $LIBS"
24287 cat >conftest.$ac_ext <<_ACEOF
24288 /* confdefs.h. */
24289 _ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h. */
24294 /* Override any GCC internal prototype to avoid an error.
24295 Use char because int might match the return type of a GCC
24296 builtin and then its argument prototype would still apply. */
24297 #ifdef __cplusplus
24298 extern "C"
24299 #endif
24300 char shmat ();
24302 main ()
24304 return shmat ();
24306 return 0;
24308 _ACEOF
24309 rm -f conftest.$ac_objext conftest$ac_exeext
24310 if { (ac_try="$ac_link"
24311 case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24314 esac
24315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316 $as_echo "$ac_try_echo") >&5
24317 (eval "$ac_link") 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest$ac_exeext && {
24327 test "$cross_compiling" = yes ||
24328 $as_test_x conftest$ac_exeext
24329 }; then
24330 ac_cv_lib_ipc_shmat=yes
24331 else
24332 $as_echo "$as_me: failed program was:" >&5
24333 sed 's/^/| /' conftest.$ac_ext >&5
24335 ac_cv_lib_ipc_shmat=no
24338 rm -rf conftest.dSYM
24339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24340 conftest$ac_exeext conftest.$ac_ext
24341 LIBS=$ac_check_lib_save_LIBS
24343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24344 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24345 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
24346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24352 # Check for libraries that X11R6 Xt/Xaw programs need.
24353 ac_save_LDFLAGS=$LDFLAGS
24354 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24355 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24356 # check for ICE first), but we must link in the order -lSM -lICE or
24357 # we get undefined symbols. So assume we have SM if we have ICE.
24358 # These have to be linked with before -lX11, unlike the other
24359 # libraries we check for below, so use a different variable.
24360 # John Interrante, Karl Berry
24361 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24362 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24363 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24364 $as_echo_n "(cached) " >&6
24365 else
24366 ac_check_lib_save_LIBS=$LIBS
24367 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24368 cat >conftest.$ac_ext <<_ACEOF
24369 /* confdefs.h. */
24370 _ACEOF
24371 cat confdefs.h >>conftest.$ac_ext
24372 cat >>conftest.$ac_ext <<_ACEOF
24373 /* end confdefs.h. */
24375 /* Override any GCC internal prototype to avoid an error.
24376 Use char because int might match the return type of a GCC
24377 builtin and then its argument prototype would still apply. */
24378 #ifdef __cplusplus
24379 extern "C"
24380 #endif
24381 char IceConnectionNumber ();
24383 main ()
24385 return IceConnectionNumber ();
24387 return 0;
24389 _ACEOF
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (ac_try="$ac_link"
24392 case "(($ac_try" in
24393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24394 *) ac_try_echo=$ac_try;;
24395 esac
24396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24397 $as_echo "$ac_try_echo") >&5
24398 (eval "$ac_link") 2>conftest.er1
24399 ac_status=$?
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
24403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } && {
24405 test -z "$ac_c_werror_flag" ||
24406 test ! -s conftest.err
24407 } && test -s conftest$ac_exeext && {
24408 test "$cross_compiling" = yes ||
24409 $as_test_x conftest$ac_exeext
24410 }; then
24411 ac_cv_lib_ICE_IceConnectionNumber=yes
24412 else
24413 $as_echo "$as_me: failed program was:" >&5
24414 sed 's/^/| /' conftest.$ac_ext >&5
24416 ac_cv_lib_ICE_IceConnectionNumber=no
24419 rm -rf conftest.dSYM
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 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24425 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24426 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
24427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24430 LDFLAGS=$ac_save_LDFLAGS
24434 if test x$have_x = xyes; then
24435 # Only allow dynamically loaded X11 if the X11 function pointers
24436 # will not end up in the global namespace, which causes problems
24437 # with other libraries calling X11 functions.
24438 x11_symbols_private=$have_gcc_fvisibility
24440 # Check whether --enable-x11-shared was given.
24441 if test "${enable_x11_shared+set}" = set; then
24442 enableval=$enable_x11_shared;
24443 else
24444 enable_x11_shared=maybe
24448 case "$host" in
24449 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
24450 x11_symbols_private=yes
24451 x11_lib='/usr/X11R6/lib/libX11.6.dylib'
24452 x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
24453 xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
24454 xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
24456 *-*-osf*)
24457 x11_lib='libX11.so'
24458 x11ext_lib='libXext.so'
24460 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
24461 x11_lib='libX11.so'
24462 x11ext_lib='libXext.so'
24465 x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24466 x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24467 xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24468 xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24470 esac
24472 X_CFLAGS="$X_CFLAGS -DXTHREADS"
24473 if test x$ac_cv_func_shmat != xyes; then
24474 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
24476 CFLAGS="$CFLAGS $X_CFLAGS"
24477 LDFLAGS="$LDFLAGS $X_LIBS"
24479 cat >>confdefs.h <<\_ACEOF
24480 #define SDL_VIDEO_DRIVER_X11 1
24481 _ACEOF
24483 SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
24484 EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
24486 if test x$enable_x11_shared = xmaybe; then
24487 enable_x11_shared=$x11_symbols_private
24489 if test x$have_loadso != xyes && \
24490 test x$enable_x11_shared = xyes; then
24491 { $as_echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
24492 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
24493 enable_x11_shared=no
24495 if test x$x11_symbols_private != xyes && \
24496 test x$enable_x11_shared = xyes; then
24497 { $as_echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
24498 $as_echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
24499 enable_x11_shared=no
24502 if test x$have_loadso = xyes && \
24503 test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
24504 echo "-- dynamic libX11 -> $x11_lib"
24505 echo "-- dynamic libX11ext -> $x11ext_lib"
24506 cat >>confdefs.h <<_ACEOF
24507 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
24508 _ACEOF
24510 cat >>confdefs.h <<_ACEOF
24511 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
24512 _ACEOF
24514 else
24515 enable_x11_shared=no
24516 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
24518 have_video=yes
24520 # Check whether --enable-dga was given.
24521 if test "${enable_dga+set}" = set; then
24522 enableval=$enable_dga;
24523 else
24524 enable_dga=yes
24527 if test x$enable_dga = xyes; then
24528 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
24530 # Check whether --enable-video-dga was given.
24531 if test "${enable_video_dga+set}" = set; then
24532 enableval=$enable_video_dga;
24533 else
24534 enable_video_dga=yes
24537 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
24538 cat >>confdefs.h <<\_ACEOF
24539 #define SDL_VIDEO_DRIVER_DGA 1
24540 _ACEOF
24542 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
24544 # Check whether --enable-video-x11-dgamouse was given.
24545 if test "${enable_video_x11_dgamouse+set}" = set; then
24546 enableval=$enable_video_x11_dgamouse;
24547 else
24548 enable_video_x11_dgamouse=yes
24551 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
24552 cat >>confdefs.h <<\_ACEOF
24553 #define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
24554 _ACEOF
24557 # Check whether --enable-video-x11-vm was given.
24558 if test "${enable_video_x11_vm+set}" = set; then
24559 enableval=$enable_video_x11_vm;
24560 else
24561 enable_video_x11_vm=yes
24564 if test x$enable_video_x11_vm = xyes; then
24565 cat >>confdefs.h <<\_ACEOF
24566 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
24567 _ACEOF
24569 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
24571 # Check whether --enable-video-x11-xv was given.
24572 if test "${enable_video_x11_xv+set}" = set; then
24573 enableval=$enable_video_x11_xv;
24574 else
24575 enable_video_x11_xv=yes
24578 if test x$enable_video_x11_xv = xyes; then
24579 cat >>confdefs.h <<\_ACEOF
24580 #define SDL_VIDEO_DRIVER_X11_XV 1
24581 _ACEOF
24583 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
24585 # Check whether --enable-video-x11-xinerama was given.
24586 if test "${enable_video_x11_xinerama+set}" = set; then
24587 enableval=$enable_video_x11_xinerama;
24588 else
24589 enable_video_x11_xinerama=yes
24592 if test x$enable_video_x11_xinerama = xyes; then
24593 cat >>confdefs.h <<\_ACEOF
24594 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
24595 _ACEOF
24597 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
24599 # Check whether --enable-video-x11-xme was given.
24600 if test "${enable_video_x11_xme+set}" = set; then
24601 enableval=$enable_video_x11_xme;
24602 else
24603 enable_video_x11_xme=yes
24606 if test x$enable_video_x11_xme = xyes; then
24607 cat >>confdefs.h <<\_ACEOF
24608 #define SDL_VIDEO_DRIVER_X11_XME 1
24609 _ACEOF
24611 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
24613 # Check whether --enable-video-x11-xrandr was given.
24614 if test "${enable_video_x11_xrandr+set}" = set; then
24615 enableval=$enable_video_x11_xrandr;
24616 else
24617 enable_video_x11_xrandr=yes
24620 if test x$enable_video_x11_xrandr = xyes; then
24621 definitely_enable_video_x11_xrandr=no
24622 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
24623 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
24624 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
24625 $as_echo_n "(cached) " >&6
24626 else
24627 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h. */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 #include <X11/Xlib.h>
24636 #include <X11/extensions/Xrandr.h>
24637 _ACEOF
24638 rm -f conftest.$ac_objext
24639 if { (ac_try="$ac_compile"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24643 esac
24644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_compile") 2>conftest.er1
24647 ac_status=$?
24648 grep -v '^ *+' conftest.er1 >conftest.err
24649 rm -f conftest.er1
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest.$ac_objext; then
24656 ac_cv_header_X11_extensions_Xrandr_h=yes
24657 else
24658 $as_echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24661 ac_cv_header_X11_extensions_Xrandr_h=no
24664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
24667 $as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
24668 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then
24669 have_xrandr_h_hdr=yes
24670 else
24671 have_xrandr_h_hdr=no
24675 if test x$have_xrandr_h_hdr = xyes; then
24676 if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
24677 echo "-- dynamic libXrender -> $xrender_lib"
24678 echo "-- dynamic libXrandr -> $xrandr_lib"
24679 cat >>confdefs.h <<_ACEOF
24680 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
24681 _ACEOF
24683 cat >>confdefs.h <<_ACEOF
24684 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
24685 _ACEOF
24687 definitely_enable_video_x11_xrandr=yes
24688 else
24689 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
24690 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
24691 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
24692 $as_echo_n "(cached) " >&6
24693 else
24694 ac_check_lib_save_LIBS=$LIBS
24695 LIBS="-lXrender $LIBS"
24696 cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h. */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24703 /* Override any GCC internal prototype to avoid an error.
24704 Use char because int might match the return type of a GCC
24705 builtin and then its argument prototype would still apply. */
24706 #ifdef __cplusplus
24707 extern "C"
24708 #endif
24709 char XRenderQueryExtension ();
24711 main ()
24713 return XRenderQueryExtension ();
24715 return 0;
24717 _ACEOF
24718 rm -f conftest.$ac_objext conftest$ac_exeext
24719 if { (ac_try="$ac_link"
24720 case "(($ac_try" in
24721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24722 *) ac_try_echo=$ac_try;;
24723 esac
24724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24725 $as_echo "$ac_try_echo") >&5
24726 (eval "$ac_link") 2>conftest.er1
24727 ac_status=$?
24728 grep -v '^ *+' conftest.er1 >conftest.err
24729 rm -f conftest.er1
24730 cat conftest.err >&5
24731 $as_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_exeext && {
24736 test "$cross_compiling" = yes ||
24737 $as_test_x conftest$ac_exeext
24738 }; then
24739 ac_cv_lib_Xrender_XRenderQueryExtension=yes
24740 else
24741 $as_echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24744 ac_cv_lib_Xrender_XRenderQueryExtension=no
24747 rm -rf conftest.dSYM
24748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24749 conftest$ac_exeext conftest.$ac_ext
24750 LIBS=$ac_check_lib_save_LIBS
24752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
24753 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
24754 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
24755 have_xrender_lib=yes
24758 { $as_echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
24759 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
24760 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
24761 $as_echo_n "(cached) " >&6
24762 else
24763 ac_check_lib_save_LIBS=$LIBS
24764 LIBS="-lXrandr $LIBS"
24765 cat >conftest.$ac_ext <<_ACEOF
24766 /* confdefs.h. */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24772 /* Override any GCC internal prototype to avoid an error.
24773 Use char because int might match the return type of a GCC
24774 builtin and then its argument prototype would still apply. */
24775 #ifdef __cplusplus
24776 extern "C"
24777 #endif
24778 char XRRQueryExtension ();
24780 main ()
24782 return XRRQueryExtension ();
24784 return 0;
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791 *) ac_try_echo=$ac_try;;
24792 esac
24793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24794 $as_echo "$ac_try_echo") >&5
24795 (eval "$ac_link") 2>conftest.er1
24796 ac_status=$?
24797 grep -v '^ *+' conftest.er1 >conftest.err
24798 rm -f conftest.er1
24799 cat conftest.err >&5
24800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest$ac_exeext && {
24805 test "$cross_compiling" = yes ||
24806 $as_test_x conftest$ac_exeext
24807 }; then
24808 ac_cv_lib_Xrandr_XRRQueryExtension=yes
24809 else
24810 $as_echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_cv_lib_Xrandr_XRRQueryExtension=no
24816 rm -rf conftest.dSYM
24817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
24822 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
24823 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then
24824 have_xrandr_lib=yes
24827 if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then
24828 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender"
24829 definitely_enable_video_x11_xrandr=yes
24834 if test x$definitely_enable_video_x11_xrandr = xyes; then
24835 cat >>confdefs.h <<\_ACEOF
24836 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
24837 _ACEOF
24844 CheckPHOTON()
24846 # Check whether --enable-video-photon was given.
24847 if test "${enable_video_photon+set}" = set; then
24848 enableval=$enable_video_photon;
24849 else
24850 enable_video_photon=yes
24853 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
24854 { $as_echo "$as_me:$LINENO: checking for QNX Photon support" >&5
24855 $as_echo_n "checking for QNX Photon support... " >&6; }
24856 video_photon=no
24857 cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h. */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24864 #include <Ph.h>
24865 #include <Pt.h>
24866 #include <photon/Pg.h>
24867 #include <photon/PdDirect.h>
24870 main ()
24873 PgDisplaySettings_t *visual;
24876 return 0;
24878 _ACEOF
24879 rm -f conftest.$ac_objext
24880 if { (ac_try="$ac_compile"
24881 case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24884 esac
24885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24886 $as_echo "$ac_try_echo") >&5
24887 (eval "$ac_compile") 2>conftest.er1
24888 ac_status=$?
24889 grep -v '^ *+' conftest.er1 >conftest.err
24890 rm -f conftest.er1
24891 cat conftest.err >&5
24892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } && {
24894 test -z "$ac_c_werror_flag" ||
24895 test ! -s conftest.err
24896 } && test -s conftest.$ac_objext; then
24898 video_photon=yes
24900 else
24901 $as_echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908 { $as_echo "$as_me:$LINENO: result: $video_photon" >&5
24909 $as_echo "$video_photon" >&6; }
24910 if test x$video_photon = xyes; then
24911 cat >>confdefs.h <<\_ACEOF
24912 #define SDL_VIDEO_DRIVER_PHOTON 1
24913 _ACEOF
24915 SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
24916 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
24917 have_video=yes
24919 CheckOpenGLQNX
24924 CheckBWINDOW()
24926 if test x$enable_video = xyes; then
24927 cat >>confdefs.h <<\_ACEOF
24928 #define SDL_VIDEO_DRIVER_BWINDOW 1
24929 _ACEOF
24931 SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
24932 have_video=yes
24936 CheckCARBON()
24938 # Check whether --enable-video-carbon was given.
24939 if test "${enable_video_carbon+set}" = set; then
24940 enableval=$enable_video_carbon;
24941 else
24942 enable_video_carbon=no
24945 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
24946 { $as_echo "$as_me:$LINENO: checking for Carbon framework" >&5
24947 $as_echo_n "checking for Carbon framework... " >&6; }
24948 have_carbon=no
24949 cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h. */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24956 #include <Carbon/Carbon.h>
24959 main ()
24964 return 0;
24966 _ACEOF
24967 rm -f conftest.$ac_objext
24968 if { (ac_try="$ac_compile"
24969 case "(($ac_try" in
24970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24971 *) ac_try_echo=$ac_try;;
24972 esac
24973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24974 $as_echo "$ac_try_echo") >&5
24975 (eval "$ac_compile") 2>conftest.er1
24976 ac_status=$?
24977 grep -v '^ *+' conftest.er1 >conftest.err
24978 rm -f conftest.er1
24979 cat conftest.err >&5
24980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } && {
24982 test -z "$ac_c_werror_flag" ||
24983 test ! -s conftest.err
24984 } && test -s conftest.$ac_objext; then
24986 have_carbon=yes
24988 else
24989 $as_echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24996 { $as_echo "$as_me:$LINENO: result: $have_carbon" >&5
24997 $as_echo "$have_carbon" >&6; }
24998 if test x$have_carbon = xyes; then
24999 cat >>confdefs.h <<\_ACEOF
25000 #define SDL_VIDEO_DRIVER_TOOLBOX 1
25001 _ACEOF
25003 SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
25004 SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
25005 have_video=yes
25010 CheckCOCOA()
25012 # Check whether --enable-video-cocoa was given.
25013 if test "${enable_video_cocoa+set}" = set; then
25014 enableval=$enable_video_cocoa;
25015 else
25016 enable_video_cocoa=yes
25019 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
25020 save_CFLAGS="$CFLAGS"
25021 CFLAGS="$CFLAGS -x objective-c"
25022 { $as_echo "$as_me:$LINENO: checking for Cocoa framework" >&5
25023 $as_echo_n "checking for Cocoa framework... " >&6; }
25024 have_cocoa=no
25025 cat >conftest.$ac_ext <<_ACEOF
25026 /* confdefs.h. */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h. */
25032 #import <Cocoa/Cocoa.h>
25035 main ()
25040 return 0;
25042 _ACEOF
25043 rm -f conftest.$ac_objext
25044 if { (ac_try="$ac_compile"
25045 case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25048 esac
25049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25050 $as_echo "$ac_try_echo") >&5
25051 (eval "$ac_compile") 2>conftest.er1
25052 ac_status=$?
25053 grep -v '^ *+' conftest.er1 >conftest.err
25054 rm -f conftest.er1
25055 cat conftest.err >&5
25056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } && {
25058 test -z "$ac_c_werror_flag" ||
25059 test ! -s conftest.err
25060 } && test -s conftest.$ac_objext; then
25062 have_cocoa=yes
25064 else
25065 $as_echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25072 { $as_echo "$as_me:$LINENO: result: $have_cocoa" >&5
25073 $as_echo "$have_cocoa" >&6; }
25074 CFLAGS="$save_CFLAGS"
25075 if test x$have_cocoa = xyes; then
25076 cat >>confdefs.h <<\_ACEOF
25077 #define SDL_VIDEO_DRIVER_QUARTZ 1
25078 _ACEOF
25080 SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
25081 have_video=yes
25086 CheckFBCON()
25088 # Check whether --enable-video-fbcon was given.
25089 if test "${enable_video_fbcon+set}" = set; then
25090 enableval=$enable_video_fbcon;
25091 else
25092 enable_video_fbcon=yes
25095 if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
25096 { $as_echo "$as_me:$LINENO: checking for framebuffer console support" >&5
25097 $as_echo_n "checking for framebuffer console support... " >&6; }
25098 video_fbcon=no
25099 cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h. */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25106 #include <linux/fb.h>
25107 #include <linux/kd.h>
25108 #include <linux/keyboard.h>
25111 main ()
25116 return 0;
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25124 esac
25125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25126 $as_echo "$ac_try_echo") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25128 ac_status=$?
25129 grep -v '^ *+' conftest.er1 >conftest.err
25130 rm -f conftest.er1
25131 cat conftest.err >&5
25132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_c_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25138 video_fbcon=yes
25140 else
25141 $as_echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 { $as_echo "$as_me:$LINENO: result: $video_fbcon" >&5
25149 $as_echo "$video_fbcon" >&6; }
25150 if test x$video_fbcon = xyes; then
25152 for ac_func in getpagesize
25154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25156 $as_echo_n "checking for $ac_func... " >&6; }
25157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25158 $as_echo_n "(cached) " >&6
25159 else
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25168 #define $ac_func innocuous_$ac_func
25170 /* System header to define __stub macros and hopefully few prototypes,
25171 which can conflict with char $ac_func (); below.
25172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25173 <limits.h> exists even on freestanding compilers. */
25175 #ifdef __STDC__
25176 # include <limits.h>
25177 #else
25178 # include <assert.h>
25179 #endif
25181 #undef $ac_func
25183 /* Override any GCC internal prototype to avoid an error.
25184 Use char because int might match the return type of a GCC
25185 builtin and then its argument prototype would still apply. */
25186 #ifdef __cplusplus
25187 extern "C"
25188 #endif
25189 char $ac_func ();
25190 /* The GNU C library defines this for functions which it implements
25191 to always fail with ENOSYS. Some functions are actually named
25192 something starting with __ and the normal name is an alias. */
25193 #if defined __stub_$ac_func || defined __stub___$ac_func
25194 choke me
25195 #endif
25198 main ()
25200 return $ac_func ();
25202 return 0;
25204 _ACEOF
25205 rm -f conftest.$ac_objext conftest$ac_exeext
25206 if { (ac_try="$ac_link"
25207 case "(($ac_try" in
25208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25209 *) ac_try_echo=$ac_try;;
25210 esac
25211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25212 $as_echo "$ac_try_echo") >&5
25213 (eval "$ac_link") 2>conftest.er1
25214 ac_status=$?
25215 grep -v '^ *+' conftest.er1 >conftest.err
25216 rm -f conftest.er1
25217 cat conftest.err >&5
25218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } && {
25220 test -z "$ac_c_werror_flag" ||
25221 test ! -s conftest.err
25222 } && test -s conftest$ac_exeext && {
25223 test "$cross_compiling" = yes ||
25224 $as_test_x conftest$ac_exeext
25225 }; then
25226 eval "$as_ac_var=yes"
25227 else
25228 $as_echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25231 eval "$as_ac_var=no"
25234 rm -rf conftest.dSYM
25235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25236 conftest$ac_exeext conftest.$ac_ext
25238 ac_res=`eval 'as_val=${'$as_ac_var'}
25239 $as_echo "$as_val"'`
25240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25241 $as_echo "$ac_res" >&6; }
25242 as_val=`eval 'as_val=${'$as_ac_var'}
25243 $as_echo "$as_val"'`
25244 if test "x$as_val" = x""yes; then
25245 cat >>confdefs.h <<_ACEOF
25246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25247 _ACEOF
25250 done
25252 cat >>confdefs.h <<\_ACEOF
25253 #define SDL_VIDEO_DRIVER_FBCON 1
25254 _ACEOF
25256 SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
25257 have_video=yes
25262 CheckDirectFB()
25264 # Check whether --enable-video-directfb was given.
25265 if test "${enable_video_directfb+set}" = set; then
25266 enableval=$enable_video_directfb;
25267 else
25268 enable_video_directfb=yes
25271 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
25272 video_directfb=no
25274 DIRECTFB_REQUIRED_VERSION=0.9.15
25276 # Extract the first word of "directfb-config", so it can be a program name with args.
25277 set dummy directfb-config; ac_word=$2
25278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25279 $as_echo_n "checking for $ac_word... " >&6; }
25280 if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
25281 $as_echo_n "(cached) " >&6
25282 else
25283 case $DIRECTFBCONFIG in
25284 [\\/]* | ?:[\\/]*)
25285 ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
25288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25289 for as_dir in $PATH
25291 IFS=$as_save_IFS
25292 test -z "$as_dir" && as_dir=.
25293 for ac_exec_ext in '' $ac_executable_extensions; do
25294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25295 ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
25296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25297 break 2
25299 done
25300 done
25301 IFS=$as_save_IFS
25303 test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no"
25305 esac
25307 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
25308 if test -n "$DIRECTFBCONFIG"; then
25309 { $as_echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
25310 $as_echo "$DIRECTFBCONFIG" >&6; }
25311 else
25312 { $as_echo "$as_me:$LINENO: result: no" >&5
25313 $as_echo "no" >&6; }
25317 if test x$DIRECTFBCONFIG = xno; then
25318 # Extract the first word of "pkg-config", so it can be a program name with args.
25319 set dummy pkg-config; ac_word=$2
25320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
25321 $as_echo_n "checking for $ac_word... " >&6; }
25322 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25323 $as_echo_n "(cached) " >&6
25324 else
25325 case $PKG_CONFIG in
25326 [\\/]* | ?:[\\/]*)
25327 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25331 for as_dir in $PATH
25333 IFS=$as_save_IFS
25334 test -z "$as_dir" && as_dir=.
25335 for ac_exec_ext in '' $ac_executable_extensions; do
25336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25337 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25339 break 2
25341 done
25342 done
25343 IFS=$as_save_IFS
25345 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25347 esac
25349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25350 if test -n "$PKG_CONFIG"; then
25351 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25352 $as_echo "$PKG_CONFIG" >&6; }
25353 else
25354 { $as_echo "$as_me:$LINENO: result: no" >&5
25355 $as_echo "no" >&6; }
25359 if test x$PKG_CONFIG != xno; then
25360 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
25361 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
25362 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
25363 video_directfb=yes
25366 else
25367 set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
25368 NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
25369 set -- `directfb-config --version | sed 's/\./ /g'`
25370 HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
25371 if test $HAVE_VERSION -ge $NEED_VERSION; then
25372 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
25373 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
25374 video_directfb=yes
25377 if test x$video_directfb = xyes; then
25378 # SuSE 11.1 installs directfb-config without directfb-devel
25379 save_CFLAGS="$CFLAGS"
25380 CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
25381 if test "${ac_cv_header_directfb_h+set}" = set; then
25382 { $as_echo "$as_me:$LINENO: checking for directfb.h" >&5
25383 $as_echo_n "checking for directfb.h... " >&6; }
25384 if test "${ac_cv_header_directfb_h+set}" = set; then
25385 $as_echo_n "(cached) " >&6
25387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
25388 $as_echo "$ac_cv_header_directfb_h" >&6; }
25389 else
25390 # Is the header compilable?
25391 { $as_echo "$as_me:$LINENO: checking directfb.h usability" >&5
25392 $as_echo_n "checking directfb.h usability... " >&6; }
25393 cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h. */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h. */
25399 $ac_includes_default
25400 #include <directfb.h>
25401 _ACEOF
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25407 esac
25408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410 (eval "$ac_compile") 2>conftest.er1
25411 ac_status=$?
25412 grep -v '^ *+' conftest.er1 >conftest.err
25413 rm -f conftest.er1
25414 cat conftest.err >&5
25415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } && {
25417 test -z "$ac_c_werror_flag" ||
25418 test ! -s conftest.err
25419 } && test -s conftest.$ac_objext; then
25420 ac_header_compiler=yes
25421 else
25422 $as_echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25425 ac_header_compiler=no
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25430 $as_echo "$ac_header_compiler" >&6; }
25432 # Is the header present?
25433 { $as_echo "$as_me:$LINENO: checking directfb.h presence" >&5
25434 $as_echo_n "checking directfb.h presence... " >&6; }
25435 cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h. */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h. */
25441 #include <directfb.h>
25442 _ACEOF
25443 if { (ac_try="$ac_cpp conftest.$ac_ext"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25447 esac
25448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25449 $as_echo "$ac_try_echo") >&5
25450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25451 ac_status=$?
25452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
25455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } >/dev/null && {
25457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25458 test ! -s conftest.err
25459 }; then
25460 ac_header_preproc=yes
25461 else
25462 $as_echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 ac_header_preproc=no
25468 rm -f conftest.err conftest.$ac_ext
25469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25470 $as_echo "$ac_header_preproc" >&6; }
25472 # So? What about this header?
25473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25474 yes:no: )
25475 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&5
25476 $as_echo "$as_me: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25477 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the compiler's result" >&5
25478 $as_echo "$as_me: WARNING: directfb.h: proceeding with the compiler's result" >&2;}
25479 ac_header_preproc=yes
25481 no:yes:* )
25482 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: present but cannot be compiled" >&5
25483 $as_echo "$as_me: WARNING: directfb.h: present but cannot be compiled" >&2;}
25484 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: check for missing prerequisite headers?" >&5
25485 $as_echo "$as_me: WARNING: directfb.h: check for missing prerequisite headers?" >&2;}
25486 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: see the Autoconf documentation" >&5
25487 $as_echo "$as_me: WARNING: directfb.h: see the Autoconf documentation" >&2;}
25488 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: section \"Present But Cannot Be Compiled\"" >&5
25489 $as_echo "$as_me: WARNING: directfb.h: section \"Present But Cannot Be Compiled\"" >&2;}
25490 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the preprocessor's result" >&5
25491 $as_echo "$as_me: WARNING: directfb.h: proceeding with the preprocessor's result" >&2;}
25492 { $as_echo "$as_me:$LINENO: WARNING: directfb.h: in the future, the compiler will take precedence" >&5
25493 $as_echo "$as_me: WARNING: directfb.h: in the future, the compiler will take precedence" >&2;}
25496 esac
25497 { $as_echo "$as_me:$LINENO: checking for directfb.h" >&5
25498 $as_echo_n "checking for directfb.h... " >&6; }
25499 if test "${ac_cv_header_directfb_h+set}" = set; then
25500 $as_echo_n "(cached) " >&6
25501 else
25502 ac_cv_header_directfb_h=$ac_header_preproc
25504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
25505 $as_echo "$ac_cv_header_directfb_h" >&6; }
25508 if test "x$ac_cv_header_directfb_h" = x""yes; then
25509 have_directfb_hdr=yes
25510 else
25511 have_directfb_hdr=no
25515 CFLAGS="$save_CFLAGS"
25516 video_directfb=$have_directfb_hdr
25518 { $as_echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
25519 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
25520 { $as_echo "$as_me:$LINENO: result: $video_directfb" >&5
25521 $as_echo "$video_directfb" >&6; }
25523 if test x$video_directfb = xyes; then
25524 cat >>confdefs.h <<\_ACEOF
25525 #define SDL_VIDEO_DRIVER_DIRECTFB 1
25526 _ACEOF
25528 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
25529 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
25530 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
25531 have_video=yes
25536 CheckPS2GS()
25538 # Check whether --enable-video-ps2gs was given.
25539 if test "${enable_video_ps2gs+set}" = set; then
25540 enableval=$enable_video_ps2gs;
25541 else
25542 enable_video_ps2gs=yes
25545 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
25546 { $as_echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
25547 $as_echo_n "checking for PlayStation 2 GS support... " >&6; }
25548 video_ps2gs=no
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h. */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25556 #include <linux/ps2/dev.h>
25557 #include <linux/ps2/gs.h>
25560 main ()
25565 return 0;
25567 _ACEOF
25568 rm -f conftest.$ac_objext
25569 if { (ac_try="$ac_compile"
25570 case "(($ac_try" in
25571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25572 *) ac_try_echo=$ac_try;;
25573 esac
25574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25575 $as_echo "$ac_try_echo") >&5
25576 (eval "$ac_compile") 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } && {
25583 test -z "$ac_c_werror_flag" ||
25584 test ! -s conftest.err
25585 } && test -s conftest.$ac_objext; then
25587 video_ps2gs=yes
25589 else
25590 $as_echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 { $as_echo "$as_me:$LINENO: result: $video_ps2gs" >&5
25598 $as_echo "$video_ps2gs" >&6; }
25599 if test x$video_ps2gs = xyes; then
25600 cat >>confdefs.h <<\_ACEOF
25601 #define SDL_VIDEO_DRIVER_PS2GS 1
25602 _ACEOF
25604 SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
25605 have_video=yes
25610 CheckPS3()
25612 # Check whether --enable-video-ps3 was given.
25613 if test "${enable_video_ps3+set}" = set; then
25614 enableval=$enable_video_ps3;
25615 else
25616 enable_video_ps3=yes
25619 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
25620 { $as_echo "$as_me:$LINENO: checking for PlayStation 3 Cell support" >&5
25621 $as_echo_n "checking for PlayStation 3 Cell support... " >&6; }
25622 video_ps3=no
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25630 #include <linux/fb.h>
25631 #include <asm/ps3fb.h>
25634 main ()
25639 return 0;
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646 *) ac_try_echo=$ac_try;;
25647 esac
25648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25649 $as_echo "$ac_try_echo") >&5
25650 (eval "$ac_compile") 2>conftest.er1
25651 ac_status=$?
25652 grep -v '^ *+' conftest.er1 >conftest.err
25653 rm -f conftest.er1
25654 cat conftest.err >&5
25655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } && {
25657 test -z "$ac_c_werror_flag" ||
25658 test ! -s conftest.err
25659 } && test -s conftest.$ac_objext; then
25661 video_ps3=yes
25663 else
25664 $as_echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25671 { $as_echo "$as_me:$LINENO: result: $video_ps3" >&5
25672 $as_echo "$video_ps3" >&6; }
25673 if test x$video_ps3 = xyes; then
25674 cat >>confdefs.h <<\_ACEOF
25675 #define SDL_VIDEO_DRIVER_PS3 1
25676 _ACEOF
25678 SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
25679 EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
25680 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
25681 have_video=yes
25686 CheckGGI()
25688 # Check whether --enable-video-ggi was given.
25689 if test "${enable_video_ggi+set}" = set; then
25690 enableval=$enable_video_ggi;
25691 else
25692 enable_video_ggi=no
25695 if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
25696 { $as_echo "$as_me:$LINENO: checking for GGI support" >&5
25697 $as_echo_n "checking for GGI support... " >&6; }
25698 video_ggi=no
25699 cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h. */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h. */
25706 #include <ggi/ggi.h>
25707 #include <ggi/gii.h>
25710 main ()
25715 return 0;
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25723 esac
25724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25725 $as_echo "$ac_try_echo") >&5
25726 (eval "$ac_compile") 2>conftest.er1
25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
25731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest.$ac_objext; then
25737 video_ggi=yes
25739 else
25740 $as_echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 { $as_echo "$as_me:$LINENO: result: $video_ggi" >&5
25748 $as_echo "$video_ggi" >&6; }
25749 if test x$video_ggi = xyes; then
25750 cat >>confdefs.h <<\_ACEOF
25751 #define SDL_VIDEO_DRIVER_GGI 1
25752 _ACEOF
25754 SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
25755 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
25756 have_video=yes
25761 CheckSVGA()
25763 # Check whether --enable-video-svga was given.
25764 if test "${enable_video_svga+set}" = set; then
25765 enableval=$enable_video_svga;
25766 else
25767 enable_video_svga=yes
25770 if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
25771 { $as_echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
25772 $as_echo_n "checking for SVGAlib (1.4.0+) support... " >&6; }
25773 video_svga=no
25774 cat >conftest.$ac_ext <<_ACEOF
25775 /* confdefs.h. */
25776 _ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25781 #include <vga.h>
25782 #include <vgamouse.h>
25783 #include <vgakeyboard.h>
25786 main ()
25789 if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
25790 exit(0);
25794 return 0;
25796 _ACEOF
25797 rm -f conftest.$ac_objext
25798 if { (ac_try="$ac_compile"
25799 case "(($ac_try" in
25800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25801 *) ac_try_echo=$ac_try;;
25802 esac
25803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25804 $as_echo "$ac_try_echo") >&5
25805 (eval "$ac_compile") 2>conftest.er1
25806 ac_status=$?
25807 grep -v '^ *+' conftest.er1 >conftest.err
25808 rm -f conftest.er1
25809 cat conftest.err >&5
25810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); } && {
25812 test -z "$ac_c_werror_flag" ||
25813 test ! -s conftest.err
25814 } && test -s conftest.$ac_objext; then
25816 video_svga=yes
25818 else
25819 $as_echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25826 { $as_echo "$as_me:$LINENO: result: $video_svga" >&5
25827 $as_echo "$video_svga" >&6; }
25828 if test x$video_svga = xyes; then
25829 cat >>confdefs.h <<\_ACEOF
25830 #define SDL_VIDEO_DRIVER_SVGALIB 1
25831 _ACEOF
25833 SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
25834 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
25835 have_video=yes
25840 CheckVGL()
25842 # Check whether --enable-video-vgl was given.
25843 if test "${enable_video_vgl+set}" = set; then
25844 enableval=$enable_video_vgl;
25845 else
25846 enable_video_vgl=yes
25849 if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
25850 { $as_echo "$as_me:$LINENO: checking for libVGL support" >&5
25851 $as_echo_n "checking for libVGL support... " >&6; }
25852 video_vgl=no
25853 cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h. */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h. */
25860 #include <sys/fbio.h>
25861 #include <sys/consio.h>
25862 #include <sys/kbio.h>
25863 #include <vgl.h>
25866 main ()
25869 VGLBitmap bitmap;
25870 bitmap.Type = VIDBUF32;
25871 bitmap.PixelBytes = 4;
25872 exit(bitmap.Bitmap);
25875 return 0;
25877 _ACEOF
25878 rm -f conftest.$ac_objext
25879 if { (ac_try="$ac_compile"
25880 case "(($ac_try" in
25881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25882 *) ac_try_echo=$ac_try;;
25883 esac
25884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25885 $as_echo "$ac_try_echo") >&5
25886 (eval "$ac_compile") 2>conftest.er1
25887 ac_status=$?
25888 grep -v '^ *+' conftest.er1 >conftest.err
25889 rm -f conftest.er1
25890 cat conftest.err >&5
25891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 (exit $ac_status); } && {
25893 test -z "$ac_c_werror_flag" ||
25894 test ! -s conftest.err
25895 } && test -s conftest.$ac_objext; then
25897 video_vgl=yes
25899 else
25900 $as_echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25907 { $as_echo "$as_me:$LINENO: result: $video_vgl" >&5
25908 $as_echo "$video_vgl" >&6; }
25909 if test x$video_vgl = xyes; then
25910 cat >>confdefs.h <<\_ACEOF
25911 #define SDL_VIDEO_DRIVER_VGL 1
25912 _ACEOF
25914 SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
25915 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
25916 have_video=yes
25921 CheckWscons()
25923 # Check whether --enable-video-wscons was given.
25924 if test "${enable_video_wscons+set}" = set; then
25925 enableval=$enable_video_wscons;
25926 else
25927 enable_video_wscons=yes
25930 if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
25931 { $as_echo "$as_me:$LINENO: checking for wscons support" >&5
25932 $as_echo_n "checking for wscons support... " >&6; }
25933 video_wscons=no
25934 cat >conftest.$ac_ext <<_ACEOF
25935 /* confdefs.h. */
25936 _ACEOF
25937 cat confdefs.h >>conftest.$ac_ext
25938 cat >>conftest.$ac_ext <<_ACEOF
25939 /* end confdefs.h. */
25941 #include <sys/time.h>
25942 #include <dev/wscons/wsconsio.h>
25943 #include <dev/wscons/wsdisplay_usl_io.h>
25946 main ()
25949 int wsmode = WSDISPLAYIO_MODE_DUMBFB;
25952 return 0;
25954 _ACEOF
25955 rm -f conftest.$ac_objext
25956 if { (ac_try="$ac_compile"
25957 case "(($ac_try" in
25958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25959 *) ac_try_echo=$ac_try;;
25960 esac
25961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25962 $as_echo "$ac_try_echo") >&5
25963 (eval "$ac_compile") 2>conftest.er1
25964 ac_status=$?
25965 grep -v '^ *+' conftest.er1 >conftest.err
25966 rm -f conftest.er1
25967 cat conftest.err >&5
25968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } && {
25970 test -z "$ac_c_werror_flag" ||
25971 test ! -s conftest.err
25972 } && test -s conftest.$ac_objext; then
25974 video_wscons=yes
25976 else
25977 $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 { $as_echo "$as_me:$LINENO: result: $video_wscons" >&5
25985 $as_echo "$video_wscons" >&6; }
25986 if test x$video_wscons = xyes; then
25987 cat >>confdefs.h <<\_ACEOF
25988 #define SDL_VIDEO_DRIVER_WSCONS 1
25989 _ACEOF
25991 SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
25992 have_video=yes
25998 CheckAAlib()
26000 # Check whether --enable-video-aalib was given.
26001 if test "${enable_video_aalib+set}" = set; then
26002 enableval=$enable_video_aalib;
26003 else
26004 enable_video_aalib=no
26007 if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
26008 { $as_echo "$as_me:$LINENO: checking for AAlib support" >&5
26009 $as_echo_n "checking for AAlib support... " >&6; }
26010 video_aalib=no
26011 cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h. */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h. */
26018 #include <aalib.h>
26021 main ()
26026 return 0;
26028 _ACEOF
26029 rm -f conftest.$ac_objext
26030 if { (ac_try="$ac_compile"
26031 case "(($ac_try" in
26032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033 *) ac_try_echo=$ac_try;;
26034 esac
26035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26036 $as_echo "$ac_try_echo") >&5
26037 (eval "$ac_compile") 2>conftest.er1
26038 ac_status=$?
26039 grep -v '^ *+' conftest.er1 >conftest.err
26040 rm -f conftest.er1
26041 cat conftest.err >&5
26042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } && {
26044 test -z "$ac_c_werror_flag" ||
26045 test ! -s conftest.err
26046 } && test -s conftest.$ac_objext; then
26048 video_aalib=yes
26050 else
26051 $as_echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26058 { $as_echo "$as_me:$LINENO: result: $video_aalib" >&5
26059 $as_echo "$video_aalib" >&6; }
26060 if test x$video_aalib = xyes; then
26061 cat >>confdefs.h <<\_ACEOF
26062 #define SDL_VIDEO_DRIVER_AALIB 1
26063 _ACEOF
26065 SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
26066 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
26067 have_video=yes
26072 CheckCaca()
26074 # Check whether --enable-video-caca was given.
26075 if test "${enable_video_caca+set}" = set; then
26076 enableval=$enable_video_caca;
26077 else
26078 enable_video_caca=no
26081 if test x$enable_video = xyes -a x$enable_video_caca = xyes; then
26082 video_caca=no
26083 # Extract the first word of "caca-config", so it can be a program name with args.
26084 set dummy caca-config; ac_word=$2
26085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26086 $as_echo_n "checking for $ac_word... " >&6; }
26087 if test "${ac_cv_path_CACACONFIG+set}" = set; then
26088 $as_echo_n "(cached) " >&6
26089 else
26090 case $CACACONFIG in
26091 [\\/]* | ?:[\\/]*)
26092 ac_cv_path_CACACONFIG="$CACACONFIG" # Let the user override the test with a path.
26095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26096 for as_dir in $PATH
26098 IFS=$as_save_IFS
26099 test -z "$as_dir" && as_dir=.
26100 for ac_exec_ext in '' $ac_executable_extensions; do
26101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26102 ac_cv_path_CACACONFIG="$as_dir/$ac_word$ac_exec_ext"
26103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26104 break 2
26106 done
26107 done
26108 IFS=$as_save_IFS
26110 test -z "$ac_cv_path_CACACONFIG" && ac_cv_path_CACACONFIG="no"
26112 esac
26114 CACACONFIG=$ac_cv_path_CACACONFIG
26115 if test -n "$CACACONFIG"; then
26116 { $as_echo "$as_me:$LINENO: result: $CACACONFIG" >&5
26117 $as_echo "$CACACONFIG" >&6; }
26118 else
26119 { $as_echo "$as_me:$LINENO: result: no" >&5
26120 $as_echo "no" >&6; }
26124 if test x$CACACONFIG != xno; then
26125 { $as_echo "$as_me:$LINENO: checking for libcaca support" >&5
26126 $as_echo_n "checking for libcaca support... " >&6; }
26127 CACA_CFLAGS=`$CACACONFIG --cflags`
26128 CACA_LDFLAGS=`$CACACONFIG --libs`
26129 save_CFLAGS="$CFLAGS"
26130 cat >conftest.$ac_ext <<_ACEOF
26131 /* confdefs.h. */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26137 #include <caca.h>
26140 main ()
26145 return 0;
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26153 esac
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26157 ac_status=$?
26158 grep -v '^ *+' conftest.er1 >conftest.err
26159 rm -f conftest.er1
26160 cat conftest.err >&5
26161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26167 video_caca=yes
26169 else
26170 $as_echo "$as_me: failed program was:" >&5
26171 sed 's/^/| /' conftest.$ac_ext >&5
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26177 CFLAGS="$save_CFLAGS"
26178 { $as_echo "$as_me:$LINENO: result: $video_caca" >&5
26179 $as_echo "$video_caca" >&6; }
26180 if test x$video_caca = xyes; then
26181 cat >>confdefs.h <<\_ACEOF
26182 #define SDL_VIDEO_DRIVER_CACA 1
26183 _ACEOF
26185 EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS"
26186 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS"
26187 SOURCES="$SOURCES $srcdir/src/video/caca/*.c"
26193 CheckQtopia()
26195 # Check whether --enable-video-qtopia was given.
26196 if test "${enable_video_qtopia+set}" = set; then
26197 enableval=$enable_video_qtopia;
26198 else
26199 enable_video_qtopia=no
26202 if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
26203 { $as_echo "$as_me:$LINENO: checking for Qtopia support" >&5
26204 $as_echo_n "checking for Qtopia support... " >&6; }
26205 video_qtopia=no
26206 QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
26207 ac_ext=cpp
26208 ac_cpp='$CXXCPP $CPPFLAGS'
26209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26213 OLD_CXX="$CXXFLAGS"
26214 CXXFLAGS="$QTOPIA_FLAGS"
26215 cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h. */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26222 #include <qpe/qpeapplication.h>
26225 main ()
26230 return 0;
26232 _ACEOF
26233 rm -f conftest.$ac_objext
26234 if { (ac_try="$ac_compile"
26235 case "(($ac_try" in
26236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26237 *) ac_try_echo=$ac_try;;
26238 esac
26239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26240 $as_echo "$ac_try_echo") >&5
26241 (eval "$ac_compile") 2>conftest.er1
26242 ac_status=$?
26243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
26246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_cxx_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest.$ac_objext; then
26252 video_qtopia=yes
26254 else
26255 $as_echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 CXXFLAGS="$OLD_CXX"
26263 { $as_echo "$as_me:$LINENO: result: $video_qtopia" >&5
26264 $as_echo "$video_qtopia" >&6; }
26265 if test x$video_qtopia = xyes; then
26266 cat >>confdefs.h <<\_ACEOF
26267 #define SDL_VIDEO_DRIVER_QTOPIA 1
26268 _ACEOF
26270 SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
26271 SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
26272 EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
26273 SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
26274 SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
26275 have_video=yes
26277 ac_ext=c
26278 ac_cpp='$CPP $CPPFLAGS'
26279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26286 CheckPicoGUI()
26288 # Check whether --enable-video-picogui was given.
26289 if test "${enable_video_picogui+set}" = set; then
26290 enableval=$enable_video_picogui;
26291 else
26292 enable_video_picogui=no
26295 if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
26296 { $as_echo "$as_me:$LINENO: checking for PicoGUI support" >&5
26297 $as_echo_n "checking for PicoGUI support... " >&6; }
26298 video_picogui=no
26299 cat >conftest.$ac_ext <<_ACEOF
26300 /* confdefs.h. */
26301 _ACEOF
26302 cat confdefs.h >>conftest.$ac_ext
26303 cat >>conftest.$ac_ext <<_ACEOF
26304 /* end confdefs.h. */
26306 #include <picogui.h>
26309 main ()
26314 return 0;
26316 _ACEOF
26317 rm -f conftest.$ac_objext
26318 if { (ac_try="$ac_compile"
26319 case "(($ac_try" in
26320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26321 *) ac_try_echo=$ac_try;;
26322 esac
26323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26324 $as_echo "$ac_try_echo") >&5
26325 (eval "$ac_compile") 2>conftest.er1
26326 ac_status=$?
26327 grep -v '^ *+' conftest.er1 >conftest.err
26328 rm -f conftest.er1
26329 cat conftest.err >&5
26330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } && {
26332 test -z "$ac_c_werror_flag" ||
26333 test ! -s conftest.err
26334 } && test -s conftest.$ac_objext; then
26336 video_picogui=yes
26338 else
26339 $as_echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26346 { $as_echo "$as_me:$LINENO: result: $video_picogui" >&5
26347 $as_echo "$video_picogui" >&6; }
26348 if test x$video_picogui = xyes; then
26349 cat >>confdefs.h <<\_ACEOF
26350 #define SDL_VIDEO_DRIVER_PICOGUI 1
26351 _ACEOF
26353 SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
26354 SDL_LIBS="$SDL_LIBS -lpgui"
26355 have_video=yes
26360 CheckAtariBiosEvent()
26362 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c"
26363 SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S"
26366 CheckAtariXbiosVideo()
26368 # Check whether --enable-xbios was given.
26369 if test "${enable_xbios+set}" = set; then
26370 enableval=$enable_xbios;
26371 else
26372 enable_video_xbios=yes
26375 video_xbios=no
26376 if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
26377 video_xbios=yes
26378 cat >>confdefs.h <<\_ACEOF
26379 #define SDL_VIDEO_DRIVER_XBIOS 1
26380 _ACEOF
26382 SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
26383 have_video=yes
26387 CheckAtariGemVideo()
26389 # Check whether --enable-gem was given.
26390 if test "${enable_gem+set}" = set; then
26391 enableval=$enable_gem;
26392 else
26393 enable_video_gem=yes
26396 if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
26397 video_gem=no
26398 if test "${ac_cv_header_gem_h+set}" = set; then
26399 { $as_echo "$as_me:$LINENO: checking for gem.h" >&5
26400 $as_echo_n "checking for gem.h... " >&6; }
26401 if test "${ac_cv_header_gem_h+set}" = set; then
26402 $as_echo_n "(cached) " >&6
26404 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
26405 $as_echo "$ac_cv_header_gem_h" >&6; }
26406 else
26407 # Is the header compilable?
26408 { $as_echo "$as_me:$LINENO: checking gem.h usability" >&5
26409 $as_echo_n "checking gem.h usability... " >&6; }
26410 cat >conftest.$ac_ext <<_ACEOF
26411 /* confdefs.h. */
26412 _ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 $ac_includes_default
26417 #include <gem.h>
26418 _ACEOF
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26424 esac
26425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427 (eval "$ac_compile") 2>conftest.er1
26428 ac_status=$?
26429 grep -v '^ *+' conftest.er1 >conftest.err
26430 rm -f conftest.er1
26431 cat conftest.err >&5
26432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && {
26434 test -z "$ac_c_werror_flag" ||
26435 test ! -s conftest.err
26436 } && test -s conftest.$ac_objext; then
26437 ac_header_compiler=yes
26438 else
26439 $as_echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 ac_header_compiler=no
26445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26447 $as_echo "$ac_header_compiler" >&6; }
26449 # Is the header present?
26450 { $as_echo "$as_me:$LINENO: checking gem.h presence" >&5
26451 $as_echo_n "checking gem.h presence... " >&6; }
26452 cat >conftest.$ac_ext <<_ACEOF
26453 /* confdefs.h. */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h. */
26458 #include <gem.h>
26459 _ACEOF
26460 if { (ac_try="$ac_cpp conftest.$ac_ext"
26461 case "(($ac_try" in
26462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463 *) ac_try_echo=$ac_try;;
26464 esac
26465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26466 $as_echo "$ac_try_echo") >&5
26467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26468 ac_status=$?
26469 grep -v '^ *+' conftest.er1 >conftest.err
26470 rm -f conftest.er1
26471 cat conftest.err >&5
26472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); } >/dev/null && {
26474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 }; then
26477 ac_header_preproc=yes
26478 else
26479 $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26482 ac_header_preproc=no
26485 rm -f conftest.err conftest.$ac_ext
26486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26487 $as_echo "$ac_header_preproc" >&6; }
26489 # So? What about this header?
26490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26491 yes:no: )
26492 { $as_echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
26493 $as_echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26494 { $as_echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
26495 $as_echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
26496 ac_header_preproc=yes
26498 no:yes:* )
26499 { $as_echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
26500 $as_echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
26501 { $as_echo "$as_me:$LINENO: WARNING: gem.h: check for missing prerequisite headers?" >&5
26502 $as_echo "$as_me: WARNING: gem.h: check for missing prerequisite headers?" >&2;}
26503 { $as_echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
26504 $as_echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
26505 { $as_echo "$as_me:$LINENO: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&5
26506 $as_echo "$as_me: WARNING: gem.h: section \"Present But Cannot Be Compiled\"" >&2;}
26507 { $as_echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
26508 $as_echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
26509 { $as_echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
26510 $as_echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
26513 esac
26514 { $as_echo "$as_me:$LINENO: checking for gem.h" >&5
26515 $as_echo_n "checking for gem.h... " >&6; }
26516 if test "${ac_cv_header_gem_h+set}" = set; then
26517 $as_echo_n "(cached) " >&6
26518 else
26519 ac_cv_header_gem_h=$ac_header_preproc
26521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
26522 $as_echo "$ac_cv_header_gem_h" >&6; }
26525 if test "x$ac_cv_header_gem_h" = x""yes; then
26526 have_gem_hdr=yes
26530 { $as_echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
26531 $as_echo_n "checking for appl_init in -lgem... " >&6; }
26532 if test "${ac_cv_lib_gem_appl_init+set}" = set; then
26533 $as_echo_n "(cached) " >&6
26534 else
26535 ac_check_lib_save_LIBS=$LIBS
26536 LIBS="-lgem $LIBS"
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h. */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26544 /* Override any GCC internal prototype to avoid an error.
26545 Use char because int might match the return type of a GCC
26546 builtin and then its argument prototype would still apply. */
26547 #ifdef __cplusplus
26548 extern "C"
26549 #endif
26550 char appl_init ();
26552 main ()
26554 return appl_init ();
26556 return 0;
26558 _ACEOF
26559 rm -f conftest.$ac_objext conftest$ac_exeext
26560 if { (ac_try="$ac_link"
26561 case "(($ac_try" in
26562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563 *) ac_try_echo=$ac_try;;
26564 esac
26565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26566 $as_echo "$ac_try_echo") >&5
26567 (eval "$ac_link") 2>conftest.er1
26568 ac_status=$?
26569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
26572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } && {
26574 test -z "$ac_c_werror_flag" ||
26575 test ! -s conftest.err
26576 } && test -s conftest$ac_exeext && {
26577 test "$cross_compiling" = yes ||
26578 $as_test_x conftest$ac_exeext
26579 }; then
26580 ac_cv_lib_gem_appl_init=yes
26581 else
26582 $as_echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26585 ac_cv_lib_gem_appl_init=no
26588 rm -rf conftest.dSYM
26589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26590 conftest$ac_exeext conftest.$ac_ext
26591 LIBS=$ac_check_lib_save_LIBS
26593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
26594 $as_echo "$ac_cv_lib_gem_appl_init" >&6; }
26595 if test "x$ac_cv_lib_gem_appl_init" = x""yes; then
26596 have_gem_lib=yes
26599 if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
26600 video_gem=yes
26601 cat >>confdefs.h <<\_ACEOF
26602 #define SDL_VIDEO_DRIVER_GEM 1
26603 _ACEOF
26605 SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
26606 SDL_LIBS="$SDL_LIBS -lgem"
26607 have_video=yes
26612 CheckDummyVideo()
26614 # Check whether --enable-video-dummy was given.
26615 if test "${enable_video_dummy+set}" = set; then
26616 enableval=$enable_video_dummy;
26617 else
26618 enable_video_dummy=yes
26621 if test x$enable_video_dummy = xyes; then
26622 cat >>confdefs.h <<\_ACEOF
26623 #define SDL_VIDEO_DRIVER_DUMMY 1
26624 _ACEOF
26626 SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
26627 have_video=yes
26631 # Check whether --enable-video-opengl was given.
26632 if test "${enable_video_opengl+set}" = set; then
26633 enableval=$enable_video_opengl;
26634 else
26635 enable_video_opengl=yes
26639 CheckOpenGLX11()
26641 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26642 { $as_echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
26643 $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
26644 video_opengl=no
26645 cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h. */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26652 #include <GL/gl.h>
26653 #include <GL/glx.h>
26654 #include <GL/glu.h>
26657 main ()
26662 return 0;
26664 _ACEOF
26665 rm -f conftest.$ac_objext
26666 if { (ac_try="$ac_compile"
26667 case "(($ac_try" in
26668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26669 *) ac_try_echo=$ac_try;;
26670 esac
26671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26672 $as_echo "$ac_try_echo") >&5
26673 (eval "$ac_compile") 2>conftest.er1
26674 ac_status=$?
26675 grep -v '^ *+' conftest.er1 >conftest.err
26676 rm -f conftest.er1
26677 cat conftest.err >&5
26678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest.$ac_objext; then
26684 video_opengl=yes
26686 else
26687 $as_echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26694 { $as_echo "$as_me:$LINENO: result: $video_opengl" >&5
26695 $as_echo "$video_opengl" >&6; }
26696 if test x$video_opengl = xyes; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define SDL_VIDEO_OPENGL 1
26699 _ACEOF
26701 cat >>confdefs.h <<\_ACEOF
26702 #define SDL_VIDEO_OPENGL_GLX 1
26703 _ACEOF
26709 CheckOpenGLQNX()
26711 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26712 { $as_echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
26713 $as_echo_n "checking for OpenGL (Photon) support... " >&6; }
26714 video_opengl=no
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h. */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26722 #include <GL/gl.h>
26725 main ()
26730 return 0;
26732 _ACEOF
26733 rm -f conftest.$ac_objext
26734 if { (ac_try="$ac_compile"
26735 case "(($ac_try" in
26736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737 *) ac_try_echo=$ac_try;;
26738 esac
26739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26740 $as_echo "$ac_try_echo") >&5
26741 (eval "$ac_compile") 2>conftest.er1
26742 ac_status=$?
26743 grep -v '^ *+' conftest.er1 >conftest.err
26744 rm -f conftest.er1
26745 cat conftest.err >&5
26746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } && {
26748 test -z "$ac_c_werror_flag" ||
26749 test ! -s conftest.err
26750 } && test -s conftest.$ac_objext; then
26752 video_opengl=yes
26754 else
26755 $as_echo "$as_me: failed program was:" >&5
26756 sed 's/^/| /' conftest.$ac_ext >&5
26761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26762 { $as_echo "$as_me:$LINENO: result: $video_opengl" >&5
26763 $as_echo "$video_opengl" >&6; }
26764 if test x$video_opengl = xyes; then
26765 cat >>confdefs.h <<\_ACEOF
26766 #define SDL_VIDEO_OPENGL 1
26767 _ACEOF
26769 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26774 CheckWIN32GL()
26776 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26777 cat >>confdefs.h <<\_ACEOF
26778 #define SDL_VIDEO_OPENGL 1
26779 _ACEOF
26781 cat >>confdefs.h <<\_ACEOF
26782 #define SDL_VIDEO_OPENGL_WGL 1
26783 _ACEOF
26788 CheckBeGL()
26790 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26791 cat >>confdefs.h <<\_ACEOF
26792 #define SDL_VIDEO_OPENGL 1
26793 _ACEOF
26795 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26799 CheckMacGL()
26801 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26802 cat >>confdefs.h <<\_ACEOF
26803 #define SDL_VIDEO_OPENGL 1
26804 _ACEOF
26806 case "$host" in
26807 *-*-darwin*)
26808 if test x$enable_video_cocoa = xyes; then
26809 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
26811 if test x$enable_video_carbon = xyes; then
26812 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
26814 esac
26818 CheckAtariOSMesa()
26820 if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
26821 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26822 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26823 $as_echo_n "checking for GL/osmesa.h... " >&6; }
26824 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26825 $as_echo_n "(cached) " >&6
26827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26828 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
26829 else
26830 # Is the header compilable?
26831 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
26832 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
26833 cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h. */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839 $ac_includes_default
26840 #include <GL/osmesa.h>
26841 _ACEOF
26842 rm -f conftest.$ac_objext
26843 if { (ac_try="$ac_compile"
26844 case "(($ac_try" in
26845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846 *) ac_try_echo=$ac_try;;
26847 esac
26848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849 $as_echo "$ac_try_echo") >&5
26850 (eval "$ac_compile") 2>conftest.er1
26851 ac_status=$?
26852 grep -v '^ *+' conftest.er1 >conftest.err
26853 rm -f conftest.er1
26854 cat conftest.err >&5
26855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); } && {
26857 test -z "$ac_c_werror_flag" ||
26858 test ! -s conftest.err
26859 } && test -s conftest.$ac_objext; then
26860 ac_header_compiler=yes
26861 else
26862 $as_echo "$as_me: failed program was:" >&5
26863 sed 's/^/| /' conftest.$ac_ext >&5
26865 ac_header_compiler=no
26868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26870 $as_echo "$ac_header_compiler" >&6; }
26872 # Is the header present?
26873 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
26874 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
26875 cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h. */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 #include <GL/osmesa.h>
26882 _ACEOF
26883 if { (ac_try="$ac_cpp conftest.$ac_ext"
26884 case "(($ac_try" in
26885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26886 *) ac_try_echo=$ac_try;;
26887 esac
26888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26889 $as_echo "$ac_try_echo") >&5
26890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26891 ac_status=$?
26892 grep -v '^ *+' conftest.er1 >conftest.err
26893 rm -f conftest.er1
26894 cat conftest.err >&5
26895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } >/dev/null && {
26897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26898 test ! -s conftest.err
26899 }; then
26900 ac_header_preproc=yes
26901 else
26902 $as_echo "$as_me: failed program was:" >&5
26903 sed 's/^/| /' conftest.$ac_ext >&5
26905 ac_header_preproc=no
26908 rm -f conftest.err conftest.$ac_ext
26909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26910 $as_echo "$ac_header_preproc" >&6; }
26912 # So? What about this header?
26913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26914 yes:no: )
26915 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
26916 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26917 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
26918 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
26919 ac_header_preproc=yes
26921 no:yes:* )
26922 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
26923 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
26924 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
26925 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
26926 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
26927 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
26928 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
26929 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
26930 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
26931 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
26932 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
26933 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
26936 esac
26937 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26938 $as_echo_n "checking for GL/osmesa.h... " >&6; }
26939 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26940 $as_echo_n "(cached) " >&6
26941 else
26942 ac_cv_header_GL_osmesa_h=$ac_header_preproc
26944 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26945 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
26948 if test "x$ac_cv_header_GL_osmesa_h" = x""yes; then
26949 have_osmesa_hdr=yes
26953 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
26954 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
26955 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
26956 $as_echo_n "(cached) " >&6
26957 else
26958 ac_check_lib_save_LIBS=$LIBS
26959 LIBS="-lOSMesa -lm $LIBS"
26960 cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h. */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26967 /* Override any GCC internal prototype to avoid an error.
26968 Use char because int might match the return type of a GCC
26969 builtin and then its argument prototype would still apply. */
26970 #ifdef __cplusplus
26971 extern "C"
26972 #endif
26973 char OSMesaCreateContext ();
26975 main ()
26977 return OSMesaCreateContext ();
26979 return 0;
26981 _ACEOF
26982 rm -f conftest.$ac_objext conftest$ac_exeext
26983 if { (ac_try="$ac_link"
26984 case "(($ac_try" in
26985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26986 *) ac_try_echo=$ac_try;;
26987 esac
26988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26989 $as_echo "$ac_try_echo") >&5
26990 (eval "$ac_link") 2>conftest.er1
26991 ac_status=$?
26992 grep -v '^ *+' conftest.er1 >conftest.err
26993 rm -f conftest.er1
26994 cat conftest.err >&5
26995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996 (exit $ac_status); } && {
26997 test -z "$ac_c_werror_flag" ||
26998 test ! -s conftest.err
26999 } && test -s conftest$ac_exeext && {
27000 test "$cross_compiling" = yes ||
27001 $as_test_x conftest$ac_exeext
27002 }; then
27003 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
27004 else
27005 $as_echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27008 ac_cv_lib_OSMesa_OSMesaCreateContext=no
27011 rm -rf conftest.dSYM
27012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27013 conftest$ac_exeext conftest.$ac_ext
27014 LIBS=$ac_check_lib_save_LIBS
27016 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
27017 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
27018 if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = x""yes; then
27019 have_osmesa_lib=yes
27020 else
27021 have_osmesa_lib=no
27025 # Static linking to -lOSMesa
27026 # Extract the first word of "osmesa-config", so it can be a program name with args.
27027 set dummy osmesa-config; ac_word=$2
27028 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27029 $as_echo_n "checking for $ac_word... " >&6; }
27030 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
27031 $as_echo_n "(cached) " >&6
27032 else
27033 case $OSMESA_CONFIG in
27034 [\\/]* | ?:[\\/]*)
27035 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
27038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27039 for as_dir in $PATH
27041 IFS=$as_save_IFS
27042 test -z "$as_dir" && as_dir=.
27043 for ac_exec_ext in '' $ac_executable_extensions; do
27044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27045 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27047 break 2
27049 done
27050 done
27051 IFS=$as_save_IFS
27053 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
27055 esac
27057 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
27058 if test -n "$OSMESA_CONFIG"; then
27059 { $as_echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
27060 $as_echo "$OSMESA_CONFIG" >&6; }
27061 else
27062 { $as_echo "$as_me:$LINENO: result: no" >&5
27063 $as_echo "no" >&6; }
27067 if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
27068 # -lOSMesa is really the static library
27069 if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
27070 OSMESA_LIBS="-lOSMesa"
27072 else
27073 # -lOSMesa is a loader for OSMesa.ldg
27074 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
27075 OSMESA_LIBS=`$OSMESA_CONFIG --libs`
27077 cat >>confdefs.h <<\_ACEOF
27078 #define SDL_VIDEO_OPENGL 1
27079 _ACEOF
27081 cat >>confdefs.h <<\_ACEOF
27082 #define SDL_VIDEO_OPENGL_OSMESA 1
27083 _ACEOF
27085 SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
27086 SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
27088 # Check whether --enable-osmesa-shared was given.
27089 if test "${enable_osmesa_shared+set}" = set; then
27090 enableval=$enable_osmesa_shared;
27091 else
27092 enable_osmesa_shared=yes
27095 if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
27096 # Dynamic linking
27097 if test "x$have_osmesa_hdr" = "xyes"; then
27098 cat >>confdefs.h <<\_ACEOF
27099 #define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
27100 _ACEOF
27107 # Check whether --enable-screensaver was given.
27108 if test "${enable_screensaver+set}" = set; then
27109 enableval=$enable_screensaver;
27110 else
27111 enable_screensaver=no
27114 if test x$enable_screensaver = xno; then
27115 cat >>confdefs.h <<\_ACEOF
27116 #define SDL_VIDEO_DISABLE_SCREENSAVER 1
27117 _ACEOF
27121 CheckInputEvents()
27123 # Check whether --enable-input-events was given.
27124 if test "${enable_input_events+set}" = set; then
27125 enableval=$enable_input_events;
27126 else
27127 enable_input_events=yes
27130 if test x$enable_input_events = xyes; then
27131 { $as_echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
27132 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
27133 use_input_events=no
27134 cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h. */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h. */
27141 #include <linux/input.h>
27144 main ()
27147 #ifndef EVIOCGNAME
27148 #error EVIOCGNAME() ioctl not available
27149 #endif
27152 return 0;
27154 _ACEOF
27155 rm -f conftest.$ac_objext
27156 if { (ac_try="$ac_compile"
27157 case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27160 esac
27161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27162 $as_echo "$ac_try_echo") >&5
27163 (eval "$ac_compile") 2>conftest.er1
27164 ac_status=$?
27165 grep -v '^ *+' conftest.er1 >conftest.err
27166 rm -f conftest.er1
27167 cat conftest.err >&5
27168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } && {
27170 test -z "$ac_c_werror_flag" ||
27171 test ! -s conftest.err
27172 } && test -s conftest.$ac_objext; then
27174 use_input_events=yes
27176 else
27177 $as_echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27184 { $as_echo "$as_me:$LINENO: result: $use_input_events" >&5
27185 $as_echo "$use_input_events" >&6; }
27186 if test x$use_input_events = xyes; then
27187 cat >>confdefs.h <<\_ACEOF
27188 #define SDL_INPUT_LINUXEV 1
27189 _ACEOF
27195 CheckTslib()
27197 # Check whether --enable-input-tslib was given.
27198 if test "${enable_input_tslib+set}" = set; then
27199 enableval=$enable_input_tslib;
27200 else
27201 enable_input_tslib=yes
27204 if test x$enable_input_tslib = xyes; then
27205 { $as_echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
27206 $as_echo_n "checking for Touchscreen library support... " >&6; }
27207 enable_input_tslib=no
27208 cat >conftest.$ac_ext <<_ACEOF
27209 /* confdefs.h. */
27210 _ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27215 #include "tslib.h"
27218 main ()
27223 return 0;
27225 _ACEOF
27226 rm -f conftest.$ac_objext
27227 if { (ac_try="$ac_compile"
27228 case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231 esac
27232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27233 $as_echo "$ac_try_echo") >&5
27234 (eval "$ac_compile") 2>conftest.er1
27235 ac_status=$?
27236 grep -v '^ *+' conftest.er1 >conftest.err
27237 rm -f conftest.er1
27238 cat conftest.err >&5
27239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && {
27241 test -z "$ac_c_werror_flag" ||
27242 test ! -s conftest.err
27243 } && test -s conftest.$ac_objext; then
27245 enable_input_tslib=yes
27247 else
27248 $as_echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255 { $as_echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
27256 $as_echo "$enable_input_tslib" >&6; }
27257 if test x$enable_input_tslib = xyes; then
27258 cat >>confdefs.h <<\_ACEOF
27259 #define SDL_INPUT_TSLIB 1
27260 _ACEOF
27262 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
27267 CheckPTH()
27269 # Check whether --enable-pth was given.
27270 if test "${enable_pth+set}" = set; then
27271 enableval=$enable_pth;
27272 else
27273 enable_pth=yes
27276 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
27277 # Extract the first word of "pth-config", so it can be a program name with args.
27278 set dummy pth-config; ac_word=$2
27279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27280 $as_echo_n "checking for $ac_word... " >&6; }
27281 if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
27282 $as_echo_n "(cached) " >&6
27283 else
27284 case $PTH_CONFIG in
27285 [\\/]* | ?:[\\/]*)
27286 ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
27289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27290 for as_dir in $PATH
27292 IFS=$as_save_IFS
27293 test -z "$as_dir" && as_dir=.
27294 for ac_exec_ext in '' $ac_executable_extensions; do
27295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27296 ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27298 break 2
27300 done
27301 done
27302 IFS=$as_save_IFS
27304 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
27306 esac
27308 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
27309 if test -n "$PTH_CONFIG"; then
27310 { $as_echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
27311 $as_echo "$PTH_CONFIG" >&6; }
27312 else
27313 { $as_echo "$as_me:$LINENO: result: no" >&5
27314 $as_echo "no" >&6; }
27318 if test "$PTH_CONFIG" = "no"; then
27319 use_pth=no
27320 else
27321 use_pth=yes
27323 { $as_echo "$as_me:$LINENO: checking pth" >&5
27324 $as_echo_n "checking pth... " >&6; }
27325 { $as_echo "$as_me:$LINENO: result: $use_pth" >&5
27326 $as_echo "$use_pth" >&6; }
27327 if test "x$use_pth" = xyes; then
27328 cat >>confdefs.h <<\_ACEOF
27329 #define SDL_THREAD_PTH 1
27330 _ACEOF
27332 SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
27333 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
27334 SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
27335 SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
27336 have_threads=yes
27341 CheckPTHREAD()
27343 # Check whether --enable-pthreads was given.
27344 if test "${enable_pthreads+set}" = set; then
27345 enableval=$enable_pthreads;
27346 else
27347 enable_pthreads=yes
27350 # Check whether --enable-pthread-sem was given.
27351 if test "${enable_pthread_sem+set}" = set; then
27352 enableval=$enable_pthread_sem;
27353 else
27354 enable_pthread_sem=yes
27357 case "$host" in
27358 *-*-linux*|*-*-uclinux*)
27359 pthread_cflags="-D_REENTRANT"
27360 pthread_lib="-lpthread"
27362 *-*-bsdi*)
27363 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
27364 pthread_lib=""
27366 *-*-darwin*)
27367 pthread_cflags="-D_THREAD_SAFE"
27368 # causes Carbon.p complaints?
27369 # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
27371 *-*-freebsd*|*-*-dragonfly*)
27372 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
27373 pthread_lib="-pthread"
27375 *-*-netbsd*)
27376 pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
27377 pthread_lib="-lpthread"
27379 *-*-openbsd*)
27380 pthread_cflags="-D_REENTRANT"
27381 pthread_lib="-pthread"
27383 *-*-solaris*)
27384 pthread_cflags="-D_REENTRANT"
27385 pthread_lib="-lpthread -lposix4"
27387 *-*-sysv5*)
27388 pthread_cflags="-D_REENTRANT -Kthread"
27389 pthread_lib=""
27391 *-*-irix*)
27392 pthread_cflags="-D_SGI_MP_SOURCE"
27393 pthread_lib="-lpthread"
27395 *-*-aix*)
27396 pthread_cflags="-D_REENTRANT -mthreads"
27397 pthread_lib="-lpthread"
27399 *-*-hpux11*)
27400 pthread_cflags="-D_REENTRANT"
27401 pthread_lib="-L/usr/lib -lpthread"
27403 *-*-qnx*)
27404 pthread_cflags=""
27405 pthread_lib=""
27407 *-*-osf*)
27408 pthread_cflags="-D_REENTRANT"
27409 if test x$ac_cv_c_compiler_gnu = xyes; then
27410 pthread_lib="-lpthread -lrt"
27411 else
27412 pthread_lib="-lpthread -lexc -lrt"
27416 pthread_cflags="-D_REENTRANT"
27417 pthread_lib="-lpthread"
27419 esac
27420 if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
27421 # Save the original compiler flags and libraries
27422 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
27423 # Add the pthread compiler flags and libraries
27424 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
27425 # Check to see if we have pthread support on this system
27426 { $as_echo "$as_me:$LINENO: checking for pthreads" >&5
27427 $as_echo_n "checking for pthreads... " >&6; }
27428 use_pthreads=no
27429 cat >conftest.$ac_ext <<_ACEOF
27430 /* confdefs.h. */
27431 _ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h. */
27436 #include <pthread.h>
27439 main ()
27442 pthread_attr_t type;
27443 pthread_attr_init(&type);
27446 return 0;
27448 _ACEOF
27449 rm -f conftest.$ac_objext conftest$ac_exeext
27450 if { (ac_try="$ac_link"
27451 case "(($ac_try" in
27452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453 *) ac_try_echo=$ac_try;;
27454 esac
27455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27456 $as_echo "$ac_try_echo") >&5
27457 (eval "$ac_link") 2>conftest.er1
27458 ac_status=$?
27459 grep -v '^ *+' conftest.er1 >conftest.err
27460 rm -f conftest.er1
27461 cat conftest.err >&5
27462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); } && {
27464 test -z "$ac_c_werror_flag" ||
27465 test ! -s conftest.err
27466 } && test -s conftest$ac_exeext && {
27467 test "$cross_compiling" = yes ||
27468 $as_test_x conftest$ac_exeext
27469 }; then
27471 use_pthreads=yes
27473 else
27474 $as_echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27480 rm -rf conftest.dSYM
27481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27482 conftest$ac_exeext conftest.$ac_ext
27483 { $as_echo "$as_me:$LINENO: result: $use_pthreads" >&5
27484 $as_echo "$use_pthreads" >&6; }
27485 # Restore the compiler flags and libraries
27486 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27488 # Do futher testing if we have pthread support...
27489 if test x$use_pthreads = xyes; then
27490 cat >>confdefs.h <<\_ACEOF
27491 #define SDL_THREAD_PTHREAD 1
27492 _ACEOF
27494 EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
27495 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
27496 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
27497 SDL_LIBS="$SDL_LIBS $pthread_lib"
27499 # Save the original compiler flags and libraries
27500 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
27501 # Add the pthread compiler flags and libraries
27502 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
27504 # Check to see if recursive mutexes are available
27505 { $as_echo "$as_me:$LINENO: checking for recursive mutexes" >&5
27506 $as_echo_n "checking for recursive mutexes... " >&6; }
27507 has_recursive_mutexes=no
27508 if test x$has_recursive_mutexes = xno; then
27509 cat >conftest.$ac_ext <<_ACEOF
27510 /* confdefs.h. */
27511 _ACEOF
27512 cat confdefs.h >>conftest.$ac_ext
27513 cat >>conftest.$ac_ext <<_ACEOF
27514 /* end confdefs.h. */
27516 #include <pthread.h>
27519 main ()
27522 pthread_mutexattr_t attr;
27523 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
27526 return 0;
27528 _ACEOF
27529 rm -f conftest.$ac_objext
27530 if { (ac_try="$ac_compile"
27531 case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27534 esac
27535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27536 $as_echo "$ac_try_echo") >&5
27537 (eval "$ac_compile") 2>conftest.er1
27538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } && {
27544 test -z "$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 } && test -s conftest.$ac_objext; then
27548 has_recursive_mutexes=yes
27549 cat >>confdefs.h <<\_ACEOF
27550 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
27551 _ACEOF
27554 else
27555 $as_echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27563 if test x$has_recursive_mutexes = xno; then
27564 cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h. */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27571 #include <pthread.h>
27574 main ()
27577 pthread_mutexattr_t attr;
27578 pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
27581 return 0;
27583 _ACEOF
27584 rm -f conftest.$ac_objext
27585 if { (ac_try="$ac_compile"
27586 case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589 esac
27590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591 $as_echo "$ac_try_echo") >&5
27592 (eval "$ac_compile") 2>conftest.er1
27593 ac_status=$?
27594 grep -v '^ *+' conftest.er1 >conftest.err
27595 rm -f conftest.er1
27596 cat conftest.err >&5
27597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); } && {
27599 test -z "$ac_c_werror_flag" ||
27600 test ! -s conftest.err
27601 } && test -s conftest.$ac_objext; then
27603 has_recursive_mutexes=yes
27604 cat >>confdefs.h <<\_ACEOF
27605 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
27606 _ACEOF
27609 else
27610 $as_echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27618 { $as_echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
27619 $as_echo "$has_recursive_mutexes" >&6; }
27621 # Check to see if pthread semaphore support is missing
27622 if test x$enable_pthread_sem = xyes; then
27623 { $as_echo "$as_me:$LINENO: checking for pthread semaphores" >&5
27624 $as_echo_n "checking for pthread semaphores... " >&6; }
27625 have_pthread_sem=no
27626 cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h. */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h. */
27633 #include <pthread.h>
27634 #include <semaphore.h>
27637 main ()
27642 return 0;
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (ac_try="$ac_compile"
27647 case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650 esac
27651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27652 $as_echo "$ac_try_echo") >&5
27653 (eval "$ac_compile") 2>conftest.er1
27654 ac_status=$?
27655 grep -v '^ *+' conftest.er1 >conftest.err
27656 rm -f conftest.er1
27657 cat conftest.err >&5
27658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } && {
27660 test -z "$ac_c_werror_flag" ||
27661 test ! -s conftest.err
27662 } && test -s conftest.$ac_objext; then
27664 have_pthread_sem=yes
27666 else
27667 $as_echo "$as_me: failed program was:" >&5
27668 sed 's/^/| /' conftest.$ac_ext >&5
27673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27674 { $as_echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
27675 $as_echo "$have_pthread_sem" >&6; }
27678 # Restore the compiler flags and libraries
27679 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27681 # Basic thread creation functions
27682 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
27684 # Semaphores
27685 # We can fake these with mutexes and condition variables if necessary
27686 if test x$have_pthread_sem = xyes; then
27687 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
27688 else
27689 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
27692 # Mutexes
27693 # We can fake these with semaphores if necessary
27694 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
27696 # Condition variables
27697 # We can fake these with semaphores and mutexes if necessary
27698 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
27700 have_threads=yes
27701 else
27702 CheckPTH
27707 CheckWIN32()
27709 { $as_echo "$as_me:$LINENO: checking Win32 compiler" >&5
27710 $as_echo_n "checking Win32 compiler... " >&6; }
27711 have_win32_gcc=no
27712 cat >conftest.$ac_ext <<_ACEOF
27713 /* confdefs.h. */
27714 _ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h. */
27719 #include <windows.h>
27722 main ()
27727 return 0;
27729 _ACEOF
27730 rm -f conftest.$ac_objext
27731 if { (ac_try="$ac_compile"
27732 case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27735 esac
27736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27737 $as_echo "$ac_try_echo") >&5
27738 (eval "$ac_compile") 2>conftest.er1
27739 ac_status=$?
27740 grep -v '^ *+' conftest.er1 >conftest.err
27741 rm -f conftest.er1
27742 cat conftest.err >&5
27743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); } && {
27745 test -z "$ac_c_werror_flag" ||
27746 test ! -s conftest.err
27747 } && test -s conftest.$ac_objext; then
27749 have_win32_gcc=yes
27751 else
27752 $as_echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27759 { $as_echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
27760 $as_echo "$have_win32_gcc" >&6; }
27761 if test x$have_win32_gcc != xyes; then
27762 { { $as_echo "$as_me:$LINENO: error:
27763 *** Your compiler ($CC) does not produce Win32 executables!
27764 " >&5
27765 $as_echo "$as_me: error:
27766 *** Your compiler ($CC) does not produce Win32 executables!
27767 " >&2;}
27768 { (exit 1); exit 1; }; }
27771 # Check whether --enable-stdio-redirect was given.
27772 if test "${enable_stdio_redirect+set}" = set; then
27773 enableval=$enable_stdio_redirect;
27774 else
27775 enable_stdio_redirect=yes
27778 if test x$enable_stdio_redirect != xyes; then
27779 EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
27782 if test x$enable_video = xyes; then
27783 cat >>confdefs.h <<\_ACEOF
27784 #define SDL_VIDEO_DRIVER_WINDIB 1
27785 _ACEOF
27787 SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
27788 SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
27789 have_video=yes
27793 CheckDIRECTX()
27795 # Check whether --enable-directx was given.
27796 if test "${enable_directx+set}" = set; then
27797 enableval=$enable_directx;
27798 else
27799 enable_directx=yes
27802 if test x$enable_directx = xyes; then
27803 have_directx=no
27804 if test "${ac_cv_header_ddraw_h+set}" = set; then
27805 { $as_echo "$as_me:$LINENO: checking for ddraw.h" >&5
27806 $as_echo_n "checking for ddraw.h... " >&6; }
27807 if test "${ac_cv_header_ddraw_h+set}" = set; then
27808 $as_echo_n "(cached) " >&6
27810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27811 $as_echo "$ac_cv_header_ddraw_h" >&6; }
27812 else
27813 # Is the header compilable?
27814 { $as_echo "$as_me:$LINENO: checking ddraw.h usability" >&5
27815 $as_echo_n "checking ddraw.h usability... " >&6; }
27816 cat >conftest.$ac_ext <<_ACEOF
27817 /* confdefs.h. */
27818 _ACEOF
27819 cat confdefs.h >>conftest.$ac_ext
27820 cat >>conftest.$ac_ext <<_ACEOF
27821 /* end confdefs.h. */
27822 $ac_includes_default
27823 #include <ddraw.h>
27824 _ACEOF
27825 rm -f conftest.$ac_objext
27826 if { (ac_try="$ac_compile"
27827 case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27830 esac
27831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27832 $as_echo "$ac_try_echo") >&5
27833 (eval "$ac_compile") 2>conftest.er1
27834 ac_status=$?
27835 grep -v '^ *+' conftest.er1 >conftest.err
27836 rm -f conftest.er1
27837 cat conftest.err >&5
27838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839 (exit $ac_status); } && {
27840 test -z "$ac_c_werror_flag" ||
27841 test ! -s conftest.err
27842 } && test -s conftest.$ac_objext; then
27843 ac_header_compiler=yes
27844 else
27845 $as_echo "$as_me: failed program was:" >&5
27846 sed 's/^/| /' conftest.$ac_ext >&5
27848 ac_header_compiler=no
27851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27852 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27853 $as_echo "$ac_header_compiler" >&6; }
27855 # Is the header present?
27856 { $as_echo "$as_me:$LINENO: checking ddraw.h presence" >&5
27857 $as_echo_n "checking ddraw.h presence... " >&6; }
27858 cat >conftest.$ac_ext <<_ACEOF
27859 /* confdefs.h. */
27860 _ACEOF
27861 cat confdefs.h >>conftest.$ac_ext
27862 cat >>conftest.$ac_ext <<_ACEOF
27863 /* end confdefs.h. */
27864 #include <ddraw.h>
27865 _ACEOF
27866 if { (ac_try="$ac_cpp conftest.$ac_ext"
27867 case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870 esac
27871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27872 $as_echo "$ac_try_echo") >&5
27873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27874 ac_status=$?
27875 grep -v '^ *+' conftest.er1 >conftest.err
27876 rm -f conftest.er1
27877 cat conftest.err >&5
27878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } >/dev/null && {
27880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27881 test ! -s conftest.err
27882 }; then
27883 ac_header_preproc=yes
27884 else
27885 $as_echo "$as_me: failed program was:" >&5
27886 sed 's/^/| /' conftest.$ac_ext >&5
27888 ac_header_preproc=no
27891 rm -f conftest.err conftest.$ac_ext
27892 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27893 $as_echo "$ac_header_preproc" >&6; }
27895 # So? What about this header?
27896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27897 yes:no: )
27898 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
27899 $as_echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27900 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
27901 $as_echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
27902 ac_header_preproc=yes
27904 no:yes:* )
27905 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
27906 $as_echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
27907 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5
27908 $as_echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;}
27909 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
27910 $as_echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
27911 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5
27912 $as_echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
27913 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
27914 $as_echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
27915 { $as_echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
27916 $as_echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
27919 esac
27920 { $as_echo "$as_me:$LINENO: checking for ddraw.h" >&5
27921 $as_echo_n "checking for ddraw.h... " >&6; }
27922 if test "${ac_cv_header_ddraw_h+set}" = set; then
27923 $as_echo_n "(cached) " >&6
27924 else
27925 ac_cv_header_ddraw_h=$ac_header_preproc
27927 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27928 $as_echo "$ac_cv_header_ddraw_h" >&6; }
27931 if test "x$ac_cv_header_ddraw_h" = x""yes; then
27932 have_ddraw=yes
27936 if test "${ac_cv_header_dsound_h+set}" = set; then
27937 { $as_echo "$as_me:$LINENO: checking for dsound.h" >&5
27938 $as_echo_n "checking for dsound.h... " >&6; }
27939 if test "${ac_cv_header_dsound_h+set}" = set; then
27940 $as_echo_n "(cached) " >&6
27942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27943 $as_echo "$ac_cv_header_dsound_h" >&6; }
27944 else
27945 # Is the header compilable?
27946 { $as_echo "$as_me:$LINENO: checking dsound.h usability" >&5
27947 $as_echo_n "checking dsound.h usability... " >&6; }
27948 cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h. */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h. */
27954 $ac_includes_default
27955 #include <dsound.h>
27956 _ACEOF
27957 rm -f conftest.$ac_objext
27958 if { (ac_try="$ac_compile"
27959 case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27962 esac
27963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27964 $as_echo "$ac_try_echo") >&5
27965 (eval "$ac_compile") 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } && {
27972 test -z "$ac_c_werror_flag" ||
27973 test ! -s conftest.err
27974 } && test -s conftest.$ac_objext; then
27975 ac_header_compiler=yes
27976 else
27977 $as_echo "$as_me: failed program was:" >&5
27978 sed 's/^/| /' conftest.$ac_ext >&5
27980 ac_header_compiler=no
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27985 $as_echo "$ac_header_compiler" >&6; }
27987 # Is the header present?
27988 { $as_echo "$as_me:$LINENO: checking dsound.h presence" >&5
27989 $as_echo_n "checking dsound.h presence... " >&6; }
27990 cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h. */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h. */
27996 #include <dsound.h>
27997 _ACEOF
27998 if { (ac_try="$ac_cpp conftest.$ac_ext"
27999 case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28002 esac
28003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28004 $as_echo "$ac_try_echo") >&5
28005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28006 ac_status=$?
28007 grep -v '^ *+' conftest.er1 >conftest.err
28008 rm -f conftest.er1
28009 cat conftest.err >&5
28010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } >/dev/null && {
28012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 }; then
28015 ac_header_preproc=yes
28016 else
28017 $as_echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28020 ac_header_preproc=no
28023 rm -f conftest.err conftest.$ac_ext
28024 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28025 $as_echo "$ac_header_preproc" >&6; }
28027 # So? What about this header?
28028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28029 yes:no: )
28030 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
28031 $as_echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28032 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
28033 $as_echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
28034 ac_header_preproc=yes
28036 no:yes:* )
28037 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
28038 $as_echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
28039 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: check for missing prerequisite headers?" >&5
28040 $as_echo "$as_me: WARNING: dsound.h: check for missing prerequisite headers?" >&2;}
28041 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
28042 $as_echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
28043 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&5
28044 $as_echo "$as_me: WARNING: dsound.h: section \"Present But Cannot Be Compiled\"" >&2;}
28045 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
28046 $as_echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
28047 { $as_echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
28048 $as_echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
28051 esac
28052 { $as_echo "$as_me:$LINENO: checking for dsound.h" >&5
28053 $as_echo_n "checking for dsound.h... " >&6; }
28054 if test "${ac_cv_header_dsound_h+set}" = set; then
28055 $as_echo_n "(cached) " >&6
28056 else
28057 ac_cv_header_dsound_h=$ac_header_preproc
28059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
28060 $as_echo "$ac_cv_header_dsound_h" >&6; }
28063 if test "x$ac_cv_header_dsound_h" = x""yes; then
28064 have_dsound=yes
28068 if test "${ac_cv_header_dinput_h+set}" = set; then
28069 { $as_echo "$as_me:$LINENO: checking for dinput.h" >&5
28070 $as_echo_n "checking for dinput.h... " >&6; }
28071 if test "${ac_cv_header_dinput_h+set}" = set; then
28072 $as_echo_n "(cached) " >&6
28074 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
28075 $as_echo "$ac_cv_header_dinput_h" >&6; }
28076 else
28077 # Is the header compilable?
28078 { $as_echo "$as_me:$LINENO: checking dinput.h usability" >&5
28079 $as_echo_n "checking dinput.h usability... " >&6; }
28080 cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h. */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28086 $ac_includes_default
28087 #include <dinput.h>
28088 _ACEOF
28089 rm -f conftest.$ac_objext
28090 if { (ac_try="$ac_compile"
28091 case "(($ac_try" in
28092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28093 *) ac_try_echo=$ac_try;;
28094 esac
28095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28096 $as_echo "$ac_try_echo") >&5
28097 (eval "$ac_compile") 2>conftest.er1
28098 ac_status=$?
28099 grep -v '^ *+' conftest.er1 >conftest.err
28100 rm -f conftest.er1
28101 cat conftest.err >&5
28102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } && {
28104 test -z "$ac_c_werror_flag" ||
28105 test ! -s conftest.err
28106 } && test -s conftest.$ac_objext; then
28107 ac_header_compiler=yes
28108 else
28109 $as_echo "$as_me: failed program was:" >&5
28110 sed 's/^/| /' conftest.$ac_ext >&5
28112 ac_header_compiler=no
28115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28116 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28117 $as_echo "$ac_header_compiler" >&6; }
28119 # Is the header present?
28120 { $as_echo "$as_me:$LINENO: checking dinput.h presence" >&5
28121 $as_echo_n "checking dinput.h presence... " >&6; }
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h. */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h. */
28128 #include <dinput.h>
28129 _ACEOF
28130 if { (ac_try="$ac_cpp conftest.$ac_ext"
28131 case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134 esac
28135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28136 $as_echo "$ac_try_echo") >&5
28137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28138 ac_status=$?
28139 grep -v '^ *+' conftest.er1 >conftest.err
28140 rm -f conftest.er1
28141 cat conftest.err >&5
28142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } >/dev/null && {
28144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28145 test ! -s conftest.err
28146 }; then
28147 ac_header_preproc=yes
28148 else
28149 $as_echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.$ac_ext >&5
28152 ac_header_preproc=no
28155 rm -f conftest.err conftest.$ac_ext
28156 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28157 $as_echo "$ac_header_preproc" >&6; }
28159 # So? What about this header?
28160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28161 yes:no: )
28162 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
28163 $as_echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28164 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
28165 $as_echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
28166 ac_header_preproc=yes
28168 no:yes:* )
28169 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
28170 $as_echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
28171 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: check for missing prerequisite headers?" >&5
28172 $as_echo "$as_me: WARNING: dinput.h: check for missing prerequisite headers?" >&2;}
28173 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
28174 $as_echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
28175 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&5
28176 $as_echo "$as_me: WARNING: dinput.h: section \"Present But Cannot Be Compiled\"" >&2;}
28177 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
28178 $as_echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
28179 { $as_echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
28180 $as_echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
28183 esac
28184 { $as_echo "$as_me:$LINENO: checking for dinput.h" >&5
28185 $as_echo_n "checking for dinput.h... " >&6; }
28186 if test "${ac_cv_header_dinput_h+set}" = set; then
28187 $as_echo_n "(cached) " >&6
28188 else
28189 ac_cv_header_dinput_h=$ac_header_preproc
28191 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
28192 $as_echo "$ac_cv_header_dinput_h" >&6; }
28195 if test "x$ac_cv_header_dinput_h" = x""yes; then
28196 use_dinput=yes
28200 if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
28201 have_directx=yes
28203 if test x$enable_video = xyes -a x$have_directx = xyes; then
28204 cat >>confdefs.h <<\_ACEOF
28205 #define SDL_VIDEO_DRIVER_DDRAW 1
28206 _ACEOF
28208 SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
28209 have_video=yes
28214 CheckDLOPEN()
28216 # Check whether --enable-sdl-dlopen was given.
28217 if test "${enable_sdl_dlopen+set}" = set; then
28218 enableval=$enable_sdl_dlopen;
28219 else
28220 enable_sdl_dlopen=yes
28223 if test x$enable_sdl_dlopen = xyes; then
28224 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
28225 $as_echo_n "checking for dlopen... " >&6; }
28226 have_dlopen=no
28227 cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h. */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h. */
28234 #include <dlfcn.h>
28237 main ()
28240 #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
28241 #error Use dlcompat for Mac OS X 10.2 compatibility
28242 #endif
28245 return 0;
28247 _ACEOF
28248 rm -f conftest.$ac_objext
28249 if { (ac_try="$ac_compile"
28250 case "(($ac_try" in
28251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252 *) ac_try_echo=$ac_try;;
28253 esac
28254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28255 $as_echo "$ac_try_echo") >&5
28256 (eval "$ac_compile") 2>conftest.er1
28257 ac_status=$?
28258 grep -v '^ *+' conftest.er1 >conftest.err
28259 rm -f conftest.er1
28260 cat conftest.err >&5
28261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); } && {
28263 test -z "$ac_c_werror_flag" ||
28264 test ! -s conftest.err
28265 } && test -s conftest.$ac_objext; then
28267 have_dlopen=yes
28269 else
28270 $as_echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28277 { $as_echo "$as_me:$LINENO: result: $have_dlopen" >&5
28278 $as_echo "$have_dlopen" >&6; }
28280 if test x$have_dlopen = xyes; then
28281 { $as_echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
28282 $as_echo_n "checking for dlopen in -lc... " >&6; }
28283 if test "${ac_cv_lib_c_dlopen+set}" = set; then
28284 $as_echo_n "(cached) " >&6
28285 else
28286 ac_check_lib_save_LIBS=$LIBS
28287 LIBS="-lc $LIBS"
28288 cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h. */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h. */
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char dlopen ();
28303 main ()
28305 return dlopen ();
28307 return 0;
28309 _ACEOF
28310 rm -f conftest.$ac_objext conftest$ac_exeext
28311 if { (ac_try="$ac_link"
28312 case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28315 esac
28316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28317 $as_echo "$ac_try_echo") >&5
28318 (eval "$ac_link") 2>conftest.er1
28319 ac_status=$?
28320 grep -v '^ *+' conftest.er1 >conftest.err
28321 rm -f conftest.er1
28322 cat conftest.err >&5
28323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); } && {
28325 test -z "$ac_c_werror_flag" ||
28326 test ! -s conftest.err
28327 } && test -s conftest$ac_exeext && {
28328 test "$cross_compiling" = yes ||
28329 $as_test_x conftest$ac_exeext
28330 }; then
28331 ac_cv_lib_c_dlopen=yes
28332 else
28333 $as_echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28336 ac_cv_lib_c_dlopen=no
28339 rm -rf conftest.dSYM
28340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28341 conftest$ac_exeext conftest.$ac_ext
28342 LIBS=$ac_check_lib_save_LIBS
28344 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
28345 $as_echo "$ac_cv_lib_c_dlopen" >&6; }
28346 if test "x$ac_cv_lib_c_dlopen" = x""yes; then
28347 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
28348 else
28349 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
28351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28352 $as_echo_n "(cached) " >&6
28353 else
28354 ac_check_lib_save_LIBS=$LIBS
28355 LIBS="-ldl $LIBS"
28356 cat >conftest.$ac_ext <<_ACEOF
28357 /* confdefs.h. */
28358 _ACEOF
28359 cat confdefs.h >>conftest.$ac_ext
28360 cat >>conftest.$ac_ext <<_ACEOF
28361 /* end confdefs.h. */
28363 /* Override any GCC internal prototype to avoid an error.
28364 Use char because int might match the return type of a GCC
28365 builtin and then its argument prototype would still apply. */
28366 #ifdef __cplusplus
28367 extern "C"
28368 #endif
28369 char dlopen ();
28371 main ()
28373 return dlopen ();
28375 return 0;
28377 _ACEOF
28378 rm -f conftest.$ac_objext conftest$ac_exeext
28379 if { (ac_try="$ac_link"
28380 case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383 esac
28384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28385 $as_echo "$ac_try_echo") >&5
28386 (eval "$ac_link") 2>conftest.er1
28387 ac_status=$?
28388 grep -v '^ *+' conftest.er1 >conftest.err
28389 rm -f conftest.er1
28390 cat conftest.err >&5
28391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); } && {
28393 test -z "$ac_c_werror_flag" ||
28394 test ! -s conftest.err
28395 } && test -s conftest$ac_exeext && {
28396 test "$cross_compiling" = yes ||
28397 $as_test_x conftest$ac_exeext
28398 }; then
28399 ac_cv_lib_dl_dlopen=yes
28400 else
28401 $as_echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28404 ac_cv_lib_dl_dlopen=no
28407 rm -rf conftest.dSYM
28408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28409 conftest$ac_exeext conftest.$ac_ext
28410 LIBS=$ac_check_lib_save_LIBS
28412 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
28414 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
28415 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
28416 else
28417 { $as_echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
28418 $as_echo_n "checking for dlopen in -lltdl... " >&6; }
28419 if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
28420 $as_echo_n "(cached) " >&6
28421 else
28422 ac_check_lib_save_LIBS=$LIBS
28423 LIBS="-lltdl $LIBS"
28424 cat >conftest.$ac_ext <<_ACEOF
28425 /* confdefs.h. */
28426 _ACEOF
28427 cat confdefs.h >>conftest.$ac_ext
28428 cat >>conftest.$ac_ext <<_ACEOF
28429 /* end confdefs.h. */
28431 /* Override any GCC internal prototype to avoid an error.
28432 Use char because int might match the return type of a GCC
28433 builtin and then its argument prototype would still apply. */
28434 #ifdef __cplusplus
28435 extern "C"
28436 #endif
28437 char dlopen ();
28439 main ()
28441 return dlopen ();
28443 return 0;
28445 _ACEOF
28446 rm -f conftest.$ac_objext conftest$ac_exeext
28447 if { (ac_try="$ac_link"
28448 case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28451 esac
28452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28453 $as_echo "$ac_try_echo") >&5
28454 (eval "$ac_link") 2>conftest.er1
28455 ac_status=$?
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
28459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } && {
28461 test -z "$ac_c_werror_flag" ||
28462 test ! -s conftest.err
28463 } && test -s conftest$ac_exeext && {
28464 test "$cross_compiling" = yes ||
28465 $as_test_x conftest$ac_exeext
28466 }; then
28467 ac_cv_lib_ltdl_dlopen=yes
28468 else
28469 $as_echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28472 ac_cv_lib_ltdl_dlopen=no
28475 rm -rf conftest.dSYM
28476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28477 conftest$ac_exeext conftest.$ac_ext
28478 LIBS=$ac_check_lib_save_LIBS
28480 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
28481 $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
28482 if test "x$ac_cv_lib_ltdl_dlopen" = x""yes; then
28483 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
28490 cat >>confdefs.h <<\_ACEOF
28491 #define SDL_LOADSO_DLOPEN 1
28492 _ACEOF
28494 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
28495 have_loadso=yes
28500 CheckAtariLdg()
28502 # Check whether --enable-atari-ldg was given.
28503 if test "${enable_atari_ldg+set}" = set; then
28504 enableval=$enable_atari_ldg;
28505 else
28506 enable_atari_ldg=yes
28509 if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
28510 if test "${ac_cv_header_ldg_h+set}" = set; then
28511 { $as_echo "$as_me:$LINENO: checking for ldg.h" >&5
28512 $as_echo_n "checking for ldg.h... " >&6; }
28513 if test "${ac_cv_header_ldg_h+set}" = set; then
28514 $as_echo_n "(cached) " >&6
28516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28517 $as_echo "$ac_cv_header_ldg_h" >&6; }
28518 else
28519 # Is the header compilable?
28520 { $as_echo "$as_me:$LINENO: checking ldg.h usability" >&5
28521 $as_echo_n "checking ldg.h usability... " >&6; }
28522 cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h. */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h. */
28528 $ac_includes_default
28529 #include <ldg.h>
28530 _ACEOF
28531 rm -f conftest.$ac_objext
28532 if { (ac_try="$ac_compile"
28533 case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536 esac
28537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28538 $as_echo "$ac_try_echo") >&5
28539 (eval "$ac_compile") 2>conftest.er1
28540 ac_status=$?
28541 grep -v '^ *+' conftest.er1 >conftest.err
28542 rm -f conftest.er1
28543 cat conftest.err >&5
28544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); } && {
28546 test -z "$ac_c_werror_flag" ||
28547 test ! -s conftest.err
28548 } && test -s conftest.$ac_objext; then
28549 ac_header_compiler=yes
28550 else
28551 $as_echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28554 ac_header_compiler=no
28557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28559 $as_echo "$ac_header_compiler" >&6; }
28561 # Is the header present?
28562 { $as_echo "$as_me:$LINENO: checking ldg.h presence" >&5
28563 $as_echo_n "checking ldg.h presence... " >&6; }
28564 cat >conftest.$ac_ext <<_ACEOF
28565 /* confdefs.h. */
28566 _ACEOF
28567 cat confdefs.h >>conftest.$ac_ext
28568 cat >>conftest.$ac_ext <<_ACEOF
28569 /* end confdefs.h. */
28570 #include <ldg.h>
28571 _ACEOF
28572 if { (ac_try="$ac_cpp conftest.$ac_ext"
28573 case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576 esac
28577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28578 $as_echo "$ac_try_echo") >&5
28579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28580 ac_status=$?
28581 grep -v '^ *+' conftest.er1 >conftest.err
28582 rm -f conftest.er1
28583 cat conftest.err >&5
28584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); } >/dev/null && {
28586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28587 test ! -s conftest.err
28588 }; then
28589 ac_header_preproc=yes
28590 else
28591 $as_echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28594 ac_header_preproc=no
28597 rm -f conftest.err conftest.$ac_ext
28598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28599 $as_echo "$ac_header_preproc" >&6; }
28601 # So? What about this header?
28602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28603 yes:no: )
28604 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28605 $as_echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28606 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
28607 $as_echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
28608 ac_header_preproc=yes
28610 no:yes:* )
28611 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
28612 $as_echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
28613 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: check for missing prerequisite headers?" >&5
28614 $as_echo "$as_me: WARNING: ldg.h: check for missing prerequisite headers?" >&2;}
28615 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
28616 $as_echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
28617 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&5
28618 $as_echo "$as_me: WARNING: ldg.h: section \"Present But Cannot Be Compiled\"" >&2;}
28619 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
28620 $as_echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
28621 { $as_echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
28622 $as_echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
28625 esac
28626 { $as_echo "$as_me:$LINENO: checking for ldg.h" >&5
28627 $as_echo_n "checking for ldg.h... " >&6; }
28628 if test "${ac_cv_header_ldg_h+set}" = set; then
28629 $as_echo_n "(cached) " >&6
28630 else
28631 ac_cv_header_ldg_h=$ac_header_preproc
28633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28634 $as_echo "$ac_cv_header_ldg_h" >&6; }
28637 if test "x$ac_cv_header_ldg_h" = x""yes; then
28638 have_ldg_hdr=yes
28642 { $as_echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
28643 $as_echo_n "checking for ldg_open in -lldg... " >&6; }
28644 if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
28645 $as_echo_n "(cached) " >&6
28646 else
28647 ac_check_lib_save_LIBS=$LIBS
28648 LIBS="-lldg -lgem $LIBS"
28649 cat >conftest.$ac_ext <<_ACEOF
28650 /* confdefs.h. */
28651 _ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h. */
28656 /* Override any GCC internal prototype to avoid an error.
28657 Use char because int might match the return type of a GCC
28658 builtin and then its argument prototype would still apply. */
28659 #ifdef __cplusplus
28660 extern "C"
28661 #endif
28662 char ldg_open ();
28664 main ()
28666 return ldg_open ();
28668 return 0;
28670 _ACEOF
28671 rm -f conftest.$ac_objext conftest$ac_exeext
28672 if { (ac_try="$ac_link"
28673 case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676 esac
28677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28678 $as_echo "$ac_try_echo") >&5
28679 (eval "$ac_link") 2>conftest.er1
28680 ac_status=$?
28681 grep -v '^ *+' conftest.er1 >conftest.err
28682 rm -f conftest.er1
28683 cat conftest.err >&5
28684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } && {
28686 test -z "$ac_c_werror_flag" ||
28687 test ! -s conftest.err
28688 } && test -s conftest$ac_exeext && {
28689 test "$cross_compiling" = yes ||
28690 $as_test_x conftest$ac_exeext
28691 }; then
28692 ac_cv_lib_ldg_ldg_open=yes
28693 else
28694 $as_echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28697 ac_cv_lib_ldg_ldg_open=no
28700 rm -rf conftest.dSYM
28701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28702 conftest$ac_exeext conftest.$ac_ext
28703 LIBS=$ac_check_lib_save_LIBS
28705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
28706 $as_echo "$ac_cv_lib_ldg_ldg_open" >&6; }
28707 if test "x$ac_cv_lib_ldg_ldg_open" = x""yes; then
28708 have_ldg_lib=yes
28709 else
28710 have_ldg_lib=no
28713 if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
28714 cat >>confdefs.h <<\_ACEOF
28715 #define SDL_LOADSO_LDG 1
28716 _ACEOF
28718 SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
28719 SDL_LIBS="$SDL_LIBS -lldg -lgem"
28720 have_loadso=yes
28725 CheckUSBHID()
28727 if test x$enable_joystick = xyes; then
28728 { $as_echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
28729 $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
28730 if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
28731 $as_echo_n "(cached) " >&6
28732 else
28733 ac_check_lib_save_LIBS=$LIBS
28734 LIBS="-lusbhid $LIBS"
28735 cat >conftest.$ac_ext <<_ACEOF
28736 /* confdefs.h. */
28737 _ACEOF
28738 cat confdefs.h >>conftest.$ac_ext
28739 cat >>conftest.$ac_ext <<_ACEOF
28740 /* end confdefs.h. */
28742 /* Override any GCC internal prototype to avoid an error.
28743 Use char because int might match the return type of a GCC
28744 builtin and then its argument prototype would still apply. */
28745 #ifdef __cplusplus
28746 extern "C"
28747 #endif
28748 char hid_init ();
28750 main ()
28752 return hid_init ();
28754 return 0;
28756 _ACEOF
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (ac_try="$ac_link"
28759 case "(($ac_try" in
28760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761 *) ac_try_echo=$ac_try;;
28762 esac
28763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28764 $as_echo "$ac_try_echo") >&5
28765 (eval "$ac_link") 2>conftest.er1
28766 ac_status=$?
28767 grep -v '^ *+' conftest.er1 >conftest.err
28768 rm -f conftest.er1
28769 cat conftest.err >&5
28770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } && {
28772 test -z "$ac_c_werror_flag" ||
28773 test ! -s conftest.err
28774 } && test -s conftest$ac_exeext && {
28775 test "$cross_compiling" = yes ||
28776 $as_test_x conftest$ac_exeext
28777 }; then
28778 ac_cv_lib_usbhid_hid_init=yes
28779 else
28780 $as_echo "$as_me: failed program was:" >&5
28781 sed 's/^/| /' conftest.$ac_ext >&5
28783 ac_cv_lib_usbhid_hid_init=no
28786 rm -rf conftest.dSYM
28787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28788 conftest$ac_exeext conftest.$ac_ext
28789 LIBS=$ac_check_lib_save_LIBS
28791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
28792 $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
28793 if test "x$ac_cv_lib_usbhid_hid_init" = x""yes; then
28794 have_libusbhid=yes
28797 if test x$have_libusbhid = xyes; then
28798 if test "${ac_cv_header_usbhid_h+set}" = set; then
28799 { $as_echo "$as_me:$LINENO: checking for usbhid.h" >&5
28800 $as_echo_n "checking for usbhid.h... " >&6; }
28801 if test "${ac_cv_header_usbhid_h+set}" = set; then
28802 $as_echo_n "(cached) " >&6
28804 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28805 $as_echo "$ac_cv_header_usbhid_h" >&6; }
28806 else
28807 # Is the header compilable?
28808 { $as_echo "$as_me:$LINENO: checking usbhid.h usability" >&5
28809 $as_echo_n "checking usbhid.h usability... " >&6; }
28810 cat >conftest.$ac_ext <<_ACEOF
28811 /* confdefs.h. */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h. */
28816 $ac_includes_default
28817 #include <usbhid.h>
28818 _ACEOF
28819 rm -f conftest.$ac_objext
28820 if { (ac_try="$ac_compile"
28821 case "(($ac_try" in
28822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28823 *) ac_try_echo=$ac_try;;
28824 esac
28825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28826 $as_echo "$ac_try_echo") >&5
28827 (eval "$ac_compile") 2>conftest.er1
28828 ac_status=$?
28829 grep -v '^ *+' conftest.er1 >conftest.err
28830 rm -f conftest.er1
28831 cat conftest.err >&5
28832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833 (exit $ac_status); } && {
28834 test -z "$ac_c_werror_flag" ||
28835 test ! -s conftest.err
28836 } && test -s conftest.$ac_objext; then
28837 ac_header_compiler=yes
28838 else
28839 $as_echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28842 ac_header_compiler=no
28845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28846 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28847 $as_echo "$ac_header_compiler" >&6; }
28849 # Is the header present?
28850 { $as_echo "$as_me:$LINENO: checking usbhid.h presence" >&5
28851 $as_echo_n "checking usbhid.h presence... " >&6; }
28852 cat >conftest.$ac_ext <<_ACEOF
28853 /* confdefs.h. */
28854 _ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 #include <usbhid.h>
28859 _ACEOF
28860 if { (ac_try="$ac_cpp conftest.$ac_ext"
28861 case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28864 esac
28865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28866 $as_echo "$ac_try_echo") >&5
28867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28868 ac_status=$?
28869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
28872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } >/dev/null && {
28874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28875 test ! -s conftest.err
28876 }; then
28877 ac_header_preproc=yes
28878 else
28879 $as_echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ac_header_preproc=no
28885 rm -f conftest.err conftest.$ac_ext
28886 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887 $as_echo "$ac_header_preproc" >&6; }
28889 # So? What about this header?
28890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28891 yes:no: )
28892 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28893 $as_echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
28895 $as_echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
28896 ac_header_preproc=yes
28898 no:yes:* )
28899 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
28900 $as_echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
28901 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: check for missing prerequisite headers?" >&5
28902 $as_echo "$as_me: WARNING: usbhid.h: check for missing prerequisite headers?" >&2;}
28903 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
28904 $as_echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
28905 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&5
28906 $as_echo "$as_me: WARNING: usbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28907 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
28908 $as_echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
28909 { $as_echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
28910 $as_echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
28913 esac
28914 { $as_echo "$as_me:$LINENO: checking for usbhid.h" >&5
28915 $as_echo_n "checking for usbhid.h... " >&6; }
28916 if test "${ac_cv_header_usbhid_h+set}" = set; then
28917 $as_echo_n "(cached) " >&6
28918 else
28919 ac_cv_header_usbhid_h=$ac_header_preproc
28921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28922 $as_echo "$ac_cv_header_usbhid_h" >&6; }
28925 if test "x$ac_cv_header_usbhid_h" = x""yes; then
28926 USB_CFLAGS="-DHAVE_USBHID_H"
28930 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28931 { $as_echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28932 $as_echo_n "checking for libusbhid.h... " >&6; }
28933 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28934 $as_echo_n "(cached) " >&6
28936 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28937 $as_echo "$ac_cv_header_libusbhid_h" >&6; }
28938 else
28939 # Is the header compilable?
28940 { $as_echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
28941 $as_echo_n "checking libusbhid.h usability... " >&6; }
28942 cat >conftest.$ac_ext <<_ACEOF
28943 /* confdefs.h. */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28948 $ac_includes_default
28949 #include <libusbhid.h>
28950 _ACEOF
28951 rm -f conftest.$ac_objext
28952 if { (ac_try="$ac_compile"
28953 case "(($ac_try" in
28954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955 *) ac_try_echo=$ac_try;;
28956 esac
28957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28958 $as_echo "$ac_try_echo") >&5
28959 (eval "$ac_compile") 2>conftest.er1
28960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965 (exit $ac_status); } && {
28966 test -z "$ac_c_werror_flag" ||
28967 test ! -s conftest.err
28968 } && test -s conftest.$ac_objext; then
28969 ac_header_compiler=yes
28970 else
28971 $as_echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28974 ac_header_compiler=no
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28979 $as_echo "$ac_header_compiler" >&6; }
28981 # Is the header present?
28982 { $as_echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
28983 $as_echo_n "checking libusbhid.h presence... " >&6; }
28984 cat >conftest.$ac_ext <<_ACEOF
28985 /* confdefs.h. */
28986 _ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h. */
28990 #include <libusbhid.h>
28991 _ACEOF
28992 if { (ac_try="$ac_cpp conftest.$ac_ext"
28993 case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28996 esac
28997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28998 $as_echo "$ac_try_echo") >&5
28999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29000 ac_status=$?
29001 grep -v '^ *+' conftest.er1 >conftest.err
29002 rm -f conftest.er1
29003 cat conftest.err >&5
29004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); } >/dev/null && {
29006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29007 test ! -s conftest.err
29008 }; then
29009 ac_header_preproc=yes
29010 else
29011 $as_echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29014 ac_header_preproc=no
29017 rm -f conftest.err conftest.$ac_ext
29018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29019 $as_echo "$ac_header_preproc" >&6; }
29021 # So? What about this header?
29022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29023 yes:no: )
29024 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
29025 $as_echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29026 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
29027 $as_echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
29028 ac_header_preproc=yes
29030 no:yes:* )
29031 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
29032 $as_echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
29033 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: check for missing prerequisite headers?" >&5
29034 $as_echo "$as_me: WARNING: libusbhid.h: check for missing prerequisite headers?" >&2;}
29035 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
29036 $as_echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
29037 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&5
29038 $as_echo "$as_me: WARNING: libusbhid.h: section \"Present But Cannot Be Compiled\"" >&2;}
29039 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
29040 $as_echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
29041 { $as_echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
29042 $as_echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
29045 esac
29046 { $as_echo "$as_me:$LINENO: checking for libusbhid.h" >&5
29047 $as_echo_n "checking for libusbhid.h... " >&6; }
29048 if test "${ac_cv_header_libusbhid_h+set}" = set; then
29049 $as_echo_n "(cached) " >&6
29050 else
29051 ac_cv_header_libusbhid_h=$ac_header_preproc
29053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
29054 $as_echo "$ac_cv_header_libusbhid_h" >&6; }
29057 if test "x$ac_cv_header_libusbhid_h" = x""yes; then
29058 USB_CFLAGS="-DHAVE_LIBUSBHID_H"
29062 USB_LIBS="$USB_LIBS -lusbhid"
29063 else
29064 if test "${ac_cv_header_usb_h+set}" = set; then
29065 { $as_echo "$as_me:$LINENO: checking for usb.h" >&5
29066 $as_echo_n "checking for usb.h... " >&6; }
29067 if test "${ac_cv_header_usb_h+set}" = set; then
29068 $as_echo_n "(cached) " >&6
29070 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29071 $as_echo "$ac_cv_header_usb_h" >&6; }
29072 else
29073 # Is the header compilable?
29074 { $as_echo "$as_me:$LINENO: checking usb.h usability" >&5
29075 $as_echo_n "checking usb.h usability... " >&6; }
29076 cat >conftest.$ac_ext <<_ACEOF
29077 /* confdefs.h. */
29078 _ACEOF
29079 cat confdefs.h >>conftest.$ac_ext
29080 cat >>conftest.$ac_ext <<_ACEOF
29081 /* end confdefs.h. */
29082 $ac_includes_default
29083 #include <usb.h>
29084 _ACEOF
29085 rm -f conftest.$ac_objext
29086 if { (ac_try="$ac_compile"
29087 case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29090 esac
29091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29092 $as_echo "$ac_try_echo") >&5
29093 (eval "$ac_compile") 2>conftest.er1
29094 ac_status=$?
29095 grep -v '^ *+' conftest.er1 >conftest.err
29096 rm -f conftest.er1
29097 cat conftest.err >&5
29098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } && {
29100 test -z "$ac_c_werror_flag" ||
29101 test ! -s conftest.err
29102 } && test -s conftest.$ac_objext; then
29103 ac_header_compiler=yes
29104 else
29105 $as_echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29108 ac_header_compiler=no
29111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29113 $as_echo "$ac_header_compiler" >&6; }
29115 # Is the header present?
29116 { $as_echo "$as_me:$LINENO: checking usb.h presence" >&5
29117 $as_echo_n "checking usb.h presence... " >&6; }
29118 cat >conftest.$ac_ext <<_ACEOF
29119 /* confdefs.h. */
29120 _ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h. */
29124 #include <usb.h>
29125 _ACEOF
29126 if { (ac_try="$ac_cpp conftest.$ac_ext"
29127 case "(($ac_try" in
29128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29129 *) ac_try_echo=$ac_try;;
29130 esac
29131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29132 $as_echo "$ac_try_echo") >&5
29133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29134 ac_status=$?
29135 grep -v '^ *+' conftest.er1 >conftest.err
29136 rm -f conftest.er1
29137 cat conftest.err >&5
29138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } >/dev/null && {
29140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29141 test ! -s conftest.err
29142 }; then
29143 ac_header_preproc=yes
29144 else
29145 $as_echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29148 ac_header_preproc=no
29151 rm -f conftest.err conftest.$ac_ext
29152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29153 $as_echo "$ac_header_preproc" >&6; }
29155 # So? What about this header?
29156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29157 yes:no: )
29158 { $as_echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
29159 $as_echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29160 { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
29161 $as_echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
29162 ac_header_preproc=yes
29164 no:yes:* )
29165 { $as_echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
29166 $as_echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
29167 { $as_echo "$as_me:$LINENO: WARNING: usb.h: check for missing prerequisite headers?" >&5
29168 $as_echo "$as_me: WARNING: usb.h: check for missing prerequisite headers?" >&2;}
29169 { $as_echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
29170 $as_echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
29171 { $as_echo "$as_me:$LINENO: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&5
29172 $as_echo "$as_me: WARNING: usb.h: section \"Present But Cannot Be Compiled\"" >&2;}
29173 { $as_echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
29174 $as_echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
29175 { $as_echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
29176 $as_echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
29179 esac
29180 { $as_echo "$as_me:$LINENO: checking for usb.h" >&5
29181 $as_echo_n "checking for usb.h... " >&6; }
29182 if test "${ac_cv_header_usb_h+set}" = set; then
29183 $as_echo_n "(cached) " >&6
29184 else
29185 ac_cv_header_usb_h=$ac_header_preproc
29187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
29188 $as_echo "$ac_cv_header_usb_h" >&6; }
29191 if test "x$ac_cv_header_usb_h" = x""yes; then
29192 USB_CFLAGS="-DHAVE_USB_H"
29196 if test "${ac_cv_header_libusb_h+set}" = set; then
29197 { $as_echo "$as_me:$LINENO: checking for libusb.h" >&5
29198 $as_echo_n "checking for libusb.h... " >&6; }
29199 if test "${ac_cv_header_libusb_h+set}" = set; then
29200 $as_echo_n "(cached) " >&6
29202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
29203 $as_echo "$ac_cv_header_libusb_h" >&6; }
29204 else
29205 # Is the header compilable?
29206 { $as_echo "$as_me:$LINENO: checking libusb.h usability" >&5
29207 $as_echo_n "checking libusb.h usability... " >&6; }
29208 cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h. */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h. */
29214 $ac_includes_default
29215 #include <libusb.h>
29216 _ACEOF
29217 rm -f conftest.$ac_objext
29218 if { (ac_try="$ac_compile"
29219 case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222 esac
29223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29224 $as_echo "$ac_try_echo") >&5
29225 (eval "$ac_compile") 2>conftest.er1
29226 ac_status=$?
29227 grep -v '^ *+' conftest.er1 >conftest.err
29228 rm -f conftest.er1
29229 cat conftest.err >&5
29230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231 (exit $ac_status); } && {
29232 test -z "$ac_c_werror_flag" ||
29233 test ! -s conftest.err
29234 } && test -s conftest.$ac_objext; then
29235 ac_header_compiler=yes
29236 else
29237 $as_echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ac_header_compiler=no
29243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29244 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29245 $as_echo "$ac_header_compiler" >&6; }
29247 # Is the header present?
29248 { $as_echo "$as_me:$LINENO: checking libusb.h presence" >&5
29249 $as_echo_n "checking libusb.h presence... " >&6; }
29250 cat >conftest.$ac_ext <<_ACEOF
29251 /* confdefs.h. */
29252 _ACEOF
29253 cat confdefs.h >>conftest.$ac_ext
29254 cat >>conftest.$ac_ext <<_ACEOF
29255 /* end confdefs.h. */
29256 #include <libusb.h>
29257 _ACEOF
29258 if { (ac_try="$ac_cpp conftest.$ac_ext"
29259 case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29262 esac
29263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29264 $as_echo "$ac_try_echo") >&5
29265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29266 ac_status=$?
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
29270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } >/dev/null && {
29272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 }; then
29275 ac_header_preproc=yes
29276 else
29277 $as_echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_preproc=no
29283 rm -f conftest.err conftest.$ac_ext
29284 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29285 $as_echo "$ac_header_preproc" >&6; }
29287 # So? What about this header?
29288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29289 yes:no: )
29290 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
29291 $as_echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29292 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
29293 $as_echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
29294 ac_header_preproc=yes
29296 no:yes:* )
29297 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
29298 $as_echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
29299 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: check for missing prerequisite headers?" >&5
29300 $as_echo "$as_me: WARNING: libusb.h: check for missing prerequisite headers?" >&2;}
29301 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
29302 $as_echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
29303 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&5
29304 $as_echo "$as_me: WARNING: libusb.h: section \"Present But Cannot Be Compiled\"" >&2;}
29305 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
29306 $as_echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
29307 { $as_echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
29308 $as_echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
29311 esac
29312 { $as_echo "$as_me:$LINENO: checking for libusb.h" >&5
29313 $as_echo_n "checking for libusb.h... " >&6; }
29314 if test "${ac_cv_header_libusb_h+set}" = set; then
29315 $as_echo_n "(cached) " >&6
29316 else
29317 ac_cv_header_libusb_h=$ac_header_preproc
29319 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
29320 $as_echo "$ac_cv_header_libusb_h" >&6; }
29323 if test "x$ac_cv_header_libusb_h" = x""yes; then
29324 USB_CFLAGS="-DHAVE_LIBUSB_H"
29328 { $as_echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
29329 $as_echo_n "checking for hid_init in -lusb... " >&6; }
29330 if test "${ac_cv_lib_usb_hid_init+set}" = set; then
29331 $as_echo_n "(cached) " >&6
29332 else
29333 ac_check_lib_save_LIBS=$LIBS
29334 LIBS="-lusb $LIBS"
29335 cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h. */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h. */
29342 /* Override any GCC internal prototype to avoid an error.
29343 Use char because int might match the return type of a GCC
29344 builtin and then its argument prototype would still apply. */
29345 #ifdef __cplusplus
29346 extern "C"
29347 #endif
29348 char hid_init ();
29350 main ()
29352 return hid_init ();
29354 return 0;
29356 _ACEOF
29357 rm -f conftest.$ac_objext conftest$ac_exeext
29358 if { (ac_try="$ac_link"
29359 case "(($ac_try" in
29360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29361 *) ac_try_echo=$ac_try;;
29362 esac
29363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29364 $as_echo "$ac_try_echo") >&5
29365 (eval "$ac_link") 2>conftest.er1
29366 ac_status=$?
29367 grep -v '^ *+' conftest.er1 >conftest.err
29368 rm -f conftest.er1
29369 cat conftest.err >&5
29370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } && {
29372 test -z "$ac_c_werror_flag" ||
29373 test ! -s conftest.err
29374 } && test -s conftest$ac_exeext && {
29375 test "$cross_compiling" = yes ||
29376 $as_test_x conftest$ac_exeext
29377 }; then
29378 ac_cv_lib_usb_hid_init=yes
29379 else
29380 $as_echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29383 ac_cv_lib_usb_hid_init=no
29386 rm -rf conftest.dSYM
29387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29388 conftest$ac_exeext conftest.$ac_ext
29389 LIBS=$ac_check_lib_save_LIBS
29391 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
29392 $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
29393 if test "x$ac_cv_lib_usb_hid_init" = x""yes; then
29394 USB_LIBS="$USB_LIBS -lusb"
29399 save_CFLAGS="$CFLAGS"
29400 CFLAGS="$CFLAGS $USB_CFLAGS"
29402 { $as_echo "$as_me:$LINENO: checking for usbhid" >&5
29403 $as_echo_n "checking for usbhid... " >&6; }
29404 have_usbhid=no
29405 cat >conftest.$ac_ext <<_ACEOF
29406 /* confdefs.h. */
29407 _ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h. */
29412 #include <sys/types.h>
29413 #if defined(HAVE_USB_H)
29414 #include <usb.h>
29415 #endif
29416 #ifdef __DragonFly__
29417 # include <bus/usb/usb.h>
29418 # include <bus/usb/usbhid.h>
29419 #else
29420 # include <dev/usb/usb.h>
29421 # include <dev/usb/usbhid.h>
29422 #endif
29423 #if defined(HAVE_USBHID_H)
29424 #include <usbhid.h>
29425 #elif defined(HAVE_LIBUSB_H)
29426 #include <libusb.h>
29427 #elif defined(HAVE_LIBUSBHID_H)
29428 #include <libusbhid.h>
29429 #endif
29432 main ()
29435 struct report_desc *repdesc;
29436 struct usb_ctl_report *repbuf;
29437 hid_kind_t hidkind;
29440 return 0;
29442 _ACEOF
29443 rm -f conftest.$ac_objext
29444 if { (ac_try="$ac_compile"
29445 case "(($ac_try" in
29446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29447 *) ac_try_echo=$ac_try;;
29448 esac
29449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29450 $as_echo "$ac_try_echo") >&5
29451 (eval "$ac_compile") 2>conftest.er1
29452 ac_status=$?
29453 grep -v '^ *+' conftest.er1 >conftest.err
29454 rm -f conftest.er1
29455 cat conftest.err >&5
29456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } && {
29458 test -z "$ac_c_werror_flag" ||
29459 test ! -s conftest.err
29460 } && test -s conftest.$ac_objext; then
29462 have_usbhid=yes
29464 else
29465 $as_echo "$as_me: failed program was:" >&5
29466 sed 's/^/| /' conftest.$ac_ext >&5
29471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29472 { $as_echo "$as_me:$LINENO: result: $have_usbhid" >&5
29473 $as_echo "$have_usbhid" >&6; }
29475 if test x$have_usbhid = xyes; then
29476 { $as_echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
29477 $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
29478 have_usbhid_ucr_data=no
29479 cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h. */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29486 #include <sys/types.h>
29487 #if defined(HAVE_USB_H)
29488 #include <usb.h>
29489 #endif
29490 #ifdef __DragonFly__
29491 # include <bus/usb/usb.h>
29492 # include <bus/usb/usbhid.h>
29493 #else
29494 # include <dev/usb/usb.h>
29495 # include <dev/usb/usbhid.h>
29496 #endif
29497 #if defined(HAVE_USBHID_H)
29498 #include <usbhid.h>
29499 #elif defined(HAVE_LIBUSB_H)
29500 #include <libusb.h>
29501 #elif defined(HAVE_LIBUSBHID_H)
29502 #include <libusbhid.h>
29503 #endif
29506 main ()
29509 struct usb_ctl_report buf;
29510 if (buf.ucr_data) { }
29513 return 0;
29515 _ACEOF
29516 rm -f conftest.$ac_objext
29517 if { (ac_try="$ac_compile"
29518 case "(($ac_try" in
29519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520 *) ac_try_echo=$ac_try;;
29521 esac
29522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29523 $as_echo "$ac_try_echo") >&5
29524 (eval "$ac_compile") 2>conftest.er1
29525 ac_status=$?
29526 grep -v '^ *+' conftest.er1 >conftest.err
29527 rm -f conftest.er1
29528 cat conftest.err >&5
29529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29530 (exit $ac_status); } && {
29531 test -z "$ac_c_werror_flag" ||
29532 test ! -s conftest.err
29533 } && test -s conftest.$ac_objext; then
29535 have_usbhid_ucr_data=yes
29537 else
29538 $as_echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29545 if test x$have_usbhid_ucr_data = xyes; then
29546 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
29548 { $as_echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
29549 $as_echo "$have_usbhid_ucr_data" >&6; }
29551 { $as_echo "$as_me:$LINENO: checking for new usbhid API" >&5
29552 $as_echo_n "checking for new usbhid API... " >&6; }
29553 have_usbhid_new=no
29554 cat >conftest.$ac_ext <<_ACEOF
29555 /* confdefs.h. */
29556 _ACEOF
29557 cat confdefs.h >>conftest.$ac_ext
29558 cat >>conftest.$ac_ext <<_ACEOF
29559 /* end confdefs.h. */
29561 #include <sys/types.h>
29562 #if defined(HAVE_USB_H)
29563 #include <usb.h>
29564 #endif
29565 #ifdef __DragonFly__
29566 #include <bus/usb/usb.h>
29567 #include <bus/usb/usbhid.h>
29568 #else
29569 #include <dev/usb/usb.h>
29570 #include <dev/usb/usbhid.h>
29571 #endif
29572 #if defined(HAVE_USBHID_H)
29573 #include <usbhid.h>
29574 #elif defined(HAVE_LIBUSB_H)
29575 #include <libusb.h>
29576 #elif defined(HAVE_LIBUSBHID_H)
29577 #include <libusbhid.h>
29578 #endif
29581 main ()
29584 report_desc_t d;
29585 hid_start_parse(d, 1, 1);
29588 return 0;
29590 _ACEOF
29591 rm -f conftest.$ac_objext
29592 if { (ac_try="$ac_compile"
29593 case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29596 esac
29597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29598 $as_echo "$ac_try_echo") >&5
29599 (eval "$ac_compile") 2>conftest.er1
29600 ac_status=$?
29601 grep -v '^ *+' conftest.er1 >conftest.err
29602 rm -f conftest.er1
29603 cat conftest.err >&5
29604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); } && {
29606 test -z "$ac_c_werror_flag" ||
29607 test ! -s conftest.err
29608 } && test -s conftest.$ac_objext; then
29610 have_usbhid_new=yes
29612 else
29613 $as_echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29620 if test x$have_usbhid_new = xyes; then
29621 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
29623 { $as_echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
29624 $as_echo "$have_usbhid_new" >&6; }
29626 { $as_echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
29627 $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
29628 have_machine_joystick=no
29629 cat >conftest.$ac_ext <<_ACEOF
29630 /* confdefs.h. */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h. */
29636 #include <machine/joystick.h>
29639 main ()
29642 struct joystick t;
29645 return 0;
29647 _ACEOF
29648 rm -f conftest.$ac_objext
29649 if { (ac_try="$ac_compile"
29650 case "(($ac_try" in
29651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29652 *) ac_try_echo=$ac_try;;
29653 esac
29654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29655 $as_echo "$ac_try_echo") >&5
29656 (eval "$ac_compile") 2>conftest.er1
29657 ac_status=$?
29658 grep -v '^ *+' conftest.er1 >conftest.err
29659 rm -f conftest.er1
29660 cat conftest.err >&5
29661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); } && {
29663 test -z "$ac_c_werror_flag" ||
29664 test ! -s conftest.err
29665 } && test -s conftest.$ac_objext; then
29667 have_machine_joystick=yes
29669 else
29670 $as_echo "$as_me: failed program was:" >&5
29671 sed 's/^/| /' conftest.$ac_ext >&5
29676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29677 if test x$have_machine_joystick = xyes; then
29678 cat >>confdefs.h <<\_ACEOF
29679 #define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
29680 _ACEOF
29683 { $as_echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
29684 $as_echo "$have_machine_joystick" >&6; }
29686 cat >>confdefs.h <<\_ACEOF
29687 #define SDL_JOYSTICK_USBHID 1
29688 _ACEOF
29690 SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
29691 EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
29692 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
29693 have_joystick=yes
29695 CFLAGS="$save_CFLAGS"
29699 CheckClockGettime()
29701 # Check whether --enable-clock_gettime was given.
29702 if test "${enable_clock_gettime+set}" = set; then
29703 enableval=$enable_clock_gettime;
29704 else
29705 enable_clock_gettime=no
29708 if test x$enable_clock_gettime = xyes; then
29709 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
29710 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
29711 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
29712 $as_echo_n "(cached) " >&6
29713 else
29714 ac_check_lib_save_LIBS=$LIBS
29715 LIBS="-lrt $LIBS"
29716 cat >conftest.$ac_ext <<_ACEOF
29717 /* confdefs.h. */
29718 _ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h. */
29723 /* Override any GCC internal prototype to avoid an error.
29724 Use char because int might match the return type of a GCC
29725 builtin and then its argument prototype would still apply. */
29726 #ifdef __cplusplus
29727 extern "C"
29728 #endif
29729 char clock_gettime ();
29731 main ()
29733 return clock_gettime ();
29735 return 0;
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (ac_try="$ac_link"
29740 case "(($ac_try" in
29741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742 *) ac_try_echo=$ac_try;;
29743 esac
29744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29745 $as_echo "$ac_try_echo") >&5
29746 (eval "$ac_link") 2>conftest.er1
29747 ac_status=$?
29748 grep -v '^ *+' conftest.er1 >conftest.err
29749 rm -f conftest.er1
29750 cat conftest.err >&5
29751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); } && {
29753 test -z "$ac_c_werror_flag" ||
29754 test ! -s conftest.err
29755 } && test -s conftest$ac_exeext && {
29756 test "$cross_compiling" = yes ||
29757 $as_test_x conftest$ac_exeext
29758 }; then
29759 ac_cv_lib_rt_clock_gettime=yes
29760 else
29761 $as_echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29764 ac_cv_lib_rt_clock_gettime=no
29767 rm -rf conftest.dSYM
29768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29769 conftest$ac_exeext conftest.$ac_ext
29770 LIBS=$ac_check_lib_save_LIBS
29772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
29773 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
29774 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
29775 have_clock_gettime=yes
29778 if test x$have_clock_gettime = xyes; then
29779 cat >>confdefs.h <<\_ACEOF
29780 #define HAVE_CLOCK_GETTIME 1
29781 _ACEOF
29783 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
29788 CheckLinuxVersion()
29790 if test "${ac_cv_header_linux_version_h+set}" = set; then
29791 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
29792 $as_echo_n "checking for linux/version.h... " >&6; }
29793 if test "${ac_cv_header_linux_version_h+set}" = set; then
29794 $as_echo_n "(cached) " >&6
29796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29797 $as_echo "$ac_cv_header_linux_version_h" >&6; }
29798 else
29799 # Is the header compilable?
29800 { $as_echo "$as_me:$LINENO: checking linux/version.h usability" >&5
29801 $as_echo_n "checking linux/version.h usability... " >&6; }
29802 cat >conftest.$ac_ext <<_ACEOF
29803 /* confdefs.h. */
29804 _ACEOF
29805 cat confdefs.h >>conftest.$ac_ext
29806 cat >>conftest.$ac_ext <<_ACEOF
29807 /* end confdefs.h. */
29808 $ac_includes_default
29809 #include <linux/version.h>
29810 _ACEOF
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29816 esac
29817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29818 $as_echo "$ac_try_echo") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29820 ac_status=$?
29821 grep -v '^ *+' conftest.er1 >conftest.err
29822 rm -f conftest.er1
29823 cat conftest.err >&5
29824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } && {
29826 test -z "$ac_c_werror_flag" ||
29827 test ! -s conftest.err
29828 } && test -s conftest.$ac_objext; then
29829 ac_header_compiler=yes
29830 else
29831 $as_echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ac_header_compiler=no
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29838 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29839 $as_echo "$ac_header_compiler" >&6; }
29841 # Is the header present?
29842 { $as_echo "$as_me:$LINENO: checking linux/version.h presence" >&5
29843 $as_echo_n "checking linux/version.h presence... " >&6; }
29844 cat >conftest.$ac_ext <<_ACEOF
29845 /* confdefs.h. */
29846 _ACEOF
29847 cat confdefs.h >>conftest.$ac_ext
29848 cat >>conftest.$ac_ext <<_ACEOF
29849 /* end confdefs.h. */
29850 #include <linux/version.h>
29851 _ACEOF
29852 if { (ac_try="$ac_cpp conftest.$ac_ext"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856 esac
29857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29858 $as_echo "$ac_try_echo") >&5
29859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29860 ac_status=$?
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
29864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } >/dev/null && {
29866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29867 test ! -s conftest.err
29868 }; then
29869 ac_header_preproc=yes
29870 else
29871 $as_echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29874 ac_header_preproc=no
29877 rm -f conftest.err conftest.$ac_ext
29878 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29879 $as_echo "$ac_header_preproc" >&6; }
29881 # So? What about this header?
29882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29883 yes:no: )
29884 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29885 $as_echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29886 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
29887 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
29888 ac_header_preproc=yes
29890 no:yes:* )
29891 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
29892 $as_echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
29893 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
29894 $as_echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
29895 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
29896 $as_echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
29897 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
29898 $as_echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
29899 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
29900 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
29901 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
29902 $as_echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
29905 esac
29906 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
29907 $as_echo_n "checking for linux/version.h... " >&6; }
29908 if test "${ac_cv_header_linux_version_h+set}" = set; then
29909 $as_echo_n "(cached) " >&6
29910 else
29911 ac_cv_header_linux_version_h=$ac_header_preproc
29913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29914 $as_echo "$ac_cv_header_linux_version_h" >&6; }
29917 if test "x$ac_cv_header_linux_version_h" = x""yes; then
29918 have_linux_version_h=yes
29922 if test x$have_linux_version_h = xyes; then
29923 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
29927 CheckRPATH()
29929 # Check whether --enable-rpath was given.
29930 if test "${enable_rpath+set}" = set; then
29931 enableval=$enable_rpath;
29932 else
29933 enable_rpath=yes
29938 case "$host" in
29939 arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
29940 ARCH=linux
29941 CheckDummyVideo
29942 CheckIPod
29943 # Set up files for the timer library
29944 if test x$enable_timers = xyes; then
29945 cat >>confdefs.h <<\_ACEOF
29946 #define SDL_TIMER_UNIX 1
29947 _ACEOF
29949 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29950 have_timers=yes
29953 *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
29954 case "$host" in
29955 *-*-linux*) ARCH=linux ;;
29956 *-*-uclinux*) ARCH=linux ;;
29957 *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
29958 *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
29959 *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
29960 *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
29961 *-*-bsdi*) ARCH=bsdi ;;
29962 *-*-freebsd*) ARCH=freebsd ;;
29963 *-*-dragonfly*) ARCH=freebsd ;;
29964 *-*-netbsd*) ARCH=netbsd ;;
29965 *-*-openbsd*) ARCH=openbsd ;;
29966 *-*-sysv5*) ARCH=sysv5 ;;
29967 *-*-solaris*) ARCH=solaris ;;
29968 *-*-hpux*) ARCH=hpux ;;
29969 *-*-irix*) ARCH=irix ;;
29970 *-*-aix*) ARCH=aix ;;
29971 *-*-osf*) ARCH=osf ;;
29972 esac
29973 CheckVisibilityHidden
29974 CheckDummyVideo
29975 CheckDiskAudio
29976 CheckDummyAudio
29977 CheckDLOPEN
29978 CheckNASM
29979 CheckAltivec
29980 CheckOSS
29981 CheckDMEDIA
29982 CheckMME
29983 CheckALSA
29984 CheckARTSC
29985 CheckESD
29986 CheckPulseAudio
29987 CheckNAS
29988 CheckX11
29989 CheckNANOX
29990 CheckFBCON
29991 CheckDirectFB
29992 CheckPS2GS
29993 CheckPS3
29994 CheckGGI
29995 CheckSVGA
29996 CheckVGL
29997 CheckWscons
29998 CheckAAlib
29999 CheckCaca
30000 CheckQtopia
30001 CheckPicoGUI
30002 CheckOpenGLX11
30003 CheckInputEvents
30004 CheckTslib
30005 CheckUSBHID
30006 CheckPTHREAD
30007 CheckClockGettime
30008 CheckLinuxVersion
30009 CheckRPATH
30010 # Set up files for the audio library
30011 if test x$enable_audio = xyes; then
30012 case $ARCH in
30013 sysv5|solaris|hpux)
30014 cat >>confdefs.h <<\_ACEOF
30015 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
30016 _ACEOF
30018 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
30019 have_audio=yes
30021 netbsd|openbsd)
30022 cat >>confdefs.h <<\_ACEOF
30023 #define SDL_AUDIO_DRIVER_BSD 1
30024 _ACEOF
30026 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
30027 have_audio=yes
30029 aix)
30030 cat >>confdefs.h <<\_ACEOF
30031 #define SDL_AUDIO_DRIVER_PAUD 1
30032 _ACEOF
30034 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
30035 have_audio=yes
30037 esac
30039 # Set up files for the joystick library
30040 if test x$enable_joystick = xyes; then
30041 case $ARCH in
30042 linux)
30043 cat >>confdefs.h <<\_ACEOF
30044 #define SDL_JOYSTICK_LINUX 1
30045 _ACEOF
30047 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
30048 have_joystick=yes
30050 esac
30052 # Set up files for the cdrom library
30053 if test x$enable_cdrom = xyes; then
30054 case $ARCH in
30055 linux|solaris)
30056 cat >>confdefs.h <<\_ACEOF
30057 #define SDL_CDROM_LINUX 1
30058 _ACEOF
30060 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
30061 have_cdrom=yes
30063 *freebsd*)
30064 cat >>confdefs.h <<\_ACEOF
30065 #define SDL_CDROM_FREEBSD 1
30066 _ACEOF
30068 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
30069 have_cdrom=yes
30071 *openbsd*|*netbsd*)
30072 cat >>confdefs.h <<\_ACEOF
30073 #define SDL_CDROM_OPENBSD 1
30074 _ACEOF
30076 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
30077 have_cdrom=yes
30079 bsdi)
30080 cat >>confdefs.h <<\_ACEOF
30081 #define SDL_CDROM_BSDI 1
30082 _ACEOF
30084 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
30085 have_cdrom=yes
30087 aix)
30088 cat >>confdefs.h <<\_ACEOF
30089 #define SDL_CDROM_AIX 1
30090 _ACEOF
30092 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
30093 have_cdrom=yes
30095 osf)
30096 cat >>confdefs.h <<\_ACEOF
30097 #define SDL_CDROM_OSF 1
30098 _ACEOF
30100 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
30101 have_cdrom=yes
30103 esac
30105 # Set up files for the thread library
30106 if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
30107 cat >>confdefs.h <<\_ACEOF
30108 #define SDL_THREAD_SPROC 1
30109 _ACEOF
30111 SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
30112 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
30113 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
30114 have_threads=yes
30116 # Set up files for the timer library
30117 if test x$enable_timers = xyes; then
30118 cat >>confdefs.h <<\_ACEOF
30119 #define SDL_TIMER_UNIX 1
30120 _ACEOF
30122 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30123 have_timers=yes
30126 *-*-qnx*)
30127 ARCH=qnx
30128 CheckDummyVideo
30129 CheckDiskAudio
30130 CheckDummyAudio
30131 # CheckNASM
30132 CheckDLOPEN
30133 CheckNAS
30134 CheckPHOTON
30135 CheckX11
30136 CheckOpenGLX11
30137 CheckPTHREAD
30138 # Set up files for the audio library
30139 if test x$enable_audio = xyes; then
30140 cat >>confdefs.h <<\_ACEOF
30141 #define SDL_AUDIO_DRIVER_QNXNTO 1
30142 _ACEOF
30144 SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
30145 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
30146 have_audio=yes
30148 # Set up files for the cdrom library
30149 if test x$enable_cdrom = xyes; then
30150 cat >>confdefs.h <<\_ACEOF
30151 #define SDL_CDROM_QNX 1
30152 _ACEOF
30154 SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
30155 have_cdrom=yes
30157 # Set up files for the timer library
30158 if test x$enable_timers = xyes; then
30159 cat >>confdefs.h <<\_ACEOF
30160 #define SDL_TIMER_UNIX 1
30161 _ACEOF
30163 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30164 have_timers=yes
30167 *-*-cygwin* | *-*-mingw32*)
30168 ARCH=win32
30169 if test "$build" != "$host"; then # cross-compiling
30170 # Default cross-compile location
30171 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
30172 else
30173 # Look for the location of the tools and install there
30174 if test "$BUILD_PREFIX" != ""; then
30175 ac_default_prefix=$BUILD_PREFIX
30178 CheckDummyVideo
30179 CheckDiskAudio
30180 CheckDummyAudio
30181 CheckWIN32
30182 CheckWIN32GL
30183 CheckDIRECTX
30184 CheckNASM
30185 # Set up files for the audio library
30186 if test x$enable_audio = xyes; then
30187 cat >>confdefs.h <<\_ACEOF
30188 #define SDL_AUDIO_DRIVER_WAVEOUT 1
30189 _ACEOF
30191 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
30192 if test x$have_directx = xyes; then
30193 cat >>confdefs.h <<\_ACEOF
30194 #define SDL_AUDIO_DRIVER_DSOUND 1
30195 _ACEOF
30197 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
30199 have_audio=yes
30201 # Set up files for the joystick library
30202 if test x$enable_joystick = xyes; then
30203 cat >>confdefs.h <<\_ACEOF
30204 #define SDL_JOYSTICK_WINMM 1
30205 _ACEOF
30207 SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
30208 have_joystick=yes
30210 # Set up files for the cdrom library
30211 if test x$enable_cdrom = xyes; then
30212 cat >>confdefs.h <<\_ACEOF
30213 #define SDL_CDROM_WIN32 1
30214 _ACEOF
30216 SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
30217 have_cdrom=yes
30219 # Set up files for the thread library
30220 if test x$enable_threads = xyes; then
30221 cat >>confdefs.h <<\_ACEOF
30222 #define SDL_THREAD_WIN32 1
30223 _ACEOF
30225 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
30226 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
30227 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
30228 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
30229 have_threads=yes
30231 # Set up files for the timer library
30232 if test x$enable_timers = xyes; then
30233 cat >>confdefs.h <<\_ACEOF
30234 #define SDL_TIMER_WIN32 1
30235 _ACEOF
30237 SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
30238 have_timers=yes
30240 # Set up files for the shared object loading library
30241 if test x$enable_loadso = xyes; then
30242 cat >>confdefs.h <<\_ACEOF
30243 #define SDL_LOADSO_WIN32 1
30244 _ACEOF
30246 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
30247 have_loadso=yes
30249 # Set up the system libraries we need
30250 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
30251 if test x$have_directx = xyes; then
30252 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
30254 # The Win32 platform requires special setup
30255 SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
30256 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
30257 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
30258 SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
30260 *-wince*)
30261 ARCH=win32
30262 CheckDummyVideo
30263 CheckDiskAudio
30264 CheckDummyAudio
30265 CheckWIN32
30266 CheckNASM
30267 SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
30268 EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
30269 if test x$enable_audio = xyes; then
30270 cat >>confdefs.h <<\_ACEOF
30271 #define SDL_AUDIO_DRIVER_WAVEOUT 1
30272 _ACEOF
30274 SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
30275 have_audio=yes
30277 # Set up files for the thread library
30278 if test x$enable_threads = xyes; then
30279 cat >>confdefs.h <<\_ACEOF
30280 #define SDL_THREAD_WIN32 1
30281 _ACEOF
30283 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
30284 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
30285 SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
30286 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
30287 have_threads=yes
30289 # Set up files for the timer library
30290 if test x$enable_timers = xyes; then
30291 cat >>confdefs.h <<\_ACEOF
30292 #define SDL_TIMER_WINCE 1
30293 _ACEOF
30295 SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
30296 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
30297 have_timers=yes
30299 # Set up files for the shared object loading library
30300 if test x$enable_loadso = xyes; then
30301 cat >>confdefs.h <<\_ACEOF
30302 #define SDL_LOADSO_WIN32 1
30303 _ACEOF
30305 SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
30306 have_loadso=yes
30308 # Set up the system libraries we need
30309 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
30310 # The Win32 platform requires special setup
30311 SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
30312 SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
30313 SDL_LIBS="-lSDLmain $SDL_LIBS"
30315 *-*-beos* | *-*-haiku*)
30316 ARCH=beos
30317 ac_default_prefix=/boot/develop/tools/gnupro
30318 CheckDummyVideo
30319 CheckDiskAudio
30320 CheckDummyAudio
30321 CheckNASM
30322 CheckBWINDOW
30323 CheckBeGL
30324 # Set up files for the audio library
30325 if test x$enable_audio = xyes; then
30326 cat >>confdefs.h <<\_ACEOF
30327 #define SDL_AUDIO_DRIVER_BAUDIO 1
30328 _ACEOF
30330 SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
30331 have_audio=yes
30333 # Set up files for the joystick library
30334 if test x$enable_joystick = xyes; then
30335 cat >>confdefs.h <<\_ACEOF
30336 #define SDL_JOYSTICK_BEOS 1
30337 _ACEOF
30339 SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
30340 have_joystick=yes
30342 # Set up files for the cdrom library
30343 if test x$enable_cdrom = xyes; then
30344 cat >>confdefs.h <<\_ACEOF
30345 #define SDL_CDROM_BEOS 1
30346 _ACEOF
30348 SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
30349 have_cdrom=yes
30351 # Set up files for the thread library
30352 if test x$enable_threads = xyes; then
30353 cat >>confdefs.h <<\_ACEOF
30354 #define SDL_THREAD_BEOS 1
30355 _ACEOF
30357 SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
30358 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
30359 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
30360 have_threads=yes
30362 # Set up files for the timer library
30363 if test x$enable_timers = xyes; then
30364 cat >>confdefs.h <<\_ACEOF
30365 #define SDL_TIMER_BEOS 1
30366 _ACEOF
30368 SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
30369 have_timers=yes
30371 # Set up files for the shared object loading library
30372 if test x$enable_loadso = xyes; then
30373 case "$host" in
30374 *-*-beos*)
30375 cat >>confdefs.h <<\_ACEOF
30376 #define SDL_LOADSO_BEOS 1
30377 _ACEOF
30379 SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
30381 *-*-haiku*)
30382 cat >>confdefs.h <<\_ACEOF
30383 #define SDL_LOADSO_DLOPEN 1
30384 _ACEOF
30386 SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
30388 esac
30389 have_loadso=yes
30391 # The BeOS platform requires special setup.
30392 SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
30393 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
30395 *-*-darwin* )
30396 # This could be either full "Mac OS X", or plain "Darwin" which is
30397 # just the OS X kernel sans upper layers like Carbon and Cocoa.
30398 # Next line is broken, and a few files below require Mac OS X (full)
30399 ARCH=macosx
30401 # Mac OS X builds with both the Carbon and OSX APIs at the moment
30402 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
30403 EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
30405 # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
30406 # is -lm which is not needed under Mac OS X. But for some reasons it
30407 # also tends to contain spurious -L switches, which we don't want to
30408 # use here or in sdl-config. Hence we reset it.
30409 EXTRA_LDFLAGS=""
30411 CheckVisibilityHidden
30412 CheckDummyVideo
30413 CheckDiskAudio
30414 CheckDummyAudio
30415 CheckDLOPEN
30416 CheckNASM
30418 # Set up files for the shared object loading library
30419 # (this needs to be done before the dynamic X11 check)
30420 if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
30421 cat >>confdefs.h <<\_ACEOF
30422 #define SDL_LOADSO_DLCOMPAT 1
30423 _ACEOF
30425 SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
30426 have_loadso=yes
30429 CheckCOCOA
30430 CheckCARBON
30431 CheckX11
30432 CheckMacGL
30433 CheckOpenGLX11
30434 CheckPTHREAD
30435 CheckAltivec
30437 # Need this or things might misbuild on a G3.
30438 EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
30440 # Set up files for the audio library
30441 if test x$enable_audio = xyes; then
30442 cat >>confdefs.h <<\_ACEOF
30443 #define SDL_AUDIO_DRIVER_COREAUDIO 1
30444 _ACEOF
30446 SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
30447 have_audio=yes
30449 # Set up files for the joystick library
30450 if test x$enable_joystick = xyes; then
30451 cat >>confdefs.h <<\_ACEOF
30452 #define SDL_JOYSTICK_IOKIT 1
30453 _ACEOF
30455 SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
30456 have_joystick=yes
30457 need_iokit_framework=yes
30459 # Set up files for the cdrom library
30460 if test x$enable_cdrom = xyes; then
30461 cat >>confdefs.h <<\_ACEOF
30462 #define SDL_CDROM_MACOSX 1
30463 _ACEOF
30465 SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
30466 have_cdrom=yes
30468 # Set up files for the timer library
30469 if test x$enable_timers = xyes; then
30470 cat >>confdefs.h <<\_ACEOF
30471 #define SDL_TIMER_UNIX 1
30472 _ACEOF
30474 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30475 have_timers=yes
30477 # The Mac OS X platform requires special setup.
30478 SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
30479 EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
30480 SDL_LIBS="-lSDLmain $SDL_LIBS"
30481 if test x$enable_video_cocoa = xyes; then
30482 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
30483 need_iokit_framework=yes
30485 if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
30486 # The Cocoa backend still needs Carbon
30487 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices"
30488 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
30490 # If either the audio or CD driver is used, add the AudioUnit framework
30491 if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
30492 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
30494 # Some subsystems reference IOKit...
30495 if test x$need_iokit_framework = xyes; then
30496 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
30499 *-*-mint*)
30500 ARCH=mint
30501 CheckDummyVideo
30502 CheckDiskAudio
30503 CheckDummyAudio
30504 CheckAtariBiosEvent
30505 CheckAtariXbiosVideo
30506 CheckAtariGemVideo
30507 CheckAtariAudio
30508 CheckAtariLdg
30509 CheckAtariOSMesa
30510 CheckPTH
30511 # Set up files for the audio library
30512 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30513 if test x$enable_audio = xyes; then
30514 cat >>confdefs.h <<\_ACEOF
30515 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
30516 _ACEOF
30518 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
30519 have_audio=yes
30522 # Set up files for the joystick library
30523 if test x$enable_joystick = xyes; then
30524 cat >>confdefs.h <<\_ACEOF
30525 #define SDL_JOYSTICK_MINT 1
30526 _ACEOF
30528 SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
30529 have_joystick=yes
30531 # Set up files for the cdrom library
30532 if test x$enable_cdrom = xyes; then
30533 cat >>confdefs.h <<\_ACEOF
30534 #define SDL_CDROM_MINT 1
30535 _ACEOF
30537 SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
30538 have_cdrom=yes
30540 # Set up files for the timer library
30541 if test x$enable_timers = xyes; then
30542 if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30543 cat >>confdefs.h <<\_ACEOF
30544 #define SDL_TIMER_UNIX 1
30545 _ACEOF
30547 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30548 else
30549 cat >>confdefs.h <<\_ACEOF
30550 #define SDL_TIMER_MINT 1
30551 _ACEOF
30553 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
30554 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
30556 have_timers=yes
30559 *-riscos)
30560 ARCH=riscos
30561 CheckOSS
30562 CheckPTHREAD
30563 # Set up files for the video library
30564 if test x$enable_video = xyes; then
30565 cat >>confdefs.h <<\_ACEOF
30566 #define SDL_VIDEO_DRIVER_RISCOS 1
30567 _ACEOF
30569 SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
30570 SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
30571 have_video=yes
30573 # Set up files for the joystick library
30574 if test x$enable_joystick = xyes; then
30575 cat >>confdefs.h <<\_ACEOF
30576 #define SDL_JOYSTICK_RISCOS 1
30577 _ACEOF
30579 SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
30580 have_joystick=yes
30582 # Set up files for the timer library
30583 if test x$enable_timers = xyes; then
30584 cat >>confdefs.h <<\_ACEOF
30585 #define SDL_TIMER_RISCOS 1
30586 _ACEOF
30588 SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
30589 have_timers=yes
30591 # The RISC OS platform requires special setup.
30592 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
30595 { { $as_echo "$as_me:$LINENO: error:
30596 *** Unsupported host: Please add to configure.in
30597 " >&5
30598 $as_echo "$as_me: error:
30599 *** Unsupported host: Please add to configure.in
30600 " >&2;}
30601 { (exit 1); exit 1; }; }
30603 esac
30605 # Verify that we have all the platform specific files we need
30607 if test x$enable_joystick = xyes; then
30608 if test x$have_joystick != xyes; then
30609 # Wants joystick subsystem, but doesn't have a platform-specific backend...
30610 cat >>confdefs.h <<\_ACEOF
30611 #define SDL_JOYSTICK_DUMMY 1
30612 _ACEOF
30614 SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
30617 if test x$have_cdrom != xyes; then
30618 if test x$enable_cdrom = xyes; then
30619 cat >>confdefs.h <<\_ACEOF
30620 #define SDL_CDROM_DISABLED 1
30621 _ACEOF
30624 SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
30626 if test x$have_threads != xyes; then
30627 if test x$enable_threads = xyes; then
30628 cat >>confdefs.h <<\_ACEOF
30629 #define SDL_THREADS_DISABLED 1
30630 _ACEOF
30633 SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
30635 if test x$have_timers != xyes; then
30636 if test x$enable_timers = xyes; then
30637 cat >>confdefs.h <<\_ACEOF
30638 #define SDL_TIMERS_DISABLED 1
30639 _ACEOF
30642 SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
30644 if test x$have_loadso != xyes; then
30645 if test x$enable_loadso = xyes; then
30646 cat >>confdefs.h <<\_ACEOF
30647 #define SDL_LOADSO_DISABLED 1
30648 _ACEOF
30651 SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
30653 if test x$SDLMAIN_SOURCES = x; then
30654 SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
30657 OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
30658 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30659 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30660 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30661 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
30662 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
30664 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.o,g'`
30665 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.o,g'`
30666 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.o,g'`
30668 # Set runtime shared library paths as needed
30670 if test "x$enable_rpath" = "xyes"; then
30671 if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
30672 SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
30674 if test $ARCH = solaris; then
30675 SDL_RLD_FLAGS="-R\${libdir}"
30677 else
30678 SDL_RLD_FLAGS=""
30681 case "$ARCH" in
30682 macosx)
30683 if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
30684 SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
30686 if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
30687 SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
30689 # Evil hack to allow static linking on Mac OS X
30690 SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
30693 SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
30695 esac
30701 if test x$enable_shared = xyes; then
30702 ENABLE_SHARED_TRUE=
30703 ENABLE_SHARED_FALSE="#"
30704 else
30705 ENABLE_SHARED_TRUE="#"
30706 ENABLE_SHARED_FALSE=
30708 if test x$enable_static = xyes; then
30709 ENABLE_STATIC_TRUE=
30710 ENABLE_STATIC_FALSE="#"
30711 else
30712 ENABLE_STATIC_TRUE="#"
30713 ENABLE_STATIC_FALSE=
30732 ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
30734 ac_config_commands="$ac_config_commands default"
30736 cat >confcache <<\_ACEOF
30737 # This file is a shell script that caches the results of configure
30738 # tests run on this system so they can be shared between configure
30739 # scripts and configure runs, see configure's option --config-cache.
30740 # It is not useful on other systems. If it contains results you don't
30741 # want to keep, you may remove or edit it.
30743 # config.status only pays attention to the cache file if you give it
30744 # the --recheck option to rerun configure.
30746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30748 # following values.
30750 _ACEOF
30752 # The following way of writing the cache mishandles newlines in values,
30753 # but we know of no workaround that is simple, portable, and efficient.
30754 # So, we kill variables containing newlines.
30755 # Ultrix sh set writes to stderr and can't be redirected directly,
30756 # and sets the high bit in the cache file unless we assign to the vars.
30758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30759 eval ac_val=\$$ac_var
30760 case $ac_val in #(
30761 *${as_nl}*)
30762 case $ac_var in #(
30763 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30764 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30765 esac
30766 case $ac_var in #(
30767 _ | IFS | as_nl) ;; #(
30768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30769 *) $as_unset $ac_var ;;
30770 esac ;;
30771 esac
30772 done
30774 (set) 2>&1 |
30775 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30776 *${as_nl}ac_space=\ *)
30777 # `set' does not quote correctly, so add quotes (double-quote
30778 # substitution turns \\\\ into \\, and sed turns \\ into \).
30779 sed -n \
30780 "s/'/'\\\\''/g;
30781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30782 ;; #(
30784 # `set' quotes correctly as required by POSIX, so do not add quotes.
30785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30787 esac |
30788 sort
30790 sed '
30791 /^ac_cv_env_/b end
30792 t clear
30793 :clear
30794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30795 t end
30796 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30797 :end' >>confcache
30798 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30799 if test -w "$cache_file"; then
30800 test "x$cache_file" != "x/dev/null" &&
30801 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30802 $as_echo "$as_me: updating cache $cache_file" >&6;}
30803 cat confcache >$cache_file
30804 else
30805 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30806 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30809 rm -f confcache
30811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30812 # Let make expand exec_prefix.
30813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30815 DEFS=-DHAVE_CONFIG_H
30817 ac_libobjs=
30818 ac_ltlibobjs=
30819 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30820 # 1. Remove the extension, and $U if already installed.
30821 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30822 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30823 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30824 # will be set to the directory where LIBOBJS objects are built.
30825 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30826 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30827 done
30828 LIBOBJS=$ac_libobjs
30830 LTLIBOBJS=$ac_ltlibobjs
30835 : ${CONFIG_STATUS=./config.status}
30836 ac_write_fail=0
30837 ac_clean_files_save=$ac_clean_files
30838 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30839 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30840 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30841 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30842 #! $SHELL
30843 # Generated by $as_me.
30844 # Run this file to recreate the current configuration.
30845 # Compiler output produced by configure, useful for debugging
30846 # configure, is in config.log if it exists.
30848 debug=false
30849 ac_cs_recheck=false
30850 ac_cs_silent=false
30851 SHELL=\${CONFIG_SHELL-$SHELL}
30852 _ACEOF
30854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30855 ## --------------------- ##
30856 ## M4sh Initialization. ##
30857 ## --------------------- ##
30859 # Be more Bourne compatible
30860 DUALCASE=1; export DUALCASE # for MKS sh
30861 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30862 emulate sh
30863 NULLCMD=:
30864 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30865 # is contrary to our usage. Disable this feature.
30866 alias -g '${1+"$@"}'='"$@"'
30867 setopt NO_GLOB_SUBST
30868 else
30869 case `(set -o) 2>/dev/null` in
30870 *posix*) set -o posix ;;
30871 esac
30878 # PATH needs CR
30879 # Avoid depending upon Character Ranges.
30880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30883 as_cr_digits='0123456789'
30884 as_cr_alnum=$as_cr_Letters$as_cr_digits
30886 as_nl='
30888 export as_nl
30889 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30890 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30893 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30894 as_echo='printf %s\n'
30895 as_echo_n='printf %s'
30896 else
30897 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30898 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30899 as_echo_n='/usr/ucb/echo -n'
30900 else
30901 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30902 as_echo_n_body='eval
30903 arg=$1;
30904 case $arg in
30905 *"$as_nl"*)
30906 expr "X$arg" : "X\\(.*\\)$as_nl";
30907 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30908 esac;
30909 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30911 export as_echo_n_body
30912 as_echo_n='sh -c $as_echo_n_body as_echo'
30914 export as_echo_body
30915 as_echo='sh -c $as_echo_body as_echo'
30918 # The user is always right.
30919 if test "${PATH_SEPARATOR+set}" != set; then
30920 PATH_SEPARATOR=:
30921 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30922 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30923 PATH_SEPARATOR=';'
30927 # Support unset when possible.
30928 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30929 as_unset=unset
30930 else
30931 as_unset=false
30935 # IFS
30936 # We need space, tab and new line, in precisely that order. Quoting is
30937 # there to prevent editors from complaining about space-tab.
30938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30939 # splitting by setting IFS to empty value.)
30940 IFS=" "" $as_nl"
30942 # Find who we are. Look in the path if we contain no directory separator.
30943 case $0 in
30944 *[\\/]* ) as_myself=$0 ;;
30945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30946 for as_dir in $PATH
30948 IFS=$as_save_IFS
30949 test -z "$as_dir" && as_dir=.
30950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30951 done
30952 IFS=$as_save_IFS
30955 esac
30956 # We did not find ourselves, most probably we were run as `sh COMMAND'
30957 # in which case we are not to be found in the path.
30958 if test "x$as_myself" = x; then
30959 as_myself=$0
30961 if test ! -f "$as_myself"; then
30962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30963 { (exit 1); exit 1; }
30966 # Work around bugs in pre-3.0 UWIN ksh.
30967 for as_var in ENV MAIL MAILPATH
30968 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30969 done
30970 PS1='$ '
30971 PS2='> '
30972 PS4='+ '
30974 # NLS nuisances.
30975 LC_ALL=C
30976 export LC_ALL
30977 LANGUAGE=C
30978 export LANGUAGE
30980 # Required to use basename.
30981 if expr a : '\(a\)' >/dev/null 2>&1 &&
30982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30983 as_expr=expr
30984 else
30985 as_expr=false
30988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30989 as_basename=basename
30990 else
30991 as_basename=false
30995 # Name of the executable.
30996 as_me=`$as_basename -- "$0" ||
30997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30998 X"$0" : 'X\(//\)$' \| \
30999 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31000 $as_echo X/"$0" |
31001 sed '/^.*\/\([^/][^/]*\)\/*$/{
31002 s//\1/
31005 /^X\/\(\/\/\)$/{
31006 s//\1/
31009 /^X\/\(\/\).*/{
31010 s//\1/
31013 s/.*/./; q'`
31015 # CDPATH.
31016 $as_unset CDPATH
31020 as_lineno_1=$LINENO
31021 as_lineno_2=$LINENO
31022 test "x$as_lineno_1" != "x$as_lineno_2" &&
31023 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
31025 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31026 # uniformly replaced by the line number. The first 'sed' inserts a
31027 # line-number line after each line using $LINENO; the second 'sed'
31028 # does the real work. The second script uses 'N' to pair each
31029 # line-number line with the line containing $LINENO, and appends
31030 # trailing '-' during substitution so that $LINENO is not a special
31031 # case at line end.
31032 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31033 # scripts with optimization help from Paolo Bonzini. Blame Lee
31034 # E. McMahon (1931-1989) for sed's syntax. :-)
31035 sed -n '
31037 /[$]LINENO/=
31038 ' <$as_myself |
31039 sed '
31040 s/[$]LINENO.*/&-/
31041 t lineno
31043 :lineno
31045 :loop
31046 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
31047 t loop
31048 s/-\n.*//
31049 ' >$as_me.lineno &&
31050 chmod +x "$as_me.lineno" ||
31051 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
31052 { (exit 1); exit 1; }; }
31054 # Don't try to exec as it changes $[0], causing all sort of problems
31055 # (the dirname of $[0] is not the place where we might find the
31056 # original and so on. Autoconf is especially sensitive to this).
31057 . "./$as_me.lineno"
31058 # Exit status is that of the last command.
31059 exit
31063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31064 as_dirname=dirname
31065 else
31066 as_dirname=false
31069 ECHO_C= ECHO_N= ECHO_T=
31070 case `echo -n x` in
31071 -n*)
31072 case `echo 'x\c'` in
31073 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31074 *) ECHO_C='\c';;
31075 esac;;
31077 ECHO_N='-n';;
31078 esac
31079 if expr a : '\(a\)' >/dev/null 2>&1 &&
31080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31081 as_expr=expr
31082 else
31083 as_expr=false
31086 rm -f conf$$ conf$$.exe conf$$.file
31087 if test -d conf$$.dir; then
31088 rm -f conf$$.dir/conf$$.file
31089 else
31090 rm -f conf$$.dir
31091 mkdir conf$$.dir 2>/dev/null
31093 if (echo >conf$$.file) 2>/dev/null; then
31094 if ln -s conf$$.file conf$$ 2>/dev/null; then
31095 as_ln_s='ln -s'
31096 # ... but there are two gotchas:
31097 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31098 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31099 # In both cases, we have to default to `cp -p'.
31100 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31101 as_ln_s='cp -p'
31102 elif ln conf$$.file conf$$ 2>/dev/null; then
31103 as_ln_s=ln
31104 else
31105 as_ln_s='cp -p'
31107 else
31108 as_ln_s='cp -p'
31110 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31111 rmdir conf$$.dir 2>/dev/null
31113 if mkdir -p . 2>/dev/null; then
31114 as_mkdir_p=:
31115 else
31116 test -d ./-p && rmdir ./-p
31117 as_mkdir_p=false
31120 if test -x / >/dev/null 2>&1; then
31121 as_test_x='test -x'
31122 else
31123 if ls -dL / >/dev/null 2>&1; then
31124 as_ls_L_option=L
31125 else
31126 as_ls_L_option=
31128 as_test_x='
31129 eval sh -c '\''
31130 if test -d "$1"; then
31131 test -d "$1/.";
31132 else
31133 case $1 in
31134 -*)set "./$1";;
31135 esac;
31136 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31137 ???[sx]*):;;*)false;;esac;fi
31138 '\'' sh
31141 as_executable_p=$as_test_x
31143 # Sed expression to map a string onto a valid CPP name.
31144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31146 # Sed expression to map a string onto a valid variable name.
31147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31150 exec 6>&1
31152 # Save the log message, to keep $[0] and so on meaningful, and to
31153 # report actual input values of CONFIG_FILES etc. instead of their
31154 # values after options handling.
31155 ac_log="
31156 This file was extended by $as_me, which was
31157 generated by GNU Autoconf 2.63. Invocation command line was
31159 CONFIG_FILES = $CONFIG_FILES
31160 CONFIG_HEADERS = $CONFIG_HEADERS
31161 CONFIG_LINKS = $CONFIG_LINKS
31162 CONFIG_COMMANDS = $CONFIG_COMMANDS
31163 $ $0 $@
31165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31168 _ACEOF
31170 case $ac_config_files in *"
31171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31172 esac
31174 case $ac_config_headers in *"
31175 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31176 esac
31179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31180 # Files that config.status was made for.
31181 config_files="$ac_config_files"
31182 config_headers="$ac_config_headers"
31183 config_commands="$ac_config_commands"
31185 _ACEOF
31187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31188 ac_cs_usage="\
31189 \`$as_me' instantiates files from templates according to the
31190 current configuration.
31192 Usage: $0 [OPTION]... [FILE]...
31194 -h, --help print this help, then exit
31195 -V, --version print version number and configuration settings, then exit
31196 -q, --quiet, --silent
31197 do not print progress messages
31198 -d, --debug don't remove temporary files
31199 --recheck update $as_me by reconfiguring in the same conditions
31200 --file=FILE[:TEMPLATE]
31201 instantiate the configuration file FILE
31202 --header=FILE[:TEMPLATE]
31203 instantiate the configuration header FILE
31205 Configuration files:
31206 $config_files
31208 Configuration headers:
31209 $config_headers
31211 Configuration commands:
31212 $config_commands
31214 Report bugs to <bug-autoconf@gnu.org>."
31216 _ACEOF
31217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31218 ac_cs_version="\\
31219 config.status
31220 configured by $0, generated by GNU Autoconf 2.63,
31221 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31223 Copyright (C) 2008 Free Software Foundation, Inc.
31224 This config.status script is free software; the Free Software Foundation
31225 gives unlimited permission to copy, distribute and modify it."
31227 ac_pwd='$ac_pwd'
31228 srcdir='$srcdir'
31229 INSTALL='$INSTALL'
31230 test -n "\$AWK" || AWK=awk
31231 _ACEOF
31233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31234 # The default lists apply if the user does not specify any file.
31235 ac_need_defaults=:
31236 while test $# != 0
31238 case $1 in
31239 --*=*)
31240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31242 ac_shift=:
31245 ac_option=$1
31246 ac_optarg=$2
31247 ac_shift=shift
31249 esac
31251 case $ac_option in
31252 # Handling of the options.
31253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31254 ac_cs_recheck=: ;;
31255 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31256 $as_echo "$ac_cs_version"; exit ;;
31257 --debug | --debu | --deb | --de | --d | -d )
31258 debug=: ;;
31259 --file | --fil | --fi | --f )
31260 $ac_shift
31261 case $ac_optarg in
31262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31263 esac
31264 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31265 ac_need_defaults=false;;
31266 --header | --heade | --head | --hea )
31267 $ac_shift
31268 case $ac_optarg in
31269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31270 esac
31271 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31272 ac_need_defaults=false;;
31273 --he | --h)
31274 # Conflict between --help and --header
31275 { $as_echo "$as_me: error: ambiguous option: $1
31276 Try \`$0 --help' for more information." >&2
31277 { (exit 1); exit 1; }; };;
31278 --help | --hel | -h )
31279 $as_echo "$ac_cs_usage"; exit ;;
31280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31281 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31282 ac_cs_silent=: ;;
31284 # This is an error.
31285 -*) { $as_echo "$as_me: error: unrecognized option: $1
31286 Try \`$0 --help' for more information." >&2
31287 { (exit 1); exit 1; }; } ;;
31289 *) ac_config_targets="$ac_config_targets $1"
31290 ac_need_defaults=false ;;
31292 esac
31293 shift
31294 done
31296 ac_configure_extra_args=
31298 if $ac_cs_silent; then
31299 exec 6>/dev/null
31300 ac_configure_extra_args="$ac_configure_extra_args --silent"
31303 _ACEOF
31304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31305 if \$ac_cs_recheck; then
31306 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31307 shift
31308 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31309 CONFIG_SHELL='$SHELL'
31310 export CONFIG_SHELL
31311 exec "\$@"
31314 _ACEOF
31315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31316 exec 5>>config.log
31318 echo
31319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31320 ## Running $as_me. ##
31321 _ASBOX
31322 $as_echo "$ac_log"
31323 } >&5
31325 _ACEOF
31326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31328 # INIT-COMMANDS
31332 # The HP-UX ksh and POSIX shell print the target directory to stdout
31333 # if CDPATH is set.
31334 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31336 sed_quote_subst='$sed_quote_subst'
31337 double_quote_subst='$double_quote_subst'
31338 delay_variable_subst='$delay_variable_subst'
31339 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31340 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31341 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31342 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31343 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31344 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31345 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31346 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31347 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31348 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31349 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31350 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31351 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31352 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31353 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31354 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31355 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31356 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31357 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31358 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31359 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31360 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31361 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31362 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31363 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31364 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31365 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31366 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31367 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31368 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31369 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31370 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31371 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31372 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31373 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31374 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31375 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31376 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31377 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31378 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31379 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31380 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31381 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31382 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31383 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31384 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31385 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"`'
31386 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"`'
31387 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31388 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31389 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31390 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31391 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31392 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31393 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31394 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31395 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31396 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31397 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31398 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31399 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31400 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31401 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31402 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31403 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31404 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31405 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31406 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31407 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31408 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31409 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31410 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31411 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31412 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31413 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31414 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31415 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31416 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31417 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31418 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31419 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31420 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31421 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31422 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31423 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31424 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31425 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31426 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31427 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31428 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31429 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31430 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31431 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31432 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31433 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31434 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31435 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31436 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31437 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31438 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31439 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31440 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31441 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31442 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31443 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31444 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31445 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31446 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31447 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31448 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31449 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31450 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31451 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31452 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31453 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31454 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31455 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31456 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31457 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31458 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31459 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31460 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31461 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31462 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31463 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31464 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31465 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31466 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31467 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31468 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31469 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31470 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31471 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31472 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31473 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31474 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31475 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31476 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31477 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31478 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31479 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31480 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31481 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31482 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31483 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31484 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31485 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31486 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31487 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31488 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31489 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31490 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31491 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31492 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31493 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31494 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31495 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31496 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31497 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31498 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31499 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31500 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31501 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31502 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31503 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31504 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31505 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31506 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31507 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31508 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31509 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31510 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31511 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31513 LTCC='$LTCC'
31514 LTCFLAGS='$LTCFLAGS'
31515 compiler='$compiler_DEFAULT'
31517 # Quote evaled strings.
31518 for var in SED \
31519 GREP \
31520 EGREP \
31521 FGREP \
31522 LD \
31523 NM \
31524 LN_S \
31525 lt_SP2NL \
31526 lt_NL2SP \
31527 reload_flag \
31528 deplibs_check_method \
31529 file_magic_cmd \
31530 AR \
31531 AR_FLAGS \
31532 STRIP \
31533 RANLIB \
31534 CC \
31535 CFLAGS \
31536 compiler \
31537 lt_cv_sys_global_symbol_pipe \
31538 lt_cv_sys_global_symbol_to_cdecl \
31539 lt_cv_sys_global_symbol_to_c_name_address \
31540 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31541 SHELL \
31542 ECHO \
31543 lt_prog_compiler_no_builtin_flag \
31544 lt_prog_compiler_wl \
31545 lt_prog_compiler_pic \
31546 lt_prog_compiler_static \
31547 lt_cv_prog_compiler_c_o \
31548 need_locks \
31549 DSYMUTIL \
31550 NMEDIT \
31551 LIPO \
31552 OTOOL \
31553 OTOOL64 \
31554 shrext_cmds \
31555 export_dynamic_flag_spec \
31556 whole_archive_flag_spec \
31557 compiler_needs_object \
31558 with_gnu_ld \
31559 allow_undefined_flag \
31560 no_undefined_flag \
31561 hardcode_libdir_flag_spec \
31562 hardcode_libdir_flag_spec_ld \
31563 hardcode_libdir_separator \
31564 fix_srcfile_path \
31565 exclude_expsyms \
31566 include_expsyms \
31567 file_list_spec \
31568 variables_saved_for_relink \
31569 libname_spec \
31570 library_names_spec \
31571 soname_spec \
31572 finish_eval \
31573 old_striplib \
31574 striplib \
31575 compiler_lib_search_dirs \
31576 predep_objects \
31577 postdep_objects \
31578 predeps \
31579 postdeps \
31580 compiler_lib_search_path \
31581 LD_CXX \
31582 compiler_CXX \
31583 lt_prog_compiler_no_builtin_flag_CXX \
31584 lt_prog_compiler_wl_CXX \
31585 lt_prog_compiler_pic_CXX \
31586 lt_prog_compiler_static_CXX \
31587 lt_cv_prog_compiler_c_o_CXX \
31588 export_dynamic_flag_spec_CXX \
31589 whole_archive_flag_spec_CXX \
31590 compiler_needs_object_CXX \
31591 with_gnu_ld_CXX \
31592 allow_undefined_flag_CXX \
31593 no_undefined_flag_CXX \
31594 hardcode_libdir_flag_spec_CXX \
31595 hardcode_libdir_flag_spec_ld_CXX \
31596 hardcode_libdir_separator_CXX \
31597 fix_srcfile_path_CXX \
31598 exclude_expsyms_CXX \
31599 include_expsyms_CXX \
31600 file_list_spec_CXX \
31601 compiler_lib_search_dirs_CXX \
31602 predep_objects_CXX \
31603 postdep_objects_CXX \
31604 predeps_CXX \
31605 postdeps_CXX \
31606 compiler_lib_search_path_CXX; do
31607 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31608 *[\\\\\\\`\\"\\\$]*)
31609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31614 esac
31615 done
31617 # Double-quote double-evaled strings.
31618 for var in reload_cmds \
31619 old_postinstall_cmds \
31620 old_postuninstall_cmds \
31621 old_archive_cmds \
31622 extract_expsyms_cmds \
31623 old_archive_from_new_cmds \
31624 old_archive_from_expsyms_cmds \
31625 archive_cmds \
31626 archive_expsym_cmds \
31627 module_cmds \
31628 module_expsym_cmds \
31629 export_symbols_cmds \
31630 prelink_cmds \
31631 postinstall_cmds \
31632 postuninstall_cmds \
31633 finish_cmds \
31634 sys_lib_search_path_spec \
31635 sys_lib_dlsearch_path_spec \
31636 old_archive_cmds_CXX \
31637 old_archive_from_new_cmds_CXX \
31638 old_archive_from_expsyms_cmds_CXX \
31639 archive_cmds_CXX \
31640 archive_expsym_cmds_CXX \
31641 module_cmds_CXX \
31642 module_expsym_cmds_CXX \
31643 export_symbols_cmds_CXX \
31644 prelink_cmds_CXX; do
31645 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31646 *[\\\\\\\`\\"\\\$]*)
31647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31652 esac
31653 done
31655 # Fix-up fallback echo if it was mangled by the above quoting rules.
31656 case \$lt_ECHO in
31657 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31659 esac
31661 ac_aux_dir='$ac_aux_dir'
31662 xsi_shell='$xsi_shell'
31663 lt_shell_append='$lt_shell_append'
31665 # See if we are running on zsh, and set the options which allow our
31666 # commands through without removal of \ escapes INIT.
31667 if test -n "\${ZSH_VERSION+set}" ; then
31668 setopt NO_GLOB_SUBST
31672 PACKAGE='$PACKAGE'
31673 VERSION='$VERSION'
31674 TIMESTAMP='$TIMESTAMP'
31675 RM='$RM'
31676 ofile='$ofile'
31683 _ACEOF
31685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31687 # Handling of arguments.
31688 for ac_config_target in $ac_config_targets
31690 case $ac_config_target in
31691 "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
31692 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31693 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31694 "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
31695 "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;;
31696 "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;;
31697 "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;;
31698 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31700 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31701 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31702 { (exit 1); exit 1; }; };;
31703 esac
31704 done
31707 # If the user did not use the arguments to specify the items to instantiate,
31708 # then the envvar interface is used. Set only those that are not.
31709 # We use the long form for the default assignment because of an extremely
31710 # bizarre bug on SunOS 4.1.3.
31711 if $ac_need_defaults; then
31712 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31713 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31714 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31717 # Have a temporary directory for convenience. Make it in the build tree
31718 # simply because there is no reason against having it here, and in addition,
31719 # creating and moving files from /tmp can sometimes cause problems.
31720 # Hook for its removal unless debugging.
31721 # Note that there is a small window in which the directory will not be cleaned:
31722 # after its creation but before its name has been assigned to `$tmp'.
31723 $debug ||
31725 tmp=
31726 trap 'exit_status=$?
31727 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31729 trap '{ (exit 1); exit 1; }' 1 2 13 15
31731 # Create a (secure) tmp directory for tmp files.
31734 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31735 test -n "$tmp" && test -d "$tmp"
31736 } ||
31738 tmp=./conf$$-$RANDOM
31739 (umask 077 && mkdir "$tmp")
31740 } ||
31742 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31743 { (exit 1); exit 1; }
31746 # Set up the scripts for CONFIG_FILES section.
31747 # No need to generate them if there are no CONFIG_FILES.
31748 # This happens for instance with `./config.status config.h'.
31749 if test -n "$CONFIG_FILES"; then
31752 ac_cr=' '
31753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31755 ac_cs_awk_cr='\\r'
31756 else
31757 ac_cs_awk_cr=$ac_cr
31760 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31761 _ACEOF
31765 echo "cat >conf$$subs.awk <<_ACEOF" &&
31766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31767 echo "_ACEOF"
31768 } >conf$$subs.sh ||
31769 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31770 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31771 { (exit 1); exit 1; }; }
31772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31773 ac_delim='%!_!# '
31774 for ac_last_try in false false false false false :; do
31775 . ./conf$$subs.sh ||
31776 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31777 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31778 { (exit 1); exit 1; }; }
31780 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31781 if test $ac_delim_n = $ac_delim_num; then
31782 break
31783 elif $ac_last_try; then
31784 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31785 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31786 { (exit 1); exit 1; }; }
31787 else
31788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31790 done
31791 rm -f conf$$subs.sh
31793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31794 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31795 _ACEOF
31796 sed -n '
31798 s/^/S["/; s/!.*/"]=/
31801 s/^[^!]*!//
31802 :repl
31803 t repl
31804 s/'"$ac_delim"'$//
31805 t delim
31808 s/\(.\{148\}\).*/\1/
31809 t more1
31810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31813 b repl
31814 :more1
31815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31818 s/.\{148\}//
31819 t nl
31820 :delim
31822 s/\(.\{148\}\).*/\1/
31823 t more2
31824 s/["\\]/\\&/g; s/^/"/; s/$/"/
31827 :more2
31828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31831 s/.\{148\}//
31832 t delim
31833 ' <conf$$subs.awk | sed '
31834 /^[^""]/{
31836 s/\n//
31838 ' >>$CONFIG_STATUS || ac_write_fail=1
31839 rm -f conf$$subs.awk
31840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31841 _ACAWK
31842 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31843 for (key in S) S_is_set[key] = 1
31844 FS = "\a"
31848 line = $ 0
31849 nfields = split(line, field, "@")
31850 substed = 0
31851 len = length(field[1])
31852 for (i = 2; i < nfields; i++) {
31853 key = field[i]
31854 keylen = length(key)
31855 if (S_is_set[key]) {
31856 value = S[key]
31857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31858 len += length(value) + length(field[++i])
31859 substed = 1
31860 } else
31861 len += 1 + keylen
31864 print line
31867 _ACAWK
31868 _ACEOF
31869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31872 else
31874 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31875 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31876 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31877 { (exit 1); exit 1; }; }
31878 _ACEOF
31880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31882 # trailing colons and then remove the whole line if VPATH becomes empty
31883 # (actually we leave an empty line to preserve line numbers).
31884 if test "x$srcdir" = x.; then
31885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31886 s/:*\$(srcdir):*/:/
31887 s/:*\${srcdir}:*/:/
31888 s/:*@srcdir@:*/:/
31889 s/^\([^=]*=[ ]*\):*/\1/
31890 s/:*$//
31891 s/^[^=]*=[ ]*$//
31895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31896 fi # test -n "$CONFIG_FILES"
31898 # Set up the scripts for CONFIG_HEADERS section.
31899 # No need to generate them if there are no CONFIG_HEADERS.
31900 # This happens for instance with `./config.status Makefile'.
31901 if test -n "$CONFIG_HEADERS"; then
31902 cat >"$tmp/defines.awk" <<\_ACAWK ||
31903 BEGIN {
31904 _ACEOF
31906 # Transform confdefs.h into an awk script `defines.awk', embedded as
31907 # here-document in config.status, that substitutes the proper values into
31908 # config.h.in to produce config.h.
31910 # Create a delimiter string that does not exist in confdefs.h, to ease
31911 # handling of long lines.
31912 ac_delim='%!_!# '
31913 for ac_last_try in false false :; do
31914 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31915 if test -z "$ac_t"; then
31916 break
31917 elif $ac_last_try; then
31918 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31919 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31920 { (exit 1); exit 1; }; }
31921 else
31922 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31924 done
31926 # For the awk script, D is an array of macro values keyed by name,
31927 # likewise P contains macro parameters if any. Preserve backslash
31928 # newline sequences.
31930 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31931 sed -n '
31932 s/.\{148\}/&'"$ac_delim"'/g
31933 t rset
31934 :rset
31935 s/^[ ]*#[ ]*define[ ][ ]*/ /
31936 t def
31938 :def
31939 s/\\$//
31940 t bsnl
31941 s/["\\]/\\&/g
31942 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31943 D["\1"]=" \3"/p
31944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31946 :bsnl
31947 s/["\\]/\\&/g
31948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31949 D["\1"]=" \3\\\\\\n"\\/p
31950 t cont
31951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31952 t cont
31954 :cont
31956 s/.\{148\}/&'"$ac_delim"'/g
31957 t clear
31958 :clear
31959 s/\\$//
31960 t bsnlc
31961 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31963 :bsnlc
31964 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31965 b cont
31966 ' <confdefs.h | sed '
31967 s/'"$ac_delim"'/"\\\
31968 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31971 for (key in D) D_is_set[key] = 1
31972 FS = "\a"
31974 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31975 line = \$ 0
31976 split(line, arg, " ")
31977 if (arg[1] == "#") {
31978 defundef = arg[2]
31979 mac1 = arg[3]
31980 } else {
31981 defundef = substr(arg[1], 2)
31982 mac1 = arg[2]
31984 split(mac1, mac2, "(") #)
31985 macro = mac2[1]
31986 prefix = substr(line, 1, index(line, defundef) - 1)
31987 if (D_is_set[macro]) {
31988 # Preserve the white space surrounding the "#".
31989 print prefix "define", macro P[macro] D[macro]
31990 next
31991 } else {
31992 # Replace #undef with comments. This is necessary, for example,
31993 # in the case of _POSIX_SOURCE, which is predefined and required
31994 # on some systems where configure will not decide to define it.
31995 if (defundef == "undef") {
31996 print "/*", prefix defundef, macro, "*/"
31997 next
32001 { print }
32002 _ACAWK
32003 _ACEOF
32004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32005 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
32006 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
32007 { (exit 1); exit 1; }; }
32008 fi # test -n "$CONFIG_HEADERS"
32011 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32012 shift
32013 for ac_tag
32015 case $ac_tag in
32016 :[FHLC]) ac_mode=$ac_tag; continue;;
32017 esac
32018 case $ac_mode$ac_tag in
32019 :[FHL]*:*);;
32020 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
32021 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
32022 { (exit 1); exit 1; }; };;
32023 :[FH]-) ac_tag=-:-;;
32024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32025 esac
32026 ac_save_IFS=$IFS
32027 IFS=:
32028 set x $ac_tag
32029 IFS=$ac_save_IFS
32030 shift
32031 ac_file=$1
32032 shift
32034 case $ac_mode in
32035 :L) ac_source=$1;;
32036 :[FH])
32037 ac_file_inputs=
32038 for ac_f
32040 case $ac_f in
32041 -) ac_f="$tmp/stdin";;
32042 *) # Look for the file first in the build tree, then in the source tree
32043 # (if the path is not absolute). The absolute path cannot be DOS-style,
32044 # because $ac_f cannot contain `:'.
32045 test -f "$ac_f" ||
32046 case $ac_f in
32047 [\\/$]*) false;;
32048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32049 esac ||
32050 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
32051 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
32052 { (exit 1); exit 1; }; };;
32053 esac
32054 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32055 ac_file_inputs="$ac_file_inputs '$ac_f'"
32056 done
32058 # Let's still pretend it is `configure' which instantiates (i.e., don't
32059 # use $as_me), people would be surprised to read:
32060 # /* config.h. Generated by config.status. */
32061 configure_input='Generated from '`
32062 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32063 `' by configure.'
32064 if test x"$ac_file" != x-; then
32065 configure_input="$ac_file. $configure_input"
32066 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
32067 $as_echo "$as_me: creating $ac_file" >&6;}
32069 # Neutralize special characters interpreted by sed in replacement strings.
32070 case $configure_input in #(
32071 *\&* | *\|* | *\\* )
32072 ac_sed_conf_input=`$as_echo "$configure_input" |
32073 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32074 *) ac_sed_conf_input=$configure_input;;
32075 esac
32077 case $ac_tag in
32078 *:-:* | *:-) cat >"$tmp/stdin" \
32079 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32080 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32081 { (exit 1); exit 1; }; } ;;
32082 esac
32084 esac
32086 ac_dir=`$as_dirname -- "$ac_file" ||
32087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32088 X"$ac_file" : 'X\(//\)[^/]' \| \
32089 X"$ac_file" : 'X\(//\)$' \| \
32090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32091 $as_echo X"$ac_file" |
32092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32093 s//\1/
32096 /^X\(\/\/\)[^/].*/{
32097 s//\1/
32100 /^X\(\/\/\)$/{
32101 s//\1/
32104 /^X\(\/\).*/{
32105 s//\1/
32108 s/.*/./; q'`
32109 { as_dir="$ac_dir"
32110 case $as_dir in #(
32111 -*) as_dir=./$as_dir;;
32112 esac
32113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
32114 as_dirs=
32115 while :; do
32116 case $as_dir in #(
32117 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32118 *) as_qdir=$as_dir;;
32119 esac
32120 as_dirs="'$as_qdir' $as_dirs"
32121 as_dir=`$as_dirname -- "$as_dir" ||
32122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32123 X"$as_dir" : 'X\(//\)[^/]' \| \
32124 X"$as_dir" : 'X\(//\)$' \| \
32125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32126 $as_echo X"$as_dir" |
32127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32128 s//\1/
32131 /^X\(\/\/\)[^/].*/{
32132 s//\1/
32135 /^X\(\/\/\)$/{
32136 s//\1/
32139 /^X\(\/\).*/{
32140 s//\1/
32143 s/.*/./; q'`
32144 test -d "$as_dir" && break
32145 done
32146 test -z "$as_dirs" || eval "mkdir $as_dirs"
32147 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
32148 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
32149 { (exit 1); exit 1; }; }; }
32150 ac_builddir=.
32152 case "$ac_dir" in
32153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32155 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32156 # A ".." for each directory in $ac_dir_suffix.
32157 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32158 case $ac_top_builddir_sub in
32159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32161 esac ;;
32162 esac
32163 ac_abs_top_builddir=$ac_pwd
32164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32165 # for backward compatibility:
32166 ac_top_builddir=$ac_top_build_prefix
32168 case $srcdir in
32169 .) # We are building in place.
32170 ac_srcdir=.
32171 ac_top_srcdir=$ac_top_builddir_sub
32172 ac_abs_top_srcdir=$ac_pwd ;;
32173 [\\/]* | ?:[\\/]* ) # Absolute name.
32174 ac_srcdir=$srcdir$ac_dir_suffix;
32175 ac_top_srcdir=$srcdir
32176 ac_abs_top_srcdir=$srcdir ;;
32177 *) # Relative name.
32178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32179 ac_top_srcdir=$ac_top_build_prefix$srcdir
32180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32181 esac
32182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32185 case $ac_mode in
32188 # CONFIG_FILE
32191 case $INSTALL in
32192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32194 esac
32195 _ACEOF
32197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32198 # If the template does not know about datarootdir, expand it.
32199 # FIXME: This hack should be removed a few years after 2.60.
32200 ac_datarootdir_hack=; ac_datarootdir_seen=
32202 ac_sed_dataroot='
32203 /datarootdir/ {
32207 /@datadir@/p
32208 /@docdir@/p
32209 /@infodir@/p
32210 /@localedir@/p
32211 /@mandir@/p
32213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32214 *datarootdir*) ac_datarootdir_seen=yes;;
32215 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32216 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32218 _ACEOF
32219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32220 ac_datarootdir_hack='
32221 s&@datadir@&$datadir&g
32222 s&@docdir@&$docdir&g
32223 s&@infodir@&$infodir&g
32224 s&@localedir@&$localedir&g
32225 s&@mandir@&$mandir&g
32226 s&\\\${datarootdir}&$datarootdir&g' ;;
32227 esac
32228 _ACEOF
32230 # Neutralize VPATH when `$srcdir' = `.'.
32231 # Shell code in configure.ac might set extrasub.
32232 # FIXME: do we really want to maintain this feature?
32233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32234 ac_sed_extra="$ac_vpsub
32235 $extrasub
32236 _ACEOF
32237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32240 s|@configure_input@|$ac_sed_conf_input|;t t
32241 s&@top_builddir@&$ac_top_builddir_sub&;t t
32242 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32243 s&@srcdir@&$ac_srcdir&;t t
32244 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32245 s&@top_srcdir@&$ac_top_srcdir&;t t
32246 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32247 s&@builddir@&$ac_builddir&;t t
32248 s&@abs_builddir@&$ac_abs_builddir&;t t
32249 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32250 s&@INSTALL@&$ac_INSTALL&;t t
32251 $ac_datarootdir_hack
32253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32254 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32255 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32256 { (exit 1); exit 1; }; }
32258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32261 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32262 which seems to be undefined. Please make sure it is defined." >&5
32263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32264 which seems to be undefined. Please make sure it is defined." >&2;}
32266 rm -f "$tmp/stdin"
32267 case $ac_file in
32268 -) cat "$tmp/out" && rm -f "$tmp/out";;
32269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32270 esac \
32271 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32272 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32273 { (exit 1); exit 1; }; }
32277 # CONFIG_HEADER
32279 if test x"$ac_file" != x-; then
32281 $as_echo "/* $configure_input */" \
32282 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32283 } >"$tmp/config.h" \
32284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32285 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32286 { (exit 1); exit 1; }; }
32287 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32288 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32290 else
32291 rm -f "$ac_file"
32292 mv "$tmp/config.h" "$ac_file" \
32293 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
32294 $as_echo "$as_me: error: could not create $ac_file" >&2;}
32295 { (exit 1); exit 1; }; }
32297 else
32298 $as_echo "/* $configure_input */" \
32299 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32300 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
32301 $as_echo "$as_me: error: could not create -" >&2;}
32302 { (exit 1); exit 1; }; }
32306 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
32307 $as_echo "$as_me: executing $ac_file commands" >&6;}
32309 esac
32312 case $ac_file$ac_mode in
32313 "libtool":C)
32315 # See if we are running on zsh, and set the options which allow our
32316 # commands through without removal of \ escapes.
32317 if test -n "${ZSH_VERSION+set}" ; then
32318 setopt NO_GLOB_SUBST
32321 cfgfile="${ofile}T"
32322 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32323 $RM "$cfgfile"
32325 cat <<_LT_EOF >> "$cfgfile"
32326 #! $SHELL
32328 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32329 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32331 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32333 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32334 # 2006, 2007, 2008 Free Software Foundation, Inc.
32335 # Written by Gordon Matzigkeit, 1996
32337 # This file is part of GNU Libtool.
32339 # GNU Libtool is free software; you can redistribute it and/or
32340 # modify it under the terms of the GNU General Public License as
32341 # published by the Free Software Foundation; either version 2 of
32342 # the License, or (at your option) any later version.
32344 # As a special exception to the GNU General Public License,
32345 # if you distribute this file as part of a program or library that
32346 # is built using GNU Libtool, you may include this file under the
32347 # same distribution terms that you use for the rest of that program.
32349 # GNU Libtool is distributed in the hope that it will be useful,
32350 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32351 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32352 # GNU General Public License for more details.
32354 # You should have received a copy of the GNU General Public License
32355 # along with GNU Libtool; see the file COPYING. If not, a copy
32356 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32357 # obtained by writing to the Free Software Foundation, Inc.,
32358 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32361 # The names of the tagged configurations supported by this script.
32362 available_tags="CXX "
32364 # ### BEGIN LIBTOOL CONFIG
32366 # Which release of libtool.m4 was used?
32367 macro_version=$macro_version
32368 macro_revision=$macro_revision
32370 # Assembler program.
32371 AS=$AS
32373 # DLL creation program.
32374 DLLTOOL=$DLLTOOL
32376 # Object dumper program.
32377 OBJDUMP=$OBJDUMP
32379 # Whether or not to build shared libraries.
32380 build_libtool_libs=$enable_shared
32382 # Whether or not to build static libraries.
32383 build_old_libs=$enable_static
32385 # What type of objects to build.
32386 pic_mode=$pic_mode
32388 # Whether or not to optimize for fast installation.
32389 fast_install=$enable_fast_install
32391 # The host system.
32392 host_alias=$host_alias
32393 host=$host
32394 host_os=$host_os
32396 # The build system.
32397 build_alias=$build_alias
32398 build=$build
32399 build_os=$build_os
32401 # A sed program that does not truncate output.
32402 SED=$lt_SED
32404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32405 Xsed="\$SED -e 1s/^X//"
32407 # A grep program that handles long lines.
32408 GREP=$lt_GREP
32410 # An ERE matcher.
32411 EGREP=$lt_EGREP
32413 # A literal string matcher.
32414 FGREP=$lt_FGREP
32416 # A BSD- or MS-compatible name lister.
32417 NM=$lt_NM
32419 # Whether we need soft or hard links.
32420 LN_S=$lt_LN_S
32422 # What is the maximum length of a command?
32423 max_cmd_len=$max_cmd_len
32425 # Object file suffix (normally "o").
32426 objext=$ac_objext
32428 # Executable file suffix (normally "").
32429 exeext=$exeext
32431 # whether the shell understands "unset".
32432 lt_unset=$lt_unset
32434 # turn spaces into newlines.
32435 SP2NL=$lt_lt_SP2NL
32437 # turn newlines into spaces.
32438 NL2SP=$lt_lt_NL2SP
32440 # How to create reloadable object files.
32441 reload_flag=$lt_reload_flag
32442 reload_cmds=$lt_reload_cmds
32444 # Method to check whether dependent libraries are shared objects.
32445 deplibs_check_method=$lt_deplibs_check_method
32447 # Command to use when deplibs_check_method == "file_magic".
32448 file_magic_cmd=$lt_file_magic_cmd
32450 # The archiver.
32451 AR=$lt_AR
32452 AR_FLAGS=$lt_AR_FLAGS
32454 # A symbol stripping program.
32455 STRIP=$lt_STRIP
32457 # Commands used to install an old-style archive.
32458 RANLIB=$lt_RANLIB
32459 old_postinstall_cmds=$lt_old_postinstall_cmds
32460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32462 # A C compiler.
32463 LTCC=$lt_CC
32465 # LTCC compiler flags.
32466 LTCFLAGS=$lt_CFLAGS
32468 # Take the output of nm and produce a listing of raw symbols and C names.
32469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32471 # Transform the output of nm in a proper C declaration.
32472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32474 # Transform the output of nm in a C name address pair.
32475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32477 # Transform the output of nm in a C name address pair when lib prefix is needed.
32478 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32480 # The name of the directory that contains temporary libtool files.
32481 objdir=$objdir
32483 # Shell to use when invoking shell scripts.
32484 SHELL=$lt_SHELL
32486 # An echo program that does not interpret backslashes.
32487 ECHO=$lt_ECHO
32489 # Used to examine libraries when file_magic_cmd begins with "file".
32490 MAGIC_CMD=$MAGIC_CMD
32492 # Must we lock files when doing compilation?
32493 need_locks=$lt_need_locks
32495 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32496 DSYMUTIL=$lt_DSYMUTIL
32498 # Tool to change global to local symbols on Mac OS X.
32499 NMEDIT=$lt_NMEDIT
32501 # Tool to manipulate fat objects and archives on Mac OS X.
32502 LIPO=$lt_LIPO
32504 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32505 OTOOL=$lt_OTOOL
32507 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32508 OTOOL64=$lt_OTOOL64
32510 # Old archive suffix (normally "a").
32511 libext=$libext
32513 # Shared library suffix (normally ".so").
32514 shrext_cmds=$lt_shrext_cmds
32516 # The commands to extract the exported symbol list from a shared archive.
32517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32519 # Variables whose values should be saved in libtool wrapper scripts and
32520 # restored at link time.
32521 variables_saved_for_relink=$lt_variables_saved_for_relink
32523 # Do we need the "lib" prefix for modules?
32524 need_lib_prefix=$need_lib_prefix
32526 # Do we need a version for libraries?
32527 need_version=$need_version
32529 # Library versioning type.
32530 version_type=$version_type
32532 # Shared library runtime path variable.
32533 runpath_var=$runpath_var
32535 # Shared library path variable.
32536 shlibpath_var=$shlibpath_var
32538 # Is shlibpath searched before the hard-coded library search path?
32539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32541 # Format of library name prefix.
32542 libname_spec=$lt_libname_spec
32544 # List of archive names. First name is the real one, the rest are links.
32545 # The last name is the one that the linker finds with -lNAME
32546 library_names_spec=$lt_library_names_spec
32548 # The coded name of the library, if different from the real name.
32549 soname_spec=$lt_soname_spec
32551 # Command to use after installation of a shared archive.
32552 postinstall_cmds=$lt_postinstall_cmds
32554 # Command to use after uninstallation of a shared archive.
32555 postuninstall_cmds=$lt_postuninstall_cmds
32557 # Commands used to finish a libtool library installation in a directory.
32558 finish_cmds=$lt_finish_cmds
32560 # As "finish_cmds", except a single script fragment to be evaled but
32561 # not shown.
32562 finish_eval=$lt_finish_eval
32564 # Whether we should hardcode library paths into libraries.
32565 hardcode_into_libs=$hardcode_into_libs
32567 # Compile-time system search path for libraries.
32568 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32570 # Run-time system search path for libraries.
32571 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32573 # Whether dlopen is supported.
32574 dlopen_support=$enable_dlopen
32576 # Whether dlopen of programs is supported.
32577 dlopen_self=$enable_dlopen_self
32579 # Whether dlopen of statically linked programs is supported.
32580 dlopen_self_static=$enable_dlopen_self_static
32582 # Commands to strip libraries.
32583 old_striplib=$lt_old_striplib
32584 striplib=$lt_striplib
32587 # The linker used to build libraries.
32588 LD=$lt_LD
32590 # Commands used to build an old-style archive.
32591 old_archive_cmds=$lt_old_archive_cmds
32593 # A language specific compiler.
32594 CC=$lt_compiler
32596 # Is the compiler the GNU compiler?
32597 with_gcc=$GCC
32599 # Compiler flag to turn off builtin functions.
32600 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32602 # How to pass a linker flag through the compiler.
32603 wl=$lt_lt_prog_compiler_wl
32605 # Additional compiler flags for building library objects.
32606 pic_flag=$lt_lt_prog_compiler_pic
32608 # Compiler flag to prevent dynamic linking.
32609 link_static_flag=$lt_lt_prog_compiler_static
32611 # Does compiler simultaneously support -c and -o options?
32612 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32614 # Whether or not to add -lc for building shared libraries.
32615 build_libtool_need_lc=$archive_cmds_need_lc
32617 # Whether or not to disallow shared libs when runtime libs are static.
32618 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32620 # Compiler flag to allow reflexive dlopens.
32621 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32623 # Compiler flag to generate shared objects directly from archives.
32624 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32626 # Whether the compiler copes with passing no objects directly.
32627 compiler_needs_object=$lt_compiler_needs_object
32629 # Create an old-style archive from a shared archive.
32630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32632 # Create a temporary old-style archive to link instead of a shared archive.
32633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32635 # Commands used to build a shared archive.
32636 archive_cmds=$lt_archive_cmds
32637 archive_expsym_cmds=$lt_archive_expsym_cmds
32639 # Commands used to build a loadable module if different from building
32640 # a shared archive.
32641 module_cmds=$lt_module_cmds
32642 module_expsym_cmds=$lt_module_expsym_cmds
32644 # Whether we are building with GNU ld or not.
32645 with_gnu_ld=$lt_with_gnu_ld
32647 # Flag that allows shared libraries with undefined symbols to be built.
32648 allow_undefined_flag=$lt_allow_undefined_flag
32650 # Flag that enforces no undefined symbols.
32651 no_undefined_flag=$lt_no_undefined_flag
32653 # Flag to hardcode \$libdir into a binary during linking.
32654 # This must work even if \$libdir does not exist
32655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32657 # If ld is used when linking, flag to hardcode \$libdir into a binary
32658 # during linking. This must work even if \$libdir does not exist.
32659 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32661 # Whether we need a single "-rpath" flag with a separated argument.
32662 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32665 # DIR into the resulting binary.
32666 hardcode_direct=$hardcode_direct
32668 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32669 # DIR into the resulting binary and the resulting library dependency is
32670 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32671 # library is relocated.
32672 hardcode_direct_absolute=$hardcode_direct_absolute
32674 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32675 # into the resulting binary.
32676 hardcode_minus_L=$hardcode_minus_L
32678 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32679 # into the resulting binary.
32680 hardcode_shlibpath_var=$hardcode_shlibpath_var
32682 # Set to "yes" if building a shared library automatically hardcodes DIR
32683 # into the library and all subsequent libraries and executables linked
32684 # against it.
32685 hardcode_automatic=$hardcode_automatic
32687 # Set to yes if linker adds runtime paths of dependent libraries
32688 # to runtime path list.
32689 inherit_rpath=$inherit_rpath
32691 # Whether libtool must link a program against all its dependency libraries.
32692 link_all_deplibs=$link_all_deplibs
32694 # Fix the shell variable \$srcfile for the compiler.
32695 fix_srcfile_path=$lt_fix_srcfile_path
32697 # Set to "yes" if exported symbols are required.
32698 always_export_symbols=$always_export_symbols
32700 # The commands to list exported symbols.
32701 export_symbols_cmds=$lt_export_symbols_cmds
32703 # Symbols that should not be listed in the preloaded symbols.
32704 exclude_expsyms=$lt_exclude_expsyms
32706 # Symbols that must always be exported.
32707 include_expsyms=$lt_include_expsyms
32709 # Commands necessary for linking programs (against libraries) with templates.
32710 prelink_cmds=$lt_prelink_cmds
32712 # Specify filename containing input files.
32713 file_list_spec=$lt_file_list_spec
32715 # How to hardcode a shared library path into an executable.
32716 hardcode_action=$hardcode_action
32718 # The directories searched by this compiler when creating a shared library.
32719 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32721 # Dependencies to place before and after the objects being linked to
32722 # create a shared library.
32723 predep_objects=$lt_predep_objects
32724 postdep_objects=$lt_postdep_objects
32725 predeps=$lt_predeps
32726 postdeps=$lt_postdeps
32728 # The library search path used internally by the compiler when linking
32729 # a shared library.
32730 compiler_lib_search_path=$lt_compiler_lib_search_path
32732 # ### END LIBTOOL CONFIG
32734 _LT_EOF
32736 case $host_os in
32737 aix3*)
32738 cat <<\_LT_EOF >> "$cfgfile"
32739 # AIX sometimes has problems with the GCC collect2 program. For some
32740 # reason, if we set the COLLECT_NAMES environment variable, the problems
32741 # vanish in a puff of smoke.
32742 if test "X${COLLECT_NAMES+set}" != Xset; then
32743 COLLECT_NAMES=
32744 export COLLECT_NAMES
32746 _LT_EOF
32748 esac
32751 ltmain="$ac_aux_dir/ltmain.sh"
32754 # We use sed instead of cat because bash on DJGPP gets confused if
32755 # if finds mixed CR/LF and LF-only lines. Since sed operates in
32756 # text mode, it properly converts lines to CR/LF. This bash problem
32757 # is reportedly fixed, but why not run on old versions too?
32758 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32759 || (rm -f "$cfgfile"; exit 1)
32761 case $xsi_shell in
32762 yes)
32763 cat << \_LT_EOF >> "$cfgfile"
32765 # func_dirname file append nondir_replacement
32766 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32767 # otherwise set result to NONDIR_REPLACEMENT.
32768 func_dirname ()
32770 case ${1} in
32771 */*) func_dirname_result="${1%/*}${2}" ;;
32772 * ) func_dirname_result="${3}" ;;
32773 esac
32776 # func_basename file
32777 func_basename ()
32779 func_basename_result="${1##*/}"
32782 # func_dirname_and_basename file append nondir_replacement
32783 # perform func_basename and func_dirname in a single function
32784 # call:
32785 # dirname: Compute the dirname of FILE. If nonempty,
32786 # add APPEND to the result, otherwise set result
32787 # to NONDIR_REPLACEMENT.
32788 # value returned in "$func_dirname_result"
32789 # basename: Compute filename of FILE.
32790 # value retuned in "$func_basename_result"
32791 # Implementation must be kept synchronized with func_dirname
32792 # and func_basename. For efficiency, we do not delegate to
32793 # those functions but instead duplicate the functionality here.
32794 func_dirname_and_basename ()
32796 case ${1} in
32797 */*) func_dirname_result="${1%/*}${2}" ;;
32798 * ) func_dirname_result="${3}" ;;
32799 esac
32800 func_basename_result="${1##*/}"
32803 # func_stripname prefix suffix name
32804 # strip PREFIX and SUFFIX off of NAME.
32805 # PREFIX and SUFFIX must not contain globbing or regex special
32806 # characters, hashes, percent signs, but SUFFIX may contain a leading
32807 # dot (in which case that matches only a dot).
32808 func_stripname ()
32810 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32811 # positional parameters, so assign one to ordinary parameter first.
32812 func_stripname_result=${3}
32813 func_stripname_result=${func_stripname_result#"${1}"}
32814 func_stripname_result=${func_stripname_result%"${2}"}
32817 # func_opt_split
32818 func_opt_split ()
32820 func_opt_split_opt=${1%%=*}
32821 func_opt_split_arg=${1#*=}
32824 # func_lo2o object
32825 func_lo2o ()
32827 case ${1} in
32828 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32829 *) func_lo2o_result=${1} ;;
32830 esac
32833 # func_xform libobj-or-source
32834 func_xform ()
32836 func_xform_result=${1%.*}.lo
32839 # func_arith arithmetic-term...
32840 func_arith ()
32842 func_arith_result=$(( $* ))
32845 # func_len string
32846 # STRING may not start with a hyphen.
32847 func_len ()
32849 func_len_result=${#1}
32852 _LT_EOF
32854 *) # Bourne compatible functions.
32855 cat << \_LT_EOF >> "$cfgfile"
32857 # func_dirname file append nondir_replacement
32858 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
32859 # otherwise set result to NONDIR_REPLACEMENT.
32860 func_dirname ()
32862 # Extract subdirectory from the argument.
32863 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32864 if test "X$func_dirname_result" = "X${1}"; then
32865 func_dirname_result="${3}"
32866 else
32867 func_dirname_result="$func_dirname_result${2}"
32871 # func_basename file
32872 func_basename ()
32874 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32878 # func_stripname prefix suffix name
32879 # strip PREFIX and SUFFIX off of NAME.
32880 # PREFIX and SUFFIX must not contain globbing or regex special
32881 # characters, hashes, percent signs, but SUFFIX may contain a leading
32882 # dot (in which case that matches only a dot).
32883 # func_strip_suffix prefix name
32884 func_stripname ()
32886 case ${2} in
32887 .*) func_stripname_result=`$ECHO "X${3}" \
32888 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32889 *) func_stripname_result=`$ECHO "X${3}" \
32890 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32891 esac
32894 # sed scripts:
32895 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32896 my_sed_long_arg='1s/^-[^=]*=//'
32898 # func_opt_split
32899 func_opt_split ()
32901 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32902 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32905 # func_lo2o object
32906 func_lo2o ()
32908 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32911 # func_xform libobj-or-source
32912 func_xform ()
32914 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32917 # func_arith arithmetic-term...
32918 func_arith ()
32920 func_arith_result=`expr "$@"`
32923 # func_len string
32924 # STRING may not start with a hyphen.
32925 func_len ()
32927 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32930 _LT_EOF
32931 esac
32933 case $lt_shell_append in
32934 yes)
32935 cat << \_LT_EOF >> "$cfgfile"
32937 # func_append var value
32938 # Append VALUE to the end of shell variable VAR.
32939 func_append ()
32941 eval "$1+=\$2"
32943 _LT_EOF
32946 cat << \_LT_EOF >> "$cfgfile"
32948 # func_append var value
32949 # Append VALUE to the end of shell variable VAR.
32950 func_append ()
32952 eval "$1=\$$1\$2"
32955 _LT_EOF
32957 esac
32960 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32961 || (rm -f "$cfgfile"; exit 1)
32963 mv -f "$cfgfile" "$ofile" ||
32964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32965 chmod +x "$ofile"
32968 cat <<_LT_EOF >> "$ofile"
32970 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32972 # The linker used to build libraries.
32973 LD=$lt_LD_CXX
32975 # Commands used to build an old-style archive.
32976 old_archive_cmds=$lt_old_archive_cmds_CXX
32978 # A language specific compiler.
32979 CC=$lt_compiler_CXX
32981 # Is the compiler the GNU compiler?
32982 with_gcc=$GCC_CXX
32984 # Compiler flag to turn off builtin functions.
32985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32987 # How to pass a linker flag through the compiler.
32988 wl=$lt_lt_prog_compiler_wl_CXX
32990 # Additional compiler flags for building library objects.
32991 pic_flag=$lt_lt_prog_compiler_pic_CXX
32993 # Compiler flag to prevent dynamic linking.
32994 link_static_flag=$lt_lt_prog_compiler_static_CXX
32996 # Does compiler simultaneously support -c and -o options?
32997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32999 # Whether or not to add -lc for building shared libraries.
33000 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33002 # Whether or not to disallow shared libs when runtime libs are static.
33003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33005 # Compiler flag to allow reflexive dlopens.
33006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33008 # Compiler flag to generate shared objects directly from archives.
33009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33011 # Whether the compiler copes with passing no objects directly.
33012 compiler_needs_object=$lt_compiler_needs_object_CXX
33014 # Create an old-style archive from a shared archive.
33015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33017 # Create a temporary old-style archive to link instead of a shared archive.
33018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33020 # Commands used to build a shared archive.
33021 archive_cmds=$lt_archive_cmds_CXX
33022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33024 # Commands used to build a loadable module if different from building
33025 # a shared archive.
33026 module_cmds=$lt_module_cmds_CXX
33027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33029 # Whether we are building with GNU ld or not.
33030 with_gnu_ld=$lt_with_gnu_ld_CXX
33032 # Flag that allows shared libraries with undefined symbols to be built.
33033 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33035 # Flag that enforces no undefined symbols.
33036 no_undefined_flag=$lt_no_undefined_flag_CXX
33038 # Flag to hardcode \$libdir into a binary during linking.
33039 # This must work even if \$libdir does not exist
33040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33042 # If ld is used when linking, flag to hardcode \$libdir into a binary
33043 # during linking. This must work even if \$libdir does not exist.
33044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33046 # Whether we need a single "-rpath" flag with a separated argument.
33047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33050 # DIR into the resulting binary.
33051 hardcode_direct=$hardcode_direct_CXX
33053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33054 # DIR into the resulting binary and the resulting library dependency is
33055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33056 # library is relocated.
33057 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33060 # into the resulting binary.
33061 hardcode_minus_L=$hardcode_minus_L_CXX
33063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33064 # into the resulting binary.
33065 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33067 # Set to "yes" if building a shared library automatically hardcodes DIR
33068 # into the library and all subsequent libraries and executables linked
33069 # against it.
33070 hardcode_automatic=$hardcode_automatic_CXX
33072 # Set to yes if linker adds runtime paths of dependent libraries
33073 # to runtime path list.
33074 inherit_rpath=$inherit_rpath_CXX
33076 # Whether libtool must link a program against all its dependency libraries.
33077 link_all_deplibs=$link_all_deplibs_CXX
33079 # Fix the shell variable \$srcfile for the compiler.
33080 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33082 # Set to "yes" if exported symbols are required.
33083 always_export_symbols=$always_export_symbols_CXX
33085 # The commands to list exported symbols.
33086 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33088 # Symbols that should not be listed in the preloaded symbols.
33089 exclude_expsyms=$lt_exclude_expsyms_CXX
33091 # Symbols that must always be exported.
33092 include_expsyms=$lt_include_expsyms_CXX
33094 # Commands necessary for linking programs (against libraries) with templates.
33095 prelink_cmds=$lt_prelink_cmds_CXX
33097 # Specify filename containing input files.
33098 file_list_spec=$lt_file_list_spec_CXX
33100 # How to hardcode a shared library path into an executable.
33101 hardcode_action=$hardcode_action_CXX
33103 # The directories searched by this compiler when creating a shared library.
33104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33106 # Dependencies to place before and after the objects being linked to
33107 # create a shared library.
33108 predep_objects=$lt_predep_objects_CXX
33109 postdep_objects=$lt_postdep_objects_CXX
33110 predeps=$lt_predeps_CXX
33111 postdeps=$lt_postdeps_CXX
33113 # The library search path used internally by the compiler when linking
33114 # a shared library.
33115 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33117 # ### END LIBTOOL TAG CONFIG: CXX
33118 _LT_EOF
33121 "default":C)
33122 : >build-deps
33123 if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
33126 esac
33127 done # for ac_tag
33130 { (exit 0); exit 0; }
33131 _ACEOF
33132 chmod +x $CONFIG_STATUS
33133 ac_clean_files=$ac_clean_files_save
33135 test $ac_write_fail = 0 ||
33136 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
33137 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
33138 { (exit 1); exit 1; }; }
33141 # configure is writing to config.log, and then calls config.status.
33142 # config.status does its own redirection, appending to config.log.
33143 # Unfortunately, on DOS this fails, as config.log is still kept open
33144 # by configure, so config.status won't be able to write to it; its
33145 # output is simply discarded. So we exec the FD to /dev/null,
33146 # effectively closing config.log, so it can be properly (re)opened and
33147 # appended to by config.status. When coming back to configure, we
33148 # need to make the FD available again.
33149 if test "$no_create" != yes; then
33150 ac_cs_success=:
33151 ac_config_status_args=
33152 test "$silent" = yes &&
33153 ac_config_status_args="$ac_config_status_args --quiet"
33154 exec 5>/dev/null
33155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33156 exec 5>>config.log
33157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33158 # would make configure fail if this is the last instruction.
33159 $ac_cs_success || { (exit 1); exit 1; }
33161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33162 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}