Update changelog
[platform/upstream/SDL.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
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   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
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
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="README"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 SDL_MAJOR_VERSION
803 SDL_MINOR_VERSION
804 SDL_MICRO_VERSION
805 SDL_INTERFACE_AGE
806 SDL_BINARY_AGE
807 SDL_VERSION
808 AS
809 DLLTOOL
810 OBJDUMP
811 LIBTOOL
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
827 SED
828 GREP
829 EGREP
830 FGREP
831 LD
832 DUMPBIN
833 ac_ct_DUMPBIN
834 NM
835 LN_S
836 AR
837 STRIP
838 RANLIB
839 lt_ECHO
840 DSYMUTIL
841 NMEDIT
842 LIPO
843 OTOOL
844 OTOOL64
845 CPP
846 LT_RELEASE
847 LT_CURRENT
848 LT_REVISION
849 LT_AGE
850 CXX
851 CXXFLAGS
852 ac_ct_CXX
853 CXXCPP
854 INSTALL_PROGRAM
855 INSTALL_SCRIPT
856 INSTALL_DATA
857 SET_MAKE
858 WINDRES
859 ALLOCA
860 LIBOBJS
861 POW_LIB
862 ALSA_CFLAGS
863 ALSA_LIBS
864 ESD_CONFIG
865 ESD_CFLAGS
866 ESD_LIBS
867 PKG_CONFIG
868 ARTSCONFIG
869 NASM
870 NASMFLAGS
871 XMKMF
872 X_CFLAGS
873 X_PRE_LIBS
874 X_LIBS
875 X_EXTRA_LIBS
876 DIRECTFBCONFIG
877 CACACONFIG
878 OSMESA_CONFIG
879 PTH_CONFIG
880 SDL_CFLAGS
881 SDL_LIBS
882 SDL_STATIC_LIBS
883 SDL_RLD_FLAGS
884 ENABLE_SHARED_TRUE
885 ENABLE_SHARED_FALSE
886 ENABLE_STATIC_TRUE
887 ENABLE_STATIC_FALSE
888 ac_aux_dir
889 INCLUDE
890 SOURCES
891 OBJECTS
892 SDLMAIN_SOURCES
893 SDLMAIN_OBJECTS
894 SDLMAIN_LDFLAGS
895 BUILD_CFLAGS
896 EXTRA_CFLAGS
897 BUILD_LDFLAGS
898 EXTRA_LDFLAGS
899 LTLIBOBJS'
900 ac_subst_files=''
901       ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CXXCPP
914 XMKMF'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967   # If the previous option needs an argument, assign it.
968   if test -n "$ac_prev"; then
969     eval $ac_prev=\$ac_option
970     ac_prev=
971     continue
972   fi
973
974   case $ac_option in
975   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976   *)    ac_optarg=yes ;;
977   esac
978
979   # Accept the important Cygnus configure options, so we can diagnose typos.
980
981   case $ac_dashdash$ac_option in
982   --)
983     ac_dashdash=yes ;;
984
985   -bindir | --bindir | --bindi | --bind | --bin | --bi)
986     ac_prev=bindir ;;
987   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988     bindir=$ac_optarg ;;
989
990   -build | --build | --buil | --bui | --bu)
991     ac_prev=build_alias ;;
992   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993     build_alias=$ac_optarg ;;
994
995   -cache-file | --cache-file | --cache-fil | --cache-fi \
996   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997     ac_prev=cache_file ;;
998   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000     cache_file=$ac_optarg ;;
1001
1002   --config-cache | -C)
1003     cache_file=config.cache ;;
1004
1005   -datadir | --datadir | --datadi | --datad)
1006     ac_prev=datadir ;;
1007   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008     datadir=$ac_optarg ;;
1009
1010   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011   | --dataroo | --dataro | --datar)
1012     ac_prev=datarootdir ;;
1013   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015     datarootdir=$ac_optarg ;;
1016
1017   -disable-* | --disable-*)
1018     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022    { (exit 1); exit 1; }; }
1023     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024     eval enable_$ac_feature=no ;;
1025
1026   -docdir | --docdir | --docdi | --doc | --do)
1027     ac_prev=docdir ;;
1028   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029     docdir=$ac_optarg ;;
1030
1031   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032     ac_prev=dvidir ;;
1033   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034     dvidir=$ac_optarg ;;
1035
1036   -enable-* | --enable-*)
1037     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043     eval enable_$ac_feature=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       { echo "$as_me: error: invalid package name: $ac_package" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240     eval with_$ac_package=\$ac_optarg ;;
1241
1242   -without-* | --without-*)
1243     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       { echo "$as_me: error: invalid package name: $ac_package" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249     eval with_$ac_package=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271    { (exit 1); exit 1; }; }
1272     ;;
1273
1274   *=*)
1275     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279    { (exit 1); exit 1; }; }
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   { echo "$as_me: error: missing argument to $ac_option" >&2
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 # Be sure to have absolute directory names.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312    { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327     If a cross compiler is detected then cross compile mode will be used." >&2
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   { echo "$as_me: error: Working directory cannot be determined" >&2
1343    { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   { echo "$as_me: error: pwd does not report name of working directory" >&2
1346    { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$0" : 'X\(//\)[^/]' \| \
1356          X"$0" : 'X\(//\)$' \| \
1357          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 echo X"$0" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391    { (exit 1); exit 1; }; }
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR           user executables [EPREFIX/bin]
1452   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR       program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1455   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR           object code libraries [EPREFIX/lib]
1458   --includedir=DIR       C header files [PREFIX/include]
1459   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR          info documentation [DATAROOTDIR/info]
1463   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR           man documentation [DATAROOTDIR/man]
1465   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1466   --htmldir=DIR          html documentation [DOCDIR]
1467   --dvidir=DIR           dvi documentation [DOCDIR]
1468   --pdfdir=DIR           pdf documentation [DOCDIR]
1469   --psdir=DIR            ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 X features:
1475   --x-includes=DIR    X include files are in DIR
1476   --x-libraries=DIR   X library files are in DIR
1477
1478 System types:
1479   --build=BUILD     configure for building on BUILD [guessed]
1480   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485
1486   cat <<\_ACEOF
1487
1488 Optional Features:
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --enable-shared[=PKGS]  build shared libraries [default=yes]
1492   --enable-static[=PKGS]  build static libraries [default=yes]
1493   --enable-fast-install[=PKGS]
1494                           optimize for fast installation [default=yes]
1495   --disable-libtool-lock  avoid locking (might break parallel builds)
1496   --enable-libc           Use the system C library [default=yes]
1497   --enable-audio          Enable the audio subsystem [default=yes]
1498   --enable-video          Enable the video subsystem [default=yes]
1499   --enable-events         Enable the events subsystem [default=yes]
1500   --enable-joystick       Enable the joystick subsystem [default=yes]
1501   --enable-cdrom          Enable the cdrom subsystem [default=yes]
1502   --enable-threads        Enable the threading subsystem [default=yes]
1503   --enable-timers         Enable the timer subsystem [default=yes]
1504   --enable-file           Enable the file subsystem [default=yes]
1505   --enable-loadso         Enable the shared object loading subsystem
1506                           [default=yes]
1507   --enable-cpuinfo        Enable the cpuinfo subsystem [default=yes]
1508   --enable-assembly       Enable assembly routines [default=yes]
1509   --enable-oss            support the OSS audio API [default=yes]
1510   --enable-alsa           support the ALSA audio API [default=yes]
1511   --disable-alsatest      Do not try to compile and run a test Alsa program
1512   --enable-alsa-shared    dynamically load ALSA audio support [default=yes]
1513   --enable-esd            support the Enlightened Sound Daemon [default=yes]
1514   --disable-esdtest       Do not try to compile and run a test ESD program
1515   --enable-esd-shared     dynamically load ESD audio support [default=yes]
1516   --enable-pulseaudio     use PulseAudio [default=yes]
1517   --enable-pulseaudio-shared
1518                           dynamically load PulseAudio support [default=yes]
1519   --enable-arts           support the Analog Real Time Synthesizer
1520                           [default=yes]
1521   --enable-arts-shared    dynamically load aRts audio support [default=yes]
1522   --enable-nas            support the NAS audio API [default=yes]
1523   --enable-nas-shared     dynamically load NAS audio support [default=yes]
1524   --enable-diskaudio      support the disk writer audio driver [default=yes]
1525   --enable-dummyaudio     support the dummy audio driver [default=yes]
1526   --enable-mintaudio      support Atari audio driver [default=yes]
1527   --enable-nasm           use nasm assembly blitters on x86 [default=yes]
1528   --enable-altivec        use altivec assembly blitters on PPC [default=yes]
1529   --enable-ipod           configure SDL to work with iPodLinux [default=no]
1530   --enable-video-nanox    use nanox video driver [default=no]
1531   --enable-nanox-debug    print debug messages [default=no]
1532   --enable-nanox-share-memory
1533                           use share memory [default=no]
1534   --enable-nanox-direct-fb
1535                           use direct framebuffer access [default=no]
1536   --enable-video-x11      use X11 video driver [default=yes]
1537   --enable-x11-shared     dynamically load X11 support [default=maybe]
1538   --enable-dga            allow use of X11 DGA code [default=yes]
1539   --enable-video-dga      use DGA 2.0 video driver [default=yes]
1540   --enable-video-x11-dgamouse
1541                           use X11 DGA for mouse events [default=yes]
1542   --enable-video-x11-vm   use X11 VM extension for fullscreen [default=yes]
1543   --enable-video-x11-xv   use X11 XvImage extension for video [default=yes]
1544   --enable-video-x11-xinerama
1545                           enable X11 Xinerama support [default=yes]
1546   --enable-video-x11-xme  enable Xi Graphics XME for fullscreen
1547                           [default=yes]
1548   --enable-video-x11-xrandr
1549                           enable X11 Xrandr extension for fullscreen
1550                           [default=yes]
1551   --enable-video-photon   use QNX Photon video driver [default=yes]
1552   --enable-video-carbon   use Carbon/QuickDraw video driver [default=no]
1553   --enable-video-cocoa    use Cocoa/Quartz video driver [default=yes]
1554   --enable-video-fbcon    use framebuffer console video driver [default=yes]
1555   --enable-video-directfb use DirectFB video driver [default=yes]
1556   --enable-video-ps2gs    use PlayStation 2 GS video driver [default=yes]
1557   --enable-video-ps3      use PlayStation 3 Cell driver [default=yes]
1558   --enable-video-ggi      use GGI video driver [default=no]
1559   --enable-video-svga     use SVGAlib video driver [default=yes]
1560   --enable-video-vgl      use VGL video driver [default=yes]
1561   --enable-video-wscons   use wscons video driver [default=yes]
1562   --enable-video-aalib    use AAlib video driver [default=no]
1563   --enable-video-caca     use libcaca video driver [default=no]
1564   --enable-video-qtopia   use Qtopia video driver [default=no]
1565   --enable-video-picogui  use PicoGUI video driver [default=no]
1566   --enable-video-xbios    use Atari Xbios video driver [default=yes]
1567   --enable-video-gem      use Atari Gem video driver [default=yes]
1568   --enable-video-dummy    use dummy video driver [default=yes]
1569   --enable-video-opengl   include OpenGL context creation [default=yes]
1570   --enable-osmesa-shared  dynamically load OSMesa OpenGL support
1571                           [default=yes]
1572   --enable-screensaver    enable screensaver by default while any SDL
1573                           application is running [default=no]
1574   --enable-input-events   use Linux 2.4 unified input interface
1575                           [default=yes]
1576   --enable-input-tslib    use the Touchscreen library for input
1577                           [default=yes]
1578   --enable-pth            use GNU pth library for multi-threading
1579                           [default=yes]
1580   --enable-pthreads       use POSIX threads for multi-threading
1581                           [default=yes]
1582   --enable-pthread-sem    use pthread semaphores [default=yes]
1583   --enable-stdio-redirect Redirect STDIO to files on Win32 [default=yes]
1584   --enable-directx        use DirectX for Win32 audio/video [default=yes]
1585   --enable-sdl-dlopen     use dlopen for shared object loading [default=yes]
1586   --enable-atari-ldg      use Atari LDG for shared object loading
1587                           [default=yes]
1588   --enable-clock_gettime  use clock_gettime() instead of gettimeofday() on
1589                           UNIX [default=no]
1590   --enable-rpath          use an rpath when linking SDL [default=yes]
1591
1592 Optional Packages:
1593   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1594   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1595   --with-pic              try to use only PIC/non-PIC objects [default=use
1596                           both]
1597   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1598   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
1599   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
1600   --with-esd-prefix=PFX   Prefix where ESD is installed (optional)
1601   --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1602   --with-x                use the X Window System
1603
1604 Some influential environment variables:
1605   CC          C compiler command
1606   CFLAGS      C compiler flags
1607   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1608               nonstandard directory <lib dir>
1609   LIBS        libraries to pass to the linker, e.g. -l<library>
1610   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611               you have headers in a nonstandard directory <include dir>
1612   CPP         C preprocessor
1613   CXX         C++ compiler command
1614   CXXFLAGS    C++ compiler flags
1615   CXXCPP      C++ preprocessor
1616   XMKMF       Path to xmkmf, Makefile generator for X Window System
1617
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1620
1621 _ACEOF
1622 ac_status=$?
1623 fi
1624
1625 if test "$ac_init_help" = "recursive"; then
1626   # If there are subdirs, report their specific --help.
1627   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628     test -d "$ac_dir" || continue
1629     ac_builddir=.
1630
1631 case "$ac_dir" in
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633 *)
1634   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1635   # A ".." for each directory in $ac_dir_suffix.
1636   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1637   case $ac_top_builddir_sub in
1638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640   esac ;;
1641 esac
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1646
1647 case $srcdir in
1648   .)  # We are building in place.
1649     ac_srcdir=.
1650     ac_top_srcdir=$ac_top_builddir_sub
1651     ac_abs_top_srcdir=$ac_pwd ;;
1652   [\\/]* | ?:[\\/]* )  # Absolute name.
1653     ac_srcdir=$srcdir$ac_dir_suffix;
1654     ac_top_srcdir=$srcdir
1655     ac_abs_top_srcdir=$srcdir ;;
1656   *) # Relative name.
1657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658     ac_top_srcdir=$ac_top_build_prefix$srcdir
1659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1660 esac
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663     cd "$ac_dir" || { ac_status=$?; continue; }
1664     # Check for guested configure.
1665     if test -f "$ac_srcdir/configure.gnu"; then
1666       echo &&
1667       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668     elif test -f "$ac_srcdir/configure"; then
1669       echo &&
1670       $SHELL "$ac_srcdir/configure" --help=recursive
1671     else
1672       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673     fi || ac_status=$?
1674     cd "$ac_pwd" || { ac_status=$?; break; }
1675   done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680   cat <<\_ACEOF
1681 configure
1682 generated by GNU Autoconf 2.61
1683
1684 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1685 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1688 _ACEOF
1689   exit
1690 fi
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1694
1695 It was created by $as_me, which was
1696 generated by GNU Autoconf 2.61.  Invocation command line was
1697
1698   $ $0 $@
1699
1700 _ACEOF
1701 exec 5>>config.log
1702 {
1703 cat <<_ASUNAME
1704 ## --------- ##
1705 ## Platform. ##
1706 ## --------- ##
1707
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1713
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1716
1717 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1718 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1721 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1722 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1723 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1724
1725 _ASUNAME
1726
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   echo "PATH: $as_dir"
1733 done
1734 IFS=$as_save_IFS
1735
1736 } >&5
1737
1738 cat >&5 <<_ACEOF
1739
1740
1741 ## ----------- ##
1742 ## Core tests. ##
1743 ## ----------- ##
1744
1745 _ACEOF
1746
1747
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1753 ac_configure_args=
1754 ac_configure_args0=
1755 ac_configure_args1=
1756 ac_must_keep_next=false
1757 for ac_pass in 1 2
1758 do
1759   for ac_arg
1760   do
1761     case $ac_arg in
1762     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764     | -silent | --silent | --silen | --sile | --sil)
1765       continue ;;
1766     *\'*)
1767       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1768     esac
1769     case $ac_pass in
1770     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1771     2)
1772       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773       if test $ac_must_keep_next = true; then
1774         ac_must_keep_next=false # Got value, back to normal.
1775       else
1776         case $ac_arg in
1777           *=* | --config-cache | -C | -disable-* | --disable-* \
1778           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780           | -with-* | --with-* | -without-* | --without-* | --x)
1781             case "$ac_configure_args0 " in
1782               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1783             esac
1784             ;;
1785           -* ) ac_must_keep_next=true ;;
1786         esac
1787       fi
1788       ac_configure_args="$ac_configure_args '$ac_arg'"
1789       ;;
1790     esac
1791   done
1792 done
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1795
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log.  We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802   # Save into config.log some information that might help in debugging.
1803   {
1804     echo
1805
1806     cat <<\_ASBOX
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1810 _ASBOX
1811     echo
1812     # The following way of writing the cache mishandles newlines in values,
1813 (
1814   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815     eval ac_val=\$$ac_var
1816     case $ac_val in #(
1817     *${as_nl}*)
1818       case $ac_var in #(
1819       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1821       esac
1822       case $ac_var in #(
1823       _ | IFS | as_nl) ;; #(
1824       *) $as_unset $ac_var ;;
1825       esac ;;
1826     esac
1827   done
1828   (set) 2>&1 |
1829     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830     *${as_nl}ac_space=\ *)
1831       sed -n \
1832         "s/'\''/'\''\\\\'\'''\''/g;
1833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1834       ;; #(
1835     *)
1836       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1837       ;;
1838     esac |
1839     sort
1840 )
1841     echo
1842
1843     cat <<\_ASBOX
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1847 _ASBOX
1848     echo
1849     for ac_var in $ac_subst_vars
1850     do
1851       eval ac_val=\$$ac_var
1852       case $ac_val in
1853       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854       esac
1855       echo "$ac_var='\''$ac_val'\''"
1856     done | sort
1857     echo
1858
1859     if test -n "$ac_subst_files"; then
1860       cat <<\_ASBOX
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1864 _ASBOX
1865       echo
1866       for ac_var in $ac_subst_files
1867       do
1868         eval ac_val=\$$ac_var
1869         case $ac_val in
1870         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1871         esac
1872         echo "$ac_var='\''$ac_val'\''"
1873       done | sort
1874       echo
1875     fi
1876
1877     if test -s confdefs.h; then
1878       cat <<\_ASBOX
1879 ## ----------- ##
1880 ## confdefs.h. ##
1881 ## ----------- ##
1882 _ASBOX
1883       echo
1884       cat confdefs.h
1885       echo
1886     fi
1887     test "$ac_signal" != 0 &&
1888       echo "$as_me: caught signal $ac_signal"
1889     echo "$as_me: exit $exit_status"
1890   } >&5
1891   rm -f core *.core core.conftest.* &&
1892     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1893     exit $exit_status
1894 ' 0
1895 for ac_signal in 1 2 13 15; do
1896   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 done
1898 ac_signal=0
1899
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1902
1903 # Predefined preprocessor variables.
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 _ACEOF
1913
1914
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 _ACEOF
1918
1919
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 _ACEOF
1923
1924
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 _ACEOF
1928
1929
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933   set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936 else
1937   set x "$ac_default_prefix/share/config.site" \
1938         "$ac_default_prefix/etc/config.site"
1939 fi
1940 shift
1941 for ac_site_file
1942 do
1943   if test -r "$ac_site_file"; then
1944     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946     sed 's/^/| /' "$ac_site_file" >&5
1947     . "$ac_site_file"
1948   fi
1949 done
1950
1951 if test -r "$cache_file"; then
1952   # Some versions of bash will fail to source /dev/null (special
1953   # files actually), so we avoid doing that.
1954   if test -f "$cache_file"; then
1955     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1957     case $cache_file in
1958       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959       *)                      . "./$cache_file";;
1960     esac
1961   fi
1962 else
1963   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1965   >$cache_file
1966 fi
1967
1968 # Check that the precious variables saved in the cache have kept the same
1969 # value.
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973   eval ac_new_set=\$ac_env_${ac_var}_set
1974   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975   eval ac_new_val=\$ac_env_${ac_var}_value
1976   case $ac_old_set,$ac_new_set in
1977     set,)
1978       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980       ac_cache_corrupted=: ;;
1981     ,set)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,);;
1986     *)
1987       if test "x$ac_old_val" != "x$ac_new_val"; then
1988         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991 echo "$as_me:   former value:  $ac_old_val" >&2;}
1992         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993 echo "$as_me:   current value: $ac_new_val" >&2;}
1994         ac_cache_corrupted=:
1995       fi;;
1996   esac
1997   # Pass precious variables to config.status.
1998   if test "$ac_new_set" = set; then
1999     case $ac_new_val in
2000     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001     *) ac_arg=$ac_var=$ac_new_val ;;
2002     esac
2003     case " $ac_configure_args " in
2004       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006     esac
2007   fi
2008 done
2009 if $ac_cache_corrupted; then
2010   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040 ac_config_headers="$ac_config_headers include/SDL_config.h"
2041
2042
2043 cat >>confdefs.h <<\_ACEOF
2044 #define _GNU_SOURCE 1
2045 _ACEOF
2046
2047
2048 ac_aux_dir=
2049 for ac_dir in $srcdir/build-scripts; do
2050   if test -f "$ac_dir/install-sh"; then
2051     ac_aux_dir=$ac_dir
2052     ac_install_sh="$ac_aux_dir/install-sh -c"
2053     break
2054   elif test -f "$ac_dir/install.sh"; then
2055     ac_aux_dir=$ac_dir
2056     ac_install_sh="$ac_aux_dir/install.sh -c"
2057     break
2058   elif test -f "$ac_dir/shtool"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/shtool install -c"
2061     break
2062   fi
2063 done
2064 if test -z "$ac_aux_dir"; then
2065   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2066 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 # These three variables are undocumented and unsupported,
2071 # and are intended to be withdrawn in a future Autoconf release.
2072 # They can cause serious problems if a builder's source tree is in a directory
2073 # whose full name contains unusual characters.
2074 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2075 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2076 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2077
2078
2079
2080 #
2081 # Making releases:
2082 # Edit include/SDL/SDL_version.h and change the version, then:
2083 #   SDL_MICRO_VERSION += 1;
2084 #   SDL_INTERFACE_AGE += 1;
2085 #   SDL_BINARY_AGE += 1;
2086 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2087 # if backwards compatibility has been broken,
2088 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2089 #
2090 SDL_MAJOR_VERSION=1
2091 SDL_MINOR_VERSION=2
2092 SDL_MICRO_VERSION=15
2093 SDL_INTERFACE_AGE=4
2094 SDL_BINARY_AGE=15
2095 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2096
2097
2098
2099
2100
2101
2102
2103
2104 # libtool versioning
2105 case `pwd` in
2106   *\ * | *\     *)
2107     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2108 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2109 esac
2110
2111
2112
2113 macro_version='2.2.6'
2114 macro_revision='1.3012'
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128 ltmain="$ac_aux_dir/ltmain.sh"
2129
2130 # Make sure we can run config.sub.
2131 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2132   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2133 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2134    { (exit 1); exit 1; }; }
2135
2136 { echo "$as_me:$LINENO: checking build system type" >&5
2137 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_build+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   ac_build_alias=$build_alias
2142 test "x$ac_build_alias" = x &&
2143   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2144 test "x$ac_build_alias" = x &&
2145   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2146 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2147    { (exit 1); exit 1; }; }
2148 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2149   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2150 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2151    { (exit 1); exit 1; }; }
2152
2153 fi
2154 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2155 echo "${ECHO_T}$ac_cv_build" >&6; }
2156 case $ac_cv_build in
2157 *-*-*) ;;
2158 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2159 echo "$as_me: error: invalid value of canonical build" >&2;}
2160    { (exit 1); exit 1; }; };;
2161 esac
2162 build=$ac_cv_build
2163 ac_save_IFS=$IFS; IFS='-'
2164 set x $ac_cv_build
2165 shift
2166 build_cpu=$1
2167 build_vendor=$2
2168 shift; shift
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2171 build_os=$*
2172 IFS=$ac_save_IFS
2173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2174
2175
2176 { echo "$as_me:$LINENO: checking host system type" >&5
2177 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2178 if test "${ac_cv_host+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test "x$host_alias" = x; then
2182   ac_cv_host=$ac_cv_build
2183 else
2184   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2185     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2186 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2187    { (exit 1); exit 1; }; }
2188 fi
2189
2190 fi
2191 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2192 echo "${ECHO_T}$ac_cv_host" >&6; }
2193 case $ac_cv_host in
2194 *-*-*) ;;
2195 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2196 echo "$as_me: error: invalid value of canonical host" >&2;}
2197    { (exit 1); exit 1; }; };;
2198 esac
2199 host=$ac_cv_host
2200 ac_save_IFS=$IFS; IFS='-'
2201 set x $ac_cv_host
2202 shift
2203 host_cpu=$1
2204 host_vendor=$2
2205 shift; shift
2206 # Remember, the first character of IFS is used to create $*,
2207 # except with old shells:
2208 host_os=$*
2209 IFS=$ac_save_IFS
2210 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2211
2212
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
2218 if test -n "$ac_tool_prefix"; then
2219   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2223 if test "${ac_cv_prog_CC+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   if test -n "$CC"; then
2227   ac_cv_prog_CC="$CC" # Let the user override the test.
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232   IFS=$as_save_IFS
2233   test -z "$as_dir" && as_dir=.
2234   for ac_exec_ext in '' $ac_executable_extensions; do
2235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2236     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238     break 2
2239   fi
2240 done
2241 done
2242 IFS=$as_save_IFS
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248   { echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6; }
2250 else
2251   { echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6; }
2253 fi
2254
2255
2256 fi
2257 if test -z "$ac_cv_prog_CC"; then
2258   ac_ct_CC=$CC
2259   # Extract the first word of "gcc", so it can be a program name with args.
2260 set dummy gcc; ac_word=$2
2261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2263 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   if test -n "$ac_ct_CC"; then
2267   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 else
2269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270 for as_dir in $PATH
2271 do
2272   IFS=$as_save_IFS
2273   test -z "$as_dir" && as_dir=.
2274   for ac_exec_ext in '' $ac_executable_extensions; do
2275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2276     ac_cv_prog_ac_ct_CC="gcc"
2277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278     break 2
2279   fi
2280 done
2281 done
2282 IFS=$as_save_IFS
2283
2284 fi
2285 fi
2286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287 if test -n "$ac_ct_CC"; then
2288   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289 echo "${ECHO_T}$ac_ct_CC" >&6; }
2290 else
2291   { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2293 fi
2294
2295   if test "x$ac_ct_CC" = x; then
2296     CC=""
2297   else
2298     case $cross_compiling:$ac_tool_warned in
2299 yes:)
2300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2301 whose name does not start with the host triplet.  If you think this
2302 configuration is useful to you, please write to autoconf@gnu.org." >&5
2303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2304 whose name does not start with the host triplet.  If you think this
2305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2306 ac_tool_warned=yes ;;
2307 esac
2308     CC=$ac_ct_CC
2309   fi
2310 else
2311   CC="$ac_cv_prog_CC"
2312 fi
2313
2314 if test -z "$CC"; then
2315           if test -n "$ac_tool_prefix"; then
2316     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}cc; ac_word=$2
2318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   if test -n "$CC"; then
2324   ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333     ac_cv_prog_CC="${ac_tool_prefix}cc"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345   { echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6; }
2347 else
2348   { echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6; }
2350 fi
2351
2352
2353   fi
2354 fi
2355 if test -z "$CC"; then
2356   # Extract the first word of "cc", so it can be a program name with args.
2357 set dummy cc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361   echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363   if test -n "$CC"; then
2364   ac_cv_prog_CC="$CC" # Let the user override the test.
2365 else
2366   ac_prog_rejected=no
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2374     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2375        ac_prog_rejected=yes
2376        continue
2377      fi
2378     ac_cv_prog_CC="cc"
2379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380     break 2
2381   fi
2382 done
2383 done
2384 IFS=$as_save_IFS
2385
2386 if test $ac_prog_rejected = yes; then
2387   # We found a bogon in the path, so make sure we never use it.
2388   set dummy $ac_cv_prog_CC
2389   shift
2390   if test $# != 0; then
2391     # We chose a different compiler from the bogus one.
2392     # However, it has the same basename, so the bogon will be chosen
2393     # first if we set CC to just the basename; use the full file name.
2394     shift
2395     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396   fi
2397 fi
2398 fi
2399 fi
2400 CC=$ac_cv_prog_CC
2401 if test -n "$CC"; then
2402   { echo "$as_me:$LINENO: result: $CC" >&5
2403 echo "${ECHO_T}$CC" >&6; }
2404 else
2405   { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2407 fi
2408
2409
2410 fi
2411 if test -z "$CC"; then
2412   if test -n "$ac_tool_prefix"; then
2413   for ac_prog in cl.exe
2414   do
2415     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   if test -n "$CC"; then
2423   ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428   IFS=$as_save_IFS
2429   test -z "$as_dir" && as_dir=.
2430   for ac_exec_ext in '' $ac_executable_extensions; do
2431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434     break 2
2435   fi
2436 done
2437 done
2438 IFS=$as_save_IFS
2439
2440 fi
2441 fi
2442 CC=$ac_cv_prog_CC
2443 if test -n "$CC"; then
2444   { echo "$as_me:$LINENO: result: $CC" >&5
2445 echo "${ECHO_T}$CC" >&6; }
2446 else
2447   { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2449 fi
2450
2451
2452     test -n "$CC" && break
2453   done
2454 fi
2455 if test -z "$CC"; then
2456   ac_ct_CC=$CC
2457   for ac_prog in cl.exe
2458 do
2459   # Extract the first word of "$ac_prog", so it can be a program name with args.
2460 set dummy $ac_prog; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$ac_ct_CC"; then
2467   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2476     ac_cv_prog_ac_ct_CC="$ac_prog"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2487 if test -n "$ac_ct_CC"; then
2488   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2489 echo "${ECHO_T}$ac_ct_CC" >&6; }
2490 else
2491   { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2493 fi
2494
2495
2496   test -n "$ac_ct_CC" && break
2497 done
2498
2499   if test "x$ac_ct_CC" = x; then
2500     CC=""
2501   else
2502     case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512     CC=$ac_ct_CC
2513   fi
2514 fi
2515
2516 fi
2517
2518
2519 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: no acceptable C compiler found in \$PATH
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }
2524
2525 # Provide some information about the compiler.
2526 echo "$as_me:$LINENO: checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (ac_try="$ac_compiler --version >&5"
2529 case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_compiler --version >&5") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (ac_try="$ac_compiler -v >&5"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compiler -v >&5") 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }
2548 { (ac_try="$ac_compiler -V >&5"
2549 case "(($ac_try" in
2550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551   *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554   (eval "$ac_compiler -V >&5") 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }
2558
2559 cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 ac_clean_files_save=$ac_clean_files
2575 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2576 # Try to create an executable without -o first, disregard a.out.
2577 # It will help us diagnose broken compilers, and finding out an intuition
2578 # of exeext.
2579 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2580 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2581 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2582 #
2583 # List of possible output files, starting from the most likely.
2584 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2585 # only as a last resort.  b.out is created by i960 compilers.
2586 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2587 #
2588 # The IRIX 6 linker writes into existing files which may not be
2589 # executable, retaining their permissions.  Remove them first so a
2590 # subsequent execution test works.
2591 ac_rmfiles=
2592 for ac_file in $ac_files
2593 do
2594   case $ac_file in
2595     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2597   esac
2598 done
2599 rm -f $ac_rmfiles
2600
2601 if { (ac_try="$ac_link_default"
2602 case "(($ac_try" in
2603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604   *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607   (eval "$ac_link_default") 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; then
2611   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2612 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2613 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2614 # so that the user can short-circuit this test for compilers unknown to
2615 # Autoconf.
2616 for ac_file in $ac_files ''
2617 do
2618   test -f "$ac_file" || continue
2619   case $ac_file in
2620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2621         ;;
2622     [ab].out )
2623         # We found the default executable, but exeext='' is most
2624         # certainly right.
2625         break;;
2626     *.* )
2627         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2628         then :; else
2629            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2630         fi
2631         # We set ac_cv_exeext here because the later test for it is not
2632         # safe: cross compilers may not add the suffix if given an `-o'
2633         # argument, so we may need to know it at that point already.
2634         # Even if this section looks crufty: it has the advantage of
2635         # actually working.
2636         break;;
2637     * )
2638         break;;
2639   esac
2640 done
2641 test "$ac_cv_exeext" = no && ac_cv_exeext=
2642
2643 else
2644   ac_file=''
2645 fi
2646
2647 { echo "$as_me:$LINENO: result: $ac_file" >&5
2648 echo "${ECHO_T}$ac_file" >&6; }
2649 if test -z "$ac_file"; then
2650   echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&2;}
2657    { (exit 77); exit 77; }; }
2658 fi
2659
2660 ac_exeext=$ac_cv_exeext
2661
2662 # Check that the compiler produces executables we can run.  If not, either
2663 # the compiler is broken, or we cross compile.
2664 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669   if { ac_try='./$ac_file'
2670   { (case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_try") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679     cross_compiling=no
2680   else
2681     if test "$cross_compiling" = maybe; then
2682         cross_compiling=yes
2683     else
2684         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2685 If you meant to cross compile, use \`--host'.
2686 See \`config.log' for more details." >&5
2687 echo "$as_me: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&2;}
2690    { (exit 1); exit 1; }; }
2691     fi
2692   fi
2693 fi
2694 { echo "$as_me:$LINENO: result: yes" >&5
2695 echo "${ECHO_T}yes" >&6; }
2696
2697 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2698 ac_clean_files=$ac_clean_files_save
2699 # Check that the compiler produces executables we can run.  If not, either
2700 # the compiler is broken, or we cross compile.
2701 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2703 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704 echo "${ECHO_T}$cross_compiling" >&6; }
2705
2706 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2708 if { (ac_try="$ac_link"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_link") 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; then
2718   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2719 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2720 # work properly (i.e., refer to `conftest.exe'), while it won't with
2721 # `rm'.
2722 for ac_file in conftest.exe conftest conftest.*; do
2723   test -f "$ac_file" || continue
2724   case $ac_file in
2725     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2726     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727           break;;
2728     * ) break;;
2729   esac
2730 done
2731 else
2732   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2733 See \`config.log' for more details." >&5
2734 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2735 See \`config.log' for more details." >&2;}
2736    { (exit 1); exit 1; }; }
2737 fi
2738
2739 rm -f conftest$ac_cv_exeext
2740 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2741 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2742
2743 rm -f conftest.$ac_ext
2744 EXEEXT=$ac_cv_exeext
2745 ac_exeext=$EXEEXT
2746 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2747 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2748 if test "${ac_cv_objext+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.o conftest.obj
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770   *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773   (eval "$ac_compile") 2>&5
2774   ac_status=$?
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); }; then
2777   for ac_file in conftest.o conftest.obj conftest.*; do
2778   test -f "$ac_file" || continue;
2779   case $ac_file in
2780     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2781     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2782        break;;
2783   esac
2784 done
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2792 See \`config.log' for more details." >&2;}
2793    { (exit 1); exit 1; }; }
2794 fi
2795
2796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2797 fi
2798 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2799 echo "${ECHO_T}$ac_cv_objext" >&6; }
2800 OBJEXT=$ac_cv_objext
2801 ac_objext=$OBJEXT
2802 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2803 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2804 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813
2814 int
2815 main ()
2816 {
2817 #ifndef __GNUC__
2818        choke me
2819 #endif
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (ac_try="$ac_compile"
2827 case "(($ac_try" in
2828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829   *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832   (eval "$ac_compile") 2>conftest.er1
2833   ac_status=$?
2834   grep -v '^ *+' conftest.er1 >conftest.err
2835   rm -f conftest.er1
2836   cat conftest.err >&5
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } && {
2839          test -z "$ac_c_werror_flag" ||
2840          test ! -s conftest.err
2841        } && test -s conftest.$ac_objext; then
2842   ac_compiler_gnu=yes
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847         ac_compiler_gnu=no
2848 fi
2849
2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852
2853 fi
2854 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2856 GCC=`test $ac_compiler_gnu = yes && echo yes`
2857 ac_test_CFLAGS=${CFLAGS+set}
2858 ac_save_CFLAGS=$CFLAGS
2859 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_cc_g+set}" = set; then
2862   echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864   ac_save_c_werror_flag=$ac_c_werror_flag
2865    ac_c_werror_flag=yes
2866    ac_cv_prog_cc_g=no
2867    CFLAGS="-g"
2868    cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compile") 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } && {
2897          test -z "$ac_c_werror_flag" ||
2898          test ! -s conftest.err
2899        } && test -s conftest.$ac_objext; then
2900   ac_cv_prog_cc_g=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905         CFLAGS=""
2906       cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912
2913 int
2914 main ()
2915 {
2916
2917   ;
2918   return 0;
2919 }
2920 _ACEOF
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928   (eval "$ac_compile") 2>conftest.er1
2929   ac_status=$?
2930   grep -v '^ *+' conftest.er1 >conftest.err
2931   rm -f conftest.er1
2932   cat conftest.err >&5
2933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); } && {
2935          test -z "$ac_c_werror_flag" ||
2936          test ! -s conftest.err
2937        } && test -s conftest.$ac_objext; then
2938   :
2939 else
2940   echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943         ac_c_werror_flag=$ac_save_c_werror_flag
2944          CFLAGS="-g"
2945          cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951
2952 int
2953 main ()
2954 {
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2962 case "(($ac_try" in
2963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964   *) ac_try_echo=$ac_try;;
2965 esac
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967   (eval "$ac_compile") 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } && {
2974          test -z "$ac_c_werror_flag" ||
2975          test ! -s conftest.err
2976        } && test -s conftest.$ac_objext; then
2977   ac_cv_prog_cc_g=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982
2983 fi
2984
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 fi
2990
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992    ac_c_werror_flag=$ac_save_c_werror_flag
2993 fi
2994 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2995 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2996 if test "$ac_test_CFLAGS" = set; then
2997   CFLAGS=$ac_save_CFLAGS
2998 elif test $ac_cv_prog_cc_g = yes; then
2999   if test "$GCC" = yes; then
3000     CFLAGS="-g -O2"
3001   else
3002     CFLAGS="-g"
3003   fi
3004 else
3005   if test "$GCC" = yes; then
3006     CFLAGS="-O2"
3007   else
3008     CFLAGS=
3009   fi
3010 fi
3011 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3012 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_c89+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   ac_cv_prog_cc_c89=no
3017 ac_save_CC=$CC
3018 cat >conftest.$ac_ext <<_ACEOF
3019 /* confdefs.h.  */
3020 _ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h.  */
3024 #include <stdarg.h>
3025 #include <stdio.h>
3026 #include <sys/types.h>
3027 #include <sys/stat.h>
3028 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3029 struct buf { int x; };
3030 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3031 static char *e (p, i)
3032      char **p;
3033      int i;
3034 {
3035   return p[i];
3036 }
3037 static char *f (char * (*g) (char **, int), char **p, ...)
3038 {
3039   char *s;
3040   va_list v;
3041   va_start (v,p);
3042   s = g (p, va_arg (v,int));
3043   va_end (v);
3044   return s;
3045 }
3046
3047 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3048    function prototypes and stuff, but not '\xHH' hex character constants.
3049    These don't provoke an error unfortunately, instead are silently treated
3050    as 'x'.  The following induces an error, until -std is added to get
3051    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3052    array size at least.  It's necessary to write '\x00'==0 to get something
3053    that's true only with -std.  */
3054 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3055
3056 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3057    inside strings and character constants.  */
3058 #define FOO(x) 'x'
3059 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3060
3061 int test (int i, double x);
3062 struct s1 {int (*f) (int a);};
3063 struct s2 {int (*f) (double a);};
3064 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3065 int argc;
3066 char **argv;
3067 int
3068 main ()
3069 {
3070 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3076         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3077 do
3078   CC="$ac_save_CC $ac_arg"
3079   rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } && {
3093          test -z "$ac_c_werror_flag" ||
3094          test ! -s conftest.err
3095        } && test -s conftest.$ac_objext; then
3096   ac_cv_prog_cc_c89=$ac_arg
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101
3102 fi
3103
3104 rm -f core conftest.err conftest.$ac_objext
3105   test "x$ac_cv_prog_cc_c89" != "xno" && break
3106 done
3107 rm -f conftest.$ac_ext
3108 CC=$ac_save_CC
3109
3110 fi
3111 # AC_CACHE_VAL
3112 case "x$ac_cv_prog_cc_c89" in
3113   x)
3114     { echo "$as_me:$LINENO: result: none needed" >&5
3115 echo "${ECHO_T}none needed" >&6; } ;;
3116   xno)
3117     { echo "$as_me:$LINENO: result: unsupported" >&5
3118 echo "${ECHO_T}unsupported" >&6; } ;;
3119   *)
3120     CC="$CC $ac_cv_prog_cc_c89"
3121     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3123 esac
3124
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131
3132 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3133 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3134 if test "${ac_cv_path_SED+set}" = set; then
3135   echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3138      for ac_i in 1 2 3 4 5 6 7; do
3139        ac_script="$ac_script$as_nl$ac_script"
3140      done
3141      echo "$ac_script" | sed 99q >conftest.sed
3142      $as_unset ac_script || ac_script=
3143      # Extract the first word of "sed gsed" to use in msg output
3144 if test -z "$SED"; then
3145 set dummy sed gsed; ac_prog_name=$2
3146 if test "${ac_cv_path_SED+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   ac_path_SED_found=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_prog in sed gsed; do
3157   for ac_exec_ext in '' $ac_executable_extensions; do
3158     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3159     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3160     # Check for GNU ac_path_SED and select it if it is found.
3161   # Check for GNU $ac_path_SED
3162 case `"$ac_path_SED" --version 2>&1` in
3163 *GNU*)
3164   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3165 *)
3166   ac_count=0
3167   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3168   while :
3169   do
3170     cat "conftest.in" "conftest.in" >"conftest.tmp"
3171     mv "conftest.tmp" "conftest.in"
3172     cp "conftest.in" "conftest.nl"
3173     echo '' >> "conftest.nl"
3174     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3175     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3176     ac_count=`expr $ac_count + 1`
3177     if test $ac_count -gt ${ac_path_SED_max-0}; then
3178       # Best one so far, save it but keep looking for a better one
3179       ac_cv_path_SED="$ac_path_SED"
3180       ac_path_SED_max=$ac_count
3181     fi
3182     # 10*(2^10) chars as input seems more than enough
3183     test $ac_count -gt 10 && break
3184   done
3185   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3186 esac
3187
3188
3189     $ac_path_SED_found && break 3
3190   done
3191 done
3192
3193 done
3194 IFS=$as_save_IFS
3195
3196
3197 fi
3198
3199 SED="$ac_cv_path_SED"
3200 if test -z "$SED"; then
3201   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3202 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3203    { (exit 1); exit 1; }; }
3204 fi
3205
3206 else
3207   ac_cv_path_SED=$SED
3208 fi
3209
3210 fi
3211 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3212 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3213  SED="$ac_cv_path_SED"
3214   rm -f conftest.sed
3215
3216 test -z "$SED" && SED=sed
3217 Xsed="$SED -e 1s/^X//"
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3230 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3231 if test "${ac_cv_path_GREP+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   # Extract the first word of "grep ggrep" to use in msg output
3235 if test -z "$GREP"; then
3236 set dummy grep ggrep; ac_prog_name=$2
3237 if test "${ac_cv_path_GREP+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   ac_path_GREP_found=false
3241 # Loop through the user's path and test for each of PROGNAME-LIST
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247   for ac_prog in grep ggrep; do
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3250     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3251     # Check for GNU ac_path_GREP and select it if it is found.
3252   # Check for GNU $ac_path_GREP
3253 case `"$ac_path_GREP" --version 2>&1` in
3254 *GNU*)
3255   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3256 *)
3257   ac_count=0
3258   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3259   while :
3260   do
3261     cat "conftest.in" "conftest.in" >"conftest.tmp"
3262     mv "conftest.tmp" "conftest.in"
3263     cp "conftest.in" "conftest.nl"
3264     echo 'GREP' >> "conftest.nl"
3265     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3266     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3267     ac_count=`expr $ac_count + 1`
3268     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3269       # Best one so far, save it but keep looking for a better one
3270       ac_cv_path_GREP="$ac_path_GREP"
3271       ac_path_GREP_max=$ac_count
3272     fi
3273     # 10*(2^10) chars as input seems more than enough
3274     test $ac_count -gt 10 && break
3275   done
3276   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3277 esac
3278
3279
3280     $ac_path_GREP_found && break 3
3281   done
3282 done
3283
3284 done
3285 IFS=$as_save_IFS
3286
3287
3288 fi
3289
3290 GREP="$ac_cv_path_GREP"
3291 if test -z "$GREP"; then
3292   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3293 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3294    { (exit 1); exit 1; }; }
3295 fi
3296
3297 else
3298   ac_cv_path_GREP=$GREP
3299 fi
3300
3301
3302 fi
3303 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3304 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3305  GREP="$ac_cv_path_GREP"
3306
3307
3308 { echo "$as_me:$LINENO: checking for egrep" >&5
3309 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3310 if test "${ac_cv_path_EGREP+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3314    then ac_cv_path_EGREP="$GREP -E"
3315    else
3316      # Extract the first word of "egrep" to use in msg output
3317 if test -z "$EGREP"; then
3318 set dummy egrep; ac_prog_name=$2
3319 if test "${ac_cv_path_EGREP+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   ac_path_EGREP_found=false
3323 # Loop through the user's path and test for each of PROGNAME-LIST
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329   for ac_prog in egrep; do
3330   for ac_exec_ext in '' $ac_executable_extensions; do
3331     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3332     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3333     # Check for GNU ac_path_EGREP and select it if it is found.
3334   # Check for GNU $ac_path_EGREP
3335 case `"$ac_path_EGREP" --version 2>&1` in
3336 *GNU*)
3337   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3338 *)
3339   ac_count=0
3340   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3341   while :
3342   do
3343     cat "conftest.in" "conftest.in" >"conftest.tmp"
3344     mv "conftest.tmp" "conftest.in"
3345     cp "conftest.in" "conftest.nl"
3346     echo 'EGREP' >> "conftest.nl"
3347     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3348     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3349     ac_count=`expr $ac_count + 1`
3350     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3351       # Best one so far, save it but keep looking for a better one
3352       ac_cv_path_EGREP="$ac_path_EGREP"
3353       ac_path_EGREP_max=$ac_count
3354     fi
3355     # 10*(2^10) chars as input seems more than enough
3356     test $ac_count -gt 10 && break
3357   done
3358   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3359 esac
3360
3361
3362     $ac_path_EGREP_found && break 3
3363   done
3364 done
3365
3366 done
3367 IFS=$as_save_IFS
3368
3369
3370 fi
3371
3372 EGREP="$ac_cv_path_EGREP"
3373 if test -z "$EGREP"; then
3374   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3375 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3376    { (exit 1); exit 1; }; }
3377 fi
3378
3379 else
3380   ac_cv_path_EGREP=$EGREP
3381 fi
3382
3383
3384    fi
3385 fi
3386 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3387 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3388  EGREP="$ac_cv_path_EGREP"
3389
3390
3391 { echo "$as_me:$LINENO: checking for fgrep" >&5
3392 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3393 if test "${ac_cv_path_FGREP+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3397    then ac_cv_path_FGREP="$GREP -F"
3398    else
3399      # Extract the first word of "fgrep" to use in msg output
3400 if test -z "$FGREP"; then
3401 set dummy fgrep; ac_prog_name=$2
3402 if test "${ac_cv_path_FGREP+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   ac_path_FGREP_found=false
3406 # Loop through the user's path and test for each of PROGNAME-LIST
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3409 do
3410   IFS=$as_save_IFS
3411   test -z "$as_dir" && as_dir=.
3412   for ac_prog in fgrep; do
3413   for ac_exec_ext in '' $ac_executable_extensions; do
3414     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3415     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3416     # Check for GNU ac_path_FGREP and select it if it is found.
3417   # Check for GNU $ac_path_FGREP
3418 case `"$ac_path_FGREP" --version 2>&1` in
3419 *GNU*)
3420   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3421 *)
3422   ac_count=0
3423   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3424   while :
3425   do
3426     cat "conftest.in" "conftest.in" >"conftest.tmp"
3427     mv "conftest.tmp" "conftest.in"
3428     cp "conftest.in" "conftest.nl"
3429     echo 'FGREP' >> "conftest.nl"
3430     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3431     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3432     ac_count=`expr $ac_count + 1`
3433     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3434       # Best one so far, save it but keep looking for a better one
3435       ac_cv_path_FGREP="$ac_path_FGREP"
3436       ac_path_FGREP_max=$ac_count
3437     fi
3438     # 10*(2^10) chars as input seems more than enough
3439     test $ac_count -gt 10 && break
3440   done
3441   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3442 esac
3443
3444
3445     $ac_path_FGREP_found && break 3
3446   done
3447 done
3448
3449 done
3450 IFS=$as_save_IFS
3451
3452
3453 fi
3454
3455 FGREP="$ac_cv_path_FGREP"
3456 if test -z "$FGREP"; then
3457   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3458 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 else
3463   ac_cv_path_FGREP=$FGREP
3464 fi
3465
3466
3467    fi
3468 fi
3469 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3470 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3471  FGREP="$ac_cv_path_FGREP"
3472
3473
3474 test -z "$GREP" && GREP=grep
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494 # Check whether --with-gnu-ld was given.
3495 if test "${with_gnu_ld+set}" = set; then
3496   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3497 else
3498   with_gnu_ld=no
3499 fi
3500
3501 ac_prog=ld
3502 if test "$GCC" = yes; then
3503   # Check if gcc -print-prog-name=ld gives a path.
3504   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3505 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3506   case $host in
3507   *-*-mingw*)
3508     # gcc leaves a trailing carriage return which upsets mingw
3509     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3510   *)
3511     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3512   esac
3513   case $ac_prog in
3514     # Accept absolute paths.
3515     [\\/]* | ?:[\\/]*)
3516       re_direlt='/[^/][^/]*/\.\./'
3517       # Canonicalize the pathname of ld
3518       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3519       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3520         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3521       done
3522       test -z "$LD" && LD="$ac_prog"
3523       ;;
3524   "")
3525     # If it fails, then pretend we aren't using GCC.
3526     ac_prog=ld
3527     ;;
3528   *)
3529     # If it is relative, then search for the first ld in PATH.
3530     with_gnu_ld=unknown
3531     ;;
3532   esac
3533 elif test "$with_gnu_ld" = yes; then
3534   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3536 else
3537   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3539 fi
3540 if test "${lt_cv_path_LD+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test -z "$LD"; then
3544   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3545   for ac_dir in $PATH; do
3546     IFS="$lt_save_ifs"
3547     test -z "$ac_dir" && ac_dir=.
3548     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3549       lt_cv_path_LD="$ac_dir/$ac_prog"
3550       # Check to see if the program is GNU ld.  I'd rather use --version,
3551       # but apparently some variants of GNU ld only accept -v.
3552       # Break only if it was the GNU/non-GNU ld that we prefer.
3553       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3554       *GNU* | *'with BFD'*)
3555         test "$with_gnu_ld" != no && break
3556         ;;
3557       *)
3558         test "$with_gnu_ld" != yes && break
3559         ;;
3560       esac
3561     fi
3562   done
3563   IFS="$lt_save_ifs"
3564 else
3565   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3566 fi
3567 fi
3568
3569 LD="$lt_cv_path_LD"
3570 if test -n "$LD"; then
3571   { echo "$as_me:$LINENO: result: $LD" >&5
3572 echo "${ECHO_T}$LD" >&6; }
3573 else
3574   { echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6; }
3576 fi
3577 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3578 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3579    { (exit 1); exit 1; }; }
3580 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3581 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3582 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3586 case `$LD -v 2>&1 </dev/null` in
3587 *GNU* | *'with BFD'*)
3588   lt_cv_prog_gnu_ld=yes
3589   ;;
3590 *)
3591   lt_cv_prog_gnu_ld=no
3592   ;;
3593 esac
3594 fi
3595 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3597 with_gnu_ld=$lt_cv_prog_gnu_ld
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3608 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3609 if test "${lt_cv_path_NM+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   if test -n "$NM"; then
3613   # Let the user override the test.
3614   lt_cv_path_NM="$NM"
3615 else
3616   lt_nm_to_check="${ac_tool_prefix}nm"
3617   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3618     lt_nm_to_check="$lt_nm_to_check nm"
3619   fi
3620   for lt_tmp_nm in $lt_nm_to_check; do
3621     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3622     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3623       IFS="$lt_save_ifs"
3624       test -z "$ac_dir" && ac_dir=.
3625       tmp_nm="$ac_dir/$lt_tmp_nm"
3626       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3627         # Check to see if the nm accepts a BSD-compat flag.
3628         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629         #   nm: unknown option "B" ignored
3630         # Tru64's nm complains that /dev/null is an invalid object file
3631         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3632         */dev/null* | *'Invalid file or object type'*)
3633           lt_cv_path_NM="$tmp_nm -B"
3634           break
3635           ;;
3636         *)
3637           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3638           */dev/null*)
3639             lt_cv_path_NM="$tmp_nm -p"
3640             break
3641             ;;
3642           *)
3643             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3644             continue # so that we can try to find one that supports BSD flags
3645             ;;
3646           esac
3647           ;;
3648         esac
3649       fi
3650     done
3651     IFS="$lt_save_ifs"
3652   done
3653   : ${lt_cv_path_NM=no}
3654 fi
3655 fi
3656 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3657 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3658 if test "$lt_cv_path_NM" != "no"; then
3659   NM="$lt_cv_path_NM"
3660 else
3661   # Didn't find any BSD compatible name lister, look for dumpbin.
3662   if test -n "$ac_tool_prefix"; then
3663   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3664   do
3665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3669 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   if test -n "$DUMPBIN"; then
3673   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 DUMPBIN=$ac_cv_prog_DUMPBIN
3693 if test -n "$DUMPBIN"; then
3694   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3695 echo "${ECHO_T}$DUMPBIN" >&6; }
3696 else
3697   { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3699 fi
3700
3701
3702     test -n "$DUMPBIN" && break
3703   done
3704 fi
3705 if test -z "$DUMPBIN"; then
3706   ac_ct_DUMPBIN=$DUMPBIN
3707   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3708 do
3709   # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   if test -n "$ac_ct_DUMPBIN"; then
3717   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724   for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731 done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3737 if test -n "$ac_ct_DUMPBIN"; then
3738   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3739 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3740 else
3741   { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743 fi
3744
3745
3746   test -n "$ac_ct_DUMPBIN" && break
3747 done
3748
3749   if test "x$ac_ct_DUMPBIN" = x; then
3750     DUMPBIN=":"
3751   else
3752     case $cross_compiling:$ac_tool_warned in
3753 yes:)
3754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3755 whose name does not start with the host triplet.  If you think this
3756 configuration is useful to you, please write to autoconf@gnu.org." >&5
3757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3758 whose name does not start with the host triplet.  If you think this
3759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     DUMPBIN=$ac_ct_DUMPBIN
3763   fi
3764 fi
3765
3766
3767   if test "$DUMPBIN" != ":"; then
3768     NM="$DUMPBIN"
3769   fi
3770 fi
3771 test -z "$NM" && NM=nm
3772
3773
3774
3775
3776
3777
3778 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3779 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3780 if test "${lt_cv_nm_interface+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   lt_cv_nm_interface="BSD nm"
3784   echo "int some_variable = 0;" > conftest.$ac_ext
3785   (eval echo "\"\$as_me:3785: $ac_compile\"" >&5)
3786   (eval "$ac_compile" 2>conftest.err)
3787   cat conftest.err >&5
3788   (eval echo "\"\$as_me:3788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3789   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3790   cat conftest.err >&5
3791   (eval echo "\"\$as_me:3791: output\"" >&5)
3792   cat conftest.out >&5
3793   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3794     lt_cv_nm_interface="MS dumpbin"
3795   fi
3796   rm -f conftest*
3797 fi
3798 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3799 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3800
3801 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3803 LN_S=$as_ln_s
3804 if test "$LN_S" = "ln -s"; then
3805   { echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6; }
3807 else
3808   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3809 echo "${ECHO_T}no, using $LN_S" >&6; }
3810 fi
3811
3812 # find the maximum length of command line arguments
3813 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3814 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3815 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818     i=0
3819   teststring="ABCD"
3820
3821   case $build_os in
3822   msdosdjgpp*)
3823     # On DJGPP, this test can blow up pretty badly due to problems in libc
3824     # (any single argument exceeding 2000 bytes causes a buffer overrun
3825     # during glob expansion).  Even if it were fixed, the result of this
3826     # check would be larger than it should be.
3827     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3828     ;;
3829
3830   gnu*)
3831     # Under GNU Hurd, this test is not required because there is
3832     # no limit to the length of command line arguments.
3833     # Libtool will interpret -1 as no limit whatsoever
3834     lt_cv_sys_max_cmd_len=-1;
3835     ;;
3836
3837   cygwin* | mingw* | cegcc*)
3838     # On Win9x/ME, this test blows up -- it succeeds, but takes
3839     # about 5 minutes as the teststring grows exponentially.
3840     # Worse, since 9x/ME are not pre-emptively multitasking,
3841     # you end up with a "frozen" computer, even though with patience
3842     # the test eventually succeeds (with a max line length of 256k).
3843     # Instead, let's just punt: use the minimum linelength reported by
3844     # all of the supported platforms: 8192 (on NT/2K/XP).
3845     lt_cv_sys_max_cmd_len=8192;
3846     ;;
3847
3848   beos*)
3849     # On BeOS, this test takes a really really long time.
3850     # So we just punt and use a minimum line length of 8192.
3851     lt_cv_sys_max_cmd_len=8192;
3852     ;;
3853
3854   amigaos*)
3855     # On AmigaOS with pdksh, this test takes hours, literally.
3856     # So we just punt and use a minimum line length of 8192.
3857     lt_cv_sys_max_cmd_len=8192;
3858     ;;
3859
3860   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3861     # This has been around since 386BSD, at least.  Likely further.
3862     if test -x /sbin/sysctl; then
3863       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3864     elif test -x /usr/sbin/sysctl; then
3865       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3866     else
3867       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3868     fi
3869     # And add a safety zone
3870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3871     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3872     ;;
3873
3874   interix*)
3875     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3876     lt_cv_sys_max_cmd_len=196608
3877     ;;
3878
3879   osf*)
3880     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3881     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3882     # nice to cause kernel panics so lets avoid the loop below.
3883     # First set a reasonable default.
3884     lt_cv_sys_max_cmd_len=16384
3885     #
3886     if test -x /sbin/sysconfig; then
3887       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3888         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3889       esac
3890     fi
3891     ;;
3892   sco3.2v5*)
3893     lt_cv_sys_max_cmd_len=102400
3894     ;;
3895   sysv5* | sco5v6* | sysv4.2uw2*)
3896     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3897     if test -n "$kargmax"; then
3898       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3899     else
3900       lt_cv_sys_max_cmd_len=32768
3901     fi
3902     ;;
3903   *)
3904     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3905     if test -n "$lt_cv_sys_max_cmd_len"; then
3906       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3907       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3908     else
3909       # Make teststring a little bigger before we do anything with it.
3910       # a 1K string should be a reasonable start.
3911       for i in 1 2 3 4 5 6 7 8 ; do
3912         teststring=$teststring$teststring
3913       done
3914       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3915       # If test is not a shell built-in, we'll probably end up computing a
3916       # maximum length that is only half of the actual maximum length, but
3917       # we can't tell.
3918       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3919                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3920               test $i != 17 # 1/2 MB should be enough
3921       do
3922         i=`expr $i + 1`
3923         teststring=$teststring$teststring
3924       done
3925       # Only check the string length outside the loop.
3926       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3927       teststring=
3928       # Add a significant safety factor because C++ compilers can tack on
3929       # massive amounts of additional arguments before passing them to the
3930       # linker.  It appears as though 1/2 is a usable value.
3931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3932     fi
3933     ;;
3934   esac
3935
3936 fi
3937
3938 if test -n $lt_cv_sys_max_cmd_len ; then
3939   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3940 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3941 else
3942   { echo "$as_me:$LINENO: result: none" >&5
3943 echo "${ECHO_T}none" >&6; }
3944 fi
3945 max_cmd_len=$lt_cv_sys_max_cmd_len
3946
3947
3948
3949
3950
3951
3952 : ${CP="cp -f"}
3953 : ${MV="mv -f"}
3954 : ${RM="rm -f"}
3955
3956 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3957 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3958 # Try some XSI features
3959 xsi_shell=no
3960 ( _lt_dummy="a/b/c"
3961   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3962       = c,a/b,, \
3963     && eval 'test $(( 1 + 1 )) -eq 2 \
3964     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3965   && xsi_shell=yes
3966 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
3967 echo "${ECHO_T}$xsi_shell" >&6; }
3968
3969
3970 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3971 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3972 lt_shell_append=no
3973 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3974     >/dev/null 2>&1 \
3975   && lt_shell_append=yes
3976 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3977 echo "${ECHO_T}$lt_shell_append" >&6; }
3978
3979
3980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3981   lt_unset=unset
3982 else
3983   lt_unset=false
3984 fi
3985
3986
3987
3988
3989
3990 # test EBCDIC or ASCII
3991 case `echo X|tr X '\101'` in
3992  A) # ASCII based system
3993     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3994   lt_SP2NL='tr \040 \012'
3995   lt_NL2SP='tr \015\012 \040\040'
3996   ;;
3997  *) # EBCDIC based system
3998   lt_SP2NL='tr \100 \n'
3999   lt_NL2SP='tr \r\n \100\100'
4000   ;;
4001 esac
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4012 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4013 if test "${lt_cv_ld_reload_flag+set}" = set; then
4014   echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016   lt_cv_ld_reload_flag='-r'
4017 fi
4018 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4019 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4020 reload_flag=$lt_cv_ld_reload_flag
4021 case $reload_flag in
4022 "" | " "*) ;;
4023 *) reload_flag=" $reload_flag" ;;
4024 esac
4025 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4026 case $host_os in
4027   darwin*)
4028     if test "$GCC" = yes; then
4029       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4030     else
4031       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4032     fi
4033     ;;
4034 esac
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044 if test -n "$ac_tool_prefix"; then
4045   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4049 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -n "$OBJDUMP"; then
4053   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068 IFS=$as_save_IFS
4069
4070 fi
4071 fi
4072 OBJDUMP=$ac_cv_prog_OBJDUMP
4073 if test -n "$OBJDUMP"; then
4074   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4075 echo "${ECHO_T}$OBJDUMP" >&6; }
4076 else
4077   { echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6; }
4079 fi
4080
4081
4082 fi
4083 if test -z "$ac_cv_prog_OBJDUMP"; then
4084   ac_ct_OBJDUMP=$OBJDUMP
4085   # Extract the first word of "objdump", so it can be a program name with args.
4086 set dummy objdump; ac_word=$2
4087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4089 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$ac_ct_OBJDUMP"; then
4093   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4113 if test -n "$ac_ct_OBJDUMP"; then
4114   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4115 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4116 else
4117   { echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6; }
4119 fi
4120
4121   if test "x$ac_ct_OBJDUMP" = x; then
4122     OBJDUMP="false"
4123   else
4124     case $cross_compiling:$ac_tool_warned in
4125 yes:)
4126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4127 whose name does not start with the host triplet.  If you think this
4128 configuration is useful to you, please write to autoconf@gnu.org." >&5
4129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4130 whose name does not start with the host triplet.  If you think this
4131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4132 ac_tool_warned=yes ;;
4133 esac
4134     OBJDUMP=$ac_ct_OBJDUMP
4135   fi
4136 else
4137   OBJDUMP="$ac_cv_prog_OBJDUMP"
4138 fi
4139
4140 test -z "$OBJDUMP" && OBJDUMP=objdump
4141
4142
4143
4144
4145
4146
4147 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4148 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4149 if test "${lt_cv_deplibs_check_method+set}" = set; then
4150   echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152   lt_cv_file_magic_cmd='$MAGIC_CMD'
4153 lt_cv_file_magic_test_file=
4154 lt_cv_deplibs_check_method='unknown'
4155 # Need to set the preceding variable on all platforms that support
4156 # interlibrary dependencies.
4157 # 'none' -- dependencies not supported.
4158 # `unknown' -- same as none, but documents that we really don't know.
4159 # 'pass_all' -- all dependencies passed with no checks.
4160 # 'test_compile' -- check by making test program.
4161 # 'file_magic [[regex]]' -- check by looking for files in library path
4162 # which responds to the $file_magic_cmd with a given extended regex.
4163 # If you have `file' or equivalent on your system and you're not sure
4164 # whether `pass_all' will *always* work, you probably want this one.
4165
4166 case $host_os in
4167 aix[4-9]*)
4168   lt_cv_deplibs_check_method=pass_all
4169   ;;
4170
4171 beos*)
4172   lt_cv_deplibs_check_method=pass_all
4173   ;;
4174
4175 bsdi[45]*)
4176   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4177   lt_cv_file_magic_cmd='/usr/bin/file -L'
4178   lt_cv_file_magic_test_file=/shlib/libc.so
4179   ;;
4180
4181 cygwin*)
4182   # func_win32_libid is a shell function defined in ltmain.sh
4183   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4184   lt_cv_deplibs_check_method=pass_all
4185   lt_cv_file_magic_cmd='func_win32_libid'
4186   ;;
4187
4188 mingw* | pw32*)
4189   # Base MSYS/MinGW do not provide the 'file' command needed by
4190   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4191   # unless we find 'file', for example because we are cross-compiling.
4192   if ( file / ) >/dev/null 2>&1; then
4193     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4194     lt_cv_file_magic_cmd='func_win32_libid'
4195   else
4196     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4197     lt_cv_file_magic_cmd='$OBJDUMP -f'
4198   fi
4199   lt_cv_deplibs_check_method=pass_all
4200   ;;
4201
4202 cegcc)
4203   # use the weaker test based on 'objdump'. See mingw*.
4204   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4205   lt_cv_file_magic_cmd='$OBJDUMP -f'
4206   ;;
4207
4208 darwin* | rhapsody*)
4209   lt_cv_deplibs_check_method=pass_all
4210   ;;
4211
4212 freebsd* | dragonfly*)
4213   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4214     case $host_cpu in
4215     i*86 )
4216       # Not sure whether the presence of OpenBSD here was a mistake.
4217       # Let's accept both of them until this is cleared up.
4218       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4219       lt_cv_file_magic_cmd=/usr/bin/file
4220       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4221       ;;
4222     esac
4223   else
4224     lt_cv_deplibs_check_method=pass_all
4225   fi
4226   ;;
4227
4228 gnu*)
4229   lt_cv_deplibs_check_method=pass_all
4230   ;;
4231
4232 hpux10.20* | hpux11*)
4233   lt_cv_file_magic_cmd=/usr/bin/file
4234   case $host_cpu in
4235   ia64*)
4236     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4237     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4238     ;;
4239   hppa*64*)
4240     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4241     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4242     ;;
4243   *)
4244     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4245     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4246     ;;
4247   esac
4248   ;;
4249
4250 interix[3-9]*)
4251   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4252   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4253   ;;
4254
4255 irix5* | irix6* | nonstopux*)
4256   case $LD in
4257   *-32|*"-32 ") libmagic=32-bit;;
4258   *-n32|*"-n32 ") libmagic=N32;;
4259   *-64|*"-64 ") libmagic=64-bit;;
4260   *) libmagic=never-match;;
4261   esac
4262   lt_cv_deplibs_check_method=pass_all
4263   ;;
4264
4265 # This must be Linux ELF.
4266 linux* | k*bsd*-gnu)
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 netbsd*)
4271   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4272     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4273   else
4274     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4275   fi
4276   ;;
4277
4278 newos6*)
4279   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4280   lt_cv_file_magic_cmd=/usr/bin/file
4281   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4282   ;;
4283
4284 *nto* | *qnx*)
4285   lt_cv_deplibs_check_method=pass_all
4286   ;;
4287
4288 openbsd*)
4289   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4290     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4291   else
4292     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4293   fi
4294   ;;
4295
4296 osf3* | osf4* | osf5*)
4297   lt_cv_deplibs_check_method=pass_all
4298   ;;
4299
4300 rdos*)
4301   lt_cv_deplibs_check_method=pass_all
4302   ;;
4303
4304 solaris*)
4305   lt_cv_deplibs_check_method=pass_all
4306   ;;
4307
4308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4309   lt_cv_deplibs_check_method=pass_all
4310   ;;
4311
4312 sysv4 | sysv4.3*)
4313   case $host_vendor in
4314   motorola)
4315     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4316     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4317     ;;
4318   ncr)
4319     lt_cv_deplibs_check_method=pass_all
4320     ;;
4321   sequent)
4322     lt_cv_file_magic_cmd='/bin/file'
4323     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4324     ;;
4325   sni)
4326     lt_cv_file_magic_cmd='/bin/file'
4327     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4328     lt_cv_file_magic_test_file=/lib/libc.so
4329     ;;
4330   siemens)
4331     lt_cv_deplibs_check_method=pass_all
4332     ;;
4333   pc)
4334     lt_cv_deplibs_check_method=pass_all
4335     ;;
4336   esac
4337   ;;
4338
4339 tpf*)
4340   lt_cv_deplibs_check_method=pass_all
4341   ;;
4342 esac
4343
4344 fi
4345 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4346 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4347 file_magic_cmd=$lt_cv_file_magic_cmd
4348 deplibs_check_method=$lt_cv_deplibs_check_method
4349 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362 if test -n "$ac_tool_prefix"; then
4363   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4364 set dummy ${ac_tool_prefix}ar; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_prog_AR+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   if test -n "$AR"; then
4371   ac_cv_prog_AR="$AR" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     ac_cv_prog_AR="${ac_tool_prefix}ar"
4381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 fi
4389 fi
4390 AR=$ac_cv_prog_AR
4391 if test -n "$AR"; then
4392   { echo "$as_me:$LINENO: result: $AR" >&5
4393 echo "${ECHO_T}$AR" >&6; }
4394 else
4395   { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4397 fi
4398
4399
4400 fi
4401 if test -z "$ac_cv_prog_AR"; then
4402   ac_ct_AR=$AR
4403   # Extract the first word of "ar", so it can be a program name with args.
4404 set dummy ar; ac_word=$2
4405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4407 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   if test -n "$ac_ct_AR"; then
4411   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416   IFS=$as_save_IFS
4417   test -z "$as_dir" && as_dir=.
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420     ac_cv_prog_ac_ct_AR="ar"
4421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422     break 2
4423   fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4431 if test -n "$ac_ct_AR"; then
4432   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4433 echo "${ECHO_T}$ac_ct_AR" >&6; }
4434 else
4435   { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437 fi
4438
4439   if test "x$ac_ct_AR" = x; then
4440     AR="false"
4441   else
4442     case $cross_compiling:$ac_tool_warned in
4443 yes:)
4444 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4445 whose name does not start with the host triplet.  If you think this
4446 configuration is useful to you, please write to autoconf@gnu.org." >&5
4447 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4448 whose name does not start with the host triplet.  If you think this
4449 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452     AR=$ac_ct_AR
4453   fi
4454 else
4455   AR="$ac_cv_prog_AR"
4456 fi
4457
4458 test -z "$AR" && AR=ar
4459 test -z "$AR_FLAGS" && AR_FLAGS=cru
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471 if test -n "$ac_tool_prefix"; then
4472   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}strip; ac_word=$2
4474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476 if test "${ac_cv_prog_STRIP+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   if test -n "$STRIP"; then
4480   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4484 do
4485   IFS=$as_save_IFS
4486   test -z "$as_dir" && as_dir=.
4487   for ac_exec_ext in '' $ac_executable_extensions; do
4488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491     break 2
4492   fi
4493 done
4494 done
4495 IFS=$as_save_IFS
4496
4497 fi
4498 fi
4499 STRIP=$ac_cv_prog_STRIP
4500 if test -n "$STRIP"; then
4501   { echo "$as_me:$LINENO: result: $STRIP" >&5
4502 echo "${ECHO_T}$STRIP" >&6; }
4503 else
4504   { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4506 fi
4507
4508
4509 fi
4510 if test -z "$ac_cv_prog_STRIP"; then
4511   ac_ct_STRIP=$STRIP
4512   # Extract the first word of "strip", so it can be a program name with args.
4513 set dummy strip; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$ac_ct_STRIP"; then
4520   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_prog_ac_ct_STRIP="strip"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 fi
4538 fi
4539 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4540 if test -n "$ac_ct_STRIP"; then
4541   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4542 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4543 else
4544   { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }
4546 fi
4547
4548   if test "x$ac_ct_STRIP" = x; then
4549     STRIP=":"
4550   else
4551     case $cross_compiling:$ac_tool_warned in
4552 yes:)
4553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4554 whose name does not start with the host triplet.  If you think this
4555 configuration is useful to you, please write to autoconf@gnu.org." >&5
4556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4557 whose name does not start with the host triplet.  If you think this
4558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4559 ac_tool_warned=yes ;;
4560 esac
4561     STRIP=$ac_ct_STRIP
4562   fi
4563 else
4564   STRIP="$ac_cv_prog_STRIP"
4565 fi
4566
4567 test -z "$STRIP" && STRIP=:
4568
4569
4570
4571
4572
4573
4574 if test -n "$ac_tool_prefix"; then
4575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579 if test "${ac_cv_prog_RANLIB+set}" = set; then
4580   echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582   if test -n "$RANLIB"; then
4583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588   IFS=$as_save_IFS
4589   test -z "$as_dir" && as_dir=.
4590   for ac_exec_ext in '' $ac_executable_extensions; do
4591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594     break 2
4595   fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi
4601 fi
4602 RANLIB=$ac_cv_prog_RANLIB
4603 if test -n "$RANLIB"; then
4604   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4605 echo "${ECHO_T}$RANLIB" >&6; }
4606 else
4607   { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4609 fi
4610
4611
4612 fi
4613 if test -z "$ac_cv_prog_RANLIB"; then
4614   ac_ct_RANLIB=$RANLIB
4615   # Extract the first word of "ranlib", so it can be a program name with args.
4616 set dummy ranlib; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   if test -n "$ac_ct_RANLIB"; then
4623   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630   for ac_exec_ext in '' $ac_executable_extensions; do
4631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632     ac_cv_prog_ac_ct_RANLIB="ranlib"
4633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4643 if test -n "$ac_ct_RANLIB"; then
4644   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4645 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4646 else
4647   { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4649 fi
4650
4651   if test "x$ac_ct_RANLIB" = x; then
4652     RANLIB=":"
4653   else
4654     case $cross_compiling:$ac_tool_warned in
4655 yes:)
4656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4657 whose name does not start with the host triplet.  If you think this
4658 configuration is useful to you, please write to autoconf@gnu.org." >&5
4659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet.  If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4662 ac_tool_warned=yes ;;
4663 esac
4664     RANLIB=$ac_ct_RANLIB
4665   fi
4666 else
4667   RANLIB="$ac_cv_prog_RANLIB"
4668 fi
4669
4670 test -z "$RANLIB" && RANLIB=:
4671
4672
4673
4674
4675
4676
4677 # Determine commands to create old-style static archives.
4678 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4679 old_postinstall_cmds='chmod 644 $oldlib'
4680 old_postuninstall_cmds=
4681
4682 if test -n "$RANLIB"; then
4683   case $host_os in
4684   openbsd*)
4685     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4686     ;;
4687   *)
4688     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4689     ;;
4690   esac
4691   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4692 fi
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727 # If no C compiler was specified, use CC.
4728 LTCC=${LTCC-"$CC"}
4729
4730 # If no C compiler flags were specified, use CFLAGS.
4731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4732
4733 # Allow CC to be a program name with arguments.
4734 compiler=$CC
4735
4736
4737 # Check for command to grab the raw symbol name followed by C symbol from nm.
4738 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4739 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4740 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743
4744 # These are sane defaults that work on at least a few old systems.
4745 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4746
4747 # Character class describing NM global symbol codes.
4748 symcode='[BCDEGRST]'
4749
4750 # Regexp to match symbols that can be accessed directly from C.
4751 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4752
4753 # Define system-specific variables.
4754 case $host_os in
4755 aix*)
4756   symcode='[BCDT]'
4757   ;;
4758 cygwin* | mingw* | pw32* | cegcc*)
4759   symcode='[ABCDGISTW]'
4760   ;;
4761 hpux*)
4762   if test "$host_cpu" = ia64; then
4763     symcode='[ABCDEGRST]'
4764   fi
4765   ;;
4766 irix* | nonstopux*)
4767   symcode='[BCDEGRST]'
4768   ;;
4769 osf*)
4770   symcode='[BCDEGQRST]'
4771   ;;
4772 solaris*)
4773   symcode='[BDRT]'
4774   ;;
4775 sco3.2v5*)
4776   symcode='[DT]'
4777   ;;
4778 sysv4.2uw2*)
4779   symcode='[DT]'
4780   ;;
4781 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4782   symcode='[ABDT]'
4783   ;;
4784 sysv4)
4785   symcode='[DFNSTU]'
4786   ;;
4787 esac
4788
4789 # If we're using GNU nm, then use its standard symbol codes.
4790 case `$NM -V 2>&1` in
4791 *GNU* | *'with BFD'*)
4792   symcode='[ABCDGIRSTW]' ;;
4793 esac
4794
4795 # Transform an extracted symbol line into a proper C declaration.
4796 # Some systems (esp. on ia64) link data and code symbols differently,
4797 # so use this general approach.
4798 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4799
4800 # Transform an extracted symbol line into symbol name and symbol address
4801 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4802 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
4803
4804 # Handle CRLF in mingw tool chain
4805 opt_cr=
4806 case $build_os in
4807 mingw*)
4808   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4809   ;;
4810 esac
4811
4812 # Try without a prefix underscore, then with it.
4813 for ac_symprfx in "" "_"; do
4814
4815   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4816   symxfrm="\\1 $ac_symprfx\\2 \\2"
4817
4818   # Write the raw and C identifiers.
4819   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4820     # Fake it for dumpbin and say T for any non-static function
4821     # and D for any global variable.
4822     # Also find C++ and __fastcall symbols from MSVC++,
4823     # which start with @ or ?.
4824     lt_cv_sys_global_symbol_pipe="$AWK '"\
4825 "     {last_section=section; section=\$ 3};"\
4826 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4827 "     \$ 0!~/External *\|/{next};"\
4828 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4829 "     {if(hide[section]) next};"\
4830 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4831 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4832 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4833 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4834 "     ' prfx=^$ac_symprfx"
4835   else
4836     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4837   fi
4838
4839   # Check to see that the pipe works correctly.
4840   pipe_works=no
4841
4842   rm -f conftest*
4843   cat > conftest.$ac_ext <<_LT_EOF
4844 #ifdef __cplusplus
4845 extern "C" {
4846 #endif
4847 char nm_test_var;
4848 void nm_test_func(void);
4849 void nm_test_func(void){}
4850 #ifdef __cplusplus
4851 }
4852 #endif
4853 int main(){nm_test_var='a';nm_test_func();return(0);}
4854 _LT_EOF
4855
4856   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; then
4861     # Now try to grab the symbols.
4862     nlist=conftest.nm
4863     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4864   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4865   ac_status=$?
4866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } && test -s "$nlist"; then
4868       # Try sorting and uniquifying the output.
4869       if sort "$nlist" | uniq > "$nlist"T; then
4870         mv -f "$nlist"T "$nlist"
4871       else
4872         rm -f "$nlist"T
4873       fi
4874
4875       # Make sure that we snagged all the symbols we need.
4876       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4877         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4878           cat <<_LT_EOF > conftest.$ac_ext
4879 #ifdef __cplusplus
4880 extern "C" {
4881 #endif
4882
4883 _LT_EOF
4884           # Now generate the symbol file.
4885           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4886
4887           cat <<_LT_EOF >> conftest.$ac_ext
4888
4889 /* The mapping between symbol names and symbols.  */
4890 const struct {
4891   const char *name;
4892   void       *address;
4893 }
4894 lt__PROGRAM__LTX_preloaded_symbols[] =
4895 {
4896   { "@PROGRAM@", (void *) 0 },
4897 _LT_EOF
4898           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4899           cat <<\_LT_EOF >> conftest.$ac_ext
4900   {0, (void *) 0}
4901 };
4902
4903 /* This works around a problem in FreeBSD linker */
4904 #ifdef FREEBSD_WORKAROUND
4905 static const void *lt_preloaded_setup() {
4906   return lt__PROGRAM__LTX_preloaded_symbols;
4907 }
4908 #endif
4909
4910 #ifdef __cplusplus
4911 }
4912 #endif
4913 _LT_EOF
4914           # Now try linking the two files.
4915           mv conftest.$ac_objext conftstm.$ac_objext
4916           lt_save_LIBS="$LIBS"
4917           lt_save_CFLAGS="$CFLAGS"
4918           LIBS="conftstm.$ac_objext"
4919           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4920           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921   (eval $ac_link) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4925             pipe_works=yes
4926           fi
4927           LIBS="$lt_save_LIBS"
4928           CFLAGS="$lt_save_CFLAGS"
4929         else
4930           echo "cannot find nm_test_func in $nlist" >&5
4931         fi
4932       else
4933         echo "cannot find nm_test_var in $nlist" >&5
4934       fi
4935     else
4936       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4937     fi
4938   else
4939     echo "$progname: failed program was:" >&5
4940     cat conftest.$ac_ext >&5
4941   fi
4942   rm -rf conftest* conftst*
4943
4944   # Do not use the global_symbol_pipe unless it works.
4945   if test "$pipe_works" = yes; then
4946     break
4947   else
4948     lt_cv_sys_global_symbol_pipe=
4949   fi
4950 done
4951
4952 fi
4953
4954 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4955   lt_cv_sys_global_symbol_to_cdecl=
4956 fi
4957 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4958   { echo "$as_me:$LINENO: result: failed" >&5
4959 echo "${ECHO_T}failed" >&6; }
4960 else
4961   { echo "$as_me:$LINENO: result: ok" >&5
4962 echo "${ECHO_T}ok" >&6; }
4963 fi
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987 # Check whether --enable-libtool-lock was given.
4988 if test "${enable_libtool_lock+set}" = set; then
4989   enableval=$enable_libtool_lock;
4990 fi
4991
4992 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4993
4994 # Some flags need to be propagated to the compiler or linker for good
4995 # libtool support.
4996 case $host in
4997 ia64-*-hpux*)
4998   # Find out which ABI we are using.
4999   echo 'int i;' > conftest.$ac_ext
5000   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001   (eval $ac_compile) 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; then
5005     case `/usr/bin/file conftest.$ac_objext` in
5006       *ELF-32*)
5007         HPUX_IA64_MODE="32"
5008         ;;
5009       *ELF-64*)
5010         HPUX_IA64_MODE="64"
5011         ;;
5012     esac
5013   fi
5014   rm -rf conftest*
5015   ;;
5016 *-*-irix6*)
5017   # Find out which ABI we are using.
5018   echo '#line 5018 "configure"' > conftest.$ac_ext
5019   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020   (eval $ac_compile) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; then
5024     if test "$lt_cv_prog_gnu_ld" = yes; then
5025       case `/usr/bin/file conftest.$ac_objext` in
5026         *32-bit*)
5027           LD="${LD-ld} -melf32bsmip"
5028           ;;
5029         *N32*)
5030           LD="${LD-ld} -melf32bmipn32"
5031           ;;
5032         *64-bit*)
5033           LD="${LD-ld} -melf64bmip"
5034         ;;
5035       esac
5036     else
5037       case `/usr/bin/file conftest.$ac_objext` in
5038         *32-bit*)
5039           LD="${LD-ld} -32"
5040           ;;
5041         *N32*)
5042           LD="${LD-ld} -n32"
5043           ;;
5044         *64-bit*)
5045           LD="${LD-ld} -64"
5046           ;;
5047       esac
5048     fi
5049   fi
5050   rm -rf conftest*
5051   ;;
5052
5053 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5054 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5055   # Find out which ABI we are using.
5056   echo 'int i;' > conftest.$ac_ext
5057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; then
5062     case `/usr/bin/file conftest.o` in
5063       *32-bit*)
5064         case $host in
5065           x86_64-*kfreebsd*-gnu)
5066             LD="${LD-ld} -m elf_i386_fbsd"
5067             ;;
5068           x86_64-*linux*)
5069             LD="${LD-ld} -m elf_i386"
5070             ;;
5071           ppc64-*linux*|powerpc64-*linux*)
5072             LD="${LD-ld} -m elf32ppclinux"
5073             ;;
5074           s390x-*linux*)
5075             LD="${LD-ld} -m elf_s390"
5076             ;;
5077           sparc64-*linux*)
5078             LD="${LD-ld} -m elf32_sparc"
5079             ;;
5080         esac
5081         ;;
5082       *64-bit*)
5083         case $host in
5084           x86_64-*kfreebsd*-gnu)
5085             LD="${LD-ld} -m elf_x86_64_fbsd"
5086             ;;
5087           x86_64-*linux*)
5088             LD="${LD-ld} -m elf_x86_64"
5089             ;;
5090           ppc*-*linux*|powerpc*-*linux*)
5091             LD="${LD-ld} -m elf64ppc"
5092             ;;
5093           s390*-*linux*|s390*-*tpf*)
5094             LD="${LD-ld} -m elf64_s390"
5095             ;;
5096           sparc*-*linux*)
5097             LD="${LD-ld} -m elf64_sparc"
5098             ;;
5099         esac
5100         ;;
5101     esac
5102   fi
5103   rm -rf conftest*
5104   ;;
5105
5106 *-*-sco3.2v5*)
5107   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5108   SAVE_CFLAGS="$CFLAGS"
5109   CFLAGS="$CFLAGS -belf"
5110   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5111 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5112 if test "${lt_cv_cc_needs_belf+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
5121      cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127
5128 int
5129 main ()
5130 {
5131
5132   ;
5133   return 0;
5134 }
5135 _ACEOF
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (ac_try="$ac_link"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_link") 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } && {
5150          test -z "$ac_c_werror_flag" ||
5151          test ! -s conftest.err
5152        } && test -s conftest$ac_exeext &&
5153        $as_test_x conftest$ac_exeext; then
5154   lt_cv_cc_needs_belf=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159         lt_cv_cc_needs_belf=no
5160 fi
5161
5162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5163       conftest$ac_exeext conftest.$ac_ext
5164      ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170 fi
5171 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5172 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5173   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5174     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5175     CFLAGS="$SAVE_CFLAGS"
5176   fi
5177   ;;
5178 sparc*-*solaris*)
5179   # Find out which ABI we are using.
5180   echo 'int i;' > conftest.$ac_ext
5181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5182   (eval $ac_compile) 2>&5
5183   ac_status=$?
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); }; then
5186     case `/usr/bin/file conftest.o` in
5187     *64-bit*)
5188       case $lt_cv_prog_gnu_ld in
5189       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5190       *)
5191         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5192           LD="${LD-ld} -64"
5193         fi
5194         ;;
5195       esac
5196       ;;
5197     esac
5198   fi
5199   rm -rf conftest*
5200   ;;
5201 esac
5202
5203 need_locks="$enable_libtool_lock"
5204
5205
5206   case $host_os in
5207     rhapsody* | darwin*)
5208     if test -n "$ac_tool_prefix"; then
5209   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5210 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   if test -n "$DSYMUTIL"; then
5217   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222   IFS=$as_save_IFS
5223   test -z "$as_dir" && as_dir=.
5224   for ac_exec_ext in '' $ac_executable_extensions; do
5225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228     break 2
5229   fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5237 if test -n "$DSYMUTIL"; then
5238   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5239 echo "${ECHO_T}$DSYMUTIL" >&6; }
5240 else
5241   { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5243 fi
5244
5245
5246 fi
5247 if test -z "$ac_cv_prog_DSYMUTIL"; then
5248   ac_ct_DSYMUTIL=$DSYMUTIL
5249   # Extract the first word of "dsymutil", so it can be a program name with args.
5250 set dummy dsymutil; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$ac_ct_DSYMUTIL"; then
5257   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5258 else
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264   for ac_exec_ext in '' $ac_executable_extensions; do
5265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5266     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268     break 2
5269   fi
5270 done
5271 done
5272 IFS=$as_save_IFS
5273
5274 fi
5275 fi
5276 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5277 if test -n "$ac_ct_DSYMUTIL"; then
5278   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5279 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5280 else
5281   { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5283 fi
5284
5285   if test "x$ac_ct_DSYMUTIL" = x; then
5286     DSYMUTIL=":"
5287   else
5288     case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5291 whose name does not start with the host triplet.  If you think this
5292 configuration is useful to you, please write to autoconf@gnu.org." >&5
5293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5294 whose name does not start with the host triplet.  If you think this
5295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5296 ac_tool_warned=yes ;;
5297 esac
5298     DSYMUTIL=$ac_ct_DSYMUTIL
5299   fi
5300 else
5301   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5302 fi
5303
5304     if test -n "$ac_tool_prefix"; then
5305   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5306 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   if test -n "$NMEDIT"; then
5313   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320   for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 NMEDIT=$ac_cv_prog_NMEDIT
5333 if test -n "$NMEDIT"; then
5334   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5335 echo "${ECHO_T}$NMEDIT" >&6; }
5336 else
5337   { echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6; }
5339 fi
5340
5341
5342 fi
5343 if test -z "$ac_cv_prog_NMEDIT"; then
5344   ac_ct_NMEDIT=$NMEDIT
5345   # Extract the first word of "nmedit", so it can be a program name with args.
5346 set dummy nmedit; ac_word=$2
5347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5349 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5350   echo $ECHO_N "(cached) $ECHO_C" >&6
5351 else
5352   if test -n "$ac_ct_NMEDIT"; then
5353   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360   for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5373 if test -n "$ac_ct_NMEDIT"; then
5374   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5375 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381   if test "x$ac_ct_NMEDIT" = x; then
5382     NMEDIT=":"
5383   else
5384     case $cross_compiling:$ac_tool_warned in
5385 yes:)
5386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5387 whose name does not start with the host triplet.  If you think this
5388 configuration is useful to you, please write to autoconf@gnu.org." >&5
5389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet.  If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394     NMEDIT=$ac_ct_NMEDIT
5395   fi
5396 else
5397   NMEDIT="$ac_cv_prog_NMEDIT"
5398 fi
5399
5400     if test -n "$ac_tool_prefix"; then
5401   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5405 if test "${ac_cv_prog_LIPO+set}" = set; then
5406   echo $ECHO_N "(cached) $ECHO_C" >&6
5407 else
5408   if test -n "$LIPO"; then
5409   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416   for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 LIPO=$ac_cv_prog_LIPO
5429 if test -n "$LIPO"; then
5430   { echo "$as_me:$LINENO: result: $LIPO" >&5
5431 echo "${ECHO_T}$LIPO" >&6; }
5432 else
5433   { echo "$as_me:$LINENO: result: no" >&5
5434 echo "${ECHO_T}no" >&6; }
5435 fi
5436
5437
5438 fi
5439 if test -z "$ac_cv_prog_LIPO"; then
5440   ac_ct_LIPO=$LIPO
5441   # Extract the first word of "lipo", so it can be a program name with args.
5442 set dummy lipo; ac_word=$2
5443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5445 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   if test -n "$ac_ct_LIPO"; then
5449   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456   for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_ac_ct_LIPO="lipo"
5459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463 done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5469 if test -n "$ac_ct_LIPO"; then
5470   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5471 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5472 else
5473   { echo "$as_me:$LINENO: result: no" >&5
5474 echo "${ECHO_T}no" >&6; }
5475 fi
5476
5477   if test "x$ac_ct_LIPO" = x; then
5478     LIPO=":"
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5483 whose name does not start with the host triplet.  If you think this
5484 configuration is useful to you, please write to autoconf@gnu.org." >&5
5485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5486 whose name does not start with the host triplet.  If you think this
5487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490     LIPO=$ac_ct_LIPO
5491   fi
5492 else
5493   LIPO="$ac_cv_prog_LIPO"
5494 fi
5495
5496     if test -n "$ac_tool_prefix"; then
5497   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}otool; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_OTOOL+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if test -n "$OTOOL"; then
5505   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512   for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 OTOOL=$ac_cv_prog_OTOOL
5525 if test -n "$OTOOL"; then
5526   { echo "$as_me:$LINENO: result: $OTOOL" >&5
5527 echo "${ECHO_T}$OTOOL" >&6; }
5528 else
5529   { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_OTOOL"; then
5536   ac_ct_OTOOL=$OTOOL
5537   # Extract the first word of "otool", so it can be a program name with args.
5538 set dummy otool; ac_word=$2
5539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5541 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544   if test -n "$ac_ct_OTOOL"; then
5545   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552   for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_prog_ac_ct_OTOOL="otool"
5555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5565 if test -n "$ac_ct_OTOOL"; then
5566   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5567 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5568 else
5569   { echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6; }
5571 fi
5572
5573   if test "x$ac_ct_OTOOL" = x; then
5574     OTOOL=":"
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5579 whose name does not start with the host triplet.  If you think this
5580 configuration is useful to you, please write to autoconf@gnu.org." >&5
5581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5582 whose name does not start with the host triplet.  If you think this
5583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586     OTOOL=$ac_ct_OTOOL
5587   fi
5588 else
5589   OTOOL="$ac_cv_prog_OTOOL"
5590 fi
5591
5592     if test -n "$ac_tool_prefix"; then
5593   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5594 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5597 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   if test -n "$OTOOL64"; then
5601   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606   IFS=$as_save_IFS
5607   test -z "$as_dir" && as_dir=.
5608   for ac_exec_ext in '' $ac_executable_extensions; do
5609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612     break 2
5613   fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 OTOOL64=$ac_cv_prog_OTOOL64
5621 if test -n "$OTOOL64"; then
5622   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5623 echo "${ECHO_T}$OTOOL64" >&6; }
5624 else
5625   { echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6; }
5627 fi
5628
5629
5630 fi
5631 if test -z "$ac_cv_prog_OTOOL64"; then
5632   ac_ct_OTOOL64=$OTOOL64
5633   # Extract the first word of "otool64", so it can be a program name with args.
5634 set dummy otool64; ac_word=$2
5635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5637 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5638   echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640   if test -n "$ac_ct_OTOOL64"; then
5641   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648   for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_prog_ac_ct_OTOOL64="otool64"
5651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5661 if test -n "$ac_ct_OTOOL64"; then
5662   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5663 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5664 else
5665   { echo "$as_me:$LINENO: result: no" >&5
5666 echo "${ECHO_T}no" >&6; }
5667 fi
5668
5669   if test "x$ac_ct_OTOOL64" = x; then
5670     OTOOL64=":"
5671   else
5672     case $cross_compiling:$ac_tool_warned in
5673 yes:)
5674 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5675 whose name does not start with the host triplet.  If you think this
5676 configuration is useful to you, please write to autoconf@gnu.org." >&5
5677 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5678 whose name does not start with the host triplet.  If you think this
5679 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682     OTOOL64=$ac_ct_OTOOL64
5683   fi
5684 else
5685   OTOOL64="$ac_cv_prog_OTOOL64"
5686 fi
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5715 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5716 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   lt_cv_apple_cc_single_mod=no
5720       if test -z "${LT_MULTI_MODULE}"; then
5721         # By default we will add the -single_module flag. You can override
5722         # by either setting the environment variable LT_MULTI_MODULE
5723         # non-empty at configure time, or by adding -multi_module to the
5724         # link flags.
5725         rm -rf libconftest.dylib*
5726         echo "int foo(void){return 1;}" > conftest.c
5727         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5728 -dynamiclib -Wl,-single_module conftest.c" >&5
5729         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5730           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5731         _lt_result=$?
5732         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5733           lt_cv_apple_cc_single_mod=yes
5734         else
5735           cat conftest.err >&5
5736         fi
5737         rm -rf libconftest.dylib*
5738         rm -f conftest.*
5739       fi
5740 fi
5741 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5742 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5743     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5744 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5745 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   lt_cv_ld_exported_symbols_list=no
5749       save_LDFLAGS=$LDFLAGS
5750       echo "_main" > conftest.sym
5751       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5752       cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758
5759 int
5760 main ()
5761 {
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5769 case "(($ac_try" in
5770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771   *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774   (eval "$ac_link") 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } && {
5781          test -z "$ac_c_werror_flag" ||
5782          test ! -s conftest.err
5783        } && test -s conftest$ac_exeext &&
5784        $as_test_x conftest$ac_exeext; then
5785   lt_cv_ld_exported_symbols_list=yes
5786 else
5787   echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790         lt_cv_ld_exported_symbols_list=no
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794       conftest$ac_exeext conftest.$ac_ext
5795         LDFLAGS="$save_LDFLAGS"
5796
5797 fi
5798 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5799 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5800     case $host_os in
5801     rhapsody* | darwin1.[012])
5802       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5803     darwin1.*)
5804       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5805     darwin*) # darwin 5.x on
5806       # if running on 10.5 or later, the deployment target defaults
5807       # to the OS version, if on x86, and 10.4, the deployment
5808       # target defaults to 10.4. Don't you love it?
5809       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5810         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5811           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5812         10.[012]*)
5813           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5814         10.*)
5815           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5816       esac
5817     ;;
5818   esac
5819     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5820       _lt_dar_single_mod='$single_module'
5821     fi
5822     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5823       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5824     else
5825       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5826     fi
5827     if test "$DSYMUTIL" != ":"; then
5828       _lt_dsymutil='~$DSYMUTIL $lib || :'
5829     else
5830       _lt_dsymutil=
5831     fi
5832     ;;
5833   esac
5834
5835 ac_ext=c
5836 ac_cpp='$CPP $CPPFLAGS'
5837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5841 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5842 # On Suns, sometimes $CPP names a directory.
5843 if test -n "$CPP" && test -d "$CPP"; then
5844   CPP=
5845 fi
5846 if test -z "$CPP"; then
5847   if test "${ac_cv_prog_CPP+set}" = set; then
5848   echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850       # Double quotes because CPP needs to be expanded
5851     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5852     do
5853       ac_preproc_ok=false
5854 for ac_c_preproc_warn_flag in '' yes
5855 do
5856   # Use a header file that comes with gcc, so configuring glibc
5857   # with a fresh cross-compiler works.
5858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859   # <limits.h> exists even on freestanding compilers.
5860   # On the NeXT, cc -E runs the code through the compiler's parser,
5861   # not just through cpp. "Syntax error" is here to catch this case.
5862   cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868 #ifdef __STDC__
5869 # include <limits.h>
5870 #else
5871 # include <assert.h>
5872 #endif
5873                      Syntax error
5874 _ACEOF
5875 if { (ac_try="$ac_cpp conftest.$ac_ext"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } >/dev/null && {
5888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889          test ! -s conftest.err
5890        }; then
5891   :
5892 else
5893   echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5895
5896   # Broken: fails on valid input.
5897 continue
5898 fi
5899
5900 rm -f conftest.err conftest.$ac_ext
5901
5902   # OK, works on sane cases.  Now check whether nonexistent headers
5903   # can be detected and how.
5904   cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 #include <ac_nonexistent.h>
5911 _ACEOF
5912 if { (ac_try="$ac_cpp conftest.$ac_ext"
5913 case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5919   ac_status=$?
5920   grep -v '^ *+' conftest.er1 >conftest.err
5921   rm -f conftest.er1
5922   cat conftest.err >&5
5923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924   (exit $ac_status); } >/dev/null && {
5925          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5926          test ! -s conftest.err
5927        }; then
5928   # Broken: success on invalid input.
5929 continue
5930 else
5931   echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5933
5934   # Passes both tests.
5935 ac_preproc_ok=:
5936 break
5937 fi
5938
5939 rm -f conftest.err conftest.$ac_ext
5940
5941 done
5942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943 rm -f conftest.err conftest.$ac_ext
5944 if $ac_preproc_ok; then
5945   break
5946 fi
5947
5948     done
5949     ac_cv_prog_CPP=$CPP
5950
5951 fi
5952   CPP=$ac_cv_prog_CPP
5953 else
5954   ac_cv_prog_CPP=$CPP
5955 fi
5956 { echo "$as_me:$LINENO: result: $CPP" >&5
5957 echo "${ECHO_T}$CPP" >&6; }
5958 ac_preproc_ok=false
5959 for ac_c_preproc_warn_flag in '' yes
5960 do
5961   # Use a header file that comes with gcc, so configuring glibc
5962   # with a fresh cross-compiler works.
5963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5964   # <limits.h> exists even on freestanding compilers.
5965   # On the NeXT, cc -E runs the code through the compiler's parser,
5966   # not just through cpp. "Syntax error" is here to catch this case.
5967   cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 #ifdef __STDC__
5974 # include <limits.h>
5975 #else
5976 # include <assert.h>
5977 #endif
5978                      Syntax error
5979 _ACEOF
5980 if { (ac_try="$ac_cpp conftest.$ac_ext"
5981 case "(($ac_try" in
5982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983   *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } >/dev/null && {
5993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994          test ! -s conftest.err
5995        }; then
5996   :
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001   # Broken: fails on valid input.
6002 continue
6003 fi
6004
6005 rm -f conftest.err conftest.$ac_ext
6006
6007   # OK, works on sane cases.  Now check whether nonexistent headers
6008   # can be detected and how.
6009   cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h.  */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h.  */
6015 #include <ac_nonexistent.h>
6016 _ACEOF
6017 if { (ac_try="$ac_cpp conftest.$ac_ext"
6018 case "(($ac_try" in
6019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020   *) ac_try_echo=$ac_try;;
6021 esac
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6024   ac_status=$?
6025   grep -v '^ *+' conftest.er1 >conftest.err
6026   rm -f conftest.er1
6027   cat conftest.err >&5
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); } >/dev/null && {
6030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6031          test ! -s conftest.err
6032        }; then
6033   # Broken: success on invalid input.
6034 continue
6035 else
6036   echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6038
6039   # Passes both tests.
6040 ac_preproc_ok=:
6041 break
6042 fi
6043
6044 rm -f conftest.err conftest.$ac_ext
6045
6046 done
6047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048 rm -f conftest.err conftest.$ac_ext
6049 if $ac_preproc_ok; then
6050   :
6051 else
6052   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053 See \`config.log' for more details." >&5
6054 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055 See \`config.log' for more details." >&2;}
6056    { (exit 1); exit 1; }; }
6057 fi
6058
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065
6066 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6067 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6068 if test "${ac_cv_header_stdc+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077 #include <stdlib.h>
6078 #include <stdarg.h>
6079 #include <string.h>
6080 #include <float.h>
6081
6082 int
6083 main ()
6084 {
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097   (eval "$ac_compile") 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } && {
6104          test -z "$ac_c_werror_flag" ||
6105          test ! -s conftest.err
6106        } && test -s conftest.$ac_objext; then
6107   ac_cv_header_stdc=yes
6108 else
6109   echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6111
6112         ac_cv_header_stdc=no
6113 fi
6114
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116
6117 if test $ac_cv_header_stdc = yes; then
6118   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119   cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 #include <string.h>
6126
6127 _ACEOF
6128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129   $EGREP "memchr" >/dev/null 2>&1; then
6130   :
6131 else
6132   ac_cv_header_stdc=no
6133 fi
6134 rm -f -r conftest*
6135
6136 fi
6137
6138 if test $ac_cv_header_stdc = yes; then
6139   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140   cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146 #include <stdlib.h>
6147
6148 _ACEOF
6149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150   $EGREP "free" >/dev/null 2>&1; then
6151   :
6152 else
6153   ac_cv_header_stdc=no
6154 fi
6155 rm -f -r conftest*
6156
6157 fi
6158
6159 if test $ac_cv_header_stdc = yes; then
6160   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161   if test "$cross_compiling" = yes; then
6162   :
6163 else
6164   cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #include <ctype.h>
6171 #include <stdlib.h>
6172 #if ((' ' & 0x0FF) == 0x020)
6173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6175 #else
6176 # define ISLOWER(c) \
6177                    (('a' <= (c) && (c) <= 'i') \
6178                      || ('j' <= (c) && (c) <= 'r') \
6179                      || ('s' <= (c) && (c) <= 'z'))
6180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6181 #endif
6182
6183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6184 int
6185 main ()
6186 {
6187   int i;
6188   for (i = 0; i < 256; i++)
6189     if (XOR (islower (i), ISLOWER (i))
6190         || toupper (i) != TOUPPER (i))
6191       return 2;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest$ac_exeext
6196 if { (ac_try="$ac_link"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202   (eval "$ac_link") 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206   { (case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_try") 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }; }; then
6215   :
6216 else
6217   echo "$as_me: program exited with status $ac_status" >&5
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221 ( exit $ac_status )
6222 ac_cv_header_stdc=no
6223 fi
6224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6225 fi
6226
6227
6228 fi
6229 fi
6230 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6231 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6232 if test $ac_cv_header_stdc = yes; then
6233
6234 cat >>confdefs.h <<\_ACEOF
6235 #define STDC_HEADERS 1
6236 _ACEOF
6237
6238 fi
6239
6240 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6251                   inttypes.h stdint.h unistd.h
6252 do
6253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 $ac_includes_default
6266
6267 #include <$ac_header>
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6271 case "(($ac_try" in
6272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273   *) ac_try_echo=$ac_try;;
6274 esac
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276   (eval "$ac_compile") 2>conftest.er1
6277   ac_status=$?
6278   grep -v '^ *+' conftest.er1 >conftest.err
6279   rm -f conftest.er1
6280   cat conftest.err >&5
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } && {
6283          test -z "$ac_c_werror_flag" ||
6284          test ! -s conftest.err
6285        } && test -s conftest.$ac_objext; then
6286   eval "$as_ac_Header=yes"
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291         eval "$as_ac_Header=no"
6292 fi
6293
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 ac_res=`eval echo '${'$as_ac_Header'}'`
6297                { echo "$as_me:$LINENO: result: $ac_res" >&5
6298 echo "${ECHO_T}$ac_res" >&6; }
6299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6300   cat >>confdefs.h <<_ACEOF
6301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6302 _ACEOF
6303
6304 fi
6305
6306 done
6307
6308
6309
6310 for ac_header in dlfcn.h
6311 do
6312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 $ac_includes_default
6325
6326 #include <$ac_header>
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6330 case "(($ac_try" in
6331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332   *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335   (eval "$ac_compile") 2>conftest.er1
6336   ac_status=$?
6337   grep -v '^ *+' conftest.er1 >conftest.err
6338   rm -f conftest.er1
6339   cat conftest.err >&5
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); } && {
6342          test -z "$ac_c_werror_flag" ||
6343          test ! -s conftest.err
6344        } && test -s conftest.$ac_objext; then
6345   eval "$as_ac_Header=yes"
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350         eval "$as_ac_Header=no"
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 ac_res=`eval echo '${'$as_ac_Header'}'`
6356                { echo "$as_me:$LINENO: result: $ac_res" >&5
6357 echo "${ECHO_T}$ac_res" >&6; }
6358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6359   cat >>confdefs.h <<_ACEOF
6360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 _ACEOF
6362
6363 fi
6364
6365 done
6366
6367
6368
6369 # Set options
6370 enable_win32_dll=yes
6371
6372 case $host in
6373 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6374   if test -n "$ac_tool_prefix"; then
6375   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6376 set dummy ${ac_tool_prefix}as; ac_word=$2
6377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6379 if test "${ac_cv_prog_AS+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   if test -n "$AS"; then
6383   ac_cv_prog_AS="$AS" # Let the user override the test.
6384 else
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388   IFS=$as_save_IFS
6389   test -z "$as_dir" && as_dir=.
6390   for ac_exec_ext in '' $ac_executable_extensions; do
6391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392     ac_cv_prog_AS="${ac_tool_prefix}as"
6393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394     break 2
6395   fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 fi
6401 fi
6402 AS=$ac_cv_prog_AS
6403 if test -n "$AS"; then
6404   { echo "$as_me:$LINENO: result: $AS" >&5
6405 echo "${ECHO_T}$AS" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6410
6411
6412 fi
6413 if test -z "$ac_cv_prog_AS"; then
6414   ac_ct_AS=$AS
6415   # Extract the first word of "as", so it can be a program name with args.
6416 set dummy as; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   if test -n "$ac_ct_AS"; then
6423   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430   for ac_exec_ext in '' $ac_executable_extensions; do
6431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432     ac_cv_prog_ac_ct_AS="as"
6433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6443 if test -n "$ac_ct_AS"; then
6444   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6445 echo "${ECHO_T}$ac_ct_AS" >&6; }
6446 else
6447   { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6449 fi
6450
6451   if test "x$ac_ct_AS" = x; then
6452     AS="false"
6453   else
6454     case $cross_compiling:$ac_tool_warned in
6455 yes:)
6456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6457 whose name does not start with the host triplet.  If you think this
6458 configuration is useful to you, please write to autoconf@gnu.org." >&5
6459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6460 whose name does not start with the host triplet.  If you think this
6461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464     AS=$ac_ct_AS
6465   fi
6466 else
6467   AS="$ac_cv_prog_AS"
6468 fi
6469
6470   if test -n "$ac_tool_prefix"; then
6471   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   if test -n "$DLLTOOL"; then
6479   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484   IFS=$as_save_IFS
6485   test -z "$as_dir" && as_dir=.
6486   for ac_exec_ext in '' $ac_executable_extensions; do
6487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491   fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 DLLTOOL=$ac_cv_prog_DLLTOOL
6499 if test -n "$DLLTOOL"; then
6500   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6501 echo "${ECHO_T}$DLLTOOL" >&6; }
6502 else
6503   { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6505 fi
6506
6507
6508 fi
6509 if test -z "$ac_cv_prog_DLLTOOL"; then
6510   ac_ct_DLLTOOL=$DLLTOOL
6511   # Extract the first word of "dlltool", so it can be a program name with args.
6512 set dummy dlltool; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$ac_ct_DLLTOOL"; then
6519   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6539 if test -n "$ac_ct_DLLTOOL"; then
6540   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6541 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547   if test "x$ac_ct_DLLTOOL" = x; then
6548     DLLTOOL="false"
6549   else
6550     case $cross_compiling:$ac_tool_warned in
6551 yes:)
6552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6553 whose name does not start with the host triplet.  If you think this
6554 configuration is useful to you, please write to autoconf@gnu.org." >&5
6555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6556 whose name does not start with the host triplet.  If you think this
6557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6558 ac_tool_warned=yes ;;
6559 esac
6560     DLLTOOL=$ac_ct_DLLTOOL
6561   fi
6562 else
6563   DLLTOOL="$ac_cv_prog_DLLTOOL"
6564 fi
6565
6566   if test -n "$ac_tool_prefix"; then
6567   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$OBJDUMP"; then
6575   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 OBJDUMP=$ac_cv_prog_OBJDUMP
6595 if test -n "$OBJDUMP"; then
6596   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6597 echo "${ECHO_T}$OBJDUMP" >&6; }
6598 else
6599   { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6601 fi
6602
6603
6604 fi
6605 if test -z "$ac_cv_prog_OBJDUMP"; then
6606   ac_ct_OBJDUMP=$OBJDUMP
6607   # Extract the first word of "objdump", so it can be a program name with args.
6608 set dummy objdump; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$ac_ct_OBJDUMP"; then
6615   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6635 if test -n "$ac_ct_OBJDUMP"; then
6636   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6637 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643   if test "x$ac_ct_OBJDUMP" = x; then
6644     OBJDUMP="false"
6645   else
6646     case $cross_compiling:$ac_tool_warned in
6647 yes:)
6648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet.  If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     OBJDUMP=$ac_ct_OBJDUMP
6657   fi
6658 else
6659   OBJDUMP="$ac_cv_prog_OBJDUMP"
6660 fi
6661
6662   ;;
6663 esac
6664
6665 test -z "$AS" && AS=as
6666
6667
6668
6669
6670
6671 test -z "$DLLTOOL" && DLLTOOL=dlltool
6672
6673
6674
6675
6676
6677 test -z "$OBJDUMP" && OBJDUMP=objdump
6678
6679
6680
6681
6682
6683
6684
6685         enable_dlopen=no
6686
6687
6688
6689             # Check whether --enable-shared was given.
6690 if test "${enable_shared+set}" = set; then
6691   enableval=$enable_shared; p=${PACKAGE-default}
6692     case $enableval in
6693     yes) enable_shared=yes ;;
6694     no) enable_shared=no ;;
6695     *)
6696       enable_shared=no
6697       # Look at the argument we got.  We use all the common list separators.
6698       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6699       for pkg in $enableval; do
6700         IFS="$lt_save_ifs"
6701         if test "X$pkg" = "X$p"; then
6702           enable_shared=yes
6703         fi
6704       done
6705       IFS="$lt_save_ifs"
6706       ;;
6707     esac
6708 else
6709   enable_shared=yes
6710 fi
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720   # Check whether --enable-static was given.
6721 if test "${enable_static+set}" = set; then
6722   enableval=$enable_static; p=${PACKAGE-default}
6723     case $enableval in
6724     yes) enable_static=yes ;;
6725     no) enable_static=no ;;
6726     *)
6727      enable_static=no
6728       # Look at the argument we got.  We use all the common list separators.
6729       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6730       for pkg in $enableval; do
6731         IFS="$lt_save_ifs"
6732         if test "X$pkg" = "X$p"; then
6733           enable_static=yes
6734         fi
6735       done
6736       IFS="$lt_save_ifs"
6737       ;;
6738     esac
6739 else
6740   enable_static=yes
6741 fi
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 # Check whether --with-pic was given.
6753 if test "${with_pic+set}" = set; then
6754   withval=$with_pic; pic_mode="$withval"
6755 else
6756   pic_mode=default
6757 fi
6758
6759
6760 test -z "$pic_mode" && pic_mode=default
6761
6762
6763
6764
6765
6766
6767
6768   # Check whether --enable-fast-install was given.
6769 if test "${enable_fast_install+set}" = set; then
6770   enableval=$enable_fast_install; p=${PACKAGE-default}
6771     case $enableval in
6772     yes) enable_fast_install=yes ;;
6773     no) enable_fast_install=no ;;
6774     *)
6775       enable_fast_install=no
6776       # Look at the argument we got.  We use all the common list separators.
6777       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6778       for pkg in $enableval; do
6779         IFS="$lt_save_ifs"
6780         if test "X$pkg" = "X$p"; then
6781           enable_fast_install=yes
6782         fi
6783       done
6784       IFS="$lt_save_ifs"
6785       ;;
6786     esac
6787 else
6788   enable_fast_install=yes
6789 fi
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 # This can be used to rebuild libtool when needed
6802 LIBTOOL_DEPS="$ltmain"
6803
6804 # Always use our own libtool.
6805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 test -z "$LN_S" && LN_S="ln -s"
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 if test -n "${ZSH_VERSION+set}" ; then
6847    setopt NO_GLOB_SUBST
6848 fi
6849
6850 { echo "$as_me:$LINENO: checking for objdir" >&5
6851 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6852 if test "${lt_cv_objdir+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855   rm -f .libs 2>/dev/null
6856 mkdir .libs 2>/dev/null
6857 if test -d .libs; then
6858   lt_cv_objdir=.libs
6859 else
6860   # MS-DOS does not allow filenames that begin with a dot.
6861   lt_cv_objdir=_libs
6862 fi
6863 rmdir .libs 2>/dev/null
6864 fi
6865 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6866 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6867 objdir=$lt_cv_objdir
6868
6869
6870
6871
6872
6873 cat >>confdefs.h <<_ACEOF
6874 #define LT_OBJDIR "$lt_cv_objdir/"
6875 _ACEOF
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893 case $host_os in
6894 aix3*)
6895   # AIX sometimes has problems with the GCC collect2 program.  For some
6896   # reason, if we set the COLLECT_NAMES environment variable, the problems
6897   # vanish in a puff of smoke.
6898   if test "X${COLLECT_NAMES+set}" != Xset; then
6899     COLLECT_NAMES=
6900     export COLLECT_NAMES
6901   fi
6902   ;;
6903 esac
6904
6905 # Sed substitution that helps us do robust quoting.  It backslashifies
6906 # metacharacters that are still active within double-quoted strings.
6907 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6908
6909 # Same as above, but do not quote variable references.
6910 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6911
6912 # Sed substitution to delay expansion of an escaped shell variable in a
6913 # double_quote_subst'ed string.
6914 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6915
6916 # Sed substitution to delay expansion of an escaped single quote.
6917 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6918
6919 # Sed substitution to avoid accidental globbing in evaled expressions
6920 no_glob_subst='s/\*/\\\*/g'
6921
6922 # Global variables:
6923 ofile=libtool
6924 can_build_shared=yes
6925
6926 # All known linkers require a `.a' archive for static linking (except MSVC,
6927 # which needs '.lib').
6928 libext=a
6929
6930 with_gnu_ld="$lt_cv_prog_gnu_ld"
6931
6932 old_CC="$CC"
6933 old_CFLAGS="$CFLAGS"
6934
6935 # Set sane defaults for various variables
6936 test -z "$CC" && CC=cc
6937 test -z "$LTCC" && LTCC=$CC
6938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6939 test -z "$LD" && LD=ld
6940 test -z "$ac_objext" && ac_objext=o
6941
6942 for cc_temp in $compiler""; do
6943   case $cc_temp in
6944     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6945     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6946     \-*) ;;
6947     *) break;;
6948   esac
6949 done
6950 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6951
6952
6953 # Only perform the check for file, if the check method requires it
6954 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6955 case $deplibs_check_method in
6956 file_magic*)
6957   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6958     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6959 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6960 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $MAGIC_CMD in
6964 [\\/*] |  ?:[\\/]*)
6965   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6966   ;;
6967 *)
6968   lt_save_MAGIC_CMD="$MAGIC_CMD"
6969   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6970   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6971   for ac_dir in $ac_dummy; do
6972     IFS="$lt_save_ifs"
6973     test -z "$ac_dir" && ac_dir=.
6974     if test -f $ac_dir/${ac_tool_prefix}file; then
6975       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6976       if test -n "$file_magic_test_file"; then
6977         case $deplibs_check_method in
6978         "file_magic "*)
6979           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6980           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6982             $EGREP "$file_magic_regex" > /dev/null; then
6983             :
6984           else
6985             cat <<_LT_EOF 1>&2
6986
6987 *** Warning: the command libtool uses to detect shared libraries,
6988 *** $file_magic_cmd, produces output that libtool cannot recognize.
6989 *** The result is that libtool may fail to recognize shared libraries
6990 *** as such.  This will affect the creation of libtool libraries that
6991 *** depend on shared libraries, but programs linked with such libtool
6992 *** libraries will work regardless of this problem.  Nevertheless, you
6993 *** may want to report the problem to your system manager and/or to
6994 *** bug-libtool@gnu.org
6995
6996 _LT_EOF
6997           fi ;;
6998         esac
6999       fi
7000       break
7001     fi
7002   done
7003   IFS="$lt_save_ifs"
7004   MAGIC_CMD="$lt_save_MAGIC_CMD"
7005   ;;
7006 esac
7007 fi
7008
7009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7010 if test -n "$MAGIC_CMD"; then
7011   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7012 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7013 else
7014   { echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6; }
7016 fi
7017
7018
7019
7020
7021
7022 if test -z "$lt_cv_path_MAGIC_CMD"; then
7023   if test -n "$ac_tool_prefix"; then
7024     { echo "$as_me:$LINENO: checking for file" >&5
7025 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7026 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7027   echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029   case $MAGIC_CMD in
7030 [\\/*] |  ?:[\\/]*)
7031   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7032   ;;
7033 *)
7034   lt_save_MAGIC_CMD="$MAGIC_CMD"
7035   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7036   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7037   for ac_dir in $ac_dummy; do
7038     IFS="$lt_save_ifs"
7039     test -z "$ac_dir" && ac_dir=.
7040     if test -f $ac_dir/file; then
7041       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7042       if test -n "$file_magic_test_file"; then
7043         case $deplibs_check_method in
7044         "file_magic "*)
7045           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7046           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7047           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7048             $EGREP "$file_magic_regex" > /dev/null; then
7049             :
7050           else
7051             cat <<_LT_EOF 1>&2
7052
7053 *** Warning: the command libtool uses to detect shared libraries,
7054 *** $file_magic_cmd, produces output that libtool cannot recognize.
7055 *** The result is that libtool may fail to recognize shared libraries
7056 *** as such.  This will affect the creation of libtool libraries that
7057 *** depend on shared libraries, but programs linked with such libtool
7058 *** libraries will work regardless of this problem.  Nevertheless, you
7059 *** may want to report the problem to your system manager and/or to
7060 *** bug-libtool@gnu.org
7061
7062 _LT_EOF
7063           fi ;;
7064         esac
7065       fi
7066       break
7067     fi
7068   done
7069   IFS="$lt_save_ifs"
7070   MAGIC_CMD="$lt_save_MAGIC_CMD"
7071   ;;
7072 esac
7073 fi
7074
7075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7076 if test -n "$MAGIC_CMD"; then
7077   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7078 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7079 else
7080   { echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6; }
7082 fi
7083
7084
7085   else
7086     MAGIC_CMD=:
7087   fi
7088 fi
7089
7090   fi
7091   ;;
7092 esac
7093
7094 # Use C for the default configuration in the libtool script
7095
7096 lt_save_CC="$CC"
7097 ac_ext=c
7098 ac_cpp='$CPP $CPPFLAGS'
7099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7102
7103
7104 # Source file extension for C test sources.
7105 ac_ext=c
7106
7107 # Object file extension for compiled C test sources.
7108 objext=o
7109 objext=$objext
7110
7111 # Code to be used in simple compile tests
7112 lt_simple_compile_test_code="int some_variable = 0;"
7113
7114 # Code to be used in simple link tests
7115 lt_simple_link_test_code='int main(){return(0);}'
7116
7117
7118
7119
7120
7121
7122
7123 # If no C compiler was specified, use CC.
7124 LTCC=${LTCC-"$CC"}
7125
7126 # If no C compiler flags were specified, use CFLAGS.
7127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7128
7129 # Allow CC to be a program name with arguments.
7130 compiler=$CC
7131
7132 # Save the default compiler, since it gets overwritten when the other
7133 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7134 compiler_DEFAULT=$CC
7135
7136 # save warnings/boilerplate of simple test code
7137 ac_outfile=conftest.$ac_objext
7138 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7139 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140 _lt_compiler_boilerplate=`cat conftest.err`
7141 $RM conftest*
7142
7143 ac_outfile=conftest.$ac_objext
7144 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7145 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7146 _lt_linker_boilerplate=`cat conftest.err`
7147 $RM -r conftest*
7148
7149
7150 ## CAVEAT EMPTOR:
7151 ## There is no encapsulation within the following macros, do not change
7152 ## the running order or otherwise move them around unless you know exactly
7153 ## what you are doing...
7154 if test -n "$compiler"; then
7155
7156 lt_prog_compiler_no_builtin_flag=
7157
7158 if test "$GCC" = yes; then
7159   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7160
7161   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7162 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7163 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   lt_cv_prog_compiler_rtti_exceptions=no
7167    ac_outfile=conftest.$ac_objext
7168    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7169    lt_compiler_flag="-fno-rtti -fno-exceptions"
7170    # Insert the option either (1) after the last *FLAGS variable, or
7171    # (2) before a word containing "conftest.", or (3) at the end.
7172    # Note that $ac_compile itself does not contain backslashes and begins
7173    # with a dollar sign (not a hyphen), so the echo should work correctly.
7174    # The option is referenced via a variable to avoid confusing sed.
7175    lt_compile=`echo "$ac_compile" | $SED \
7176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7178    -e 's:$: $lt_compiler_flag:'`
7179    (eval echo "\"\$as_me:7179: $lt_compile\"" >&5)
7180    (eval "$lt_compile" 2>conftest.err)
7181    ac_status=$?
7182    cat conftest.err >&5
7183    echo "$as_me:7183: \$? = $ac_status" >&5
7184    if (exit $ac_status) && test -s "$ac_outfile"; then
7185      # The compiler can only warn and ignore the option if not recognized
7186      # So say no if there are warnings other than the usual output.
7187      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7188      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7189      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7190        lt_cv_prog_compiler_rtti_exceptions=yes
7191      fi
7192    fi
7193    $RM conftest*
7194
7195 fi
7196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7197 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7198
7199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7200     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7201 else
7202     :
7203 fi
7204
7205 fi
7206
7207
7208
7209
7210
7211
7212   lt_prog_compiler_wl=
7213 lt_prog_compiler_pic=
7214 lt_prog_compiler_static=
7215
7216 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7217 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7218
7219   if test "$GCC" = yes; then
7220     lt_prog_compiler_wl='-Wl,'
7221     lt_prog_compiler_static='-static'
7222
7223     case $host_os in
7224       aix*)
7225       # All AIX code is PIC.
7226       if test "$host_cpu" = ia64; then
7227         # AIX 5 now supports IA64 processor
7228         lt_prog_compiler_static='-Bstatic'
7229       fi
7230       ;;
7231
7232     amigaos*)
7233       case $host_cpu in
7234       powerpc)
7235             # see comment about AmigaOS4 .so support
7236             lt_prog_compiler_pic='-fPIC'
7237         ;;
7238       m68k)
7239             # FIXME: we need at least 68020 code to build shared libraries, but
7240             # adding the `-m68020' flag to GCC prevents building anything better,
7241             # like `-m68040'.
7242             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7243         ;;
7244       esac
7245       ;;
7246
7247     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7248       # PIC is the default for these OSes.
7249       ;;
7250
7251     mingw* | cygwin* | pw32* | os2* | cegcc*)
7252       # This hack is so that the source file can tell whether it is being
7253       # built for inclusion in a dll (and should export symbols for example).
7254       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7255       # (--disable-auto-import) libraries
7256       lt_prog_compiler_pic='-DDLL_EXPORT'
7257       ;;
7258
7259     darwin* | rhapsody*)
7260       # PIC is the default on this platform
7261       # Common symbols not allowed in MH_DYLIB files
7262       lt_prog_compiler_pic='-fno-common'
7263       ;;
7264
7265     hpux*)
7266       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7267       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7268       # sets the default TLS model and affects inlining.
7269       case $host_cpu in
7270       hppa*64*)
7271         # +Z the default
7272         ;;
7273       *)
7274         lt_prog_compiler_pic='-fPIC'
7275         ;;
7276       esac
7277       ;;
7278
7279     interix[3-9]*)
7280       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7281       # Instead, we relocate shared libraries at runtime.
7282       ;;
7283
7284     msdosdjgpp*)
7285       # Just because we use GCC doesn't mean we suddenly get shared libraries
7286       # on systems that don't support them.
7287       lt_prog_compiler_can_build_shared=no
7288       enable_shared=no
7289       ;;
7290
7291     *nto* | *qnx*)
7292       # QNX uses GNU C++, but need to define -shared option too, otherwise
7293       # it will coredump.
7294       lt_prog_compiler_pic='-fPIC -shared'
7295       ;;
7296
7297     sysv4*MP*)
7298       if test -d /usr/nec; then
7299         lt_prog_compiler_pic=-Kconform_pic
7300       fi
7301       ;;
7302
7303     *)
7304       lt_prog_compiler_pic='-fPIC'
7305       ;;
7306     esac
7307   else
7308     # PORTME Check for flag to pass linker flags through the system compiler.
7309     case $host_os in
7310     aix*)
7311       lt_prog_compiler_wl='-Wl,'
7312       if test "$host_cpu" = ia64; then
7313         # AIX 5 now supports IA64 processor
7314         lt_prog_compiler_static='-Bstatic'
7315       else
7316         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7317       fi
7318       ;;
7319
7320     mingw* | cygwin* | pw32* | os2* | cegcc*)
7321       # This hack is so that the source file can tell whether it is being
7322       # built for inclusion in a dll (and should export symbols for example).
7323       lt_prog_compiler_pic='-DDLL_EXPORT'
7324       ;;
7325
7326     hpux9* | hpux10* | hpux11*)
7327       lt_prog_compiler_wl='-Wl,'
7328       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7329       # not for PA HP-UX.
7330       case $host_cpu in
7331       hppa*64*|ia64*)
7332         # +Z the default
7333         ;;
7334       *)
7335         lt_prog_compiler_pic='+Z'
7336         ;;
7337       esac
7338       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7339       lt_prog_compiler_static='${wl}-a ${wl}archive'
7340       ;;
7341
7342     irix5* | irix6* | nonstopux*)
7343       lt_prog_compiler_wl='-Wl,'
7344       # PIC (with -KPIC) is the default.
7345       lt_prog_compiler_static='-non_shared'
7346       ;;
7347
7348     linux* | k*bsd*-gnu)
7349       case $cc_basename in
7350       # old Intel for x86_64 which still supported -KPIC.
7351       ecc*)
7352         lt_prog_compiler_wl='-Wl,'
7353         lt_prog_compiler_pic='-KPIC'
7354         lt_prog_compiler_static='-static'
7355         ;;
7356       # icc used to be incompatible with GCC.
7357       # ICC 10 doesn't accept -KPIC any more.
7358       icc* | ifort*)
7359         lt_prog_compiler_wl='-Wl,'
7360         lt_prog_compiler_pic='-fPIC'
7361         lt_prog_compiler_static='-static'
7362         ;;
7363       # Lahey Fortran 8.1.
7364       lf95*)
7365         lt_prog_compiler_wl='-Wl,'
7366         lt_prog_compiler_pic='--shared'
7367         lt_prog_compiler_static='--static'
7368         ;;
7369       pgcc* | pgf77* | pgf90* | pgf95*)
7370         # Portland Group compilers (*not* the Pentium gcc compiler,
7371         # which looks to be a dead project)
7372         lt_prog_compiler_wl='-Wl,'
7373         lt_prog_compiler_pic='-fpic'
7374         lt_prog_compiler_static='-Bstatic'
7375         ;;
7376       ccc*)
7377         lt_prog_compiler_wl='-Wl,'
7378         # All Alpha code is PIC.
7379         lt_prog_compiler_static='-non_shared'
7380         ;;
7381       xl*)
7382         # IBM XL C 8.0/Fortran 10.1 on PPC
7383         lt_prog_compiler_wl='-Wl,'
7384         lt_prog_compiler_pic='-qpic'
7385         lt_prog_compiler_static='-qstaticlink'
7386         ;;
7387       *)
7388         case `$CC -V 2>&1 | sed 5q` in
7389         *Sun\ C*)
7390           # Sun C 5.9
7391           lt_prog_compiler_pic='-KPIC'
7392           lt_prog_compiler_static='-Bstatic'
7393           lt_prog_compiler_wl='-Wl,'
7394           ;;
7395         *Sun\ F*)
7396           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7397           lt_prog_compiler_pic='-KPIC'
7398           lt_prog_compiler_static='-Bstatic'
7399           lt_prog_compiler_wl=''
7400           ;;
7401         esac
7402         ;;
7403       esac
7404       ;;
7405
7406     newsos6)
7407       lt_prog_compiler_pic='-KPIC'
7408       lt_prog_compiler_static='-Bstatic'
7409       ;;
7410
7411     *nto* | *qnx*)
7412       # QNX uses GNU C++, but need to define -shared option too, otherwise
7413       # it will coredump.
7414       lt_prog_compiler_pic='-fPIC -shared'
7415       ;;
7416
7417     osf3* | osf4* | osf5*)
7418       lt_prog_compiler_wl='-Wl,'
7419       # All OSF/1 code is PIC.
7420       lt_prog_compiler_static='-non_shared'
7421       ;;
7422
7423     rdos*)
7424       lt_prog_compiler_static='-non_shared'
7425       ;;
7426
7427     solaris*)
7428       lt_prog_compiler_pic='-KPIC'
7429       lt_prog_compiler_static='-Bstatic'
7430       case $cc_basename in
7431       f77* | f90* | f95*)
7432         lt_prog_compiler_wl='-Qoption ld ';;
7433       *)
7434         lt_prog_compiler_wl='-Wl,';;
7435       esac
7436       ;;
7437
7438     sunos4*)
7439       lt_prog_compiler_wl='-Qoption ld '
7440       lt_prog_compiler_pic='-PIC'
7441       lt_prog_compiler_static='-Bstatic'
7442       ;;
7443
7444     sysv4 | sysv4.2uw2* | sysv4.3*)
7445       lt_prog_compiler_wl='-Wl,'
7446       lt_prog_compiler_pic='-KPIC'
7447       lt_prog_compiler_static='-Bstatic'
7448       ;;
7449
7450     sysv4*MP*)
7451       if test -d /usr/nec ;then
7452         lt_prog_compiler_pic='-Kconform_pic'
7453         lt_prog_compiler_static='-Bstatic'
7454       fi
7455       ;;
7456
7457     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7458       lt_prog_compiler_wl='-Wl,'
7459       lt_prog_compiler_pic='-KPIC'
7460       lt_prog_compiler_static='-Bstatic'
7461       ;;
7462
7463     unicos*)
7464       lt_prog_compiler_wl='-Wl,'
7465       lt_prog_compiler_can_build_shared=no
7466       ;;
7467
7468     uts4*)
7469       lt_prog_compiler_pic='-pic'
7470       lt_prog_compiler_static='-Bstatic'
7471       ;;
7472
7473     *)
7474       lt_prog_compiler_can_build_shared=no
7475       ;;
7476     esac
7477   fi
7478
7479 case $host_os in
7480   # For platforms which do not support PIC, -DPIC is meaningless:
7481   *djgpp*)
7482     lt_prog_compiler_pic=
7483     ;;
7484   *)
7485     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7486     ;;
7487 esac
7488 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7489 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7490
7491
7492
7493
7494
7495
7496 #
7497 # Check to make sure the PIC flag actually works.
7498 #
7499 if test -n "$lt_prog_compiler_pic"; then
7500   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7501 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7502 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   lt_cv_prog_compiler_pic_works=no
7506    ac_outfile=conftest.$ac_objext
7507    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7508    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7509    # Insert the option either (1) after the last *FLAGS variable, or
7510    # (2) before a word containing "conftest.", or (3) at the end.
7511    # Note that $ac_compile itself does not contain backslashes and begins
7512    # with a dollar sign (not a hyphen), so the echo should work correctly.
7513    # The option is referenced via a variable to avoid confusing sed.
7514    lt_compile=`echo "$ac_compile" | $SED \
7515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7517    -e 's:$: $lt_compiler_flag:'`
7518    (eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
7519    (eval "$lt_compile" 2>conftest.err)
7520    ac_status=$?
7521    cat conftest.err >&5
7522    echo "$as_me:7522: \$? = $ac_status" >&5
7523    if (exit $ac_status) && test -s "$ac_outfile"; then
7524      # The compiler can only warn and ignore the option if not recognized
7525      # So say no if there are warnings other than the usual output.
7526      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7527      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7529        lt_cv_prog_compiler_pic_works=yes
7530      fi
7531    fi
7532    $RM conftest*
7533
7534 fi
7535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7536 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7537
7538 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7539     case $lt_prog_compiler_pic in
7540      "" | " "*) ;;
7541      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7542      esac
7543 else
7544     lt_prog_compiler_pic=
7545      lt_prog_compiler_can_build_shared=no
7546 fi
7547
7548 fi
7549
7550
7551
7552
7553
7554
7555 #
7556 # Check to make sure the static flag actually works.
7557 #
7558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7559 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7560 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7561 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7562   echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564   lt_cv_prog_compiler_static_works=no
7565    save_LDFLAGS="$LDFLAGS"
7566    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7567    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7568    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7569      # The linker can only warn and ignore the option if not recognized
7570      # So say no if there are warnings
7571      if test -s conftest.err; then
7572        # Append any errors to the config.log.
7573        cat conftest.err 1>&5
7574        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7575        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7576        if diff conftest.exp conftest.er2 >/dev/null; then
7577          lt_cv_prog_compiler_static_works=yes
7578        fi
7579      else
7580        lt_cv_prog_compiler_static_works=yes
7581      fi
7582    fi
7583    $RM -r conftest*
7584    LDFLAGS="$save_LDFLAGS"
7585
7586 fi
7587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7588 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7589
7590 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7591     :
7592 else
7593     lt_prog_compiler_static=
7594 fi
7595
7596
7597
7598
7599
7600
7601
7602   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7604 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   lt_cv_prog_compiler_c_o=no
7608    $RM -r conftest 2>/dev/null
7609    mkdir conftest
7610    cd conftest
7611    mkdir out
7612    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7613
7614    lt_compiler_flag="-o out/conftest2.$ac_objext"
7615    # Insert the option either (1) after the last *FLAGS variable, or
7616    # (2) before a word containing "conftest.", or (3) at the end.
7617    # Note that $ac_compile itself does not contain backslashes and begins
7618    # with a dollar sign (not a hyphen), so the echo should work correctly.
7619    lt_compile=`echo "$ac_compile" | $SED \
7620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7622    -e 's:$: $lt_compiler_flag:'`
7623    (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7624    (eval "$lt_compile" 2>out/conftest.err)
7625    ac_status=$?
7626    cat out/conftest.err >&5
7627    echo "$as_me:7627: \$? = $ac_status" >&5
7628    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7629    then
7630      # The compiler can only warn and ignore the option if not recognized
7631      # So say no if there are warnings
7632      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7633      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7634      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7635        lt_cv_prog_compiler_c_o=yes
7636      fi
7637    fi
7638    chmod u+w . 2>&5
7639    $RM conftest*
7640    # SGI C++ compiler will create directory out/ii_files/ for
7641    # template instantiation
7642    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7643    $RM out/* && rmdir out
7644    cd ..
7645    $RM -r conftest
7646    $RM conftest*
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7651
7652
7653
7654
7655
7656
7657   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7658 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7659 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   lt_cv_prog_compiler_c_o=no
7663    $RM -r conftest 2>/dev/null
7664    mkdir conftest
7665    cd conftest
7666    mkdir out
7667    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7668
7669    lt_compiler_flag="-o out/conftest2.$ac_objext"
7670    # Insert the option either (1) after the last *FLAGS variable, or
7671    # (2) before a word containing "conftest.", or (3) at the end.
7672    # Note that $ac_compile itself does not contain backslashes and begins
7673    # with a dollar sign (not a hyphen), so the echo should work correctly.
7674    lt_compile=`echo "$ac_compile" | $SED \
7675    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7676    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7677    -e 's:$: $lt_compiler_flag:'`
7678    (eval echo "\"\$as_me:7678: $lt_compile\"" >&5)
7679    (eval "$lt_compile" 2>out/conftest.err)
7680    ac_status=$?
7681    cat out/conftest.err >&5
7682    echo "$as_me:7682: \$? = $ac_status" >&5
7683    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7684    then
7685      # The compiler can only warn and ignore the option if not recognized
7686      # So say no if there are warnings
7687      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7688      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7689      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7690        lt_cv_prog_compiler_c_o=yes
7691      fi
7692    fi
7693    chmod u+w . 2>&5
7694    $RM conftest*
7695    # SGI C++ compiler will create directory out/ii_files/ for
7696    # template instantiation
7697    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7698    $RM out/* && rmdir out
7699    cd ..
7700    $RM -r conftest
7701    $RM conftest*
7702
7703 fi
7704 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7705 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7706
7707
7708
7709
7710 hard_links="nottested"
7711 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7712   # do not overwrite the value of need_locks provided by the user
7713   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7714 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7715   hard_links=yes
7716   $RM conftest*
7717   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7718   touch conftest.a
7719   ln conftest.a conftest.b 2>&5 || hard_links=no
7720   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7721   { echo "$as_me:$LINENO: result: $hard_links" >&5
7722 echo "${ECHO_T}$hard_links" >&6; }
7723   if test "$hard_links" = no; then
7724     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7725 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7726     need_locks=warn
7727   fi
7728 else
7729   need_locks=no
7730 fi
7731
7732
7733
7734
7735
7736
7737   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7738 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7739
7740   runpath_var=
7741   allow_undefined_flag=
7742   always_export_symbols=no
7743   archive_cmds=
7744   archive_expsym_cmds=
7745   compiler_needs_object=no
7746   enable_shared_with_static_runtimes=no
7747   export_dynamic_flag_spec=
7748   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7749   hardcode_automatic=no
7750   hardcode_direct=no
7751   hardcode_direct_absolute=no
7752   hardcode_libdir_flag_spec=
7753   hardcode_libdir_flag_spec_ld=
7754   hardcode_libdir_separator=
7755   hardcode_minus_L=no
7756   hardcode_shlibpath_var=unsupported
7757   inherit_rpath=no
7758   link_all_deplibs=unknown
7759   module_cmds=
7760   module_expsym_cmds=
7761   old_archive_from_new_cmds=
7762   old_archive_from_expsyms_cmds=
7763   thread_safe_flag_spec=
7764   whole_archive_flag_spec=
7765   # include_expsyms should be a list of space-separated symbols to be *always*
7766   # included in the symbol list
7767   include_expsyms=
7768   # exclude_expsyms can be an extended regexp of symbols to exclude
7769   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7770   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7771   # as well as any symbol that contains `d'.
7772   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7773   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7774   # platforms (ab)use it in PIC code, but their linkers get confused if
7775   # the symbol is explicitly referenced.  Since portable code cannot
7776   # rely on this symbol name, it's probably fine to never include it in
7777   # preloaded symbol tables.
7778   # Exclude shared library initialization/finalization symbols.
7779   extract_expsyms_cmds=
7780
7781   case $host_os in
7782   cygwin* | mingw* | pw32* | cegcc*)
7783     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7784     # When not using gcc, we currently assume that we are using
7785     # Microsoft Visual C++.
7786     if test "$GCC" != yes; then
7787       with_gnu_ld=no
7788     fi
7789     ;;
7790   interix*)
7791     # we just hope/assume this is gcc and not c89 (= MSVC++)
7792     with_gnu_ld=yes
7793     ;;
7794   openbsd*)
7795     with_gnu_ld=no
7796     ;;
7797   esac
7798
7799   ld_shlibs=yes
7800   if test "$with_gnu_ld" = yes; then
7801     # If archive_cmds runs LD, not CC, wlarc should be empty
7802     wlarc='${wl}'
7803
7804     # Set some defaults for GNU ld with shared library support. These
7805     # are reset later if shared libraries are not supported. Putting them
7806     # here allows them to be overridden if necessary.
7807     runpath_var=LD_RUN_PATH
7808     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7809     export_dynamic_flag_spec='${wl}--export-dynamic'
7810     # ancient GNU ld didn't support --whole-archive et. al.
7811     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7812       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7813     else
7814       whole_archive_flag_spec=
7815     fi
7816     supports_anon_versioning=no
7817     case `$LD -v 2>&1` in
7818       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7819       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7820       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7821       *\ 2.11.*) ;; # other 2.11 versions
7822       *) supports_anon_versioning=yes ;;
7823     esac
7824
7825     # See if GNU ld supports shared libraries.
7826     case $host_os in
7827     aix[3-9]*)
7828       # On AIX/PPC, the GNU linker is very broken
7829       if test "$host_cpu" != ia64; then
7830         ld_shlibs=no
7831         cat <<_LT_EOF 1>&2
7832
7833 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7834 *** to be unable to reliably create shared libraries on AIX.
7835 *** Therefore, libtool is disabling shared libraries support.  If you
7836 *** really care for shared libraries, you may want to modify your PATH
7837 *** so that a non-GNU linker is found, and then restart.
7838
7839 _LT_EOF
7840       fi
7841       ;;
7842
7843     amigaos*)
7844       case $host_cpu in
7845       powerpc)
7846             # see comment about AmigaOS4 .so support
7847             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7848             archive_expsym_cmds=''
7849         ;;
7850       m68k)
7851             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7852             hardcode_libdir_flag_spec='-L$libdir'
7853             hardcode_minus_L=yes
7854         ;;
7855       esac
7856       ;;
7857
7858     beos*)
7859       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7860         allow_undefined_flag=unsupported
7861         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7862         # support --undefined.  This deserves some investigation.  FIXME
7863         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7864       else
7865         ld_shlibs=no
7866       fi
7867       ;;
7868
7869     cygwin* | mingw* | pw32* | cegcc*)
7870       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7871       # as there is no search path for DLLs.
7872       hardcode_libdir_flag_spec='-L$libdir'
7873       allow_undefined_flag=unsupported
7874       always_export_symbols=no
7875       enable_shared_with_static_runtimes=yes
7876       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7877
7878       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7879         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7880         # If the export-symbols file already is a .def file (1st line
7881         # is EXPORTS), use it as is; otherwise, prepend...
7882         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7883           cp $export_symbols $output_objdir/$soname.def;
7884         else
7885           echo EXPORTS > $output_objdir/$soname.def;
7886           cat $export_symbols >> $output_objdir/$soname.def;
7887         fi~
7888         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7889       else
7890         ld_shlibs=no
7891       fi
7892       ;;
7893
7894     interix[3-9]*)
7895       hardcode_direct=no
7896       hardcode_shlibpath_var=no
7897       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7898       export_dynamic_flag_spec='${wl}-E'
7899       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7900       # Instead, shared libraries are loaded at an image base (0x10000000 by
7901       # default) and relocated if they conflict, which is a slow very memory
7902       # consuming and fragmenting process.  To avoid this, we pick a random,
7903       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7904       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7905       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7906       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7907       ;;
7908
7909     gnu* | linux* | tpf* | k*bsd*-gnu)
7910       tmp_diet=no
7911       if test "$host_os" = linux-dietlibc; then
7912         case $cc_basename in
7913           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7914         esac
7915       fi
7916       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7917          && test "$tmp_diet" = no
7918       then
7919         tmp_addflag=
7920         tmp_sharedflag='-shared'
7921         case $cc_basename,$host_cpu in
7922         pgcc*)                          # Portland Group C compiler
7923           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7924           tmp_addflag=' $pic_flag'
7925           ;;
7926         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7927           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7928           tmp_addflag=' $pic_flag -Mnomain' ;;
7929         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7930           tmp_addflag=' -i_dynamic' ;;
7931         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7932           tmp_addflag=' -i_dynamic -nofor_main' ;;
7933         ifc* | ifort*)                  # Intel Fortran compiler
7934           tmp_addflag=' -nofor_main' ;;
7935         lf95*)                          # Lahey Fortran 8.1
7936           whole_archive_flag_spec=
7937           tmp_sharedflag='--shared' ;;
7938         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7939           tmp_sharedflag='-qmkshrobj'
7940           tmp_addflag= ;;
7941         esac
7942         case `$CC -V 2>&1 | sed 5q` in
7943         *Sun\ C*)                       # Sun C 5.9
7944           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7945           compiler_needs_object=yes
7946           tmp_sharedflag='-G' ;;
7947         *Sun\ F*)                       # Sun Fortran 8.3
7948           tmp_sharedflag='-G' ;;
7949         esac
7950         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7951
7952         if test "x$supports_anon_versioning" = xyes; then
7953           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7954             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7955             echo "local: *; };" >> $output_objdir/$libname.ver~
7956             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7957         fi
7958
7959         case $cc_basename in
7960         xlf*)
7961           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7962           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7963           hardcode_libdir_flag_spec=
7964           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7965           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7966           if test "x$supports_anon_versioning" = xyes; then
7967             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7968               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7969               echo "local: *; };" >> $output_objdir/$libname.ver~
7970               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7971           fi
7972           ;;
7973         esac
7974       else
7975         ld_shlibs=no
7976       fi
7977       ;;
7978
7979     netbsd*)
7980       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7981         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7982         wlarc=
7983       else
7984         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7986       fi
7987       ;;
7988
7989     solaris*)
7990       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7991         ld_shlibs=no
7992         cat <<_LT_EOF 1>&2
7993
7994 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7995 *** create shared libraries on Solaris systems.  Therefore, libtool
7996 *** is disabling shared libraries support.  We urge you to upgrade GNU
7997 *** binutils to release 2.9.1 or newer.  Another option is to modify
7998 *** your PATH or compiler configuration so that the native linker is
7999 *** used, and then restart.
8000
8001 _LT_EOF
8002       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8003         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8005       else
8006         ld_shlibs=no
8007       fi
8008       ;;
8009
8010     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8011       case `$LD -v 2>&1` in
8012         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8013         ld_shlibs=no
8014         cat <<_LT_EOF 1>&2
8015
8016 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8017 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8018 *** is disabling shared libraries support.  We urge you to upgrade GNU
8019 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8020 *** your PATH or compiler configuration so that the native linker is
8021 *** used, and then restart.
8022
8023 _LT_EOF
8024         ;;
8025         *)
8026           # For security reasons, it is highly recommended that you always
8027           # use absolute paths for naming shared libraries, and exclude the
8028           # DT_RUNPATH tag from executables and libraries.  But doing so
8029           # requires that you compile everything twice, which is a pain.
8030           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8031             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8032             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034           else
8035             ld_shlibs=no
8036           fi
8037         ;;
8038       esac
8039       ;;
8040
8041     sunos4*)
8042       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8043       wlarc=
8044       hardcode_direct=yes
8045       hardcode_shlibpath_var=no
8046       ;;
8047
8048     *)
8049       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8052       else
8053         ld_shlibs=no
8054       fi
8055       ;;
8056     esac
8057
8058     if test "$ld_shlibs" = no; then
8059       runpath_var=
8060       hardcode_libdir_flag_spec=
8061       export_dynamic_flag_spec=
8062       whole_archive_flag_spec=
8063     fi
8064   else
8065     # PORTME fill in a description of your system's linker (not GNU ld)
8066     case $host_os in
8067     aix3*)
8068       allow_undefined_flag=unsupported
8069       always_export_symbols=yes
8070       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8071       # Note: this linker hardcodes the directories in LIBPATH if there
8072       # are no directories specified by -L.
8073       hardcode_minus_L=yes
8074       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8075         # Neither direct hardcoding nor static linking is supported with a
8076         # broken collect2.
8077         hardcode_direct=unsupported
8078       fi
8079       ;;
8080
8081     aix[4-9]*)
8082       if test "$host_cpu" = ia64; then
8083         # On IA64, the linker does run time linking by default, so we don't
8084         # have to do anything special.
8085         aix_use_runtimelinking=no
8086         exp_sym_flag='-Bexport'
8087         no_entry_flag=""
8088       else
8089         # If we're using GNU nm, then we don't want the "-C" option.
8090         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8091         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8092           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8093         else
8094           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8095         fi
8096         aix_use_runtimelinking=no
8097
8098         # Test if we are trying to use run time linking or normal
8099         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8100         # need to do runtime linking.
8101         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8102           for ld_flag in $LDFLAGS; do
8103           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8104             aix_use_runtimelinking=yes
8105             break
8106           fi
8107           done
8108           ;;
8109         esac
8110
8111         exp_sym_flag='-bexport'
8112         no_entry_flag='-bnoentry'
8113       fi
8114
8115       # When large executables or shared objects are built, AIX ld can
8116       # have problems creating the table of contents.  If linking a library
8117       # or program results in "error TOC overflow" add -mminimal-toc to
8118       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8119       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8120
8121       archive_cmds=''
8122       hardcode_direct=yes
8123       hardcode_direct_absolute=yes
8124       hardcode_libdir_separator=':'
8125       link_all_deplibs=yes
8126       file_list_spec='${wl}-f,'
8127
8128       if test "$GCC" = yes; then
8129         case $host_os in aix4.[012]|aix4.[012].*)
8130         # We only want to do this on AIX 4.2 and lower, the check
8131         # below for broken collect2 doesn't work under 4.3+
8132           collect2name=`${CC} -print-prog-name=collect2`
8133           if test -f "$collect2name" &&
8134            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8135           then
8136           # We have reworked collect2
8137           :
8138           else
8139           # We have old collect2
8140           hardcode_direct=unsupported
8141           # It fails to find uninstalled libraries when the uninstalled
8142           # path is not listed in the libpath.  Setting hardcode_minus_L
8143           # to unsupported forces relinking
8144           hardcode_minus_L=yes
8145           hardcode_libdir_flag_spec='-L$libdir'
8146           hardcode_libdir_separator=
8147           fi
8148           ;;
8149         esac
8150         shared_flag='-shared'
8151         if test "$aix_use_runtimelinking" = yes; then
8152           shared_flag="$shared_flag "'${wl}-G'
8153         fi
8154       else
8155         # not using gcc
8156         if test "$host_cpu" = ia64; then
8157         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8158         # chokes on -Wl,-G. The following line is correct:
8159           shared_flag='-G'
8160         else
8161           if test "$aix_use_runtimelinking" = yes; then
8162             shared_flag='${wl}-G'
8163           else
8164             shared_flag='${wl}-bM:SRE'
8165           fi
8166         fi
8167       fi
8168
8169       export_dynamic_flag_spec='${wl}-bexpall'
8170       # It seems that -bexpall does not export symbols beginning with
8171       # underscore (_), so it is better to generate a list of symbols to export.
8172       always_export_symbols=yes
8173       if test "$aix_use_runtimelinking" = yes; then
8174         # Warning - without using the other runtime loading flags (-brtl),
8175         # -berok will link without error, but may produce a broken library.
8176         allow_undefined_flag='-berok'
8177         # Determine the default libpath from the value encoded in an
8178         # empty executable.
8179         cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h.  */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h.  */
8185
8186 int
8187 main ()
8188 {
8189
8190   ;
8191   return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext conftest$ac_exeext
8195 if { (ac_try="$ac_link"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201   (eval "$ac_link") 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } && {
8208          test -z "$ac_c_werror_flag" ||
8209          test ! -s conftest.err
8210        } && test -s conftest$ac_exeext &&
8211        $as_test_x conftest$ac_exeext; then
8212
8213 lt_aix_libpath_sed='
8214     /Import File Strings/,/^$/ {
8215         /^0/ {
8216             s/^0  *\(.*\)$/\1/
8217             p
8218         }
8219     }'
8220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8221 # Check for a 64-bit object if we didn't find anything.
8222 if test -z "$aix_libpath"; then
8223   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8224 fi
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233       conftest$ac_exeext conftest.$ac_ext
8234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8235
8236         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8237         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8238       else
8239         if test "$host_cpu" = ia64; then
8240           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8241           allow_undefined_flag="-z nodefs"
8242           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8243         else
8244          # Determine the default libpath from the value encoded in an
8245          # empty executable.
8246          cat >conftest.$ac_ext <<_ACEOF
8247 /* confdefs.h.  */
8248 _ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h.  */
8252
8253 int
8254 main ()
8255 {
8256
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8263 case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_link") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && {
8275          test -z "$ac_c_werror_flag" ||
8276          test ! -s conftest.err
8277        } && test -s conftest$ac_exeext &&
8278        $as_test_x conftest$ac_exeext; then
8279
8280 lt_aix_libpath_sed='
8281     /Import File Strings/,/^$/ {
8282         /^0/ {
8283             s/^0  *\(.*\)$/\1/
8284             p
8285         }
8286     }'
8287 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8288 # Check for a 64-bit object if we didn't find anything.
8289 if test -z "$aix_libpath"; then
8290   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8291 fi
8292 else
8293   echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300       conftest$ac_exeext conftest.$ac_ext
8301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8302
8303          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8304           # Warning - without using the other run time loading flags,
8305           # -berok will link without error, but may produce a broken library.
8306           no_undefined_flag=' ${wl}-bernotok'
8307           allow_undefined_flag=' ${wl}-berok'
8308           # Exported symbols can be pulled into shared objects from archives
8309           whole_archive_flag_spec='$convenience'
8310           archive_cmds_need_lc=yes
8311           # This is similar to how AIX traditionally builds its shared libraries.
8312           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8313         fi
8314       fi
8315       ;;
8316
8317     amigaos*)
8318       case $host_cpu in
8319       powerpc)
8320             # see comment about AmigaOS4 .so support
8321             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8322             archive_expsym_cmds=''
8323         ;;
8324       m68k)
8325             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8326             hardcode_libdir_flag_spec='-L$libdir'
8327             hardcode_minus_L=yes
8328         ;;
8329       esac
8330       ;;
8331
8332     bsdi[45]*)
8333       export_dynamic_flag_spec=-rdynamic
8334       ;;
8335
8336     cygwin* | mingw* | pw32* | cegcc*)
8337       # When not using gcc, we currently assume that we are using
8338       # Microsoft Visual C++.
8339       # hardcode_libdir_flag_spec is actually meaningless, as there is
8340       # no search path for DLLs.
8341       hardcode_libdir_flag_spec=' '
8342       allow_undefined_flag=unsupported
8343       # Tell ltmain to make .lib files, not .a files.
8344       libext=lib
8345       # Tell ltmain to make .dll files, not .so files.
8346       shrext_cmds=".dll"
8347       # FIXME: Setting linknames here is a bad hack.
8348       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8349       # The linker will automatically build a .lib file if we build a DLL.
8350       old_archive_from_new_cmds='true'
8351       # FIXME: Should let the user specify the lib program.
8352       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8353       fix_srcfile_path='`cygpath -w "$srcfile"`'
8354       enable_shared_with_static_runtimes=yes
8355       ;;
8356
8357     darwin* | rhapsody*)
8358
8359
8360   archive_cmds_need_lc=no
8361   hardcode_direct=no
8362   hardcode_automatic=yes
8363   hardcode_shlibpath_var=unsupported
8364   whole_archive_flag_spec=''
8365   link_all_deplibs=yes
8366   allow_undefined_flag="$_lt_dar_allow_undefined"
8367   case $cc_basename in
8368      ifort*) _lt_dar_can_shared=yes ;;
8369      *) _lt_dar_can_shared=$GCC ;;
8370   esac
8371   if test "$_lt_dar_can_shared" = "yes"; then
8372     output_verbose_link_cmd=echo
8373     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8374     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8375     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8376     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8377
8378   else
8379   ld_shlibs=no
8380   fi
8381
8382       ;;
8383
8384     dgux*)
8385       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386       hardcode_libdir_flag_spec='-L$libdir'
8387       hardcode_shlibpath_var=no
8388       ;;
8389
8390     freebsd1*)
8391       ld_shlibs=no
8392       ;;
8393
8394     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8395     # support.  Future versions do this automatically, but an explicit c++rt0.o
8396     # does not break anything, and helps significantly (at the cost of a little
8397     # extra space).
8398     freebsd2.2*)
8399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8400       hardcode_libdir_flag_spec='-R$libdir'
8401       hardcode_direct=yes
8402       hardcode_shlibpath_var=no
8403       ;;
8404
8405     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8406     freebsd2*)
8407       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408       hardcode_direct=yes
8409       hardcode_minus_L=yes
8410       hardcode_shlibpath_var=no
8411       ;;
8412
8413     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8414     freebsd* | dragonfly*)
8415       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8416       hardcode_libdir_flag_spec='-R$libdir'
8417       hardcode_direct=yes
8418       hardcode_shlibpath_var=no
8419       ;;
8420
8421     hpux9*)
8422       if test "$GCC" = yes; then
8423         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8424       else
8425         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8426       fi
8427       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8428       hardcode_libdir_separator=:
8429       hardcode_direct=yes
8430
8431       # hardcode_minus_L: Not really in the search PATH,
8432       # but as the default location of the library.
8433       hardcode_minus_L=yes
8434       export_dynamic_flag_spec='${wl}-E'
8435       ;;
8436
8437     hpux10*)
8438       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8439         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440       else
8441         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8442       fi
8443       if test "$with_gnu_ld" = no; then
8444         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8445         hardcode_libdir_flag_spec_ld='+b $libdir'
8446         hardcode_libdir_separator=:
8447         hardcode_direct=yes
8448         hardcode_direct_absolute=yes
8449         export_dynamic_flag_spec='${wl}-E'
8450         # hardcode_minus_L: Not really in the search PATH,
8451         # but as the default location of the library.
8452         hardcode_minus_L=yes
8453       fi
8454       ;;
8455
8456     hpux11*)
8457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8458         case $host_cpu in
8459         hppa*64*)
8460           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461           ;;
8462         ia64*)
8463           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8464           ;;
8465         *)
8466           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8467           ;;
8468         esac
8469       else
8470         case $host_cpu in
8471         hppa*64*)
8472           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8473           ;;
8474         ia64*)
8475           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8476           ;;
8477         *)
8478           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8479           ;;
8480         esac
8481       fi
8482       if test "$with_gnu_ld" = no; then
8483         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484         hardcode_libdir_separator=:
8485
8486         case $host_cpu in
8487         hppa*64*|ia64*)
8488           hardcode_direct=no
8489           hardcode_shlibpath_var=no
8490           ;;
8491         *)
8492           hardcode_direct=yes
8493           hardcode_direct_absolute=yes
8494           export_dynamic_flag_spec='${wl}-E'
8495
8496           # hardcode_minus_L: Not really in the search PATH,
8497           # but as the default location of the library.
8498           hardcode_minus_L=yes
8499           ;;
8500         esac
8501       fi
8502       ;;
8503
8504     irix5* | irix6* | nonstopux*)
8505       if test "$GCC" = yes; then
8506         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8507         # Try to use the -exported_symbol ld option, if it does not
8508         # work, assume that -exports_file does not work either and
8509         # implicitly export all symbols.
8510         save_LDFLAGS="$LDFLAGS"
8511         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8512         cat >conftest.$ac_ext <<_ACEOF
8513 int foo(void) {}
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (ac_try="$ac_link"
8517 case "(($ac_try" in
8518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519   *) ac_try_echo=$ac_try;;
8520 esac
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522   (eval "$ac_link") 2>conftest.er1
8523   ac_status=$?
8524   grep -v '^ *+' conftest.er1 >conftest.err
8525   rm -f conftest.er1
8526   cat conftest.err >&5
8527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528   (exit $ac_status); } && {
8529          test -z "$ac_c_werror_flag" ||
8530          test ! -s conftest.err
8531        } && test -s conftest$ac_exeext &&
8532        $as_test_x conftest$ac_exeext; then
8533   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8534
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8543       conftest$ac_exeext conftest.$ac_ext
8544         LDFLAGS="$save_LDFLAGS"
8545       else
8546         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8547         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8548       fi
8549       archive_cmds_need_lc='no'
8550       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551       hardcode_libdir_separator=:
8552       inherit_rpath=yes
8553       link_all_deplibs=yes
8554       ;;
8555
8556     netbsd*)
8557       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8558         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8559       else
8560         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8561       fi
8562       hardcode_libdir_flag_spec='-R$libdir'
8563       hardcode_direct=yes
8564       hardcode_shlibpath_var=no
8565       ;;
8566
8567     newsos6)
8568       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569       hardcode_direct=yes
8570       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8571       hardcode_libdir_separator=:
8572       hardcode_shlibpath_var=no
8573       ;;
8574
8575     *nto* | *qnx*)
8576       ;;
8577
8578     openbsd*)
8579       if test -f /usr/libexec/ld.so; then
8580         hardcode_direct=yes
8581         hardcode_shlibpath_var=no
8582         hardcode_direct_absolute=yes
8583         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8584           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8585           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8586           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8587           export_dynamic_flag_spec='${wl}-E'
8588         else
8589           case $host_os in
8590            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8591              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8592              hardcode_libdir_flag_spec='-R$libdir'
8593              ;;
8594            *)
8595              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8596              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8597              ;;
8598           esac
8599         fi
8600       else
8601         ld_shlibs=no
8602       fi
8603       ;;
8604
8605     os2*)
8606       hardcode_libdir_flag_spec='-L$libdir'
8607       hardcode_minus_L=yes
8608       allow_undefined_flag=unsupported
8609       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8610       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8611       ;;
8612
8613     osf3*)
8614       if test "$GCC" = yes; then
8615         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8616         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8617       else
8618         allow_undefined_flag=' -expect_unresolved \*'
8619         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8620       fi
8621       archive_cmds_need_lc='no'
8622       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8623       hardcode_libdir_separator=:
8624       ;;
8625
8626     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8627       if test "$GCC" = yes; then
8628         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8629         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8630         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8631       else
8632         allow_undefined_flag=' -expect_unresolved \*'
8633         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8634         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8635         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8636
8637         # Both c and cxx compiler support -rpath directly
8638         hardcode_libdir_flag_spec='-rpath $libdir'
8639       fi
8640       archive_cmds_need_lc='no'
8641       hardcode_libdir_separator=:
8642       ;;
8643
8644     solaris*)
8645       no_undefined_flag=' -z defs'
8646       if test "$GCC" = yes; then
8647         wlarc='${wl}'
8648         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8650           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8651       else
8652         case `$CC -V 2>&1` in
8653         *"Compilers 5.0"*)
8654           wlarc=''
8655           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8657           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8658           ;;
8659         *)
8660           wlarc='${wl}'
8661           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8662           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8663           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8664           ;;
8665         esac
8666       fi
8667       hardcode_libdir_flag_spec='-R$libdir'
8668       hardcode_shlibpath_var=no
8669       case $host_os in
8670       solaris2.[0-5] | solaris2.[0-5].*) ;;
8671       *)
8672         # The compiler driver will combine and reorder linker options,
8673         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8674         # but is careful enough not to reorder.
8675         # Supported since Solaris 2.6 (maybe 2.5.1?)
8676         if test "$GCC" = yes; then
8677           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8678         else
8679           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8680         fi
8681         ;;
8682       esac
8683       link_all_deplibs=yes
8684       ;;
8685
8686     sunos4*)
8687       if test "x$host_vendor" = xsequent; then
8688         # Use $CC to link under sequent, because it throws in some extra .o
8689         # files that make .init and .fini sections work.
8690         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8691       else
8692         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8693       fi
8694       hardcode_libdir_flag_spec='-L$libdir'
8695       hardcode_direct=yes
8696       hardcode_minus_L=yes
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     sysv4)
8701       case $host_vendor in
8702         sni)
8703           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704           hardcode_direct=yes # is this really true???
8705         ;;
8706         siemens)
8707           ## LD is ld it makes a PLAMLIB
8708           ## CC just makes a GrossModule.
8709           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8710           reload_cmds='$CC -r -o $output$reload_objs'
8711           hardcode_direct=no
8712         ;;
8713         motorola)
8714           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8716         ;;
8717       esac
8718       runpath_var='LD_RUN_PATH'
8719       hardcode_shlibpath_var=no
8720       ;;
8721
8722     sysv4.3*)
8723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724       hardcode_shlibpath_var=no
8725       export_dynamic_flag_spec='-Bexport'
8726       ;;
8727
8728     sysv4*MP*)
8729       if test -d /usr/nec; then
8730         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731         hardcode_shlibpath_var=no
8732         runpath_var=LD_RUN_PATH
8733         hardcode_runpath_var=yes
8734         ld_shlibs=yes
8735       fi
8736       ;;
8737
8738     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8739       no_undefined_flag='${wl}-z,text'
8740       archive_cmds_need_lc=no
8741       hardcode_shlibpath_var=no
8742       runpath_var='LD_RUN_PATH'
8743
8744       if test "$GCC" = yes; then
8745         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747       else
8748         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750       fi
8751       ;;
8752
8753     sysv5* | sco3.2v5* | sco5v6*)
8754       # Note: We can NOT use -z defs as we might desire, because we do not
8755       # link with -lc, and that would cause any symbols used from libc to
8756       # always be unresolved, which means just about no library would
8757       # ever link correctly.  If we're not using GNU ld we use -z text
8758       # though, which does catch some bad symbols but isn't as heavy-handed
8759       # as -z defs.
8760       no_undefined_flag='${wl}-z,text'
8761       allow_undefined_flag='${wl}-z,nodefs'
8762       archive_cmds_need_lc=no
8763       hardcode_shlibpath_var=no
8764       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8765       hardcode_libdir_separator=':'
8766       link_all_deplibs=yes
8767       export_dynamic_flag_spec='${wl}-Bexport'
8768       runpath_var='LD_RUN_PATH'
8769
8770       if test "$GCC" = yes; then
8771         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8772         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8773       else
8774         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8776       fi
8777       ;;
8778
8779     uts4*)
8780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781       hardcode_libdir_flag_spec='-L$libdir'
8782       hardcode_shlibpath_var=no
8783       ;;
8784
8785     *)
8786       ld_shlibs=no
8787       ;;
8788     esac
8789
8790     if test x$host_vendor = xsni; then
8791       case $host in
8792       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8793         export_dynamic_flag_spec='${wl}-Blargedynsym'
8794         ;;
8795       esac
8796     fi
8797   fi
8798
8799 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8800 echo "${ECHO_T}$ld_shlibs" >&6; }
8801 test "$ld_shlibs" = no && can_build_shared=no
8802
8803 with_gnu_ld=$with_gnu_ld
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 #
8820 # Do we need to explicitly link libc?
8821 #
8822 case "x$archive_cmds_need_lc" in
8823 x|xyes)
8824   # Assume -lc should be added
8825   archive_cmds_need_lc=yes
8826
8827   if test "$enable_shared" = yes && test "$GCC" = yes; then
8828     case $archive_cmds in
8829     *'~'*)
8830       # FIXME: we may have to deal with multi-command sequences.
8831       ;;
8832     '$CC '*)
8833       # Test whether the compiler implicitly links with -lc since on some
8834       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8835       # to ld, don't add -lc before -lgcc.
8836       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8837 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8838       $RM conftest*
8839       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840
8841       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8842   (eval $ac_compile) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } 2>conftest.err; then
8846         soname=conftest
8847         lib=conftest
8848         libobjs=conftest.$ac_objext
8849         deplibs=
8850         wl=$lt_prog_compiler_wl
8851         pic_flag=$lt_prog_compiler_pic
8852         compiler_flags=-v
8853         linker_flags=-v
8854         verstring=
8855         output_objdir=.
8856         libname=conftest
8857         lt_save_allow_undefined_flag=$allow_undefined_flag
8858         allow_undefined_flag=
8859         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8860   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }
8864         then
8865           archive_cmds_need_lc=no
8866         else
8867           archive_cmds_need_lc=yes
8868         fi
8869         allow_undefined_flag=$lt_save_allow_undefined_flag
8870       else
8871         cat conftest.err 1>&5
8872       fi
8873       $RM conftest*
8874       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8875 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8876       ;;
8877     esac
8878   fi
8879   ;;
8880 esac
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9040
9041 if test "$GCC" = yes; then
9042   case $host_os in
9043     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9044     *) lt_awk_arg="/^libraries:/" ;;
9045   esac
9046   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9047   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9048     # if the path contains ";" then we assume it to be the separator
9049     # otherwise default to the standard path separator (i.e. ":") - it is
9050     # assumed that no part of a normal pathname contains ";" but that should
9051     # okay in the real world where ";" in dirpaths is itself problematic.
9052     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9053   else
9054     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9055   fi
9056   # Ok, now we have the path, separated by spaces, we can step through it
9057   # and add multilib dir if necessary.
9058   lt_tmp_lt_search_path_spec=
9059   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9060   for lt_sys_path in $lt_search_path_spec; do
9061     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9062       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9063     else
9064       test -d "$lt_sys_path" && \
9065         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9066     fi
9067   done
9068   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9069 BEGIN {RS=" "; FS="/|\n";} {
9070   lt_foo="";
9071   lt_count=0;
9072   for (lt_i = NF; lt_i > 0; lt_i--) {
9073     if ($lt_i != "" && $lt_i != ".") {
9074       if ($lt_i == "..") {
9075         lt_count++;
9076       } else {
9077         if (lt_count == 0) {
9078           lt_foo="/" $lt_i lt_foo;
9079         } else {
9080           lt_count--;
9081         }
9082       }
9083     }
9084   }
9085   if (lt_foo != "") { lt_freq[lt_foo]++; }
9086   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9087 }'`
9088   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9089 else
9090   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9091 fi
9092 library_names_spec=
9093 libname_spec='lib$name'
9094 soname_spec=
9095 shrext_cmds=".so"
9096 postinstall_cmds=
9097 postuninstall_cmds=
9098 finish_cmds=
9099 finish_eval=
9100 shlibpath_var=
9101 shlibpath_overrides_runpath=unknown
9102 version_type=none
9103 dynamic_linker="$host_os ld.so"
9104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9105 need_lib_prefix=unknown
9106 hardcode_into_libs=no
9107
9108 # when you set need_version to no, make sure it does not cause -set_version
9109 # flags to be left without arguments
9110 need_version=unknown
9111
9112 case $host_os in
9113 aix3*)
9114   version_type=linux
9115   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9116   shlibpath_var=LIBPATH
9117
9118   # AIX 3 has no versioning support, so we append a major version to the name.
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   ;;
9121
9122 aix[4-9]*)
9123   version_type=linux
9124   need_lib_prefix=no
9125   need_version=no
9126   hardcode_into_libs=yes
9127   if test "$host_cpu" = ia64; then
9128     # AIX 5 supports IA64
9129     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9130     shlibpath_var=LD_LIBRARY_PATH
9131   else
9132     # With GCC up to 2.95.x, collect2 would create an import file
9133     # for dependence libraries.  The import file would start with
9134     # the line `#! .'.  This would cause the generated library to
9135     # depend on `.', always an invalid library.  This was fixed in
9136     # development snapshots of GCC prior to 3.0.
9137     case $host_os in
9138       aix4 | aix4.[01] | aix4.[01].*)
9139       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9140            echo ' yes '
9141            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9142         :
9143       else
9144         can_build_shared=no
9145       fi
9146       ;;
9147     esac
9148     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9149     # soname into executable. Probably we can add versioning support to
9150     # collect2, so additional links can be useful in future.
9151     if test "$aix_use_runtimelinking" = yes; then
9152       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9153       # instead of lib<name>.a to let people know that these are not
9154       # typical AIX shared libraries.
9155       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156     else
9157       # We preserve .a as extension for shared libraries through AIX4.2
9158       # and later when we are not doing run time linking.
9159       library_names_spec='${libname}${release}.a $libname.a'
9160       soname_spec='${libname}${release}${shared_ext}$major'
9161     fi
9162     shlibpath_var=LIBPATH
9163   fi
9164   ;;
9165
9166 amigaos*)
9167   case $host_cpu in
9168   powerpc)
9169     # Since July 2007 AmigaOS4 officially supports .so libraries.
9170     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172     ;;
9173   m68k)
9174     library_names_spec='$libname.ixlibrary $libname.a'
9175     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9176     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9177     ;;
9178   esac
9179   ;;
9180
9181 beos*)
9182   library_names_spec='${libname}${shared_ext}'
9183   dynamic_linker="$host_os ld.so"
9184   shlibpath_var=LIBRARY_PATH
9185   ;;
9186
9187 bsdi[45]*)
9188   version_type=linux
9189   need_version=no
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191   soname_spec='${libname}${release}${shared_ext}$major'
9192   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9193   shlibpath_var=LD_LIBRARY_PATH
9194   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9195   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9196   # the default ld.so.conf also contains /usr/contrib/lib and
9197   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9198   # libtool to hard-code these into programs
9199   ;;
9200
9201 cygwin* | mingw* | pw32* | cegcc*)
9202   version_type=windows
9203   shrext_cmds=".dll"
9204   need_version=no
9205   need_lib_prefix=no
9206
9207   case $GCC,$host_os in
9208   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9209     library_names_spec='$libname.dll.a'
9210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9211     postinstall_cmds='base_file=`basename \${file}`~
9212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9213       dldir=$destdir/`dirname \$dlpath`~
9214       test -d \$dldir || mkdir -p \$dldir~
9215       $install_prog $dir/$dlname \$dldir/$dlname~
9216       chmod a+x \$dldir/$dlname~
9217       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9218         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9219       fi'
9220     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9221       dlpath=$dir/\$dldll~
9222        $RM \$dlpath'
9223     shlibpath_overrides_runpath=yes
9224
9225     case $host_os in
9226     cygwin*)
9227       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9228       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9229       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9230       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9231       ;;
9232     mingw* | cegcc*)
9233       # MinGW DLLs use traditional 'lib' prefix
9234       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9235       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9236       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9237       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9238         # It is most probably a Windows format PATH printed by
9239         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9240         # path with ; separators, and with drive letters. We can handle the
9241         # drive letters (cygwin fileutils understands them), so leave them,
9242         # especially as we might pass files found there to a mingw objdump,
9243         # which wouldn't understand a cygwinified path. Ahh.
9244         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9245       else
9246         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9247       fi
9248       ;;
9249     pw32*)
9250       # pw32 DLLs use 'pw' prefix rather than 'lib'
9251       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252       ;;
9253     esac
9254     ;;
9255
9256   *)
9257     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9258     ;;
9259   esac
9260   dynamic_linker='Win32 ld.exe'
9261   # FIXME: first we should search . and the directory the executable is in
9262   shlibpath_var=PATH
9263   ;;
9264
9265 darwin* | rhapsody*)
9266   dynamic_linker="$host_os dyld"
9267   version_type=darwin
9268   need_lib_prefix=no
9269   need_version=no
9270   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9271   soname_spec='${libname}${release}${major}$shared_ext'
9272   shlibpath_overrides_runpath=yes
9273   shlibpath_var=DYLD_LIBRARY_PATH
9274   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9275
9276   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9277   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9278   ;;
9279
9280 dgux*)
9281   version_type=linux
9282   need_lib_prefix=no
9283   need_version=no
9284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9285   soname_spec='${libname}${release}${shared_ext}$major'
9286   shlibpath_var=LD_LIBRARY_PATH
9287   ;;
9288
9289 freebsd1*)
9290   dynamic_linker=no
9291   ;;
9292
9293 freebsd* | dragonfly*)
9294   # DragonFly does not have aout.  When/if they implement a new
9295   # versioning mechanism, adjust this.
9296   if test -x /usr/bin/objformat; then
9297     objformat=`/usr/bin/objformat`
9298   else
9299     case $host_os in
9300     freebsd[123]*) objformat=aout ;;
9301     *) objformat=elf ;;
9302     esac
9303   fi
9304   version_type=freebsd-$objformat
9305   case $version_type in
9306     freebsd-elf*)
9307       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9308       need_version=no
9309       need_lib_prefix=no
9310       ;;
9311     freebsd-*)
9312       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9313       need_version=yes
9314       ;;
9315   esac
9316   shlibpath_var=LD_LIBRARY_PATH
9317   case $host_os in
9318   freebsd2*)
9319     shlibpath_overrides_runpath=yes
9320     ;;
9321   freebsd3.[01]* | freebsdelf3.[01]*)
9322     shlibpath_overrides_runpath=yes
9323     hardcode_into_libs=yes
9324     ;;
9325   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9326   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9327     shlibpath_overrides_runpath=no
9328     hardcode_into_libs=yes
9329     ;;
9330   *) # from 4.6 on, and DragonFly
9331     shlibpath_overrides_runpath=yes
9332     hardcode_into_libs=yes
9333     ;;
9334   esac
9335   ;;
9336
9337 gnu*)
9338   version_type=linux
9339   need_lib_prefix=no
9340   need_version=no
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9342   soname_spec='${libname}${release}${shared_ext}$major'
9343   shlibpath_var=LD_LIBRARY_PATH
9344   hardcode_into_libs=yes
9345   ;;
9346
9347 hpux9* | hpux10* | hpux11*)
9348   # Give a soname corresponding to the major version so that dld.sl refuses to
9349   # link against other versions.
9350   version_type=sunos
9351   need_lib_prefix=no
9352   need_version=no
9353   case $host_cpu in
9354   ia64*)
9355     shrext_cmds='.so'
9356     hardcode_into_libs=yes
9357     dynamic_linker="$host_os dld.so"
9358     shlibpath_var=LD_LIBRARY_PATH
9359     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9361     soname_spec='${libname}${release}${shared_ext}$major'
9362     if test "X$HPUX_IA64_MODE" = X32; then
9363       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9364     else
9365       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9366     fi
9367     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9368     ;;
9369   hppa*64*)
9370     shrext_cmds='.sl'
9371     hardcode_into_libs=yes
9372     dynamic_linker="$host_os dld.sl"
9373     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9374     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9375     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376     soname_spec='${libname}${release}${shared_ext}$major'
9377     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9379     ;;
9380   *)
9381     shrext_cmds='.sl'
9382     dynamic_linker="$host_os dld.sl"
9383     shlibpath_var=SHLIB_PATH
9384     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9385     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386     soname_spec='${libname}${release}${shared_ext}$major'
9387     ;;
9388   esac
9389   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9390   postinstall_cmds='chmod 555 $lib'
9391   ;;
9392
9393 interix[3-9]*)
9394   version_type=linux
9395   need_lib_prefix=no
9396   need_version=no
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9398   soname_spec='${libname}${release}${shared_ext}$major'
9399   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9400   shlibpath_var=LD_LIBRARY_PATH
9401   shlibpath_overrides_runpath=no
9402   hardcode_into_libs=yes
9403   ;;
9404
9405 irix5* | irix6* | nonstopux*)
9406   case $host_os in
9407     nonstopux*) version_type=nonstopux ;;
9408     *)
9409         if test "$lt_cv_prog_gnu_ld" = yes; then
9410                 version_type=linux
9411         else
9412                 version_type=irix
9413         fi ;;
9414   esac
9415   need_lib_prefix=no
9416   need_version=no
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9419   case $host_os in
9420   irix5* | nonstopux*)
9421     libsuff= shlibsuff=
9422     ;;
9423   *)
9424     case $LD in # libtool.m4 will add one of these switches to LD
9425     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9426       libsuff= shlibsuff= libmagic=32-bit;;
9427     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9428       libsuff=32 shlibsuff=N32 libmagic=N32;;
9429     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9430       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9431     *) libsuff= shlibsuff= libmagic=never-match;;
9432     esac
9433     ;;
9434   esac
9435   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9436   shlibpath_overrides_runpath=no
9437   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9438   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9439   hardcode_into_libs=yes
9440   ;;
9441
9442 # No shared lib support for Linux oldld, aout, or coff.
9443 linux*oldld* | linux*aout* | linux*coff*)
9444   dynamic_linker=no
9445   ;;
9446
9447 # This must be Linux ELF.
9448 linux* | k*bsd*-gnu)
9449   version_type=linux
9450   need_lib_prefix=no
9451   need_version=no
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453   soname_spec='${libname}${release}${shared_ext}$major'
9454   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9455   shlibpath_var=LD_LIBRARY_PATH
9456   shlibpath_overrides_runpath=no
9457   # Some binutils ld are patched to set DT_RUNPATH
9458   save_LDFLAGS=$LDFLAGS
9459   save_libdir=$libdir
9460   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9461        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9462   cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468
9469 int
9470 main ()
9471 {
9472
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (ac_try="$ac_link"
9479 case "(($ac_try" in
9480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481   *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484   (eval "$ac_link") 2>conftest.er1
9485   ac_status=$?
9486   grep -v '^ *+' conftest.er1 >conftest.err
9487   rm -f conftest.er1
9488   cat conftest.err >&5
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); } && {
9491          test -z "$ac_c_werror_flag" ||
9492          test ! -s conftest.err
9493        } && test -s conftest$ac_exeext &&
9494        $as_test_x conftest$ac_exeext; then
9495   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9496   shlibpath_overrides_runpath=yes
9497 fi
9498
9499 else
9500   echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507       conftest$ac_exeext conftest.$ac_ext
9508   LDFLAGS=$save_LDFLAGS
9509   libdir=$save_libdir
9510
9511   # This implies no fast_install, which is unacceptable.
9512   # Some rework will be needed to allow for fast_install
9513   # before this can be enabled.
9514   hardcode_into_libs=yes
9515
9516   # Append ld.so.conf contents to the search path
9517   if test -f /etc/ld.so.conf; then
9518     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9519     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9520   fi
9521
9522   # We used to test for /lib/ld.so.1 and disable shared libraries on
9523   # powerpc, because MkLinux only supported shared libraries with the
9524   # GNU dynamic linker.  Since this was broken with cross compilers,
9525   # most powerpc-linux boxes support dynamic linking these days and
9526   # people can always --disable-shared, the test was removed, and we
9527   # assume the GNU/Linux dynamic linker is in use.
9528   dynamic_linker='GNU/Linux ld.so'
9529   ;;
9530
9531 netbsd*)
9532   version_type=sunos
9533   need_lib_prefix=no
9534   need_version=no
9535   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9538     dynamic_linker='NetBSD (a.out) ld.so'
9539   else
9540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541     soname_spec='${libname}${release}${shared_ext}$major'
9542     dynamic_linker='NetBSD ld.elf_so'
9543   fi
9544   shlibpath_var=LD_LIBRARY_PATH
9545   shlibpath_overrides_runpath=yes
9546   hardcode_into_libs=yes
9547   ;;
9548
9549 newsos6)
9550   version_type=linux
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   shlibpath_var=LD_LIBRARY_PATH
9553   shlibpath_overrides_runpath=yes
9554   ;;
9555
9556 *nto* | *qnx*)
9557   version_type=qnx
9558   need_lib_prefix=no
9559   need_version=no
9560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561   soname_spec='${libname}${release}${shared_ext}$major'
9562   shlibpath_var=LD_LIBRARY_PATH
9563   shlibpath_overrides_runpath=no
9564   hardcode_into_libs=yes
9565   dynamic_linker='ldqnx.so'
9566   ;;
9567
9568 openbsd*)
9569   version_type=sunos
9570   sys_lib_dlsearch_path_spec="/usr/lib"
9571   need_lib_prefix=no
9572   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9573   case $host_os in
9574     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9575     *)                          need_version=no  ;;
9576   esac
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9578   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9579   shlibpath_var=LD_LIBRARY_PATH
9580   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9581     case $host_os in
9582       openbsd2.[89] | openbsd2.[89].*)
9583         shlibpath_overrides_runpath=no
9584         ;;
9585       *)
9586         shlibpath_overrides_runpath=yes
9587         ;;
9588       esac
9589   else
9590     shlibpath_overrides_runpath=yes
9591   fi
9592   ;;
9593
9594 os2*)
9595   libname_spec='$name'
9596   shrext_cmds=".dll"
9597   need_lib_prefix=no
9598   library_names_spec='$libname${shared_ext} $libname.a'
9599   dynamic_linker='OS/2 ld.exe'
9600   shlibpath_var=LIBPATH
9601   ;;
9602
9603 osf3* | osf4* | osf5*)
9604   version_type=osf
9605   need_lib_prefix=no
9606   need_version=no
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609   shlibpath_var=LD_LIBRARY_PATH
9610   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9611   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9612   ;;
9613
9614 rdos*)
9615   dynamic_linker=no
9616   ;;
9617
9618 solaris*)
9619   version_type=linux
9620   need_lib_prefix=no
9621   need_version=no
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623   soname_spec='${libname}${release}${shared_ext}$major'
9624   shlibpath_var=LD_LIBRARY_PATH
9625   shlibpath_overrides_runpath=yes
9626   hardcode_into_libs=yes
9627   # ldd complains unless libraries are executable
9628   postinstall_cmds='chmod +x $lib'
9629   ;;
9630
9631 sunos4*)
9632   version_type=sunos
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   shlibpath_overrides_runpath=yes
9637   if test "$with_gnu_ld" = yes; then
9638     need_lib_prefix=no
9639   fi
9640   need_version=yes
9641   ;;
9642
9643 sysv4 | sysv4.3*)
9644   version_type=linux
9645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646   soname_spec='${libname}${release}${shared_ext}$major'
9647   shlibpath_var=LD_LIBRARY_PATH
9648   case $host_vendor in
9649     sni)
9650       shlibpath_overrides_runpath=no
9651       need_lib_prefix=no
9652       runpath_var=LD_RUN_PATH
9653       ;;
9654     siemens)
9655       need_lib_prefix=no
9656       ;;
9657     motorola)
9658       need_lib_prefix=no
9659       need_version=no
9660       shlibpath_overrides_runpath=no
9661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9662       ;;
9663   esac
9664   ;;
9665
9666 sysv4*MP*)
9667   if test -d /usr/nec ;then
9668     version_type=linux
9669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9670     soname_spec='$libname${shared_ext}.$major'
9671     shlibpath_var=LD_LIBRARY_PATH
9672   fi
9673   ;;
9674
9675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9676   version_type=freebsd-elf
9677   need_lib_prefix=no
9678   need_version=no
9679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9680   soname_spec='${libname}${release}${shared_ext}$major'
9681   shlibpath_var=LD_LIBRARY_PATH
9682   shlibpath_overrides_runpath=yes
9683   hardcode_into_libs=yes
9684   if test "$with_gnu_ld" = yes; then
9685     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9686   else
9687     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9688     case $host_os in
9689       sco3.2v5*)
9690         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9691         ;;
9692     esac
9693   fi
9694   sys_lib_dlsearch_path_spec='/usr/lib'
9695   ;;
9696
9697 tpf*)
9698   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9699   version_type=linux
9700   need_lib_prefix=no
9701   need_version=no
9702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703   shlibpath_var=LD_LIBRARY_PATH
9704   shlibpath_overrides_runpath=no
9705   hardcode_into_libs=yes
9706   ;;
9707
9708 uts4*)
9709   version_type=linux
9710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711   soname_spec='${libname}${release}${shared_ext}$major'
9712   shlibpath_var=LD_LIBRARY_PATH
9713   ;;
9714
9715 *)
9716   dynamic_linker=no
9717   ;;
9718 esac
9719 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9720 echo "${ECHO_T}$dynamic_linker" >&6; }
9721 test "$dynamic_linker" = no && can_build_shared=no
9722
9723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9724 if test "$GCC" = yes; then
9725   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9726 fi
9727
9728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9729   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9730 fi
9731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9732   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9733 fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9822 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9823 hardcode_action=
9824 if test -n "$hardcode_libdir_flag_spec" ||
9825    test -n "$runpath_var" ||
9826    test "X$hardcode_automatic" = "Xyes" ; then
9827
9828   # We can hardcode non-existent directories.
9829   if test "$hardcode_direct" != no &&
9830      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9831      # have to relink, otherwise we might link with an installed library
9832      # when we should be linking with a yet-to-be-installed one
9833      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9834      test "$hardcode_minus_L" != no; then
9835     # Linking always hardcodes the temporary library directory.
9836     hardcode_action=relink
9837   else
9838     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9839     hardcode_action=immediate
9840   fi
9841 else
9842   # We cannot hardcode anything, or else we can only hardcode existing
9843   # directories.
9844   hardcode_action=unsupported
9845 fi
9846 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9847 echo "${ECHO_T}$hardcode_action" >&6; }
9848
9849 if test "$hardcode_action" = relink ||
9850    test "$inherit_rpath" = yes; then
9851   # Fast installation is not supported
9852   enable_fast_install=no
9853 elif test "$shlibpath_overrides_runpath" = yes ||
9854      test "$enable_shared" = no; then
9855   # Fast installation is not necessary
9856   enable_fast_install=needless
9857 fi
9858
9859
9860
9861
9862
9863
9864   if test "x$enable_dlopen" != xyes; then
9865   enable_dlopen=unknown
9866   enable_dlopen_self=unknown
9867   enable_dlopen_self_static=unknown
9868 else
9869   lt_cv_dlopen=no
9870   lt_cv_dlopen_libs=
9871
9872   case $host_os in
9873   beos*)
9874     lt_cv_dlopen="load_add_on"
9875     lt_cv_dlopen_libs=
9876     lt_cv_dlopen_self=yes
9877     ;;
9878
9879   mingw* | pw32* | cegcc*)
9880     lt_cv_dlopen="LoadLibrary"
9881     lt_cv_dlopen_libs=
9882     ;;
9883
9884   cygwin*)
9885     lt_cv_dlopen="dlopen"
9886     lt_cv_dlopen_libs=
9887     ;;
9888
9889   darwin*)
9890   # if libdl is installed we need to link against it
9891     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   ac_check_lib_save_LIBS=$LIBS
9897 LIBS="-ldl  $LIBS"
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904
9905 /* Override any GCC internal prototype to avoid an error.
9906    Use char because int might match the return type of a GCC
9907    builtin and then its argument prototype would still apply.  */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char dlopen ();
9912 int
9913 main ()
9914 {
9915 return dlopen ();
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 rm -f conftest.$ac_objext conftest$ac_exeext
9921 if { (ac_try="$ac_link"
9922 case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_link") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest$ac_exeext &&
9937        $as_test_x conftest$ac_exeext; then
9938   ac_cv_lib_dl_dlopen=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943         ac_cv_lib_dl_dlopen=no
9944 fi
9945
9946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947       conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9952 if test $ac_cv_lib_dl_dlopen = yes; then
9953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9954 else
9955
9956     lt_cv_dlopen="dyld"
9957     lt_cv_dlopen_libs=
9958     lt_cv_dlopen_self=yes
9959
9960 fi
9961
9962     ;;
9963
9964   *)
9965     { echo "$as_me:$LINENO: checking for shl_load" >&5
9966 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_shl_load+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9978 #define shl_load innocuous_shl_load
9979
9980 /* System header to define __stub macros and hopefully few prototypes,
9981     which can conflict with char shl_load (); below.
9982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9983     <limits.h> exists even on freestanding compilers.  */
9984
9985 #ifdef __STDC__
9986 # include <limits.h>
9987 #else
9988 # include <assert.h>
9989 #endif
9990
9991 #undef shl_load
9992
9993 /* Override any GCC internal prototype to avoid an error.
9994    Use char because int might match the return type of a GCC
9995    builtin and then its argument prototype would still apply.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 char shl_load ();
10000 /* The GNU C library defines this for functions which it implements
10001     to always fail with ENOSYS.  Some functions are actually named
10002     something starting with __ and the normal name is an alias.  */
10003 #if defined __stub_shl_load || defined __stub___shl_load
10004 choke me
10005 #endif
10006
10007 int
10008 main ()
10009 {
10010 return shl_load ();
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (ac_try="$ac_link"
10017 case "(($ac_try" in
10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019   *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022   (eval "$ac_link") 2>conftest.er1
10023   ac_status=$?
10024   grep -v '^ *+' conftest.er1 >conftest.err
10025   rm -f conftest.er1
10026   cat conftest.err >&5
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); } && {
10029          test -z "$ac_c_werror_flag" ||
10030          test ! -s conftest.err
10031        } && test -s conftest$ac_exeext &&
10032        $as_test_x conftest$ac_exeext; then
10033   ac_cv_func_shl_load=yes
10034 else
10035   echo "$as_me: failed program was:" >&5
10036 sed 's/^/| /' conftest.$ac_ext >&5
10037
10038         ac_cv_func_shl_load=no
10039 fi
10040
10041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042       conftest$ac_exeext conftest.$ac_ext
10043 fi
10044 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10045 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10046 if test $ac_cv_func_shl_load = yes; then
10047   lt_cv_dlopen="shl_load"
10048 else
10049   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10050 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10051 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10052   echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054   ac_check_lib_save_LIBS=$LIBS
10055 LIBS="-ldld  $LIBS"
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h.  */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h.  */
10062
10063 /* Override any GCC internal prototype to avoid an error.
10064    Use char because int might match the return type of a GCC
10065    builtin and then its argument prototype would still apply.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char shl_load ();
10070 int
10071 main ()
10072 {
10073 return shl_load ();
10074   ;
10075   return 0;
10076 }
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (ac_try="$ac_link"
10080 case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085   (eval "$ac_link") 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } && {
10092          test -z "$ac_c_werror_flag" ||
10093          test ! -s conftest.err
10094        } && test -s conftest$ac_exeext &&
10095        $as_test_x conftest$ac_exeext; then
10096   ac_cv_lib_dld_shl_load=yes
10097 else
10098   echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101         ac_cv_lib_dld_shl_load=no
10102 fi
10103
10104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10105       conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10107 fi
10108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10110 if test $ac_cv_lib_dld_shl_load = yes; then
10111   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10112 else
10113   { echo "$as_me:$LINENO: checking for dlopen" >&5
10114 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10115 if test "${ac_cv_func_dlopen+set}" = set; then
10116   echo $ECHO_N "(cached) $ECHO_C" >&6
10117 else
10118   cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10126 #define dlopen innocuous_dlopen
10127
10128 /* System header to define __stub macros and hopefully few prototypes,
10129     which can conflict with char dlopen (); below.
10130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10131     <limits.h> exists even on freestanding compilers.  */
10132
10133 #ifdef __STDC__
10134 # include <limits.h>
10135 #else
10136 # include <assert.h>
10137 #endif
10138
10139 #undef dlopen
10140
10141 /* Override any GCC internal prototype to avoid an error.
10142    Use char because int might match the return type of a GCC
10143    builtin and then its argument prototype would still apply.  */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char dlopen ();
10148 /* The GNU C library defines this for functions which it implements
10149     to always fail with ENOSYS.  Some functions are actually named
10150     something starting with __ and the normal name is an alias.  */
10151 #if defined __stub_dlopen || defined __stub___dlopen
10152 choke me
10153 #endif
10154
10155 int
10156 main ()
10157 {
10158 return dlopen ();
10159   ;
10160   return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } && {
10177          test -z "$ac_c_werror_flag" ||
10178          test ! -s conftest.err
10179        } && test -s conftest$ac_exeext &&
10180        $as_test_x conftest$ac_exeext; then
10181   ac_cv_func_dlopen=yes
10182 else
10183   echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186         ac_cv_func_dlopen=no
10187 fi
10188
10189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10190       conftest$ac_exeext conftest.$ac_ext
10191 fi
10192 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10193 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10194 if test $ac_cv_func_dlopen = yes; then
10195   lt_cv_dlopen="dlopen"
10196 else
10197   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10200   echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202   ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-ldl  $LIBS"
10204 cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210
10211 /* Override any GCC internal prototype to avoid an error.
10212    Use char because int might match the return type of a GCC
10213    builtin and then its argument prototype would still apply.  */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char dlopen ();
10218 int
10219 main ()
10220 {
10221 return dlopen ();
10222   ;
10223   return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230   *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233   (eval "$ac_link") 2>conftest.er1
10234   ac_status=$?
10235   grep -v '^ *+' conftest.er1 >conftest.err
10236   rm -f conftest.er1
10237   cat conftest.err >&5
10238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239   (exit $ac_status); } && {
10240          test -z "$ac_c_werror_flag" ||
10241          test ! -s conftest.err
10242        } && test -s conftest$ac_exeext &&
10243        $as_test_x conftest$ac_exeext; then
10244   ac_cv_lib_dl_dlopen=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249         ac_cv_lib_dl_dlopen=no
10250 fi
10251
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253       conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10255 fi
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10258 if test $ac_cv_lib_dl_dlopen = yes; then
10259   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10260 else
10261   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10262 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-lsvld  $LIBS"
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274
10275 /* Override any GCC internal prototype to avoid an error.
10276    Use char because int might match the return type of a GCC
10277    builtin and then its argument prototype would still apply.  */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 char dlopen ();
10282 int
10283 main ()
10284 {
10285 return dlopen ();
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext conftest$ac_exeext
10291 if { (ac_try="$ac_link"
10292 case "(($ac_try" in
10293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294   *) ac_try_echo=$ac_try;;
10295 esac
10296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297   (eval "$ac_link") 2>conftest.er1
10298   ac_status=$?
10299   grep -v '^ *+' conftest.er1 >conftest.err
10300   rm -f conftest.er1
10301   cat conftest.err >&5
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } && {
10304          test -z "$ac_c_werror_flag" ||
10305          test ! -s conftest.err
10306        } && test -s conftest$ac_exeext &&
10307        $as_test_x conftest$ac_exeext; then
10308   ac_cv_lib_svld_dlopen=yes
10309 else
10310   echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10312
10313         ac_cv_lib_svld_dlopen=no
10314 fi
10315
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317       conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10321 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10322 if test $ac_cv_lib_svld_dlopen = yes; then
10323   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10324 else
10325   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328   echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330   ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-ldld  $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h.  */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h.  */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340    Use char because int might match the return type of a GCC
10341    builtin and then its argument prototype would still apply.  */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dld_link ();
10346 int
10347 main ()
10348 {
10349 return dld_link ();
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_link") 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && {
10368          test -z "$ac_c_werror_flag" ||
10369          test ! -s conftest.err
10370        } && test -s conftest$ac_exeext &&
10371        $as_test_x conftest$ac_exeext; then
10372   ac_cv_lib_dld_dld_link=yes
10373 else
10374   echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377         ac_cv_lib_dld_dld_link=no
10378 fi
10379
10380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10381       conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10383 fi
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10385 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10386 if test $ac_cv_lib_dld_dld_link = yes; then
10387   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10388 fi
10389
10390
10391 fi
10392
10393
10394 fi
10395
10396
10397 fi
10398
10399
10400 fi
10401
10402
10403 fi
10404
10405     ;;
10406   esac
10407
10408   if test "x$lt_cv_dlopen" != xno; then
10409     enable_dlopen=yes
10410   else
10411     enable_dlopen=no
10412   fi
10413
10414   case $lt_cv_dlopen in
10415   dlopen)
10416     save_CPPFLAGS="$CPPFLAGS"
10417     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10418
10419     save_LDFLAGS="$LDFLAGS"
10420     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10421
10422     save_LIBS="$LIBS"
10423     LIBS="$lt_cv_dlopen_libs $LIBS"
10424
10425     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10426 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10427 if test "${lt_cv_dlopen_self+set}" = set; then
10428   echo $ECHO_N "(cached) $ECHO_C" >&6
10429 else
10430           if test "$cross_compiling" = yes; then :
10431   lt_cv_dlopen_self=cross
10432 else
10433   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10434   lt_status=$lt_dlunknown
10435   cat > conftest.$ac_ext <<_LT_EOF
10436 #line 10436 "configure"
10437 #include "confdefs.h"
10438
10439 #if HAVE_DLFCN_H
10440 #include <dlfcn.h>
10441 #endif
10442
10443 #include <stdio.h>
10444
10445 #ifdef RTLD_GLOBAL
10446 #  define LT_DLGLOBAL           RTLD_GLOBAL
10447 #else
10448 #  ifdef DL_GLOBAL
10449 #    define LT_DLGLOBAL         DL_GLOBAL
10450 #  else
10451 #    define LT_DLGLOBAL         0
10452 #  endif
10453 #endif
10454
10455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10456    find out it does not work in some platform. */
10457 #ifndef LT_DLLAZY_OR_NOW
10458 #  ifdef RTLD_LAZY
10459 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10460 #  else
10461 #    ifdef DL_LAZY
10462 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10463 #    else
10464 #      ifdef RTLD_NOW
10465 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10466 #      else
10467 #        ifdef DL_NOW
10468 #          define LT_DLLAZY_OR_NOW      DL_NOW
10469 #        else
10470 #          define LT_DLLAZY_OR_NOW      0
10471 #        endif
10472 #      endif
10473 #    endif
10474 #  endif
10475 #endif
10476
10477 void fnord() { int i=42;}
10478 int main ()
10479 {
10480   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10481   int status = $lt_dlunknown;
10482
10483   if (self)
10484     {
10485       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10486       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10487       /* dlclose (self); */
10488     }
10489   else
10490     puts (dlerror ());
10491
10492   return status;
10493 }
10494 _LT_EOF
10495   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496   (eval $ac_link) 2>&5
10497   ac_status=$?
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10500     (./conftest; exit; ) >&5 2>/dev/null
10501     lt_status=$?
10502     case x$lt_status in
10503       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10504       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10505       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10506     esac
10507   else :
10508     # compilation failed
10509     lt_cv_dlopen_self=no
10510   fi
10511 fi
10512 rm -fr conftest*
10513
10514
10515 fi
10516 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10517 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10518
10519     if test "x$lt_cv_dlopen_self" = xyes; then
10520       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10521       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10522 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10523 if test "${lt_cv_dlopen_self_static+set}" = set; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526           if test "$cross_compiling" = yes; then :
10527   lt_cv_dlopen_self_static=cross
10528 else
10529   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10530   lt_status=$lt_dlunknown
10531   cat > conftest.$ac_ext <<_LT_EOF
10532 #line 10532 "configure"
10533 #include "confdefs.h"
10534
10535 #if HAVE_DLFCN_H
10536 #include <dlfcn.h>
10537 #endif
10538
10539 #include <stdio.h>
10540
10541 #ifdef RTLD_GLOBAL
10542 #  define LT_DLGLOBAL           RTLD_GLOBAL
10543 #else
10544 #  ifdef DL_GLOBAL
10545 #    define LT_DLGLOBAL         DL_GLOBAL
10546 #  else
10547 #    define LT_DLGLOBAL         0
10548 #  endif
10549 #endif
10550
10551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10552    find out it does not work in some platform. */
10553 #ifndef LT_DLLAZY_OR_NOW
10554 #  ifdef RTLD_LAZY
10555 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10556 #  else
10557 #    ifdef DL_LAZY
10558 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10559 #    else
10560 #      ifdef RTLD_NOW
10561 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10562 #      else
10563 #        ifdef DL_NOW
10564 #          define LT_DLLAZY_OR_NOW      DL_NOW
10565 #        else
10566 #          define LT_DLLAZY_OR_NOW      0
10567 #        endif
10568 #      endif
10569 #    endif
10570 #  endif
10571 #endif
10572
10573 void fnord() { int i=42;}
10574 int main ()
10575 {
10576   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10577   int status = $lt_dlunknown;
10578
10579   if (self)
10580     {
10581       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10582       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10583       /* dlclose (self); */
10584     }
10585   else
10586     puts (dlerror ());
10587
10588   return status;
10589 }
10590 _LT_EOF
10591   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10592   (eval $ac_link) 2>&5
10593   ac_status=$?
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10596     (./conftest; exit; ) >&5 2>/dev/null
10597     lt_status=$?
10598     case x$lt_status in
10599       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10600       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10601       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10602     esac
10603   else :
10604     # compilation failed
10605     lt_cv_dlopen_self_static=no
10606   fi
10607 fi
10608 rm -fr conftest*
10609
10610
10611 fi
10612 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10613 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10614     fi
10615
10616     CPPFLAGS="$save_CPPFLAGS"
10617     LDFLAGS="$save_LDFLAGS"
10618     LIBS="$save_LIBS"
10619     ;;
10620   esac
10621
10622   case $lt_cv_dlopen_self in
10623   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10624   *) enable_dlopen_self=unknown ;;
10625   esac
10626
10627   case $lt_cv_dlopen_self_static in
10628   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10629   *) enable_dlopen_self_static=unknown ;;
10630   esac
10631 fi
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649 striplib=
10650 old_striplib=
10651 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10652 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10653 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10654   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10655   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10656   { echo "$as_me:$LINENO: result: yes" >&5
10657 echo "${ECHO_T}yes" >&6; }
10658 else
10659 # FIXME - insert some real tests, host_os isn't really good enough
10660   case $host_os in
10661   darwin*)
10662     if test -n "$STRIP" ; then
10663       striplib="$STRIP -x"
10664       old_striplib="$STRIP -S"
10665       { echo "$as_me:$LINENO: result: yes" >&5
10666 echo "${ECHO_T}yes" >&6; }
10667     else
10668       { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10670     fi
10671     ;;
10672   *)
10673     { echo "$as_me:$LINENO: result: no" >&5
10674 echo "${ECHO_T}no" >&6; }
10675     ;;
10676   esac
10677 fi
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690   # Report which library types will actually be built
10691   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10692 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10693   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10694 echo "${ECHO_T}$can_build_shared" >&6; }
10695
10696   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10697 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10698   test "$can_build_shared" = "no" && enable_shared=no
10699
10700   # On AIX, shared libraries and static libraries use the same namespace, and
10701   # are all built from PIC.
10702   case $host_os in
10703   aix3*)
10704     test "$enable_shared" = yes && enable_static=no
10705     if test -n "$RANLIB"; then
10706       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10707       postinstall_cmds='$RANLIB $lib'
10708     fi
10709     ;;
10710
10711   aix[4-9]*)
10712     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10713       test "$enable_shared" = yes && enable_static=no
10714     fi
10715     ;;
10716   esac
10717   { echo "$as_me:$LINENO: result: $enable_shared" >&5
10718 echo "${ECHO_T}$enable_shared" >&6; }
10719
10720   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10721 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10722   # Make sure either enable_shared or enable_static is yes.
10723   test "$enable_shared" = yes || enable_static=yes
10724   { echo "$as_me:$LINENO: result: $enable_static" >&5
10725 echo "${ECHO_T}$enable_static" >&6; }
10726
10727
10728
10729
10730 fi
10731 ac_ext=c
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736
10737 CC="$lt_save_CC"
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751         ac_config_commands="$ac_config_commands libtool"
10752
10753
10754
10755
10756 # Only expand once:
10757
10758
10759
10760 LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
10761 LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
10762 LT_REVISION=$SDL_INTERFACE_AGE
10763 LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
10764
10765
10766
10767
10768
10769
10770
10771 ac_aux_dir=
10772 for ac_dir in build-scripts "$srcdir"/build-scripts; do
10773   if test -f "$ac_dir/install-sh"; then
10774     ac_aux_dir=$ac_dir
10775     ac_install_sh="$ac_aux_dir/install-sh -c"
10776     break
10777   elif test -f "$ac_dir/install.sh"; then
10778     ac_aux_dir=$ac_dir
10779     ac_install_sh="$ac_aux_dir/install.sh -c"
10780     break
10781   elif test -f "$ac_dir/shtool"; then
10782     ac_aux_dir=$ac_dir
10783     ac_install_sh="$ac_aux_dir/shtool install -c"
10784     break
10785   fi
10786 done
10787 if test -z "$ac_aux_dir"; then
10788   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&5
10789 echo "$as_me: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&2;}
10790    { (exit 1); exit 1; }; }
10791 fi
10792
10793 # These three variables are undocumented and unsupported,
10794 # and are intended to be withdrawn in a future Autoconf release.
10795 # They can cause serious problems if a builder's source tree is in a directory
10796 # whose full name contains unusual characters.
10797 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10798 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10799 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10800
10801
10802 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10803 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
10804 if test "${ac_cv_c_bigendian+set}" = set; then
10805   echo $ECHO_N "(cached) $ECHO_C" >&6
10806 else
10807   # See if sys/param.h defines the BYTE_ORDER macro.
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 #include <sys/types.h>
10815 #include <sys/param.h>
10816
10817 int
10818 main ()
10819 {
10820 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
10821         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
10822  bogus endian macros
10823 #endif
10824
10825   ;
10826   return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833   *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836   (eval "$ac_compile") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } && {
10843          test -z "$ac_c_werror_flag" ||
10844          test ! -s conftest.err
10845        } && test -s conftest.$ac_objext; then
10846   # It does; now see whether it defined to BIG_ENDIAN or not.
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853 #include <sys/types.h>
10854 #include <sys/param.h>
10855
10856 int
10857 main ()
10858 {
10859 #if BYTE_ORDER != BIG_ENDIAN
10860  not big endian
10861 #endif
10862
10863   ;
10864   return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext
10868 if { (ac_try="$ac_compile"
10869 case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_compile") 2>conftest.er1
10875   ac_status=$?
10876   grep -v '^ *+' conftest.er1 >conftest.err
10877   rm -f conftest.er1
10878   cat conftest.err >&5
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); } && {
10881          test -z "$ac_c_werror_flag" ||
10882          test ! -s conftest.err
10883        } && test -s conftest.$ac_objext; then
10884   ac_cv_c_bigendian=yes
10885 else
10886   echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889         ac_cv_c_bigendian=no
10890 fi
10891
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 else
10894   echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10896
10897         # It does not; compile a test program.
10898 if test "$cross_compiling" = yes; then
10899   # try to guess the endianness by grepping values into an object file
10900   ac_cv_c_bigendian=unknown
10901   cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10908 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10909 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10910 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10911 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10912 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10913 int
10914 main ()
10915 {
10916  _ascii (); _ebcdic ();
10917   ;
10918   return 0;
10919 }
10920 _ACEOF
10921 rm -f conftest.$ac_objext
10922 if { (ac_try="$ac_compile"
10923 case "(($ac_try" in
10924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925   *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928   (eval "$ac_compile") 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } && {
10935          test -z "$ac_c_werror_flag" ||
10936          test ! -s conftest.err
10937        } && test -s conftest.$ac_objext; then
10938   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10939   ac_cv_c_bigendian=yes
10940 fi
10941 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10942   if test "$ac_cv_c_bigendian" = unknown; then
10943     ac_cv_c_bigendian=no
10944   else
10945     # finding both strings is unlikely to happen, but who knows?
10946     ac_cv_c_bigendian=unknown
10947   fi
10948 fi
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953
10954 fi
10955
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 else
10958   cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h.  */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h.  */
10964 $ac_includes_default
10965 int
10966 main ()
10967 {
10968
10969   /* Are we little or big endian?  From Harbison&Steele.  */
10970   union
10971   {
10972     long int l;
10973     char c[sizeof (long int)];
10974   } u;
10975   u.l = 1;
10976   return u.c[sizeof (long int) - 1] == 1;
10977
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest$ac_exeext
10983 if { (ac_try="$ac_link"
10984 case "(($ac_try" in
10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986   *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989   (eval "$ac_link") 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10993   { (case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_try") 2>&5
10999   ac_status=$?
11000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001   (exit $ac_status); }; }; then
11002   ac_cv_c_bigendian=no
11003 else
11004   echo "$as_me: program exited with status $ac_status" >&5
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ( exit $ac_status )
11009 ac_cv_c_bigendian=yes
11010 fi
11011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11012 fi
11013
11014
11015 fi
11016
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11020 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11021 case $ac_cv_c_bigendian in
11022   yes)
11023
11024 cat >>confdefs.h <<\_ACEOF
11025 #define WORDS_BIGENDIAN 1
11026 _ACEOF
11027  ;;
11028   no)
11029      ;;
11030   *)
11031     { { echo "$as_me:$LINENO: error: unknown endianness
11032 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11033 echo "$as_me: error: unknown endianness
11034 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11035    { (exit 1); exit 1; }; } ;;
11036 esac
11037
11038 if test x$ac_cv_c_bigendian = xyes; then
11039     cat >>confdefs.h <<\_ACEOF
11040 #define SDL_BYTEORDER 4321
11041 _ACEOF
11042
11043 else
11044     cat >>confdefs.h <<\_ACEOF
11045 #define SDL_BYTEORDER 1234
11046 _ACEOF
11047
11048 fi
11049
11050
11051 ac_ext=c
11052 ac_cpp='$CPP $CPPFLAGS'
11053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11056 if test -n "$ac_tool_prefix"; then
11057   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11061 if test "${ac_cv_prog_CC+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   if test -n "$CC"; then
11065   ac_cv_prog_CC="$CC" # Let the user override the test.
11066 else
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $PATH
11069 do
11070   IFS=$as_save_IFS
11071   test -z "$as_dir" && as_dir=.
11072   for ac_exec_ext in '' $ac_executable_extensions; do
11073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11074     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11076     break 2
11077   fi
11078 done
11079 done
11080 IFS=$as_save_IFS
11081
11082 fi
11083 fi
11084 CC=$ac_cv_prog_CC
11085 if test -n "$CC"; then
11086   { echo "$as_me:$LINENO: result: $CC" >&5
11087 echo "${ECHO_T}$CC" >&6; }
11088 else
11089   { echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6; }
11091 fi
11092
11093
11094 fi
11095 if test -z "$ac_cv_prog_CC"; then
11096   ac_ct_CC=$CC
11097   # Extract the first word of "gcc", so it can be a program name with args.
11098 set dummy gcc; ac_word=$2
11099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   if test -n "$ac_ct_CC"; then
11105   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11106 else
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110   IFS=$as_save_IFS
11111   test -z "$as_dir" && as_dir=.
11112   for ac_exec_ext in '' $ac_executable_extensions; do
11113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114     ac_cv_prog_ac_ct_CC="gcc"
11115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11116     break 2
11117   fi
11118 done
11119 done
11120 IFS=$as_save_IFS
11121
11122 fi
11123 fi
11124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11125 if test -n "$ac_ct_CC"; then
11126   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11127 echo "${ECHO_T}$ac_ct_CC" >&6; }
11128 else
11129   { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11131 fi
11132
11133   if test "x$ac_ct_CC" = x; then
11134     CC=""
11135   else
11136     case $cross_compiling:$ac_tool_warned in
11137 yes:)
11138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11139 whose name does not start with the host triplet.  If you think this
11140 configuration is useful to you, please write to autoconf@gnu.org." >&5
11141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11142 whose name does not start with the host triplet.  If you think this
11143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11144 ac_tool_warned=yes ;;
11145 esac
11146     CC=$ac_ct_CC
11147   fi
11148 else
11149   CC="$ac_cv_prog_CC"
11150 fi
11151
11152 if test -z "$CC"; then
11153           if test -n "$ac_tool_prefix"; then
11154     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11155 set dummy ${ac_tool_prefix}cc; ac_word=$2
11156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11158 if test "${ac_cv_prog_CC+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   if test -n "$CC"; then
11162   ac_cv_prog_CC="$CC" # Let the user override the test.
11163 else
11164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11165 for as_dir in $PATH
11166 do
11167   IFS=$as_save_IFS
11168   test -z "$as_dir" && as_dir=.
11169   for ac_exec_ext in '' $ac_executable_extensions; do
11170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11171     ac_cv_prog_CC="${ac_tool_prefix}cc"
11172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11173     break 2
11174   fi
11175 done
11176 done
11177 IFS=$as_save_IFS
11178
11179 fi
11180 fi
11181 CC=$ac_cv_prog_CC
11182 if test -n "$CC"; then
11183   { echo "$as_me:$LINENO: result: $CC" >&5
11184 echo "${ECHO_T}$CC" >&6; }
11185 else
11186   { echo "$as_me:$LINENO: result: no" >&5
11187 echo "${ECHO_T}no" >&6; }
11188 fi
11189
11190
11191   fi
11192 fi
11193 if test -z "$CC"; then
11194   # Extract the first word of "cc", so it can be a program name with args.
11195 set dummy cc; ac_word=$2
11196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11198 if test "${ac_cv_prog_CC+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   if test -n "$CC"; then
11202   ac_cv_prog_CC="$CC" # Let the user override the test.
11203 else
11204   ac_prog_rejected=no
11205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206 for as_dir in $PATH
11207 do
11208   IFS=$as_save_IFS
11209   test -z "$as_dir" && as_dir=.
11210   for ac_exec_ext in '' $ac_executable_extensions; do
11211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11212     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11213        ac_prog_rejected=yes
11214        continue
11215      fi
11216     ac_cv_prog_CC="cc"
11217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11218     break 2
11219   fi
11220 done
11221 done
11222 IFS=$as_save_IFS
11223
11224 if test $ac_prog_rejected = yes; then
11225   # We found a bogon in the path, so make sure we never use it.
11226   set dummy $ac_cv_prog_CC
11227   shift
11228   if test $# != 0; then
11229     # We chose a different compiler from the bogus one.
11230     # However, it has the same basename, so the bogon will be chosen
11231     # first if we set CC to just the basename; use the full file name.
11232     shift
11233     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11234   fi
11235 fi
11236 fi
11237 fi
11238 CC=$ac_cv_prog_CC
11239 if test -n "$CC"; then
11240   { echo "$as_me:$LINENO: result: $CC" >&5
11241 echo "${ECHO_T}$CC" >&6; }
11242 else
11243   { echo "$as_me:$LINENO: result: no" >&5
11244 echo "${ECHO_T}no" >&6; }
11245 fi
11246
11247
11248 fi
11249 if test -z "$CC"; then
11250   if test -n "$ac_tool_prefix"; then
11251   for ac_prog in cl.exe
11252   do
11253     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11257 if test "${ac_cv_prog_CC+set}" = set; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   if test -n "$CC"; then
11261   ac_cv_prog_CC="$CC" # Let the user override the test.
11262 else
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266   IFS=$as_save_IFS
11267   test -z "$as_dir" && as_dir=.
11268   for ac_exec_ext in '' $ac_executable_extensions; do
11269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272     break 2
11273   fi
11274 done
11275 done
11276 IFS=$as_save_IFS
11277
11278 fi
11279 fi
11280 CC=$ac_cv_prog_CC
11281 if test -n "$CC"; then
11282   { echo "$as_me:$LINENO: result: $CC" >&5
11283 echo "${ECHO_T}$CC" >&6; }
11284 else
11285   { echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6; }
11287 fi
11288
11289
11290     test -n "$CC" && break
11291   done
11292 fi
11293 if test -z "$CC"; then
11294   ac_ct_CC=$CC
11295   for ac_prog in cl.exe
11296 do
11297   # Extract the first word of "$ac_prog", so it can be a program name with args.
11298 set dummy $ac_prog; ac_word=$2
11299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   if test -n "$ac_ct_CC"; then
11305   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11306 else
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11309 do
11310   IFS=$as_save_IFS
11311   test -z "$as_dir" && as_dir=.
11312   for ac_exec_ext in '' $ac_executable_extensions; do
11313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314     ac_cv_prog_ac_ct_CC="$ac_prog"
11315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11316     break 2
11317   fi
11318 done
11319 done
11320 IFS=$as_save_IFS
11321
11322 fi
11323 fi
11324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11325 if test -n "$ac_ct_CC"; then
11326   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11327 echo "${ECHO_T}$ac_ct_CC" >&6; }
11328 else
11329   { echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6; }
11331 fi
11332
11333
11334   test -n "$ac_ct_CC" && break
11335 done
11336
11337   if test "x$ac_ct_CC" = x; then
11338     CC=""
11339   else
11340     case $cross_compiling:$ac_tool_warned in
11341 yes:)
11342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11343 whose name does not start with the host triplet.  If you think this
11344 configuration is useful to you, please write to autoconf@gnu.org." >&5
11345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11346 whose name does not start with the host triplet.  If you think this
11347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11348 ac_tool_warned=yes ;;
11349 esac
11350     CC=$ac_ct_CC
11351   fi
11352 fi
11353
11354 fi
11355
11356
11357 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11358 See \`config.log' for more details." >&5
11359 echo "$as_me: error: no acceptable C compiler found in \$PATH
11360 See \`config.log' for more details." >&2;}
11361    { (exit 1); exit 1; }; }
11362
11363 # Provide some information about the compiler.
11364 echo "$as_me:$LINENO: checking for C compiler version" >&5
11365 ac_compiler=`set X $ac_compile; echo $2`
11366 { (ac_try="$ac_compiler --version >&5"
11367 case "(($ac_try" in
11368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369   *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372   (eval "$ac_compiler --version >&5") 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }
11376 { (ac_try="$ac_compiler -v >&5"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_compiler -v >&5") 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); }
11386 { (ac_try="$ac_compiler -V >&5"
11387 case "(($ac_try" in
11388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389   *) ac_try_echo=$ac_try;;
11390 esac
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392   (eval "$ac_compiler -V >&5") 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }
11396
11397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h.  */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h.  */
11408
11409 int
11410 main ()
11411 {
11412 #ifndef __GNUC__
11413        choke me
11414 #endif
11415
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424   *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427   (eval "$ac_compile") 2>conftest.er1
11428   ac_status=$?
11429   grep -v '^ *+' conftest.er1 >conftest.err
11430   rm -f conftest.er1
11431   cat conftest.err >&5
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); } && {
11434          test -z "$ac_c_werror_flag" ||
11435          test ! -s conftest.err
11436        } && test -s conftest.$ac_objext; then
11437   ac_compiler_gnu=yes
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442         ac_compiler_gnu=no
11443 fi
11444
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11447
11448 fi
11449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11451 GCC=`test $ac_compiler_gnu = yes && echo yes`
11452 ac_test_CFLAGS=${CFLAGS+set}
11453 ac_save_CFLAGS=$CFLAGS
11454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11456 if test "${ac_cv_prog_cc_g+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   ac_save_c_werror_flag=$ac_c_werror_flag
11460    ac_c_werror_flag=yes
11461    ac_cv_prog_cc_g=no
11462    CFLAGS="-g"
11463    cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469
11470 int
11471 main ()
11472 {
11473
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11485   (eval "$ac_compile") 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } && {
11492          test -z "$ac_c_werror_flag" ||
11493          test ! -s conftest.err
11494        } && test -s conftest.$ac_objext; then
11495   ac_cv_prog_cc_g=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11499
11500         CFLAGS=""
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
11508 int
11509 main ()
11510 {
11511
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 rm -f conftest.$ac_objext
11517 if { (ac_try="$ac_compile"
11518 case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_compile") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } && {
11530          test -z "$ac_c_werror_flag" ||
11531          test ! -s conftest.err
11532        } && test -s conftest.$ac_objext; then
11533   :
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538         ac_c_werror_flag=$ac_save_c_werror_flag
11539          CFLAGS="-g"
11540          cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546
11547 int
11548 main ()
11549 {
11550
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (ac_try="$ac_compile"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_compile") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } && {
11569          test -z "$ac_c_werror_flag" ||
11570          test ! -s conftest.err
11571        } && test -s conftest.$ac_objext; then
11572   ac_cv_prog_cc_g=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577
11578 fi
11579
11580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11584 fi
11585
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587    ac_c_werror_flag=$ac_save_c_werror_flag
11588 fi
11589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11591 if test "$ac_test_CFLAGS" = set; then
11592   CFLAGS=$ac_save_CFLAGS
11593 elif test $ac_cv_prog_cc_g = yes; then
11594   if test "$GCC" = yes; then
11595     CFLAGS="-g -O2"
11596   else
11597     CFLAGS="-g"
11598   fi
11599 else
11600   if test "$GCC" = yes; then
11601     CFLAGS="-O2"
11602   else
11603     CFLAGS=
11604   fi
11605 fi
11606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11608 if test "${ac_cv_prog_cc_c89+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   ac_cv_prog_cc_c89=no
11612 ac_save_CC=$CC
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619 #include <stdarg.h>
11620 #include <stdio.h>
11621 #include <sys/types.h>
11622 #include <sys/stat.h>
11623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11624 struct buf { int x; };
11625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11626 static char *e (p, i)
11627      char **p;
11628      int i;
11629 {
11630   return p[i];
11631 }
11632 static char *f (char * (*g) (char **, int), char **p, ...)
11633 {
11634   char *s;
11635   va_list v;
11636   va_start (v,p);
11637   s = g (p, va_arg (v,int));
11638   va_end (v);
11639   return s;
11640 }
11641
11642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11643    function prototypes and stuff, but not '\xHH' hex character constants.
11644    These don't provoke an error unfortunately, instead are silently treated
11645    as 'x'.  The following induces an error, until -std is added to get
11646    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11647    array size at least.  It's necessary to write '\x00'==0 to get something
11648    that's true only with -std.  */
11649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11650
11651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11652    inside strings and character constants.  */
11653 #define FOO(x) 'x'
11654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11655
11656 int test (int i, double x);
11657 struct s1 {int (*f) (int a);};
11658 struct s2 {int (*f) (double a);};
11659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11660 int argc;
11661 char **argv;
11662 int
11663 main ()
11664 {
11665 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11671         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11672 do
11673   CC="$ac_save_CC $ac_arg"
11674   rm -f conftest.$ac_objext
11675 if { (ac_try="$ac_compile"
11676 case "(($ac_try" in
11677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678   *) ac_try_echo=$ac_try;;
11679 esac
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681   (eval "$ac_compile") 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } && {
11688          test -z "$ac_c_werror_flag" ||
11689          test ! -s conftest.err
11690        } && test -s conftest.$ac_objext; then
11691   ac_cv_prog_cc_c89=$ac_arg
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696
11697 fi
11698
11699 rm -f core conftest.err conftest.$ac_objext
11700   test "x$ac_cv_prog_cc_c89" != "xno" && break
11701 done
11702 rm -f conftest.$ac_ext
11703 CC=$ac_save_CC
11704
11705 fi
11706 # AC_CACHE_VAL
11707 case "x$ac_cv_prog_cc_c89" in
11708   x)
11709     { echo "$as_me:$LINENO: result: none needed" >&5
11710 echo "${ECHO_T}none needed" >&6; } ;;
11711   xno)
11712     { echo "$as_me:$LINENO: result: unsupported" >&5
11713 echo "${ECHO_T}unsupported" >&6; } ;;
11714   *)
11715     CC="$CC $ac_cv_prog_cc_c89"
11716     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11718 esac
11719
11720
11721 ac_ext=c
11722 ac_cpp='$CPP $CPPFLAGS'
11723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11726
11727 ac_ext=cpp
11728 ac_cpp='$CXXCPP $CPPFLAGS'
11729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11732 if test -z "$CXX"; then
11733   if test -n "$CCC"; then
11734     CXX=$CCC
11735   else
11736     if test -n "$ac_tool_prefix"; then
11737   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11738   do
11739     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_prog_CXX+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   if test -n "$CXX"; then
11747   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11748 else
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11751 do
11752   IFS=$as_save_IFS
11753   test -z "$as_dir" && as_dir=.
11754   for ac_exec_ext in '' $ac_executable_extensions; do
11755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11758     break 2
11759   fi
11760 done
11761 done
11762 IFS=$as_save_IFS
11763
11764 fi
11765 fi
11766 CXX=$ac_cv_prog_CXX
11767 if test -n "$CXX"; then
11768   { echo "$as_me:$LINENO: result: $CXX" >&5
11769 echo "${ECHO_T}$CXX" >&6; }
11770 else
11771   { echo "$as_me:$LINENO: result: no" >&5
11772 echo "${ECHO_T}no" >&6; }
11773 fi
11774
11775
11776     test -n "$CXX" && break
11777   done
11778 fi
11779 if test -z "$CXX"; then
11780   ac_ct_CXX=$CXX
11781   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11782 do
11783   # Extract the first word of "$ac_prog", so it can be a program name with args.
11784 set dummy $ac_prog; ac_word=$2
11785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11787 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11788   echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790   if test -n "$ac_ct_CXX"; then
11791   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11792 else
11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11794 for as_dir in $PATH
11795 do
11796   IFS=$as_save_IFS
11797   test -z "$as_dir" && as_dir=.
11798   for ac_exec_ext in '' $ac_executable_extensions; do
11799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11800     ac_cv_prog_ac_ct_CXX="$ac_prog"
11801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11802     break 2
11803   fi
11804 done
11805 done
11806 IFS=$as_save_IFS
11807
11808 fi
11809 fi
11810 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11811 if test -n "$ac_ct_CXX"; then
11812   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11813 echo "${ECHO_T}$ac_ct_CXX" >&6; }
11814 else
11815   { echo "$as_me:$LINENO: result: no" >&5
11816 echo "${ECHO_T}no" >&6; }
11817 fi
11818
11819
11820   test -n "$ac_ct_CXX" && break
11821 done
11822
11823   if test "x$ac_ct_CXX" = x; then
11824     CXX="g++"
11825   else
11826     case $cross_compiling:$ac_tool_warned in
11827 yes:)
11828 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11829 whose name does not start with the host triplet.  If you think this
11830 configuration is useful to you, please write to autoconf@gnu.org." >&5
11831 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11832 whose name does not start with the host triplet.  If you think this
11833 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11834 ac_tool_warned=yes ;;
11835 esac
11836     CXX=$ac_ct_CXX
11837   fi
11838 fi
11839
11840   fi
11841 fi
11842 # Provide some information about the compiler.
11843 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11844 ac_compiler=`set X $ac_compile; echo $2`
11845 { (ac_try="$ac_compiler --version >&5"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_compiler --version >&5") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }
11855 { (ac_try="$ac_compiler -v >&5"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_compiler -v >&5") 2>&5
11862   ac_status=$?
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); }
11865 { (ac_try="$ac_compiler -V >&5"
11866 case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_compiler -V >&5") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }
11875
11876 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11877 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11878 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887
11888 int
11889 main ()
11890 {
11891 #ifndef __GNUC__
11892        choke me
11893 #endif
11894
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_compile") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } && {
11913          test -z "$ac_cxx_werror_flag" ||
11914          test ! -s conftest.err
11915        } && test -s conftest.$ac_objext; then
11916   ac_compiler_gnu=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921         ac_compiler_gnu=no
11922 fi
11923
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11926
11927 fi
11928 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11929 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11930 GXX=`test $ac_compiler_gnu = yes && echo yes`
11931 ac_test_CXXFLAGS=${CXXFLAGS+set}
11932 ac_save_CXXFLAGS=$CXXFLAGS
11933 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11934 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11935 if test "${ac_cv_prog_cxx_g+set}" = set; then
11936   echo $ECHO_N "(cached) $ECHO_C" >&6
11937 else
11938   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11939    ac_cxx_werror_flag=yes
11940    ac_cv_prog_cxx_g=no
11941    CXXFLAGS="-g"
11942    cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948
11949 int
11950 main ()
11951 {
11952
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext
11958 if { (ac_try="$ac_compile"
11959 case "(($ac_try" in
11960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961   *) ac_try_echo=$ac_try;;
11962 esac
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964   (eval "$ac_compile") 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } && {
11971          test -z "$ac_cxx_werror_flag" ||
11972          test ! -s conftest.err
11973        } && test -s conftest.$ac_objext; then
11974   ac_cv_prog_cxx_g=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979         CXXFLAGS=""
11980       cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h.  */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h.  */
11986
11987 int
11988 main ()
11989 {
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (ac_try="$ac_compile"
11997 case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_compile") 2>conftest.er1
12003   ac_status=$?
12004   grep -v '^ *+' conftest.er1 >conftest.err
12005   rm -f conftest.er1
12006   cat conftest.err >&5
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } && {
12009          test -z "$ac_cxx_werror_flag" ||
12010          test ! -s conftest.err
12011        } && test -s conftest.$ac_objext; then
12012   :
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12018          CXXFLAGS="-g"
12019          cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025
12026 int
12027 main ()
12028 {
12029
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038   *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041   (eval "$ac_compile") 2>conftest.er1
12042   ac_status=$?
12043   grep -v '^ *+' conftest.er1 >conftest.err
12044   rm -f conftest.er1
12045   cat conftest.err >&5
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } && {
12048          test -z "$ac_cxx_werror_flag" ||
12049          test ! -s conftest.err
12050        } && test -s conftest.$ac_objext; then
12051   ac_cv_prog_cxx_g=yes
12052 else
12053   echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056
12057 fi
12058
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 fi
12064
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12067 fi
12068 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12069 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12070 if test "$ac_test_CXXFLAGS" = set; then
12071   CXXFLAGS=$ac_save_CXXFLAGS
12072 elif test $ac_cv_prog_cxx_g = yes; then
12073   if test "$GXX" = yes; then
12074     CXXFLAGS="-g -O2"
12075   else
12076     CXXFLAGS="-g"
12077   fi
12078 else
12079   if test "$GXX" = yes; then
12080     CXXFLAGS="-O2"
12081   else
12082     CXXFLAGS=
12083   fi
12084 fi
12085 ac_ext=c
12086 ac_cpp='$CPP $CPPFLAGS'
12087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12090
12091
12092 ac_ext=cpp
12093 ac_cpp='$CXXCPP $CPPFLAGS'
12094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12097 if test -z "$CXX"; then
12098   if test -n "$CCC"; then
12099     CXX=$CCC
12100   else
12101     if test -n "$ac_tool_prefix"; then
12102   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12103   do
12104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12108 if test "${ac_cv_prog_CXX+set}" = set; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   if test -n "$CXX"; then
12112   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12113 else
12114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115 for as_dir in $PATH
12116 do
12117   IFS=$as_save_IFS
12118   test -z "$as_dir" && as_dir=.
12119   for ac_exec_ext in '' $ac_executable_extensions; do
12120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12123     break 2
12124   fi
12125 done
12126 done
12127 IFS=$as_save_IFS
12128
12129 fi
12130 fi
12131 CXX=$ac_cv_prog_CXX
12132 if test -n "$CXX"; then
12133   { echo "$as_me:$LINENO: result: $CXX" >&5
12134 echo "${ECHO_T}$CXX" >&6; }
12135 else
12136   { echo "$as_me:$LINENO: result: no" >&5
12137 echo "${ECHO_T}no" >&6; }
12138 fi
12139
12140
12141     test -n "$CXX" && break
12142   done
12143 fi
12144 if test -z "$CXX"; then
12145   ac_ct_CXX=$CXX
12146   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12147 do
12148   # Extract the first word of "$ac_prog", so it can be a program name with args.
12149 set dummy $ac_prog; ac_word=$2
12150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12152 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12153   echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155   if test -n "$ac_ct_CXX"; then
12156   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12157 else
12158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12159 for as_dir in $PATH
12160 do
12161   IFS=$as_save_IFS
12162   test -z "$as_dir" && as_dir=.
12163   for ac_exec_ext in '' $ac_executable_extensions; do
12164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12165     ac_cv_prog_ac_ct_CXX="$ac_prog"
12166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12167     break 2
12168   fi
12169 done
12170 done
12171 IFS=$as_save_IFS
12172
12173 fi
12174 fi
12175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12176 if test -n "$ac_ct_CXX"; then
12177   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12178 echo "${ECHO_T}$ac_ct_CXX" >&6; }
12179 else
12180   { echo "$as_me:$LINENO: result: no" >&5
12181 echo "${ECHO_T}no" >&6; }
12182 fi
12183
12184
12185   test -n "$ac_ct_CXX" && break
12186 done
12187
12188   if test "x$ac_ct_CXX" = x; then
12189     CXX="g++"
12190   else
12191     case $cross_compiling:$ac_tool_warned in
12192 yes:)
12193 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12194 whose name does not start with the host triplet.  If you think this
12195 configuration is useful to you, please write to autoconf@gnu.org." >&5
12196 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12197 whose name does not start with the host triplet.  If you think this
12198 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12199 ac_tool_warned=yes ;;
12200 esac
12201     CXX=$ac_ct_CXX
12202   fi
12203 fi
12204
12205   fi
12206 fi
12207 # Provide some information about the compiler.
12208 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12209 ac_compiler=`set X $ac_compile; echo $2`
12210 { (ac_try="$ac_compiler --version >&5"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216   (eval "$ac_compiler --version >&5") 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }
12220 { (ac_try="$ac_compiler -v >&5"
12221 case "(($ac_try" in
12222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223   *) ac_try_echo=$ac_try;;
12224 esac
12225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12226   (eval "$ac_compiler -v >&5") 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }
12230 { (ac_try="$ac_compiler -V >&5"
12231 case "(($ac_try" in
12232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233   *) ac_try_echo=$ac_try;;
12234 esac
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236   (eval "$ac_compiler -V >&5") 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }
12240
12241 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12242 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12243 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246   cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252
12253 int
12254 main ()
12255 {
12256 #ifndef __GNUC__
12257        choke me
12258 #endif
12259
12260   ;
12261   return 0;
12262 }
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_compile") 2>conftest.er1
12272   ac_status=$?
12273   grep -v '^ *+' conftest.er1 >conftest.err
12274   rm -f conftest.er1
12275   cat conftest.err >&5
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } && {
12278          test -z "$ac_cxx_werror_flag" ||
12279          test ! -s conftest.err
12280        } && test -s conftest.$ac_objext; then
12281   ac_compiler_gnu=yes
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286         ac_compiler_gnu=no
12287 fi
12288
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12291
12292 fi
12293 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12294 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12295 GXX=`test $ac_compiler_gnu = yes && echo yes`
12296 ac_test_CXXFLAGS=${CXXFLAGS+set}
12297 ac_save_CXXFLAGS=$CXXFLAGS
12298 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12299 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12300 if test "${ac_cv_prog_cxx_g+set}" = set; then
12301   echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12304    ac_cxx_werror_flag=yes
12305    ac_cv_prog_cxx_g=no
12306    CXXFLAGS="-g"
12307    cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314 int
12315 main ()
12316 {
12317
12318   ;
12319   return 0;
12320 }
12321 _ACEOF
12322 rm -f conftest.$ac_objext
12323 if { (ac_try="$ac_compile"
12324 case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_compile") 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } && {
12336          test -z "$ac_cxx_werror_flag" ||
12337          test ! -s conftest.err
12338        } && test -s conftest.$ac_objext; then
12339   ac_cv_prog_cxx_g=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344         CXXFLAGS=""
12345       cat >conftest.$ac_ext <<_ACEOF
12346 /* confdefs.h.  */
12347 _ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h.  */
12351
12352 int
12353 main ()
12354 {
12355
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364   *) ac_try_echo=$ac_try;;
12365 esac
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367   (eval "$ac_compile") 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } && {
12374          test -z "$ac_cxx_werror_flag" ||
12375          test ! -s conftest.err
12376        } && test -s conftest.$ac_objext; then
12377   :
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12383          CXXFLAGS="-g"
12384          cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390
12391 int
12392 main ()
12393 {
12394
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_compile") 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } && {
12413          test -z "$ac_cxx_werror_flag" ||
12414          test ! -s conftest.err
12415        } && test -s conftest.$ac_objext; then
12416   ac_cv_prog_cxx_g=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425 fi
12426
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12432 fi
12433 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12434 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12435 if test "$ac_test_CXXFLAGS" = set; then
12436   CXXFLAGS=$ac_save_CXXFLAGS
12437 elif test $ac_cv_prog_cxx_g = yes; then
12438   if test "$GXX" = yes; then
12439     CXXFLAGS="-g -O2"
12440   else
12441     CXXFLAGS="-g"
12442   fi
12443 else
12444   if test "$GXX" = yes; then
12445     CXXFLAGS="-O2"
12446   else
12447     CXXFLAGS=
12448   fi
12449 fi
12450 ac_ext=c
12451 ac_cpp='$CPP $CPPFLAGS'
12452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12455
12456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12457     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12458     (test "X$CXX" != "Xg++"))) ; then
12459   ac_ext=cpp
12460 ac_cpp='$CXXCPP $CPPFLAGS'
12461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12464 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12465 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12466 if test -z "$CXXCPP"; then
12467   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470       # Double quotes because CXXCPP needs to be expanded
12471     for CXXCPP in "$CXX -E" "/lib/cpp"
12472     do
12473       ac_preproc_ok=false
12474 for ac_cxx_preproc_warn_flag in '' yes
12475 do
12476   # Use a header file that comes with gcc, so configuring glibc
12477   # with a fresh cross-compiler works.
12478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479   # <limits.h> exists even on freestanding compilers.
12480   # On the NeXT, cc -E runs the code through the compiler's parser,
12481   # not just through cpp. "Syntax error" is here to catch this case.
12482   cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12493                      Syntax error
12494 _ACEOF
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } >/dev/null && {
12508          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12509          test ! -s conftest.err
12510        }; then
12511   :
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516   # Broken: fails on valid input.
12517 continue
12518 fi
12519
12520 rm -f conftest.err conftest.$ac_ext
12521
12522   # OK, works on sane cases.  Now check whether nonexistent headers
12523   # can be detected and how.
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <ac_nonexistent.h>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null && {
12545          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12546          test ! -s conftest.err
12547        }; then
12548   # Broken: success on invalid input.
12549 continue
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554   # Passes both tests.
12555 ac_preproc_ok=:
12556 break
12557 fi
12558
12559 rm -f conftest.err conftest.$ac_ext
12560
12561 done
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12565   break
12566 fi
12567
12568     done
12569     ac_cv_prog_CXXCPP=$CXXCPP
12570
12571 fi
12572   CXXCPP=$ac_cv_prog_CXXCPP
12573 else
12574   ac_cv_prog_CXXCPP=$CXXCPP
12575 fi
12576 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12577 echo "${ECHO_T}$CXXCPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_cxx_preproc_warn_flag in '' yes
12580 do
12581   # Use a header file that comes with gcc, so configuring glibc
12582   # with a fresh cross-compiler works.
12583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584   # <limits.h> exists even on freestanding compilers.
12585   # On the NeXT, cc -E runs the code through the compiler's parser,
12586   # not just through cpp. "Syntax error" is here to catch this case.
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12598                      Syntax error
12599 _ACEOF
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } >/dev/null && {
12613          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12614          test ! -s conftest.err
12615        }; then
12616   :
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621   # Broken: fails on valid input.
12622 continue
12623 fi
12624
12625 rm -f conftest.err conftest.$ac_ext
12626
12627   # OK, works on sane cases.  Now check whether nonexistent headers
12628   # can be detected and how.
12629   cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 #include <ac_nonexistent.h>
12636 _ACEOF
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } >/dev/null && {
12650          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12651          test ! -s conftest.err
12652        }; then
12653   # Broken: success on invalid input.
12654 continue
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659   # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12662 fi
12663
12664 rm -f conftest.err conftest.$ac_ext
12665
12666 done
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12670   :
12671 else
12672   _lt_caught_CXX_error=yes
12673 fi
12674
12675 ac_ext=c
12676 ac_cpp='$CPP $CPPFLAGS'
12677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12680
12681 else
12682   _lt_caught_CXX_error=yes
12683 fi
12684
12685
12686
12687
12688 ac_ext=cpp
12689 ac_cpp='$CXXCPP $CPPFLAGS'
12690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12693
12694 archive_cmds_need_lc_CXX=no
12695 allow_undefined_flag_CXX=
12696 always_export_symbols_CXX=no
12697 archive_expsym_cmds_CXX=
12698 compiler_needs_object_CXX=no
12699 export_dynamic_flag_spec_CXX=
12700 hardcode_direct_CXX=no
12701 hardcode_direct_absolute_CXX=no
12702 hardcode_libdir_flag_spec_CXX=
12703 hardcode_libdir_flag_spec_ld_CXX=
12704 hardcode_libdir_separator_CXX=
12705 hardcode_minus_L_CXX=no
12706 hardcode_shlibpath_var_CXX=unsupported
12707 hardcode_automatic_CXX=no
12708 inherit_rpath_CXX=no
12709 module_cmds_CXX=
12710 module_expsym_cmds_CXX=
12711 link_all_deplibs_CXX=unknown
12712 old_archive_cmds_CXX=$old_archive_cmds
12713 no_undefined_flag_CXX=
12714 whole_archive_flag_spec_CXX=
12715 enable_shared_with_static_runtimes_CXX=no
12716
12717 # Source file extension for C++ test sources.
12718 ac_ext=cpp
12719
12720 # Object file extension for compiled C++ test sources.
12721 objext=o
12722 objext_CXX=$objext
12723
12724 # No sense in running all these tests if we already determined that
12725 # the CXX compiler isn't working.  Some variables (like enable_shared)
12726 # are currently assumed to apply to all compilers on this platform,
12727 # and will be corrupted by setting them based on a non-working compiler.
12728 if test "$_lt_caught_CXX_error" != yes; then
12729   # Code to be used in simple compile tests
12730   lt_simple_compile_test_code="int some_variable = 0;"
12731
12732   # Code to be used in simple link tests
12733   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12734
12735   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12736
12737
12738
12739
12740
12741
12742 # If no C compiler was specified, use CC.
12743 LTCC=${LTCC-"$CC"}
12744
12745 # If no C compiler flags were specified, use CFLAGS.
12746 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12747
12748 # Allow CC to be a program name with arguments.
12749 compiler=$CC
12750
12751
12752   # save warnings/boilerplate of simple test code
12753   ac_outfile=conftest.$ac_objext
12754 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12756 _lt_compiler_boilerplate=`cat conftest.err`
12757 $RM conftest*
12758
12759   ac_outfile=conftest.$ac_objext
12760 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12762 _lt_linker_boilerplate=`cat conftest.err`
12763 $RM -r conftest*
12764
12765
12766   # Allow CC to be a program name with arguments.
12767   lt_save_CC=$CC
12768   lt_save_LD=$LD
12769   lt_save_GCC=$GCC
12770   GCC=$GXX
12771   lt_save_with_gnu_ld=$with_gnu_ld
12772   lt_save_path_LD=$lt_cv_path_LD
12773   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12774     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12775   else
12776     $as_unset lt_cv_prog_gnu_ld
12777   fi
12778   if test -n "${lt_cv_path_LDCXX+set}"; then
12779     lt_cv_path_LD=$lt_cv_path_LDCXX
12780   else
12781     $as_unset lt_cv_path_LD
12782   fi
12783   test -z "${LDCXX+set}" || LD=$LDCXX
12784   CC=${CXX-"c++"}
12785   compiler=$CC
12786   compiler_CXX=$CC
12787   for cc_temp in $compiler""; do
12788   case $cc_temp in
12789     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12790     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12791     \-*) ;;
12792     *) break;;
12793   esac
12794 done
12795 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12796
12797
12798   if test -n "$compiler"; then
12799     # We don't want -fno-exception when compiling C++ code, so set the
12800     # no_builtin_flag separately
12801     if test "$GXX" = yes; then
12802       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12803     else
12804       lt_prog_compiler_no_builtin_flag_CXX=
12805     fi
12806
12807     if test "$GXX" = yes; then
12808       # Set up default GNU C++ configuration
12809
12810
12811
12812 # Check whether --with-gnu-ld was given.
12813 if test "${with_gnu_ld+set}" = set; then
12814   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12815 else
12816   with_gnu_ld=no
12817 fi
12818
12819 ac_prog=ld
12820 if test "$GCC" = yes; then
12821   # Check if gcc -print-prog-name=ld gives a path.
12822   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12823 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12824   case $host in
12825   *-*-mingw*)
12826     # gcc leaves a trailing carriage return which upsets mingw
12827     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12828   *)
12829     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12830   esac
12831   case $ac_prog in
12832     # Accept absolute paths.
12833     [\\/]* | ?:[\\/]*)
12834       re_direlt='/[^/][^/]*/\.\./'
12835       # Canonicalize the pathname of ld
12836       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12837       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12838         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12839       done
12840       test -z "$LD" && LD="$ac_prog"
12841       ;;
12842   "")
12843     # If it fails, then pretend we aren't using GCC.
12844     ac_prog=ld
12845     ;;
12846   *)
12847     # If it is relative, then search for the first ld in PATH.
12848     with_gnu_ld=unknown
12849     ;;
12850   esac
12851 elif test "$with_gnu_ld" = yes; then
12852   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12853 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12854 else
12855   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12856 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12857 fi
12858 if test "${lt_cv_path_LD+set}" = set; then
12859   echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861   if test -z "$LD"; then
12862   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12863   for ac_dir in $PATH; do
12864     IFS="$lt_save_ifs"
12865     test -z "$ac_dir" && ac_dir=.
12866     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12867       lt_cv_path_LD="$ac_dir/$ac_prog"
12868       # Check to see if the program is GNU ld.  I'd rather use --version,
12869       # but apparently some variants of GNU ld only accept -v.
12870       # Break only if it was the GNU/non-GNU ld that we prefer.
12871       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12872       *GNU* | *'with BFD'*)
12873         test "$with_gnu_ld" != no && break
12874         ;;
12875       *)
12876         test "$with_gnu_ld" != yes && break
12877         ;;
12878       esac
12879     fi
12880   done
12881   IFS="$lt_save_ifs"
12882 else
12883   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12884 fi
12885 fi
12886
12887 LD="$lt_cv_path_LD"
12888 if test -n "$LD"; then
12889   { echo "$as_me:$LINENO: result: $LD" >&5
12890 echo "${ECHO_T}$LD" >&6; }
12891 else
12892   { echo "$as_me:$LINENO: result: no" >&5
12893 echo "${ECHO_T}no" >&6; }
12894 fi
12895 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12896 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12897    { (exit 1); exit 1; }; }
12898 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12899 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12900 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12904 case `$LD -v 2>&1 </dev/null` in
12905 *GNU* | *'with BFD'*)
12906   lt_cv_prog_gnu_ld=yes
12907   ;;
12908 *)
12909   lt_cv_prog_gnu_ld=no
12910   ;;
12911 esac
12912 fi
12913 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12914 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12915 with_gnu_ld=$lt_cv_prog_gnu_ld
12916
12917
12918
12919
12920
12921
12922
12923       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12924       # archiving commands below assume that GNU ld is being used.
12925       if test "$with_gnu_ld" = yes; then
12926         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12928
12929         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12930         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12931
12932         # If archive_cmds runs LD, not CC, wlarc should be empty
12933         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12934         #     investigate it a little bit more. (MM)
12935         wlarc='${wl}'
12936
12937         # ancient GNU ld didn't support --whole-archive et. al.
12938         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12939           $GREP 'no-whole-archive' > /dev/null; then
12940           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12941         else
12942           whole_archive_flag_spec_CXX=
12943         fi
12944       else
12945         with_gnu_ld=no
12946         wlarc=
12947
12948         # A generic and very simple default shared library creation
12949         # command for GNU C++ for the case where it uses the native
12950         # linker, instead of GNU ld.  If possible, this setting should
12951         # overridden to take advantage of the native linker features on
12952         # the platform it is being used on.
12953         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12954       fi
12955
12956       # Commands to make compiler produce verbose output that lists
12957       # what "hidden" libraries, object files and flags are used when
12958       # linking a shared library.
12959       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12960
12961     else
12962       GXX=no
12963       with_gnu_ld=no
12964       wlarc=
12965     fi
12966
12967     # PORTME: fill in a description of your system's C++ link characteristics
12968     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12970     ld_shlibs_CXX=yes
12971     case $host_os in
12972       aix3*)
12973         # FIXME: insert proper C++ library support
12974         ld_shlibs_CXX=no
12975         ;;
12976       aix[4-9]*)
12977         if test "$host_cpu" = ia64; then
12978           # On IA64, the linker does run time linking by default, so we don't
12979           # have to do anything special.
12980           aix_use_runtimelinking=no
12981           exp_sym_flag='-Bexport'
12982           no_entry_flag=""
12983         else
12984           aix_use_runtimelinking=no
12985
12986           # Test if we are trying to use run time linking or normal
12987           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12988           # need to do runtime linking.
12989           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12990             for ld_flag in $LDFLAGS; do
12991               case $ld_flag in
12992               *-brtl*)
12993                 aix_use_runtimelinking=yes
12994                 break
12995                 ;;
12996               esac
12997             done
12998             ;;
12999           esac
13000
13001           exp_sym_flag='-bexport'
13002           no_entry_flag='-bnoentry'
13003         fi
13004
13005         # When large executables or shared objects are built, AIX ld can
13006         # have problems creating the table of contents.  If linking a library
13007         # or program results in "error TOC overflow" add -mminimal-toc to
13008         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13009         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13010
13011         archive_cmds_CXX=''
13012         hardcode_direct_CXX=yes
13013         hardcode_direct_absolute_CXX=yes
13014         hardcode_libdir_separator_CXX=':'
13015         link_all_deplibs_CXX=yes
13016         file_list_spec_CXX='${wl}-f,'
13017
13018         if test "$GXX" = yes; then
13019           case $host_os in aix4.[012]|aix4.[012].*)
13020           # We only want to do this on AIX 4.2 and lower, the check
13021           # below for broken collect2 doesn't work under 4.3+
13022           collect2name=`${CC} -print-prog-name=collect2`
13023           if test -f "$collect2name" &&
13024              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13025           then
13026             # We have reworked collect2
13027             :
13028           else
13029             # We have old collect2
13030             hardcode_direct_CXX=unsupported
13031             # It fails to find uninstalled libraries when the uninstalled
13032             # path is not listed in the libpath.  Setting hardcode_minus_L
13033             # to unsupported forces relinking
13034             hardcode_minus_L_CXX=yes
13035             hardcode_libdir_flag_spec_CXX='-L$libdir'
13036             hardcode_libdir_separator_CXX=
13037           fi
13038           esac
13039           shared_flag='-shared'
13040           if test "$aix_use_runtimelinking" = yes; then
13041             shared_flag="$shared_flag "'${wl}-G'
13042           fi
13043         else
13044           # not using gcc
13045           if test "$host_cpu" = ia64; then
13046           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13047           # chokes on -Wl,-G. The following line is correct:
13048           shared_flag='-G'
13049           else
13050             if test "$aix_use_runtimelinking" = yes; then
13051               shared_flag='${wl}-G'
13052             else
13053               shared_flag='${wl}-bM:SRE'
13054             fi
13055           fi
13056         fi
13057
13058         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13059         # It seems that -bexpall does not export symbols beginning with
13060         # underscore (_), so it is better to generate a list of symbols to
13061         # export.
13062         always_export_symbols_CXX=yes
13063         if test "$aix_use_runtimelinking" = yes; then
13064           # Warning - without using the other runtime loading flags (-brtl),
13065           # -berok will link without error, but may produce a broken library.
13066           allow_undefined_flag_CXX='-berok'
13067           # Determine the default libpath from the value encoded in an empty
13068           # executable.
13069           cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h.  */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h.  */
13075
13076 int
13077 main ()
13078 {
13079
13080   ;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_link") 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } && {
13098          test -z "$ac_cxx_werror_flag" ||
13099          test ! -s conftest.err
13100        } && test -s conftest$ac_exeext &&
13101        $as_test_x conftest$ac_exeext; then
13102
13103 lt_aix_libpath_sed='
13104     /Import File Strings/,/^$/ {
13105         /^0/ {
13106             s/^0  *\(.*\)$/\1/
13107             p
13108         }
13109     }'
13110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111 # Check for a 64-bit object if we didn't find anything.
13112 if test -z "$aix_libpath"; then
13113   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13114 fi
13115 else
13116   echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13118
13119
13120 fi
13121
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123       conftest$ac_exeext conftest.$ac_ext
13124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13125
13126           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13127
13128           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13129         else
13130           if test "$host_cpu" = ia64; then
13131             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13132             allow_undefined_flag_CXX="-z nodefs"
13133             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13134           else
13135             # Determine the default libpath from the value encoded in an
13136             # empty executable.
13137             cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h.  */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h.  */
13143
13144 int
13145 main ()
13146 {
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156   *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159   (eval "$ac_link") 2>conftest.er1
13160   ac_status=$?
13161   grep -v '^ *+' conftest.er1 >conftest.err
13162   rm -f conftest.er1
13163   cat conftest.err >&5
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); } && {
13166          test -z "$ac_cxx_werror_flag" ||
13167          test ! -s conftest.err
13168        } && test -s conftest$ac_exeext &&
13169        $as_test_x conftest$ac_exeext; then
13170
13171 lt_aix_libpath_sed='
13172     /Import File Strings/,/^$/ {
13173         /^0/ {
13174             s/^0  *\(.*\)$/\1/
13175             p
13176         }
13177     }'
13178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13179 # Check for a 64-bit object if we didn't find anything.
13180 if test -z "$aix_libpath"; then
13181   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13182 fi
13183 else
13184   echo "$as_me: failed program was:" >&5
13185 sed 's/^/| /' conftest.$ac_ext >&5
13186
13187
13188 fi
13189
13190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13191       conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13193
13194             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13195             # Warning - without using the other run time loading flags,
13196             # -berok will link without error, but may produce a broken library.
13197             no_undefined_flag_CXX=' ${wl}-bernotok'
13198             allow_undefined_flag_CXX=' ${wl}-berok'
13199             # Exported symbols can be pulled into shared objects from archives
13200             whole_archive_flag_spec_CXX='$convenience'
13201             archive_cmds_need_lc_CXX=yes
13202             # This is similar to how AIX traditionally builds its shared
13203             # libraries.
13204             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13205           fi
13206         fi
13207         ;;
13208
13209       beos*)
13210         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13211           allow_undefined_flag_CXX=unsupported
13212           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13213           # support --undefined.  This deserves some investigation.  FIXME
13214           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13215         else
13216           ld_shlibs_CXX=no
13217         fi
13218         ;;
13219
13220       chorus*)
13221         case $cc_basename in
13222           *)
13223           # FIXME: insert proper C++ library support
13224           ld_shlibs_CXX=no
13225           ;;
13226         esac
13227         ;;
13228
13229       cygwin* | mingw* | pw32* | cegcc*)
13230         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13231         # as there is no search path for DLLs.
13232         hardcode_libdir_flag_spec_CXX='-L$libdir'
13233         allow_undefined_flag_CXX=unsupported
13234         always_export_symbols_CXX=no
13235         enable_shared_with_static_runtimes_CXX=yes
13236
13237         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13238           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13239           # If the export-symbols file already is a .def file (1st line
13240           # is EXPORTS), use it as is; otherwise, prepend...
13241           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13242             cp $export_symbols $output_objdir/$soname.def;
13243           else
13244             echo EXPORTS > $output_objdir/$soname.def;
13245             cat $export_symbols >> $output_objdir/$soname.def;
13246           fi~
13247           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13248         else
13249           ld_shlibs_CXX=no
13250         fi
13251         ;;
13252       darwin* | rhapsody*)
13253
13254
13255   archive_cmds_need_lc_CXX=no
13256   hardcode_direct_CXX=no
13257   hardcode_automatic_CXX=yes
13258   hardcode_shlibpath_var_CXX=unsupported
13259   whole_archive_flag_spec_CXX=''
13260   link_all_deplibs_CXX=yes
13261   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13262   case $cc_basename in
13263      ifort*) _lt_dar_can_shared=yes ;;
13264      *) _lt_dar_can_shared=$GCC ;;
13265   esac
13266   if test "$_lt_dar_can_shared" = "yes"; then
13267     output_verbose_link_cmd=echo
13268     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13269     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13270     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13271     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13272        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13273       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13274       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13275     fi
13276
13277   else
13278   ld_shlibs_CXX=no
13279   fi
13280
13281         ;;
13282
13283       dgux*)
13284         case $cc_basename in
13285           ec++*)
13286             # FIXME: insert proper C++ library support
13287             ld_shlibs_CXX=no
13288             ;;
13289           ghcx*)
13290             # Green Hills C++ Compiler
13291             # FIXME: insert proper C++ library support
13292             ld_shlibs_CXX=no
13293             ;;
13294           *)
13295             # FIXME: insert proper C++ library support
13296             ld_shlibs_CXX=no
13297             ;;
13298         esac
13299         ;;
13300
13301       freebsd[12]*)
13302         # C++ shared libraries reported to be fairly broken before
13303         # switch to ELF
13304         ld_shlibs_CXX=no
13305         ;;
13306
13307       freebsd-elf*)
13308         archive_cmds_need_lc_CXX=no
13309         ;;
13310
13311       freebsd* | dragonfly*)
13312         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13313         # conventions
13314         ld_shlibs_CXX=yes
13315         ;;
13316
13317       gnu*)
13318         ;;
13319
13320       hpux9*)
13321         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13322         hardcode_libdir_separator_CXX=:
13323         export_dynamic_flag_spec_CXX='${wl}-E'
13324         hardcode_direct_CXX=yes
13325         hardcode_minus_L_CXX=yes # Not in the search PATH,
13326                                              # but as the default
13327                                              # location of the library.
13328
13329         case $cc_basename in
13330           CC*)
13331             # FIXME: insert proper C++ library support
13332             ld_shlibs_CXX=no
13333             ;;
13334           aCC*)
13335             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13336             # Commands to make compiler produce verbose output that lists
13337             # what "hidden" libraries, object files and flags are used when
13338             # linking a shared library.
13339             #
13340             # There doesn't appear to be a way to prevent this compiler from
13341             # explicitly linking system object files so we need to strip them
13342             # from the output so that they don't get included in the library
13343             # dependencies.
13344             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13345             ;;
13346           *)
13347             if test "$GXX" = yes; then
13348               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13349             else
13350               # FIXME: insert proper C++ library support
13351               ld_shlibs_CXX=no
13352             fi
13353             ;;
13354         esac
13355         ;;
13356
13357       hpux10*|hpux11*)
13358         if test $with_gnu_ld = no; then
13359           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13360           hardcode_libdir_separator_CXX=:
13361
13362           case $host_cpu in
13363             hppa*64*|ia64*)
13364               ;;
13365             *)
13366               export_dynamic_flag_spec_CXX='${wl}-E'
13367               ;;
13368           esac
13369         fi
13370         case $host_cpu in
13371           hppa*64*|ia64*)
13372             hardcode_direct_CXX=no
13373             hardcode_shlibpath_var_CXX=no
13374             ;;
13375           *)
13376             hardcode_direct_CXX=yes
13377             hardcode_direct_absolute_CXX=yes
13378             hardcode_minus_L_CXX=yes # Not in the search PATH,
13379                                                  # but as the default
13380                                                  # location of the library.
13381             ;;
13382         esac
13383
13384         case $cc_basename in
13385           CC*)
13386             # FIXME: insert proper C++ library support
13387             ld_shlibs_CXX=no
13388             ;;
13389           aCC*)
13390             case $host_cpu in
13391               hppa*64*)
13392                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13393                 ;;
13394               ia64*)
13395                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13396                 ;;
13397               *)
13398                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13399                 ;;
13400             esac
13401             # Commands to make compiler produce verbose output that lists
13402             # what "hidden" libraries, object files and flags are used when
13403             # linking a shared library.
13404             #
13405             # There doesn't appear to be a way to prevent this compiler from
13406             # explicitly linking system object files so we need to strip them
13407             # from the output so that they don't get included in the library
13408             # dependencies.
13409             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13410             ;;
13411           *)
13412             if test "$GXX" = yes; then
13413               if test $with_gnu_ld = no; then
13414                 case $host_cpu in
13415                   hppa*64*)
13416                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13417                     ;;
13418                   ia64*)
13419                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13420                     ;;
13421                   *)
13422                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13423                     ;;
13424                 esac
13425               fi
13426             else
13427               # FIXME: insert proper C++ library support
13428               ld_shlibs_CXX=no
13429             fi
13430             ;;
13431         esac
13432         ;;
13433
13434       interix[3-9]*)
13435         hardcode_direct_CXX=no
13436         hardcode_shlibpath_var_CXX=no
13437         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438         export_dynamic_flag_spec_CXX='${wl}-E'
13439         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13440         # Instead, shared libraries are loaded at an image base (0x10000000 by
13441         # default) and relocated if they conflict, which is a slow very memory
13442         # consuming and fragmenting process.  To avoid this, we pick a random,
13443         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13444         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13445         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13446         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13447         ;;
13448       irix5* | irix6*)
13449         case $cc_basename in
13450           CC*)
13451             # SGI C++
13452             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13453
13454             # Archives containing C++ object files must be created using
13455             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13456             # necessary to make sure instantiated templates are included
13457             # in the archive.
13458             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13459             ;;
13460           *)
13461             if test "$GXX" = yes; then
13462               if test "$with_gnu_ld" = no; then
13463                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13464               else
13465                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13466               fi
13467             fi
13468             link_all_deplibs_CXX=yes
13469             ;;
13470         esac
13471         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13472         hardcode_libdir_separator_CXX=:
13473         inherit_rpath_CXX=yes
13474         ;;
13475
13476       linux* | k*bsd*-gnu)
13477         case $cc_basename in
13478           KCC*)
13479             # Kuck and Associates, Inc. (KAI) C++ Compiler
13480
13481             # KCC will only create a shared library if the output file
13482             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13483             # to its proper name (with version) after linking.
13484             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13485             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13486             # Commands to make compiler produce verbose output that lists
13487             # what "hidden" libraries, object files and flags are used when
13488             # linking a shared library.
13489             #
13490             # There doesn't appear to be a way to prevent this compiler from
13491             # explicitly linking system object files so we need to strip them
13492             # from the output so that they don't get included in the library
13493             # dependencies.
13494             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13495
13496             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13497             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498
13499             # Archives containing C++ object files must be created using
13500             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13501             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13502             ;;
13503           icpc* | ecpc* )
13504             # Intel C++
13505             with_gnu_ld=yes
13506             # version 8.0 and above of icpc choke on multiply defined symbols
13507             # if we add $predep_objects and $postdep_objects, however 7.1 and
13508             # earlier do not add the objects themselves.
13509             case `$CC -V 2>&1` in
13510               *"Version 7."*)
13511                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13513                 ;;
13514               *)  # Version 8.0 or newer
13515                 tmp_idyn=
13516                 case $host_cpu in
13517                   ia64*) tmp_idyn=' -i_dynamic';;
13518                 esac
13519                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13521                 ;;
13522             esac
13523             archive_cmds_need_lc_CXX=no
13524             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13525             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13526             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13527             ;;
13528           pgCC* | pgcpp*)
13529             # Portland Group C++ compiler
13530             case `$CC -V` in
13531             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13532               prelink_cmds_CXX='tpldir=Template.dir~
13533                 rm -rf $tpldir~
13534                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13535                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13536               old_archive_cmds_CXX='tpldir=Template.dir~
13537                 rm -rf $tpldir~
13538                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13539                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13540                 $RANLIB $oldlib'
13541               archive_cmds_CXX='tpldir=Template.dir~
13542                 rm -rf $tpldir~
13543                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13544                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13545               archive_expsym_cmds_CXX='tpldir=Template.dir~
13546                 rm -rf $tpldir~
13547                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13548                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13549               ;;
13550             *) # Version 6 will use weak symbols
13551               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13552               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13553               ;;
13554             esac
13555
13556             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13557             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13558             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13559             ;;
13560           cxx*)
13561             # Compaq C++
13562             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13563             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13564
13565             runpath_var=LD_RUN_PATH
13566             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13567             hardcode_libdir_separator_CXX=:
13568
13569             # Commands to make compiler produce verbose output that lists
13570             # what "hidden" libraries, object files and flags are used when
13571             # linking a shared library.
13572             #
13573             # There doesn't appear to be a way to prevent this compiler from
13574             # explicitly linking system object files so we need to strip them
13575             # from the output so that they don't get included in the library
13576             # dependencies.
13577             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13578             ;;
13579           xl*)
13580             # IBM XL 8.0 on PPC, with GNU ld
13581             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13582             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13583             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13584             if test "x$supports_anon_versioning" = xyes; then
13585               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13586                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13587                 echo "local: *; };" >> $output_objdir/$libname.ver~
13588                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13589             fi
13590             ;;
13591           *)
13592             case `$CC -V 2>&1 | sed 5q` in
13593             *Sun\ C*)
13594               # Sun C++ 5.9
13595               no_undefined_flag_CXX=' -zdefs'
13596               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13597               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13598               hardcode_libdir_flag_spec_CXX='-R$libdir'
13599               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13600               compiler_needs_object_CXX=yes
13601
13602               # Not sure whether something based on
13603               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13604               # would be better.
13605               output_verbose_link_cmd='echo'
13606
13607               # Archives containing C++ object files must be created using
13608               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13609               # necessary to make sure instantiated templates are included
13610               # in the archive.
13611               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13612               ;;
13613             esac
13614             ;;
13615         esac
13616         ;;
13617
13618       lynxos*)
13619         # FIXME: insert proper C++ library support
13620         ld_shlibs_CXX=no
13621         ;;
13622
13623       m88k*)
13624         # FIXME: insert proper C++ library support
13625         ld_shlibs_CXX=no
13626         ;;
13627
13628       mvs*)
13629         case $cc_basename in
13630           cxx*)
13631             # FIXME: insert proper C++ library support
13632             ld_shlibs_CXX=no
13633             ;;
13634           *)
13635             # FIXME: insert proper C++ library support
13636             ld_shlibs_CXX=no
13637             ;;
13638         esac
13639         ;;
13640
13641       netbsd*)
13642         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13643           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13644           wlarc=
13645           hardcode_libdir_flag_spec_CXX='-R$libdir'
13646           hardcode_direct_CXX=yes
13647           hardcode_shlibpath_var_CXX=no
13648         fi
13649         # Workaround some broken pre-1.5 toolchains
13650         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13651         ;;
13652
13653       *nto* | *qnx*)
13654         ld_shlibs_CXX=yes
13655         ;;
13656
13657       openbsd2*)
13658         # C++ shared libraries are fairly broken
13659         ld_shlibs_CXX=no
13660         ;;
13661
13662       openbsd*)
13663         if test -f /usr/libexec/ld.so; then
13664           hardcode_direct_CXX=yes
13665           hardcode_shlibpath_var_CXX=no
13666           hardcode_direct_absolute_CXX=yes
13667           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13668           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13669           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13670             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13671             export_dynamic_flag_spec_CXX='${wl}-E'
13672             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13673           fi
13674           output_verbose_link_cmd=echo
13675         else
13676           ld_shlibs_CXX=no
13677         fi
13678         ;;
13679
13680       osf3* | osf4* | osf5*)
13681         case $cc_basename in
13682           KCC*)
13683             # Kuck and Associates, Inc. (KAI) C++ Compiler
13684
13685             # KCC will only create a shared library if the output file
13686             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13687             # to its proper name (with version) after linking.
13688             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13689
13690             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13691             hardcode_libdir_separator_CXX=:
13692
13693             # Archives containing C++ object files must be created using
13694             # the KAI C++ compiler.
13695             case $host in
13696               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13697               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13698             esac
13699             ;;
13700           RCC*)
13701             # Rational C++ 2.4.1
13702             # FIXME: insert proper C++ library support
13703             ld_shlibs_CXX=no
13704             ;;
13705           cxx*)
13706             case $host in
13707               osf3*)
13708                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13709                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13710                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13711                 ;;
13712               *)
13713                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13714                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13715                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13716                   echo "-hidden">> $lib.exp~
13717                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13718                   $RM $lib.exp'
13719                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13720                 ;;
13721             esac
13722
13723             hardcode_libdir_separator_CXX=:
13724
13725             # Commands to make compiler produce verbose output that lists
13726             # what "hidden" libraries, object files and flags are used when
13727             # linking a shared library.
13728             #
13729             # There doesn't appear to be a way to prevent this compiler from
13730             # explicitly linking system object files so we need to strip them
13731             # from the output so that they don't get included in the library
13732             # dependencies.
13733             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13734             ;;
13735           *)
13736             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13737               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13738               case $host in
13739                 osf3*)
13740                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13741                   ;;
13742                 *)
13743                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13744                   ;;
13745               esac
13746
13747               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13748               hardcode_libdir_separator_CXX=:
13749
13750               # Commands to make compiler produce verbose output that lists
13751               # what "hidden" libraries, object files and flags are used when
13752               # linking a shared library.
13753               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13754
13755             else
13756               # FIXME: insert proper C++ library support
13757               ld_shlibs_CXX=no
13758             fi
13759             ;;
13760         esac
13761         ;;
13762
13763       psos*)
13764         # FIXME: insert proper C++ library support
13765         ld_shlibs_CXX=no
13766         ;;
13767
13768       sunos4*)
13769         case $cc_basename in
13770           CC*)
13771             # Sun C++ 4.x
13772             # FIXME: insert proper C++ library support
13773             ld_shlibs_CXX=no
13774             ;;
13775           lcc*)
13776             # Lucid
13777             # FIXME: insert proper C++ library support
13778             ld_shlibs_CXX=no
13779             ;;
13780           *)
13781             # FIXME: insert proper C++ library support
13782             ld_shlibs_CXX=no
13783             ;;
13784         esac
13785         ;;
13786
13787       solaris*)
13788         case $cc_basename in
13789           CC*)
13790             # Sun C++ 4.2, 5.x and Centerline C++
13791             archive_cmds_need_lc_CXX=yes
13792             no_undefined_flag_CXX=' -zdefs'
13793             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13794             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13795               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13796
13797             hardcode_libdir_flag_spec_CXX='-R$libdir'
13798             hardcode_shlibpath_var_CXX=no
13799             case $host_os in
13800               solaris2.[0-5] | solaris2.[0-5].*) ;;
13801               *)
13802                 # The compiler driver will combine and reorder linker options,
13803                 # but understands `-z linker_flag'.
13804                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13805                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13806                 ;;
13807             esac
13808             link_all_deplibs_CXX=yes
13809
13810             output_verbose_link_cmd='echo'
13811
13812             # Archives containing C++ object files must be created using
13813             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13814             # necessary to make sure instantiated templates are included
13815             # in the archive.
13816             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13817             ;;
13818           gcx*)
13819             # Green Hills C++ Compiler
13820             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13821
13822             # The C++ compiler must be used to create the archive.
13823             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13824             ;;
13825           *)
13826             # GNU C++ compiler with Solaris linker
13827             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13828               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13829               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13830                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13831                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13832                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13833
13834                 # Commands to make compiler produce verbose output that lists
13835                 # what "hidden" libraries, object files and flags are used when
13836                 # linking a shared library.
13837                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13838               else
13839                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13840                 # platform.
13841                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13842                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13843                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13844
13845                 # Commands to make compiler produce verbose output that lists
13846                 # what "hidden" libraries, object files and flags are used when
13847                 # linking a shared library.
13848                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13849               fi
13850
13851               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13852               case $host_os in
13853                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13854                 *)
13855                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13856                   ;;
13857               esac
13858             fi
13859             ;;
13860         esac
13861         ;;
13862
13863     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13864       no_undefined_flag_CXX='${wl}-z,text'
13865       archive_cmds_need_lc_CXX=no
13866       hardcode_shlibpath_var_CXX=no
13867       runpath_var='LD_RUN_PATH'
13868
13869       case $cc_basename in
13870         CC*)
13871           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13873           ;;
13874         *)
13875           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13876           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13877           ;;
13878       esac
13879       ;;
13880
13881       sysv5* | sco3.2v5* | sco5v6*)
13882         # Note: We can NOT use -z defs as we might desire, because we do not
13883         # link with -lc, and that would cause any symbols used from libc to
13884         # always be unresolved, which means just about no library would
13885         # ever link correctly.  If we're not using GNU ld we use -z text
13886         # though, which does catch some bad symbols but isn't as heavy-handed
13887         # as -z defs.
13888         no_undefined_flag_CXX='${wl}-z,text'
13889         allow_undefined_flag_CXX='${wl}-z,nodefs'
13890         archive_cmds_need_lc_CXX=no
13891         hardcode_shlibpath_var_CXX=no
13892         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13893         hardcode_libdir_separator_CXX=':'
13894         link_all_deplibs_CXX=yes
13895         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13896         runpath_var='LD_RUN_PATH'
13897
13898         case $cc_basename in
13899           CC*)
13900             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13901             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13902             ;;
13903           *)
13904             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13905             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13906             ;;
13907         esac
13908       ;;
13909
13910       tandem*)
13911         case $cc_basename in
13912           NCC*)
13913             # NonStop-UX NCC 3.20
13914             # FIXME: insert proper C++ library support
13915             ld_shlibs_CXX=no
13916             ;;
13917           *)
13918             # FIXME: insert proper C++ library support
13919             ld_shlibs_CXX=no
13920             ;;
13921         esac
13922         ;;
13923
13924       vxworks*)
13925         # FIXME: insert proper C++ library support
13926         ld_shlibs_CXX=no
13927         ;;
13928
13929       *)
13930         # FIXME: insert proper C++ library support
13931         ld_shlibs_CXX=no
13932         ;;
13933     esac
13934
13935     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13936 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13937     test "$ld_shlibs_CXX" = no && can_build_shared=no
13938
13939     GCC_CXX="$GXX"
13940     LD_CXX="$LD"
13941
13942     ## CAVEAT EMPTOR:
13943     ## There is no encapsulation within the following macros, do not change
13944     ## the running order or otherwise move them around unless you know exactly
13945     ## what you are doing...
13946     # Dependencies to place before and after the object being linked:
13947 predep_objects_CXX=
13948 postdep_objects_CXX=
13949 predeps_CXX=
13950 postdeps_CXX=
13951 compiler_lib_search_path_CXX=
13952
13953 cat > conftest.$ac_ext <<_LT_EOF
13954 class Foo
13955 {
13956 public:
13957   Foo (void) { a = 0; }
13958 private:
13959   int a;
13960 };
13961 _LT_EOF
13962
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>&5
13965   ac_status=$?
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); }; then
13968   # Parse the compiler output and extract the necessary
13969   # objects, libraries and library flags.
13970
13971   # Sentinel used to keep track of whether or not we are before
13972   # the conftest object file.
13973   pre_test_object_deps_done=no
13974
13975   for p in `eval "$output_verbose_link_cmd"`; do
13976     case $p in
13977
13978     -L* | -R* | -l*)
13979        # Some compilers place space between "-{L,R}" and the path.
13980        # Remove the space.
13981        if test $p = "-L" ||
13982           test $p = "-R"; then
13983          prev=$p
13984          continue
13985        else
13986          prev=
13987        fi
13988
13989        if test "$pre_test_object_deps_done" = no; then
13990          case $p in
13991          -L* | -R*)
13992            # Internal compiler library paths should come after those
13993            # provided the user.  The postdeps already come after the
13994            # user supplied libs so there is no need to process them.
13995            if test -z "$compiler_lib_search_path_CXX"; then
13996              compiler_lib_search_path_CXX="${prev}${p}"
13997            else
13998              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13999            fi
14000            ;;
14001          # The "-l" case would never come before the object being
14002          # linked, so don't bother handling this case.
14003          esac
14004        else
14005          if test -z "$postdeps_CXX"; then
14006            postdeps_CXX="${prev}${p}"
14007          else
14008            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14009          fi
14010        fi
14011        ;;
14012
14013     *.$objext)
14014        # This assumes that the test object file only shows up
14015        # once in the compiler output.
14016        if test "$p" = "conftest.$objext"; then
14017          pre_test_object_deps_done=yes
14018          continue
14019        fi
14020
14021        if test "$pre_test_object_deps_done" = no; then
14022          if test -z "$predep_objects_CXX"; then
14023            predep_objects_CXX="$p"
14024          else
14025            predep_objects_CXX="$predep_objects_CXX $p"
14026          fi
14027        else
14028          if test -z "$postdep_objects_CXX"; then
14029            postdep_objects_CXX="$p"
14030          else
14031            postdep_objects_CXX="$postdep_objects_CXX $p"
14032          fi
14033        fi
14034        ;;
14035
14036     *) ;; # Ignore the rest.
14037
14038     esac
14039   done
14040
14041   # Clean up.
14042   rm -f a.out a.exe
14043 else
14044   echo "libtool.m4: error: problem compiling CXX test program"
14045 fi
14046
14047 $RM -f confest.$objext
14048
14049 # PORTME: override above test on systems where it is broken
14050 case $host_os in
14051 interix[3-9]*)
14052   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14053   # hack all around it, let's just trust "g++" to DTRT.
14054   predep_objects_CXX=
14055   postdep_objects_CXX=
14056   postdeps_CXX=
14057   ;;
14058
14059 linux*)
14060   case `$CC -V 2>&1 | sed 5q` in
14061   *Sun\ C*)
14062     # Sun C++ 5.9
14063
14064     # The more standards-conforming stlport4 library is
14065     # incompatible with the Cstd library. Avoid specifying
14066     # it if it's in CXXFLAGS. Ignore libCrun as
14067     # -library=stlport4 depends on it.
14068     case " $CXX $CXXFLAGS " in
14069     *" -library=stlport4 "*)
14070       solaris_use_stlport4=yes
14071       ;;
14072     esac
14073
14074     if test "$solaris_use_stlport4" != yes; then
14075       postdeps_CXX='-library=Cstd -library=Crun'
14076     fi
14077     ;;
14078   esac
14079   ;;
14080
14081 solaris*)
14082   case $cc_basename in
14083   CC*)
14084     # The more standards-conforming stlport4 library is
14085     # incompatible with the Cstd library. Avoid specifying
14086     # it if it's in CXXFLAGS. Ignore libCrun as
14087     # -library=stlport4 depends on it.
14088     case " $CXX $CXXFLAGS " in
14089     *" -library=stlport4 "*)
14090       solaris_use_stlport4=yes
14091       ;;
14092     esac
14093
14094     # Adding this requires a known-good setup of shared libraries for
14095     # Sun compiler versions before 5.6, else PIC objects from an old
14096     # archive will be linked into the output, leading to subtle bugs.
14097     if test "$solaris_use_stlport4" != yes; then
14098       postdeps_CXX='-library=Cstd -library=Crun'
14099     fi
14100     ;;
14101   esac
14102   ;;
14103 esac
14104
14105
14106 case " $postdeps_CXX " in
14107 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14108 esac
14109  compiler_lib_search_dirs_CXX=
14110 if test -n "${compiler_lib_search_path_CXX}"; then
14111  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14112 fi
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144     lt_prog_compiler_wl_CXX=
14145 lt_prog_compiler_pic_CXX=
14146 lt_prog_compiler_static_CXX=
14147
14148 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14149 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14150
14151   # C++ specific cases for pic, static, wl, etc.
14152   if test "$GXX" = yes; then
14153     lt_prog_compiler_wl_CXX='-Wl,'
14154     lt_prog_compiler_static_CXX='-static'
14155
14156     case $host_os in
14157     aix*)
14158       # All AIX code is PIC.
14159       if test "$host_cpu" = ia64; then
14160         # AIX 5 now supports IA64 processor
14161         lt_prog_compiler_static_CXX='-Bstatic'
14162       fi
14163       ;;
14164
14165     amigaos*)
14166       case $host_cpu in
14167       powerpc)
14168             # see comment about AmigaOS4 .so support
14169             lt_prog_compiler_pic_CXX='-fPIC'
14170         ;;
14171       m68k)
14172             # FIXME: we need at least 68020 code to build shared libraries, but
14173             # adding the `-m68020' flag to GCC prevents building anything better,
14174             # like `-m68040'.
14175             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14176         ;;
14177       esac
14178       ;;
14179
14180     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14181       # PIC is the default for these OSes.
14182       ;;
14183     mingw* | cygwin* | os2* | pw32* | cegcc*)
14184       # This hack is so that the source file can tell whether it is being
14185       # built for inclusion in a dll (and should export symbols for example).
14186       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14187       # (--disable-auto-import) libraries
14188       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14189       ;;
14190     darwin* | rhapsody*)
14191       # PIC is the default on this platform
14192       # Common symbols not allowed in MH_DYLIB files
14193       lt_prog_compiler_pic_CXX='-fno-common'
14194       ;;
14195     *djgpp*)
14196       # DJGPP does not support shared libraries at all
14197       lt_prog_compiler_pic_CXX=
14198       ;;
14199     interix[3-9]*)
14200       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14201       # Instead, we relocate shared libraries at runtime.
14202       ;;
14203     sysv4*MP*)
14204       if test -d /usr/nec; then
14205         lt_prog_compiler_pic_CXX=-Kconform_pic
14206       fi
14207       ;;
14208     hpux*)
14209       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14210       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14211       # sets the default TLS model and affects inlining.
14212       case $host_cpu in
14213       hppa*64*)
14214         ;;
14215       *)
14216         lt_prog_compiler_pic_CXX='-fPIC'
14217         ;;
14218       esac
14219       ;;
14220     *qnx* | *nto*)
14221       # QNX uses GNU C++, but need to define -shared option too, otherwise
14222       # it will coredump.
14223       lt_prog_compiler_pic_CXX='-fPIC -shared'
14224       ;;
14225     *)
14226       lt_prog_compiler_pic_CXX='-fPIC'
14227       ;;
14228     esac
14229   else
14230     case $host_os in
14231       aix[4-9]*)
14232         # All AIX code is PIC.
14233         if test "$host_cpu" = ia64; then
14234           # AIX 5 now supports IA64 processor
14235           lt_prog_compiler_static_CXX='-Bstatic'
14236         else
14237           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14238         fi
14239         ;;
14240       chorus*)
14241         case $cc_basename in
14242         cxch68*)
14243           # Green Hills C++ Compiler
14244           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14245           ;;
14246         esac
14247         ;;
14248       dgux*)
14249         case $cc_basename in
14250           ec++*)
14251             lt_prog_compiler_pic_CXX='-KPIC'
14252             ;;
14253           ghcx*)
14254             # Green Hills C++ Compiler
14255             lt_prog_compiler_pic_CXX='-pic'
14256             ;;
14257           *)
14258             ;;
14259         esac
14260         ;;
14261       freebsd* | dragonfly*)
14262         # FreeBSD uses GNU C++
14263         ;;
14264       hpux9* | hpux10* | hpux11*)
14265         case $cc_basename in
14266           CC*)
14267             lt_prog_compiler_wl_CXX='-Wl,'
14268             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14269             if test "$host_cpu" != ia64; then
14270               lt_prog_compiler_pic_CXX='+Z'
14271             fi
14272             ;;
14273           aCC*)
14274             lt_prog_compiler_wl_CXX='-Wl,'
14275             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14276             case $host_cpu in
14277             hppa*64*|ia64*)
14278               # +Z the default
14279               ;;
14280             *)
14281               lt_prog_compiler_pic_CXX='+Z'
14282               ;;
14283             esac
14284             ;;
14285           *)
14286             ;;
14287         esac
14288         ;;
14289       interix*)
14290         # This is c89, which is MS Visual C++ (no shared libs)
14291         # Anyone wants to do a port?
14292         ;;
14293       irix5* | irix6* | nonstopux*)
14294         case $cc_basename in
14295           CC*)
14296             lt_prog_compiler_wl_CXX='-Wl,'
14297             lt_prog_compiler_static_CXX='-non_shared'
14298             # CC pic flag -KPIC is the default.
14299             ;;
14300           *)
14301             ;;
14302         esac
14303         ;;
14304       linux* | k*bsd*-gnu)
14305         case $cc_basename in
14306           KCC*)
14307             # KAI C++ Compiler
14308             lt_prog_compiler_wl_CXX='--backend -Wl,'
14309             lt_prog_compiler_pic_CXX='-fPIC'
14310             ;;
14311           ecpc* )
14312             # old Intel C++ for x86_64 which still supported -KPIC.
14313             lt_prog_compiler_wl_CXX='-Wl,'
14314             lt_prog_compiler_pic_CXX='-KPIC'
14315             lt_prog_compiler_static_CXX='-static'
14316             ;;
14317           icpc* )
14318             # Intel C++, used to be incompatible with GCC.
14319             # ICC 10 doesn't accept -KPIC any more.
14320             lt_prog_compiler_wl_CXX='-Wl,'
14321             lt_prog_compiler_pic_CXX='-fPIC'
14322             lt_prog_compiler_static_CXX='-static'
14323             ;;
14324           pgCC* | pgcpp*)
14325             # Portland Group C++ compiler
14326             lt_prog_compiler_wl_CXX='-Wl,'
14327             lt_prog_compiler_pic_CXX='-fpic'
14328             lt_prog_compiler_static_CXX='-Bstatic'
14329             ;;
14330           cxx*)
14331             # Compaq C++
14332             # Make sure the PIC flag is empty.  It appears that all Alpha
14333             # Linux and Compaq Tru64 Unix objects are PIC.
14334             lt_prog_compiler_pic_CXX=
14335             lt_prog_compiler_static_CXX='-non_shared'
14336             ;;
14337           xlc* | xlC*)
14338             # IBM XL 8.0 on PPC
14339             lt_prog_compiler_wl_CXX='-Wl,'
14340             lt_prog_compiler_pic_CXX='-qpic'
14341             lt_prog_compiler_static_CXX='-qstaticlink'
14342             ;;
14343           *)
14344             case `$CC -V 2>&1 | sed 5q` in
14345             *Sun\ C*)
14346               # Sun C++ 5.9
14347               lt_prog_compiler_pic_CXX='-KPIC'
14348               lt_prog_compiler_static_CXX='-Bstatic'
14349               lt_prog_compiler_wl_CXX='-Qoption ld '
14350               ;;
14351             esac
14352             ;;
14353         esac
14354         ;;
14355       lynxos*)
14356         ;;
14357       m88k*)
14358         ;;
14359       mvs*)
14360         case $cc_basename in
14361           cxx*)
14362             lt_prog_compiler_pic_CXX='-W c,exportall'
14363             ;;
14364           *)
14365             ;;
14366         esac
14367         ;;
14368       netbsd*)
14369         ;;
14370       *qnx* | *nto*)
14371         # QNX uses GNU C++, but need to define -shared option too, otherwise
14372         # it will coredump.
14373         lt_prog_compiler_pic_CXX='-fPIC -shared'
14374         ;;
14375       osf3* | osf4* | osf5*)
14376         case $cc_basename in
14377           KCC*)
14378             lt_prog_compiler_wl_CXX='--backend -Wl,'
14379             ;;
14380           RCC*)
14381             # Rational C++ 2.4.1
14382             lt_prog_compiler_pic_CXX='-pic'
14383             ;;
14384           cxx*)
14385             # Digital/Compaq C++
14386             lt_prog_compiler_wl_CXX='-Wl,'
14387             # Make sure the PIC flag is empty.  It appears that all Alpha
14388             # Linux and Compaq Tru64 Unix objects are PIC.
14389             lt_prog_compiler_pic_CXX=
14390             lt_prog_compiler_static_CXX='-non_shared'
14391             ;;
14392           *)
14393             ;;
14394         esac
14395         ;;
14396       psos*)
14397         ;;
14398       solaris*)
14399         case $cc_basename in
14400           CC*)
14401             # Sun C++ 4.2, 5.x and Centerline C++
14402             lt_prog_compiler_pic_CXX='-KPIC'
14403             lt_prog_compiler_static_CXX='-Bstatic'
14404             lt_prog_compiler_wl_CXX='-Qoption ld '
14405             ;;
14406           gcx*)
14407             # Green Hills C++ Compiler
14408             lt_prog_compiler_pic_CXX='-PIC'
14409             ;;
14410           *)
14411             ;;
14412         esac
14413         ;;
14414       sunos4*)
14415         case $cc_basename in
14416           CC*)
14417             # Sun C++ 4.x
14418             lt_prog_compiler_pic_CXX='-pic'
14419             lt_prog_compiler_static_CXX='-Bstatic'
14420             ;;
14421           lcc*)
14422             # Lucid
14423             lt_prog_compiler_pic_CXX='-pic'
14424             ;;
14425           *)
14426             ;;
14427         esac
14428         ;;
14429       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14430         case $cc_basename in
14431           CC*)
14432             lt_prog_compiler_wl_CXX='-Wl,'
14433             lt_prog_compiler_pic_CXX='-KPIC'
14434             lt_prog_compiler_static_CXX='-Bstatic'
14435             ;;
14436         esac
14437         ;;
14438       tandem*)
14439         case $cc_basename in
14440           NCC*)
14441             # NonStop-UX NCC 3.20
14442             lt_prog_compiler_pic_CXX='-KPIC'
14443             ;;
14444           *)
14445             ;;
14446         esac
14447         ;;
14448       vxworks*)
14449         ;;
14450       *)
14451         lt_prog_compiler_can_build_shared_CXX=no
14452         ;;
14453     esac
14454   fi
14455
14456 case $host_os in
14457   # For platforms which do not support PIC, -DPIC is meaningless:
14458   *djgpp*)
14459     lt_prog_compiler_pic_CXX=
14460     ;;
14461   *)
14462     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14463     ;;
14464 esac
14465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14466 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14467
14468
14469
14470 #
14471 # Check to make sure the PIC flag actually works.
14472 #
14473 if test -n "$lt_prog_compiler_pic_CXX"; then
14474   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14476 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   lt_cv_prog_compiler_pic_works_CXX=no
14480    ac_outfile=conftest.$ac_objext
14481    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14482    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14483    # Insert the option either (1) after the last *FLAGS variable, or
14484    # (2) before a word containing "conftest.", or (3) at the end.
14485    # Note that $ac_compile itself does not contain backslashes and begins
14486    # with a dollar sign (not a hyphen), so the echo should work correctly.
14487    # The option is referenced via a variable to avoid confusing sed.
14488    lt_compile=`echo "$ac_compile" | $SED \
14489    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14490    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14491    -e 's:$: $lt_compiler_flag:'`
14492    (eval echo "\"\$as_me:14492: $lt_compile\"" >&5)
14493    (eval "$lt_compile" 2>conftest.err)
14494    ac_status=$?
14495    cat conftest.err >&5
14496    echo "$as_me:14496: \$? = $ac_status" >&5
14497    if (exit $ac_status) && test -s "$ac_outfile"; then
14498      # The compiler can only warn and ignore the option if not recognized
14499      # So say no if there are warnings other than the usual output.
14500      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14501      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14502      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14503        lt_cv_prog_compiler_pic_works_CXX=yes
14504      fi
14505    fi
14506    $RM conftest*
14507
14508 fi
14509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14510 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14511
14512 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14513     case $lt_prog_compiler_pic_CXX in
14514      "" | " "*) ;;
14515      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14516      esac
14517 else
14518     lt_prog_compiler_pic_CXX=
14519      lt_prog_compiler_can_build_shared_CXX=no
14520 fi
14521
14522 fi
14523
14524
14525
14526 #
14527 # Check to make sure the static flag actually works.
14528 #
14529 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14530 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14532 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   lt_cv_prog_compiler_static_works_CXX=no
14536    save_LDFLAGS="$LDFLAGS"
14537    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14538    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14539    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14540      # The linker can only warn and ignore the option if not recognized
14541      # So say no if there are warnings
14542      if test -s conftest.err; then
14543        # Append any errors to the config.log.
14544        cat conftest.err 1>&5
14545        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14546        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547        if diff conftest.exp conftest.er2 >/dev/null; then
14548          lt_cv_prog_compiler_static_works_CXX=yes
14549        fi
14550      else
14551        lt_cv_prog_compiler_static_works_CXX=yes
14552      fi
14553    fi
14554    $RM -r conftest*
14555    LDFLAGS="$save_LDFLAGS"
14556
14557 fi
14558 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14559 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14560
14561 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14562     :
14563 else
14564     lt_prog_compiler_static_CXX=
14565 fi
14566
14567
14568
14569
14570     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14571 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14572 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   lt_cv_prog_compiler_c_o_CXX=no
14576    $RM -r conftest 2>/dev/null
14577    mkdir conftest
14578    cd conftest
14579    mkdir out
14580    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14581
14582    lt_compiler_flag="-o out/conftest2.$ac_objext"
14583    # Insert the option either (1) after the last *FLAGS variable, or
14584    # (2) before a word containing "conftest.", or (3) at the end.
14585    # Note that $ac_compile itself does not contain backslashes and begins
14586    # with a dollar sign (not a hyphen), so the echo should work correctly.
14587    lt_compile=`echo "$ac_compile" | $SED \
14588    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14589    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14590    -e 's:$: $lt_compiler_flag:'`
14591    (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14592    (eval "$lt_compile" 2>out/conftest.err)
14593    ac_status=$?
14594    cat out/conftest.err >&5
14595    echo "$as_me:14595: \$? = $ac_status" >&5
14596    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14597    then
14598      # The compiler can only warn and ignore the option if not recognized
14599      # So say no if there are warnings
14600      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14601      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14602      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14603        lt_cv_prog_compiler_c_o_CXX=yes
14604      fi
14605    fi
14606    chmod u+w . 2>&5
14607    $RM conftest*
14608    # SGI C++ compiler will create directory out/ii_files/ for
14609    # template instantiation
14610    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14611    $RM out/* && rmdir out
14612    cd ..
14613    $RM -r conftest
14614    $RM conftest*
14615
14616 fi
14617 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14618 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14619
14620
14621
14622     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14623 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14624 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   lt_cv_prog_compiler_c_o_CXX=no
14628    $RM -r conftest 2>/dev/null
14629    mkdir conftest
14630    cd conftest
14631    mkdir out
14632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14633
14634    lt_compiler_flag="-o out/conftest2.$ac_objext"
14635    # Insert the option either (1) after the last *FLAGS variable, or
14636    # (2) before a word containing "conftest.", or (3) at the end.
14637    # Note that $ac_compile itself does not contain backslashes and begins
14638    # with a dollar sign (not a hyphen), so the echo should work correctly.
14639    lt_compile=`echo "$ac_compile" | $SED \
14640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14642    -e 's:$: $lt_compiler_flag:'`
14643    (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14644    (eval "$lt_compile" 2>out/conftest.err)
14645    ac_status=$?
14646    cat out/conftest.err >&5
14647    echo "$as_me:14647: \$? = $ac_status" >&5
14648    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14649    then
14650      # The compiler can only warn and ignore the option if not recognized
14651      # So say no if there are warnings
14652      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14653      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14654      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14655        lt_cv_prog_compiler_c_o_CXX=yes
14656      fi
14657    fi
14658    chmod u+w . 2>&5
14659    $RM conftest*
14660    # SGI C++ compiler will create directory out/ii_files/ for
14661    # template instantiation
14662    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14663    $RM out/* && rmdir out
14664    cd ..
14665    $RM -r conftest
14666    $RM conftest*
14667
14668 fi
14669 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14670 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14671
14672
14673
14674
14675 hard_links="nottested"
14676 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14677   # do not overwrite the value of need_locks provided by the user
14678   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14679 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14680   hard_links=yes
14681   $RM conftest*
14682   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14683   touch conftest.a
14684   ln conftest.a conftest.b 2>&5 || hard_links=no
14685   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14686   { echo "$as_me:$LINENO: result: $hard_links" >&5
14687 echo "${ECHO_T}$hard_links" >&6; }
14688   if test "$hard_links" = no; then
14689     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14690 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14691     need_locks=warn
14692   fi
14693 else
14694   need_locks=no
14695 fi
14696
14697
14698
14699     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14700 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14701
14702   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14703   case $host_os in
14704   aix[4-9]*)
14705     # If we're using GNU nm, then we don't want the "-C" option.
14706     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14707     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14708       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14709     else
14710       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14711     fi
14712     ;;
14713   pw32*)
14714     export_symbols_cmds_CXX="$ltdll_cmds"
14715   ;;
14716   cygwin* | mingw* | cegcc*)
14717     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14718   ;;
14719   *)
14720     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14721   ;;
14722   esac
14723   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14724
14725 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14726 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14727 test "$ld_shlibs_CXX" = no && can_build_shared=no
14728
14729 with_gnu_ld_CXX=$with_gnu_ld
14730
14731
14732
14733
14734
14735
14736 #
14737 # Do we need to explicitly link libc?
14738 #
14739 case "x$archive_cmds_need_lc_CXX" in
14740 x|xyes)
14741   # Assume -lc should be added
14742   archive_cmds_need_lc_CXX=yes
14743
14744   if test "$enable_shared" = yes && test "$GCC" = yes; then
14745     case $archive_cmds_CXX in
14746     *'~'*)
14747       # FIXME: we may have to deal with multi-command sequences.
14748       ;;
14749     '$CC '*)
14750       # Test whether the compiler implicitly links with -lc since on some
14751       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14752       # to ld, don't add -lc before -lgcc.
14753       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14755       $RM conftest*
14756       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14757
14758       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14759   (eval $ac_compile) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); } 2>conftest.err; then
14763         soname=conftest
14764         lib=conftest
14765         libobjs=conftest.$ac_objext
14766         deplibs=
14767         wl=$lt_prog_compiler_wl_CXX
14768         pic_flag=$lt_prog_compiler_pic_CXX
14769         compiler_flags=-v
14770         linker_flags=-v
14771         verstring=
14772         output_objdir=.
14773         libname=conftest
14774         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14775         allow_undefined_flag_CXX=
14776         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14777   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }
14781         then
14782           archive_cmds_need_lc_CXX=no
14783         else
14784           archive_cmds_need_lc_CXX=yes
14785         fi
14786         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14787       else
14788         cat conftest.err 1>&5
14789       fi
14790       $RM conftest*
14791       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14792 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14793       ;;
14794     esac
14795   fi
14796   ;;
14797 esac
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14863 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14864
14865 library_names_spec=
14866 libname_spec='lib$name'
14867 soname_spec=
14868 shrext_cmds=".so"
14869 postinstall_cmds=
14870 postuninstall_cmds=
14871 finish_cmds=
14872 finish_eval=
14873 shlibpath_var=
14874 shlibpath_overrides_runpath=unknown
14875 version_type=none
14876 dynamic_linker="$host_os ld.so"
14877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14878 need_lib_prefix=unknown
14879 hardcode_into_libs=no
14880
14881 # when you set need_version to no, make sure it does not cause -set_version
14882 # flags to be left without arguments
14883 need_version=unknown
14884
14885 case $host_os in
14886 aix3*)
14887   version_type=linux
14888   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14889   shlibpath_var=LIBPATH
14890
14891   # AIX 3 has no versioning support, so we append a major version to the name.
14892   soname_spec='${libname}${release}${shared_ext}$major'
14893   ;;
14894
14895 aix[4-9]*)
14896   version_type=linux
14897   need_lib_prefix=no
14898   need_version=no
14899   hardcode_into_libs=yes
14900   if test "$host_cpu" = ia64; then
14901     # AIX 5 supports IA64
14902     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14903     shlibpath_var=LD_LIBRARY_PATH
14904   else
14905     # With GCC up to 2.95.x, collect2 would create an import file
14906     # for dependence libraries.  The import file would start with
14907     # the line `#! .'.  This would cause the generated library to
14908     # depend on `.', always an invalid library.  This was fixed in
14909     # development snapshots of GCC prior to 3.0.
14910     case $host_os in
14911       aix4 | aix4.[01] | aix4.[01].*)
14912       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14913            echo ' yes '
14914            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14915         :
14916       else
14917         can_build_shared=no
14918       fi
14919       ;;
14920     esac
14921     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14922     # soname into executable. Probably we can add versioning support to
14923     # collect2, so additional links can be useful in future.
14924     if test "$aix_use_runtimelinking" = yes; then
14925       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14926       # instead of lib<name>.a to let people know that these are not
14927       # typical AIX shared libraries.
14928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929     else
14930       # We preserve .a as extension for shared libraries through AIX4.2
14931       # and later when we are not doing run time linking.
14932       library_names_spec='${libname}${release}.a $libname.a'
14933       soname_spec='${libname}${release}${shared_ext}$major'
14934     fi
14935     shlibpath_var=LIBPATH
14936   fi
14937   ;;
14938
14939 amigaos*)
14940   case $host_cpu in
14941   powerpc)
14942     # Since July 2007 AmigaOS4 officially supports .so libraries.
14943     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945     ;;
14946   m68k)
14947     library_names_spec='$libname.ixlibrary $libname.a'
14948     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14949     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14950     ;;
14951   esac
14952   ;;
14953
14954 beos*)
14955   library_names_spec='${libname}${shared_ext}'
14956   dynamic_linker="$host_os ld.so"
14957   shlibpath_var=LIBRARY_PATH
14958   ;;
14959
14960 bsdi[45]*)
14961   version_type=linux
14962   need_version=no
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964   soname_spec='${libname}${release}${shared_ext}$major'
14965   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14966   shlibpath_var=LD_LIBRARY_PATH
14967   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14968   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14969   # the default ld.so.conf also contains /usr/contrib/lib and
14970   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14971   # libtool to hard-code these into programs
14972   ;;
14973
14974 cygwin* | mingw* | pw32* | cegcc*)
14975   version_type=windows
14976   shrext_cmds=".dll"
14977   need_version=no
14978   need_lib_prefix=no
14979
14980   case $GCC,$host_os in
14981   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14982     library_names_spec='$libname.dll.a'
14983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14984     postinstall_cmds='base_file=`basename \${file}`~
14985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14986       dldir=$destdir/`dirname \$dlpath`~
14987       test -d \$dldir || mkdir -p \$dldir~
14988       $install_prog $dir/$dlname \$dldir/$dlname~
14989       chmod a+x \$dldir/$dlname~
14990       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14991         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14992       fi'
14993     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14994       dlpath=$dir/\$dldll~
14995        $RM \$dlpath'
14996     shlibpath_overrides_runpath=yes
14997
14998     case $host_os in
14999     cygwin*)
15000       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15001       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15002       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
15003       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15004       ;;
15005     mingw* | cegcc*)
15006       # MinGW DLLs use traditional 'lib' prefix
15007       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15008       soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
15009       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15010       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15011         # It is most probably a Windows format PATH printed by
15012         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15013         # path with ; separators, and with drive letters. We can handle the
15014         # drive letters (cygwin fileutils understands them), so leave them,
15015         # especially as we might pass files found there to a mingw objdump,
15016         # which wouldn't understand a cygwinified path. Ahh.
15017         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15018       else
15019         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15020       fi
15021       ;;
15022     pw32*)
15023       # pw32 DLLs use 'pw' prefix rather than 'lib'
15024       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15025       ;;
15026     esac
15027     ;;
15028
15029   *)
15030     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15031     ;;
15032   esac
15033   dynamic_linker='Win32 ld.exe'
15034   # FIXME: first we should search . and the directory the executable is in
15035   shlibpath_var=PATH
15036   ;;
15037
15038 darwin* | rhapsody*)
15039   dynamic_linker="$host_os dyld"
15040   version_type=darwin
15041   need_lib_prefix=no
15042   need_version=no
15043   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15044   soname_spec='${libname}${release}${major}$shared_ext'
15045   shlibpath_overrides_runpath=yes
15046   shlibpath_var=DYLD_LIBRARY_PATH
15047   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15048
15049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15050   ;;
15051
15052 dgux*)
15053   version_type=linux
15054   need_lib_prefix=no
15055   need_version=no
15056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15057   soname_spec='${libname}${release}${shared_ext}$major'
15058   shlibpath_var=LD_LIBRARY_PATH
15059   ;;
15060
15061 freebsd1*)
15062   dynamic_linker=no
15063   ;;
15064
15065 freebsd* | dragonfly*)
15066   # DragonFly does not have aout.  When/if they implement a new
15067   # versioning mechanism, adjust this.
15068   if test -x /usr/bin/objformat; then
15069     objformat=`/usr/bin/objformat`
15070   else
15071     case $host_os in
15072     freebsd[123]*) objformat=aout ;;
15073     *) objformat=elf ;;
15074     esac
15075   fi
15076   version_type=freebsd-$objformat
15077   case $version_type in
15078     freebsd-elf*)
15079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15080       need_version=no
15081       need_lib_prefix=no
15082       ;;
15083     freebsd-*)
15084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15085       need_version=yes
15086       ;;
15087   esac
15088   shlibpath_var=LD_LIBRARY_PATH
15089   case $host_os in
15090   freebsd2*)
15091     shlibpath_overrides_runpath=yes
15092     ;;
15093   freebsd3.[01]* | freebsdelf3.[01]*)
15094     shlibpath_overrides_runpath=yes
15095     hardcode_into_libs=yes
15096     ;;
15097   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15098   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15099     shlibpath_overrides_runpath=no
15100     hardcode_into_libs=yes
15101     ;;
15102   *) # from 4.6 on, and DragonFly
15103     shlibpath_overrides_runpath=yes
15104     hardcode_into_libs=yes
15105     ;;
15106   esac
15107   ;;
15108
15109 gnu*)
15110   version_type=linux
15111   need_lib_prefix=no
15112   need_version=no
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   shlibpath_var=LD_LIBRARY_PATH
15116   hardcode_into_libs=yes
15117   ;;
15118
15119 hpux9* | hpux10* | hpux11*)
15120   # Give a soname corresponding to the major version so that dld.sl refuses to
15121   # link against other versions.
15122   version_type=sunos
15123   need_lib_prefix=no
15124   need_version=no
15125   case $host_cpu in
15126   ia64*)
15127     shrext_cmds='.so'
15128     hardcode_into_libs=yes
15129     dynamic_linker="$host_os dld.so"
15130     shlibpath_var=LD_LIBRARY_PATH
15131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133     soname_spec='${libname}${release}${shared_ext}$major'
15134     if test "X$HPUX_IA64_MODE" = X32; then
15135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15136     else
15137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15138     fi
15139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15140     ;;
15141   hppa*64*)
15142     shrext_cmds='.sl'
15143     hardcode_into_libs=yes
15144     dynamic_linker="$host_os dld.sl"
15145     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15146     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148     soname_spec='${libname}${release}${shared_ext}$major'
15149     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15150     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15151     ;;
15152   *)
15153     shrext_cmds='.sl'
15154     dynamic_linker="$host_os dld.sl"
15155     shlibpath_var=SHLIB_PATH
15156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158     soname_spec='${libname}${release}${shared_ext}$major'
15159     ;;
15160   esac
15161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15162   postinstall_cmds='chmod 555 $lib'
15163   ;;
15164
15165 interix[3-9]*)
15166   version_type=linux
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15170   soname_spec='${libname}${release}${shared_ext}$major'
15171   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   shlibpath_overrides_runpath=no
15174   hardcode_into_libs=yes
15175   ;;
15176
15177 irix5* | irix6* | nonstopux*)
15178   case $host_os in
15179     nonstopux*) version_type=nonstopux ;;
15180     *)
15181         if test "$lt_cv_prog_gnu_ld" = yes; then
15182                 version_type=linux
15183         else
15184                 version_type=irix
15185         fi ;;
15186   esac
15187   need_lib_prefix=no
15188   need_version=no
15189   soname_spec='${libname}${release}${shared_ext}$major'
15190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15191   case $host_os in
15192   irix5* | nonstopux*)
15193     libsuff= shlibsuff=
15194     ;;
15195   *)
15196     case $LD in # libtool.m4 will add one of these switches to LD
15197     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15198       libsuff= shlibsuff= libmagic=32-bit;;
15199     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15200       libsuff=32 shlibsuff=N32 libmagic=N32;;
15201     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15202       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15203     *) libsuff= shlibsuff= libmagic=never-match;;
15204     esac
15205     ;;
15206   esac
15207   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15208   shlibpath_overrides_runpath=no
15209   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15210   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15211   hardcode_into_libs=yes
15212   ;;
15213
15214 # No shared lib support for Linux oldld, aout, or coff.
15215 linux*oldld* | linux*aout* | linux*coff*)
15216   dynamic_linker=no
15217   ;;
15218
15219 # This must be Linux ELF.
15220 linux* | k*bsd*-gnu)
15221   version_type=linux
15222   need_lib_prefix=no
15223   need_version=no
15224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225   soname_spec='${libname}${release}${shared_ext}$major'
15226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15227   shlibpath_var=LD_LIBRARY_PATH
15228   shlibpath_overrides_runpath=no
15229   # Some binutils ld are patched to set DT_RUNPATH
15230   save_LDFLAGS=$LDFLAGS
15231   save_libdir=$libdir
15232   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15233        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15234   cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240
15241 int
15242 main ()
15243 {
15244
15245   ;
15246   return 0;
15247 }
15248 _ACEOF
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253   *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256   (eval "$ac_link") 2>conftest.er1
15257   ac_status=$?
15258   grep -v '^ *+' conftest.er1 >conftest.err
15259   rm -f conftest.er1
15260   cat conftest.err >&5
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } && {
15263          test -z "$ac_cxx_werror_flag" ||
15264          test ! -s conftest.err
15265        } && test -s conftest$ac_exeext &&
15266        $as_test_x conftest$ac_exeext; then
15267   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15268   shlibpath_overrides_runpath=yes
15269 fi
15270
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275
15276 fi
15277
15278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15279       conftest$ac_exeext conftest.$ac_ext
15280   LDFLAGS=$save_LDFLAGS
15281   libdir=$save_libdir
15282
15283   # This implies no fast_install, which is unacceptable.
15284   # Some rework will be needed to allow for fast_install
15285   # before this can be enabled.
15286   hardcode_into_libs=yes
15287
15288   # Append ld.so.conf contents to the search path
15289   if test -f /etc/ld.so.conf; then
15290     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15291     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15292   fi
15293
15294   # We used to test for /lib/ld.so.1 and disable shared libraries on
15295   # powerpc, because MkLinux only supported shared libraries with the
15296   # GNU dynamic linker.  Since this was broken with cross compilers,
15297   # most powerpc-linux boxes support dynamic linking these days and
15298   # people can always --disable-shared, the test was removed, and we
15299   # assume the GNU/Linux dynamic linker is in use.
15300   dynamic_linker='GNU/Linux ld.so'
15301   ;;
15302
15303 netbsd*)
15304   version_type=sunos
15305   need_lib_prefix=no
15306   need_version=no
15307   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310     dynamic_linker='NetBSD (a.out) ld.so'
15311   else
15312     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15313     soname_spec='${libname}${release}${shared_ext}$major'
15314     dynamic_linker='NetBSD ld.elf_so'
15315   fi
15316   shlibpath_var=LD_LIBRARY_PATH
15317   shlibpath_overrides_runpath=yes
15318   hardcode_into_libs=yes
15319   ;;
15320
15321 newsos6)
15322   version_type=linux
15323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324   shlibpath_var=LD_LIBRARY_PATH
15325   shlibpath_overrides_runpath=yes
15326   ;;
15327
15328 *nto* | *qnx*)
15329   version_type=qnx
15330   need_lib_prefix=no
15331   need_version=no
15332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333   soname_spec='${libname}${release}${shared_ext}$major'
15334   shlibpath_var=LD_LIBRARY_PATH
15335   shlibpath_overrides_runpath=no
15336   hardcode_into_libs=yes
15337   dynamic_linker='ldqnx.so'
15338   ;;
15339
15340 openbsd*)
15341   version_type=sunos
15342   sys_lib_dlsearch_path_spec="/usr/lib"
15343   need_lib_prefix=no
15344   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15345   case $host_os in
15346     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15347     *)                          need_version=no  ;;
15348   esac
15349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351   shlibpath_var=LD_LIBRARY_PATH
15352   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15353     case $host_os in
15354       openbsd2.[89] | openbsd2.[89].*)
15355         shlibpath_overrides_runpath=no
15356         ;;
15357       *)
15358         shlibpath_overrides_runpath=yes
15359         ;;
15360       esac
15361   else
15362     shlibpath_overrides_runpath=yes
15363   fi
15364   ;;
15365
15366 os2*)
15367   libname_spec='$name'
15368   shrext_cmds=".dll"
15369   need_lib_prefix=no
15370   library_names_spec='$libname${shared_ext} $libname.a'
15371   dynamic_linker='OS/2 ld.exe'
15372   shlibpath_var=LIBPATH
15373   ;;
15374
15375 osf3* | osf4* | osf5*)
15376   version_type=osf
15377   need_lib_prefix=no
15378   need_version=no
15379   soname_spec='${libname}${release}${shared_ext}$major'
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15384   ;;
15385
15386 rdos*)
15387   dynamic_linker=no
15388   ;;
15389
15390 solaris*)
15391   version_type=linux
15392   need_lib_prefix=no
15393   need_version=no
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395   soname_spec='${libname}${release}${shared_ext}$major'
15396   shlibpath_var=LD_LIBRARY_PATH
15397   shlibpath_overrides_runpath=yes
15398   hardcode_into_libs=yes
15399   # ldd complains unless libraries are executable
15400   postinstall_cmds='chmod +x $lib'
15401   ;;
15402
15403 sunos4*)
15404   version_type=sunos
15405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407   shlibpath_var=LD_LIBRARY_PATH
15408   shlibpath_overrides_runpath=yes
15409   if test "$with_gnu_ld" = yes; then
15410     need_lib_prefix=no
15411   fi
15412   need_version=yes
15413   ;;
15414
15415 sysv4 | sysv4.3*)
15416   version_type=linux
15417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418   soname_spec='${libname}${release}${shared_ext}$major'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   case $host_vendor in
15421     sni)
15422       shlibpath_overrides_runpath=no
15423       need_lib_prefix=no
15424       runpath_var=LD_RUN_PATH
15425       ;;
15426     siemens)
15427       need_lib_prefix=no
15428       ;;
15429     motorola)
15430       need_lib_prefix=no
15431       need_version=no
15432       shlibpath_overrides_runpath=no
15433       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15434       ;;
15435   esac
15436   ;;
15437
15438 sysv4*MP*)
15439   if test -d /usr/nec ;then
15440     version_type=linux
15441     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15442     soname_spec='$libname${shared_ext}.$major'
15443     shlibpath_var=LD_LIBRARY_PATH
15444   fi
15445   ;;
15446
15447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15448   version_type=freebsd-elf
15449   need_lib_prefix=no
15450   need_version=no
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15452   soname_spec='${libname}${release}${shared_ext}$major'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   shlibpath_overrides_runpath=yes
15455   hardcode_into_libs=yes
15456   if test "$with_gnu_ld" = yes; then
15457     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15458   else
15459     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15460     case $host_os in
15461       sco3.2v5*)
15462         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15463         ;;
15464     esac
15465   fi
15466   sys_lib_dlsearch_path_spec='/usr/lib'
15467   ;;
15468
15469 tpf*)
15470   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15471   version_type=linux
15472   need_lib_prefix=no
15473   need_version=no
15474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   shlibpath_overrides_runpath=no
15477   hardcode_into_libs=yes
15478   ;;
15479
15480 uts4*)
15481   version_type=linux
15482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483   soname_spec='${libname}${release}${shared_ext}$major'
15484   shlibpath_var=LD_LIBRARY_PATH
15485   ;;
15486
15487 *)
15488   dynamic_linker=no
15489   ;;
15490 esac
15491 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15492 echo "${ECHO_T}$dynamic_linker" >&6; }
15493 test "$dynamic_linker" = no && can_build_shared=no
15494
15495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15496 if test "$GCC" = yes; then
15497   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15498 fi
15499
15500 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15501   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15502 fi
15503 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15504   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15505 fi
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15544 hardcode_action_CXX=
15545 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15546    test -n "$runpath_var_CXX" ||
15547    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15548
15549   # We can hardcode non-existent directories.
15550   if test "$hardcode_direct_CXX" != no &&
15551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15552      # have to relink, otherwise we might link with an installed library
15553      # when we should be linking with a yet-to-be-installed one
15554      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15555      test "$hardcode_minus_L_CXX" != no; then
15556     # Linking always hardcodes the temporary library directory.
15557     hardcode_action_CXX=relink
15558   else
15559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15560     hardcode_action_CXX=immediate
15561   fi
15562 else
15563   # We cannot hardcode anything, or else we can only hardcode existing
15564   # directories.
15565   hardcode_action_CXX=unsupported
15566 fi
15567 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15568 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15569
15570 if test "$hardcode_action_CXX" = relink ||
15571    test "$inherit_rpath_CXX" = yes; then
15572   # Fast installation is not supported
15573   enable_fast_install=no
15574 elif test "$shlibpath_overrides_runpath" = yes ||
15575      test "$enable_shared" = no; then
15576   # Fast installation is not necessary
15577   enable_fast_install=needless
15578 fi
15579
15580
15581
15582
15583
15584
15585
15586   fi # test -n "$compiler"
15587
15588   CC=$lt_save_CC
15589   LDCXX=$LD
15590   LD=$lt_save_LD
15591   GCC=$lt_save_GCC
15592   with_gnu_ld=$lt_save_with_gnu_ld
15593   lt_cv_path_LDCXX=$lt_cv_path_LD
15594   lt_cv_path_LD=$lt_save_path_LD
15595   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15596   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15597 fi # test "$_lt_caught_CXX_error" != yes
15598
15599 ac_ext=c
15600 ac_cpp='$CPP $CPPFLAGS'
15601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15604
15605
15606 # Find a good install program.  We prefer a C program (faster),
15607 # so one script is as good as another.  But avoid the broken or
15608 # incompatible versions:
15609 # SysV /etc/install, /usr/sbin/install
15610 # SunOS /usr/etc/install
15611 # IRIX /sbin/install
15612 # AIX /bin/install
15613 # AmigaOS /C/install, which installs bootblocks on floppy discs
15614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15617 # OS/2's system install, which has a completely different semantic
15618 # ./install, which can be erroneously created by make from ./install.sh.
15619 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15620 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
15621 if test -z "$INSTALL"; then
15622 if test "${ac_cv_path_install+set}" = set; then
15623   echo $ECHO_N "(cached) $ECHO_C" >&6
15624 else
15625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15626 for as_dir in $PATH
15627 do
15628   IFS=$as_save_IFS
15629   test -z "$as_dir" && as_dir=.
15630   # Account for people who put trailing slashes in PATH elements.
15631 case $as_dir/ in
15632   ./ | .// | /cC/* | \
15633   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15634   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15635   /usr/ucb/* ) ;;
15636   *)
15637     # OSF1 and SCO ODT 3.0 have their own names for install.
15638     # Don't use installbsd from OSF since it installs stuff as root
15639     # by default.
15640     for ac_prog in ginstall scoinst install; do
15641       for ac_exec_ext in '' $ac_executable_extensions; do
15642         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15643           if test $ac_prog = install &&
15644             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15645             # AIX install.  It has an incompatible calling convention.
15646             :
15647           elif test $ac_prog = install &&
15648             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15649             # program-specific install script used by HP pwplus--don't use.
15650             :
15651           else
15652             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15653             break 3
15654           fi
15655         fi
15656       done
15657     done
15658     ;;
15659 esac
15660 done
15661 IFS=$as_save_IFS
15662
15663
15664 fi
15665   if test "${ac_cv_path_install+set}" = set; then
15666     INSTALL=$ac_cv_path_install
15667   else
15668     # As a last resort, use the slow shell script.  Don't cache a
15669     # value for INSTALL within a source directory, because that will
15670     # break other packages using the cache if that directory is
15671     # removed, or if the value is a relative name.
15672     INSTALL=$ac_install_sh
15673   fi
15674 fi
15675 { echo "$as_me:$LINENO: result: $INSTALL" >&5
15676 echo "${ECHO_T}$INSTALL" >&6; }
15677
15678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15679 # It thinks the first close brace ends the variable substitution.
15680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15681
15682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15683
15684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15685
15686 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15687 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
15688 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15689 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
15690   echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692   cat >conftest.make <<\_ACEOF
15693 SHELL = /bin/sh
15694 all:
15695         @echo '@@@%%%=$(MAKE)=@@@%%%'
15696 _ACEOF
15697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15699   *@@@%%%=?*=@@@%%%*)
15700     eval ac_cv_prog_make_${ac_make}_set=yes;;
15701   *)
15702     eval ac_cv_prog_make_${ac_make}_set=no;;
15703 esac
15704 rm -f conftest.make
15705 fi
15706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15707   { echo "$as_me:$LINENO: result: yes" >&5
15708 echo "${ECHO_T}yes" >&6; }
15709   SET_MAKE=
15710 else
15711   { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15713   SET_MAKE="MAKE=${MAKE-make}"
15714 fi
15715
15716 if test -n "$ac_tool_prefix"; then
15717   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15718 set dummy ${ac_tool_prefix}windres; ac_word=$2
15719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15721 if test "${ac_cv_prog_WINDRES+set}" = set; then
15722   echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724   if test -n "$WINDRES"; then
15725   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15726 else
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15729 do
15730   IFS=$as_save_IFS
15731   test -z "$as_dir" && as_dir=.
15732   for ac_exec_ext in '' $ac_executable_extensions; do
15733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15734     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15736     break 2
15737   fi
15738 done
15739 done
15740 IFS=$as_save_IFS
15741
15742 fi
15743 fi
15744 WINDRES=$ac_cv_prog_WINDRES
15745 if test -n "$WINDRES"; then
15746   { echo "$as_me:$LINENO: result: $WINDRES" >&5
15747 echo "${ECHO_T}$WINDRES" >&6; }
15748 else
15749   { echo "$as_me:$LINENO: result: no" >&5
15750 echo "${ECHO_T}no" >&6; }
15751 fi
15752
15753
15754 fi
15755 if test -z "$ac_cv_prog_WINDRES"; then
15756   ac_ct_WINDRES=$WINDRES
15757   # Extract the first word of "windres", so it can be a program name with args.
15758 set dummy windres; ac_word=$2
15759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15761 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15762   echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764   if test -n "$ac_ct_WINDRES"; then
15765   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15766 else
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15769 do
15770   IFS=$as_save_IFS
15771   test -z "$as_dir" && as_dir=.
15772   for ac_exec_ext in '' $ac_executable_extensions; do
15773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15774     ac_cv_prog_ac_ct_WINDRES="windres"
15775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15776     break 2
15777   fi
15778 done
15779 done
15780 IFS=$as_save_IFS
15781
15782 fi
15783 fi
15784 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15785 if test -n "$ac_ct_WINDRES"; then
15786   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15787 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
15788 else
15789   { echo "$as_me:$LINENO: result: no" >&5
15790 echo "${ECHO_T}no" >&6; }
15791 fi
15792
15793   if test "x$ac_ct_WINDRES" = x; then
15794     WINDRES=":"
15795   else
15796     case $cross_compiling:$ac_tool_warned in
15797 yes:)
15798 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15799 whose name does not start with the host triplet.  If you think this
15800 configuration is useful to you, please write to autoconf@gnu.org." >&5
15801 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15802 whose name does not start with the host triplet.  If you think this
15803 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15804 ac_tool_warned=yes ;;
15805 esac
15806     WINDRES=$ac_ct_WINDRES
15807   fi
15808 else
15809   WINDRES="$ac_cv_prog_WINDRES"
15810 fi
15811
15812
15813 INCLUDE="-I$srcdir/include"
15814 if test x$srcdir != x.; then
15815     # Remove SDL_config.h from the source directory, since it's the
15816     # default one, and we want to include the one that we generate.
15817     if test -f $srcdir/include/SDL_config.h; then
15818         rm $srcdir/include/SDL_config.h
15819     fi
15820     INCLUDE="-Iinclude $INCLUDE"
15821 fi
15822 case "$host" in
15823     *-*-cygwin*)
15824         # We build SDL on cygwin without the UNIX emulation layer
15825         BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
15826         BASE_LDFLAGS="-mno-cygwin"
15827         ;;
15828     *)
15829         BASE_CFLAGS="-D_GNU_SOURCE=1"
15830         BASE_LDFLAGS=""
15831         ;;
15832 esac
15833 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
15834 EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15835 BUILD_LDFLAGS="$LDFLAGS"
15836 EXTRA_LDFLAGS="$BASE_LDFLAGS"
15837 ## These are common directories to find software packages
15838 #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15839 #    if test -d $path/include; then
15840 #        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15841 #    fi
15842 #    if test -d $path/lib; then
15843 #        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15844 #    fi
15845 #done
15846 SDL_CFLAGS="$BASE_CFLAGS"
15847 SDL_LIBS="-lSDL $BASE_LDFLAGS"
15848 CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15849 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15850 LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15851
15852 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15853
15854 find_lib()
15855 {
15856     gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15857     gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15858     env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15859     if test "$cross_compiling" = yes; then
15860         host_lib_path=""
15861     else
15862         host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15863     fi
15864     for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
15865         lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
15866         if test x$lib != x; then
15867             echo $lib
15868             return
15869         fi
15870     done
15871 }
15872
15873 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15875 if test "${ac_cv_c_const+set}" = set; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878   cat >conftest.$ac_ext <<_ACEOF
15879 /* confdefs.h.  */
15880 _ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h.  */
15884
15885 int
15886 main ()
15887 {
15888 /* FIXME: Include the comments suggested by Paul. */
15889 #ifndef __cplusplus
15890   /* Ultrix mips cc rejects this.  */
15891   typedef int charset[2];
15892   const charset cs;
15893   /* SunOS 4.1.1 cc rejects this.  */
15894   char const *const *pcpcc;
15895   char **ppc;
15896   /* NEC SVR4.0.2 mips cc rejects this.  */
15897   struct point {int x, y;};
15898   static struct point const zero = {0,0};
15899   /* AIX XL C 1.02.0.0 rejects this.
15900      It does not let you subtract one const X* pointer from another in
15901      an arm of an if-expression whose if-part is not a constant
15902      expression */
15903   const char *g = "string";
15904   pcpcc = &g + (g ? g-g : 0);
15905   /* HPUX 7.0 cc rejects these. */
15906   ++pcpcc;
15907   ppc = (char**) pcpcc;
15908   pcpcc = (char const *const *) ppc;
15909   { /* SCO 3.2v4 cc rejects this.  */
15910     char *t;
15911     char const *s = 0 ? (char *) 0 : (char const *) 0;
15912
15913     *t++ = 0;
15914     if (s) return 0;
15915   }
15916   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15917     int x[] = {25, 17};
15918     const int *foo = &x[0];
15919     ++foo;
15920   }
15921   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15922     typedef const int *iptr;
15923     iptr p = 0;
15924     ++p;
15925   }
15926   { /* AIX XL C 1.02.0.0 rejects this saying
15927        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15928     struct s { int j; const int *ap[3]; };
15929     struct s *b; b->j = 5;
15930   }
15931   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15932     const int foo = 10;
15933     if (!foo) return 0;
15934   }
15935   return !cs[0] && !zero.x;
15936 #endif
15937
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949   (eval "$ac_compile") 2>conftest.er1
15950   ac_status=$?
15951   grep -v '^ *+' conftest.er1 >conftest.err
15952   rm -f conftest.er1
15953   cat conftest.err >&5
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } && {
15956          test -z "$ac_c_werror_flag" ||
15957          test ! -s conftest.err
15958        } && test -s conftest.$ac_objext; then
15959   ac_cv_c_const=yes
15960 else
15961   echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964         ac_cv_c_const=no
15965 fi
15966
15967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15968 fi
15969 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15970 echo "${ECHO_T}$ac_cv_c_const" >&6; }
15971 if test $ac_cv_c_const = no; then
15972
15973 cat >>confdefs.h <<\_ACEOF
15974 #define const
15975 _ACEOF
15976
15977 fi
15978
15979 { echo "$as_me:$LINENO: checking for inline" >&5
15980 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
15981 if test "${ac_cv_c_inline+set}" = set; then
15982   echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984   ac_cv_c_inline=no
15985 for ac_kw in inline __inline__ __inline; do
15986   cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992 #ifndef __cplusplus
15993 typedef int foo_t;
15994 static $ac_kw foo_t static_foo () {return 0; }
15995 $ac_kw foo_t foo () {return 0; }
15996 #endif
15997
15998 _ACEOF
15999 rm -f conftest.$ac_objext
16000 if { (ac_try="$ac_compile"
16001 case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_compile") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } && {
16013          test -z "$ac_c_werror_flag" ||
16014          test ! -s conftest.err
16015        } && test -s conftest.$ac_objext; then
16016   ac_cv_c_inline=$ac_kw
16017 else
16018   echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021
16022 fi
16023
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025   test "$ac_cv_c_inline" != no && break
16026 done
16027
16028 fi
16029 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16030 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16031
16032
16033 case $ac_cv_c_inline in
16034   inline | yes) ;;
16035   *)
16036     case $ac_cv_c_inline in
16037       no) ac_val=;;
16038       *) ac_val=$ac_cv_c_inline;;
16039     esac
16040     cat >>confdefs.h <<_ACEOF
16041 #ifndef __cplusplus
16042 #define inline $ac_val
16043 #endif
16044 _ACEOF
16045     ;;
16046 esac
16047
16048 { echo "$as_me:$LINENO: checking for working volatile" >&5
16049 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
16050 if test "${ac_cv_c_volatile+set}" = set; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 else
16053   cat >conftest.$ac_ext <<_ACEOF
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059
16060 int
16061 main ()
16062 {
16063
16064 volatile int x;
16065 int * volatile y = (int *) 0;
16066 return !x && !y;
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (ac_try="$ac_compile"
16073 case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_compile") 2>conftest.er1
16079   ac_status=$?
16080   grep -v '^ *+' conftest.er1 >conftest.err
16081   rm -f conftest.er1
16082   cat conftest.err >&5
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } && {
16085          test -z "$ac_c_werror_flag" ||
16086          test ! -s conftest.err
16087        } && test -s conftest.$ac_objext; then
16088   ac_cv_c_volatile=yes
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093         ac_cv_c_volatile=no
16094 fi
16095
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16097 fi
16098 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
16099 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
16100 if test $ac_cv_c_volatile = no; then
16101
16102 cat >>confdefs.h <<\_ACEOF
16103 #define volatile
16104 _ACEOF
16105
16106 fi
16107
16108
16109 # Check whether --enable-libc was given.
16110 if test "${enable_libc+set}" = set; then
16111   enableval=$enable_libc;
16112 else
16113   enable_libc=yes
16114 fi
16115
16116 if test x$enable_libc = xyes; then
16117     cat >>confdefs.h <<\_ACEOF
16118 #define HAVE_LIBC 1
16119 _ACEOF
16120
16121
16122         { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
16124 if test "${ac_cv_header_stdc+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   cat >conftest.$ac_ext <<_ACEOF
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133 #include <stdlib.h>
16134 #include <stdarg.h>
16135 #include <string.h>
16136 #include <float.h>
16137
16138 int
16139 main ()
16140 {
16141
16142   ;
16143   return 0;
16144 }
16145 _ACEOF
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150   *) ac_try_echo=$ac_try;;
16151 esac
16152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153   (eval "$ac_compile") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } && {
16160          test -z "$ac_c_werror_flag" ||
16161          test ! -s conftest.err
16162        } && test -s conftest.$ac_objext; then
16163   ac_cv_header_stdc=yes
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168         ac_cv_header_stdc=no
16169 fi
16170
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172
16173 if test $ac_cv_header_stdc = yes; then
16174   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16175   cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 #include <string.h>
16182
16183 _ACEOF
16184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16185   $EGREP "memchr" >/dev/null 2>&1; then
16186   :
16187 else
16188   ac_cv_header_stdc=no
16189 fi
16190 rm -f -r conftest*
16191
16192 fi
16193
16194 if test $ac_cv_header_stdc = yes; then
16195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16196   cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202 #include <stdlib.h>
16203
16204 _ACEOF
16205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16206   $EGREP "free" >/dev/null 2>&1; then
16207   :
16208 else
16209   ac_cv_header_stdc=no
16210 fi
16211 rm -f -r conftest*
16212
16213 fi
16214
16215 if test $ac_cv_header_stdc = yes; then
16216   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16217   if test "$cross_compiling" = yes; then
16218   :
16219 else
16220   cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226 #include <ctype.h>
16227 #include <stdlib.h>
16228 #if ((' ' & 0x0FF) == 0x020)
16229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16231 #else
16232 # define ISLOWER(c) \
16233                    (('a' <= (c) && (c) <= 'i') \
16234                      || ('j' <= (c) && (c) <= 'r') \
16235                      || ('s' <= (c) && (c) <= 'z'))
16236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16237 #endif
16238
16239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16240 int
16241 main ()
16242 {
16243   int i;
16244   for (i = 0; i < 256; i++)
16245     if (XOR (islower (i), ISLOWER (i))
16246         || toupper (i) != TOUPPER (i))
16247       return 2;
16248   return 0;
16249 }
16250 _ACEOF
16251 rm -f conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255   *) ac_try_echo=$ac_try;;
16256 esac
16257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258   (eval "$ac_link") 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16262   { (case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_try") 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   :
16272 else
16273   echo "$as_me: program exited with status $ac_status" >&5
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16276
16277 ( exit $ac_status )
16278 ac_cv_header_stdc=no
16279 fi
16280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16281 fi
16282
16283
16284 fi
16285 fi
16286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
16288 if test $ac_cv_header_stdc = yes; then
16289
16290 cat >>confdefs.h <<\_ACEOF
16291 #define STDC_HEADERS 1
16292 _ACEOF
16293
16294 fi
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 for ac_header in sys/types.h stdio.h stdlib.h stddef.h stdarg.h malloc.h memory.h string.h strings.h inttypes.h stdint.h ctype.h math.h iconv.h signal.h
16312 do
16313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 fi
16320 ac_res=`eval echo '${'$as_ac_Header'}'`
16321                { echo "$as_me:$LINENO: result: $ac_res" >&5
16322 echo "${ECHO_T}$ac_res" >&6; }
16323 else
16324   # Is the header compilable?
16325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h.  */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h.  */
16333 $ac_includes_default
16334 #include <$ac_header>
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_compile") 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } && {
16350          test -z "$ac_c_werror_flag" ||
16351          test ! -s conftest.err
16352        } && test -s conftest.$ac_objext; then
16353   ac_header_compiler=yes
16354 else
16355   echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358         ac_header_compiler=no
16359 fi
16360
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16364
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374 #include <$ac_header>
16375 _ACEOF
16376 if { (ac_try="$ac_cpp conftest.$ac_ext"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } >/dev/null && {
16389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16390          test ! -s conftest.err
16391        }; then
16392   ac_header_preproc=yes
16393 else
16394   echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397   ac_header_preproc=no
16398 fi
16399
16400 rm -f conftest.err conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16402 echo "${ECHO_T}$ac_header_preproc" >&6; }
16403
16404 # So?  What about this header?
16405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16406   yes:no: )
16407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16411     ac_header_preproc=yes
16412     ;;
16413   no:yes:* )
16414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16426
16427     ;;
16428 esac
16429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   eval "$as_ac_Header=\$ac_header_preproc"
16435 fi
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437                { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16439
16440 fi
16441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16442   cat >>confdefs.h <<_ACEOF
16443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16444 _ACEOF
16445
16446 fi
16447
16448 done
16449
16450
16451         { echo "$as_me:$LINENO: checking for size_t" >&5
16452 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16453 if test "${ac_cv_type_size_t+set}" = set; then
16454   echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456   cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h.  */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h.  */
16462 $ac_includes_default
16463 typedef size_t ac__type_new_;
16464 int
16465 main ()
16466 {
16467 if ((ac__type_new_ *) 0)
16468   return 0;
16469 if (sizeof (ac__type_new_))
16470   return 0;
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext
16476 if { (ac_try="$ac_compile"
16477 case "(($ac_try" in
16478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479   *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482   (eval "$ac_compile") 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } && {
16489          test -z "$ac_c_werror_flag" ||
16490          test ! -s conftest.err
16491        } && test -s conftest.$ac_objext; then
16492   ac_cv_type_size_t=yes
16493 else
16494   echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497         ac_cv_type_size_t=no
16498 fi
16499
16500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16501 fi
16502 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16503 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16504 if test $ac_cv_type_size_t = yes; then
16505   :
16506 else
16507
16508 cat >>confdefs.h <<_ACEOF
16509 #define size_t unsigned int
16510 _ACEOF
16511
16512 fi
16513
16514     if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
16515         { echo "$as_me:$LINENO: checking for int64_t" >&5
16516 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16517 if test "${ac_cv_type_int64_t+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526 $ac_includes_default
16527 typedef int64_t ac__type_new_;
16528 int
16529 main ()
16530 {
16531 if ((ac__type_new_ *) 0)
16532   return 0;
16533 if (sizeof (ac__type_new_))
16534   return 0;
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext
16540 if { (ac_try="$ac_compile"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_compile") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && {
16553          test -z "$ac_c_werror_flag" ||
16554          test ! -s conftest.err
16555        } && test -s conftest.$ac_objext; then
16556   ac_cv_type_int64_t=yes
16557 else
16558   echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561         ac_cv_type_int64_t=no
16562 fi
16563
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 fi
16566 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16567 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16568
16569         if test x$ac_cv_type_int64_t = xyes; then
16570             cat >>confdefs.h <<\_ACEOF
16571 #define SDL_HAS_64BIT_TYPE 1
16572 _ACEOF
16573
16574         fi
16575         have_inttypes=yes
16576     fi
16577
16578         case "$host" in
16579     *-*-cygwin* | *-*-mingw32*)
16580         ;;
16581     *)
16582         # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16583 # for constant arguments.  Useless!
16584 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
16585 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
16586 if test "${ac_cv_working_alloca_h+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595 #include <alloca.h>
16596 int
16597 main ()
16598 {
16599 char *p = (char *) alloca (2 * sizeof (int));
16600                           if (p) return 0;
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (ac_try="$ac_link"
16607 case "(($ac_try" in
16608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609   *) ac_try_echo=$ac_try;;
16610 esac
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612   (eval "$ac_link") 2>conftest.er1
16613   ac_status=$?
16614   grep -v '^ *+' conftest.er1 >conftest.err
16615   rm -f conftest.er1
16616   cat conftest.err >&5
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } && {
16619          test -z "$ac_c_werror_flag" ||
16620          test ! -s conftest.err
16621        } && test -s conftest$ac_exeext &&
16622        $as_test_x conftest$ac_exeext; then
16623   ac_cv_working_alloca_h=yes
16624 else
16625   echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628         ac_cv_working_alloca_h=no
16629 fi
16630
16631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16632       conftest$ac_exeext conftest.$ac_ext
16633 fi
16634 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16635 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
16636 if test $ac_cv_working_alloca_h = yes; then
16637
16638 cat >>confdefs.h <<\_ACEOF
16639 #define HAVE_ALLOCA_H 1
16640 _ACEOF
16641
16642 fi
16643
16644 { echo "$as_me:$LINENO: checking for alloca" >&5
16645 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
16646 if test "${ac_cv_func_alloca_works+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 #ifdef __GNUC__
16656 # define alloca __builtin_alloca
16657 #else
16658 # ifdef _MSC_VER
16659 #  include <malloc.h>
16660 #  define alloca _alloca
16661 # else
16662 #  ifdef HAVE_ALLOCA_H
16663 #   include <alloca.h>
16664 #  else
16665 #   ifdef _AIX
16666  #pragma alloca
16667 #   else
16668 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16669 char *alloca ();
16670 #    endif
16671 #   endif
16672 #  endif
16673 # endif
16674 #endif
16675
16676 int
16677 main ()
16678 {
16679 char *p = (char *) alloca (1);
16680                                     if (p) return 0;
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_link") 2>conftest.er1
16693   ac_status=$?
16694   grep -v '^ *+' conftest.er1 >conftest.err
16695   rm -f conftest.er1
16696   cat conftest.err >&5
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } && {
16699          test -z "$ac_c_werror_flag" ||
16700          test ! -s conftest.err
16701        } && test -s conftest$ac_exeext &&
16702        $as_test_x conftest$ac_exeext; then
16703   ac_cv_func_alloca_works=yes
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708         ac_cv_func_alloca_works=no
16709 fi
16710
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712       conftest$ac_exeext conftest.$ac_ext
16713 fi
16714 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16715 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
16716
16717 if test $ac_cv_func_alloca_works = yes; then
16718
16719 cat >>confdefs.h <<\_ACEOF
16720 #define HAVE_ALLOCA 1
16721 _ACEOF
16722
16723 else
16724   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16725 # that cause trouble.  Some versions do not even contain alloca or
16726 # contain a buggy version.  If you still want to use their alloca,
16727 # use ar to extract alloca.o from them instead of compiling alloca.c.
16728
16729 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16730
16731 cat >>confdefs.h <<\_ACEOF
16732 #define C_ALLOCA 1
16733 _ACEOF
16734
16735
16736 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16737 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
16738 if test "${ac_cv_os_cray+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   cat >conftest.$ac_ext <<_ACEOF
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747 #if defined CRAY && ! defined CRAY2
16748 webecray
16749 #else
16750 wenotbecray
16751 #endif
16752
16753 _ACEOF
16754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16755   $EGREP "webecray" >/dev/null 2>&1; then
16756   ac_cv_os_cray=yes
16757 else
16758   ac_cv_os_cray=no
16759 fi
16760 rm -f -r conftest*
16761
16762 fi
16763 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16764 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16765 if test $ac_cv_os_cray = yes; then
16766   for ac_func in _getb67 GETB67 getb67; do
16767     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16768 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16771   echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16781 #define $ac_func innocuous_$ac_func
16782
16783 /* System header to define __stub macros and hopefully few prototypes,
16784     which can conflict with char $ac_func (); below.
16785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16786     <limits.h> exists even on freestanding compilers.  */
16787
16788 #ifdef __STDC__
16789 # include <limits.h>
16790 #else
16791 # include <assert.h>
16792 #endif
16793
16794 #undef $ac_func
16795
16796 /* Override any GCC internal prototype to avoid an error.
16797    Use char because int might match the return type of a GCC
16798    builtin and then its argument prototype would still apply.  */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 char $ac_func ();
16803 /* The GNU C library defines this for functions which it implements
16804     to always fail with ENOSYS.  Some functions are actually named
16805     something starting with __ and the normal name is an alias.  */
16806 #if defined __stub_$ac_func || defined __stub___$ac_func
16807 choke me
16808 #endif
16809
16810 int
16811 main ()
16812 {
16813 return $ac_func ();
16814   ;
16815   return 0;
16816 }
16817 _ACEOF
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (ac_try="$ac_link"
16820 case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_link") 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } && {
16832          test -z "$ac_c_werror_flag" ||
16833          test ! -s conftest.err
16834        } && test -s conftest$ac_exeext &&
16835        $as_test_x conftest$ac_exeext; then
16836   eval "$as_ac_var=yes"
16837 else
16838   echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841         eval "$as_ac_var=no"
16842 fi
16843
16844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845       conftest$ac_exeext conftest.$ac_ext
16846 fi
16847 ac_res=`eval echo '${'$as_ac_var'}'`
16848                { echo "$as_me:$LINENO: result: $ac_res" >&5
16849 echo "${ECHO_T}$ac_res" >&6; }
16850 if test `eval echo '${'$as_ac_var'}'` = yes; then
16851
16852 cat >>confdefs.h <<_ACEOF
16853 #define CRAY_STACKSEG_END $ac_func
16854 _ACEOF
16855
16856     break
16857 fi
16858
16859   done
16860 fi
16861
16862 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16863 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16864 if test "${ac_cv_c_stack_direction+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   if test "$cross_compiling" = yes; then
16868   ac_cv_c_stack_direction=0
16869 else
16870   cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 $ac_includes_default
16877 int
16878 find_stack_direction ()
16879 {
16880   static char *addr = 0;
16881   auto char dummy;
16882   if (addr == 0)
16883     {
16884       addr = &dummy;
16885       return find_stack_direction ();
16886     }
16887   else
16888     return (&dummy > addr) ? 1 : -1;
16889 }
16890
16891 int
16892 main ()
16893 {
16894   return find_stack_direction () < 0;
16895 }
16896 _ACEOF
16897 rm -f conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901   *) ac_try_echo=$ac_try;;
16902 esac
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904   (eval "$ac_link") 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16908   { (case "(($ac_try" in
16909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910   *) ac_try_echo=$ac_try;;
16911 esac
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913   (eval "$ac_try") 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); }; }; then
16917   ac_cv_c_stack_direction=1
16918 else
16919   echo "$as_me: program exited with status $ac_status" >&5
16920 echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16922
16923 ( exit $ac_status )
16924 ac_cv_c_stack_direction=-1
16925 fi
16926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16927 fi
16928
16929
16930 fi
16931 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16932 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16933
16934 cat >>confdefs.h <<_ACEOF
16935 #define STACK_DIRECTION $ac_cv_c_stack_direction
16936 _ACEOF
16937
16938
16939 fi
16940
16941         ;;
16942     esac
16943
16944     { echo "$as_me:$LINENO: checking for working memcmp" >&5
16945 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
16946 if test "${ac_cv_func_memcmp_working+set}" = set; then
16947   echo $ECHO_N "(cached) $ECHO_C" >&6
16948 else
16949   if test "$cross_compiling" = yes; then
16950   ac_cv_func_memcmp_working=no
16951 else
16952   cat >conftest.$ac_ext <<_ACEOF
16953 /* confdefs.h.  */
16954 _ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h.  */
16958 $ac_includes_default
16959 int
16960 main ()
16961 {
16962
16963   /* Some versions of memcmp are not 8-bit clean.  */
16964   char c0 = '\100', c1 = '\200', c2 = '\201';
16965   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16966     return 1;
16967
16968   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16969      or more and with at least one buffer not starting on a 4-byte boundary.
16970      William Lewis provided this test program.   */
16971   {
16972     char foo[21];
16973     char bar[21];
16974     int i;
16975     for (i = 0; i < 4; i++)
16976       {
16977         char *a = foo + i;
16978         char *b = bar + i;
16979         strcpy (a, "--------01111111");
16980         strcpy (b, "--------10000000");
16981         if (memcmp (a, b, 16) >= 0)
16982           return 1;
16983       }
16984     return 0;
16985   }
16986
16987   ;
16988   return 0;
16989 }
16990 _ACEOF
16991 rm -f conftest$ac_exeext
16992 if { (ac_try="$ac_link"
16993 case "(($ac_try" in
16994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16995   *) ac_try_echo=$ac_try;;
16996 esac
16997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16998   (eval "$ac_link") 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011   ac_cv_func_memcmp_working=yes
17012 else
17013   echo "$as_me: program exited with status $ac_status" >&5
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17016
17017 ( exit $ac_status )
17018 ac_cv_func_memcmp_working=no
17019 fi
17020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17021 fi
17022
17023
17024 fi
17025 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17026 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
17027 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17028   *" memcmp.$ac_objext "* ) ;;
17029   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17030  ;;
17031 esac
17032
17033
17034     if test x$ac_cv_func_memcmp_working = xyes; then
17035         cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_MEMCMP 1
17037 _ACEOF
17038
17039     fi
17040     { echo "$as_me:$LINENO: checking for working strtod" >&5
17041 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
17042 if test "${ac_cv_func_strtod+set}" = set; then
17043   echo $ECHO_N "(cached) $ECHO_C" >&6
17044 else
17045   if test "$cross_compiling" = yes; then
17046   ac_cv_func_strtod=no
17047 else
17048   cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054
17055 $ac_includes_default
17056 #ifndef strtod
17057 double strtod ();
17058 #endif
17059 int
17060 main()
17061 {
17062   {
17063     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
17064     char *string = " +69";
17065     char *term;
17066     double value;
17067     value = strtod (string, &term);
17068     if (value != 69 || term != (string + 4))
17069       return 1;
17070   }
17071
17072   {
17073     /* Under Solaris 2.4, strtod returns the wrong value for the
17074        terminating character under some conditions.  */
17075     char *string = "NaN";
17076     char *term;
17077     strtod (string, &term);
17078     if (term != string && *(term - 1) == 0)
17079       return 1;
17080   }
17081   return 0;
17082 }
17083
17084 _ACEOF
17085 rm -f conftest$ac_exeext
17086 if { (ac_try="$ac_link"
17087 case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_link") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17096   { (case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_try") 2>&5
17102   ac_status=$?
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105   ac_cv_func_strtod=yes
17106 else
17107   echo "$as_me: program exited with status $ac_status" >&5
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111 ( exit $ac_status )
17112 ac_cv_func_strtod=no
17113 fi
17114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17115 fi
17116
17117
17118 fi
17119 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
17120 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
17121 if test $ac_cv_func_strtod = no; then
17122   case " $LIBOBJS " in
17123   *" strtod.$ac_objext "* ) ;;
17124   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17125  ;;
17126 esac
17127
17128 { echo "$as_me:$LINENO: checking for pow" >&5
17129 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
17130 if test "${ac_cv_func_pow+set}" = set; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133   cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
17140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17141 #define pow innocuous_pow
17142
17143 /* System header to define __stub macros and hopefully few prototypes,
17144     which can conflict with char pow (); below.
17145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146     <limits.h> exists even on freestanding compilers.  */
17147
17148 #ifdef __STDC__
17149 # include <limits.h>
17150 #else
17151 # include <assert.h>
17152 #endif
17153
17154 #undef pow
17155
17156 /* Override any GCC internal prototype to avoid an error.
17157    Use char because int might match the return type of a GCC
17158    builtin and then its argument prototype would still apply.  */
17159 #ifdef __cplusplus
17160 extern "C"
17161 #endif
17162 char pow ();
17163 /* The GNU C library defines this for functions which it implements
17164     to always fail with ENOSYS.  Some functions are actually named
17165     something starting with __ and the normal name is an alias.  */
17166 #if defined __stub_pow || defined __stub___pow
17167 choke me
17168 #endif
17169
17170 int
17171 main ()
17172 {
17173 return pow ();
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_link") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest$ac_exeext &&
17195        $as_test_x conftest$ac_exeext; then
17196   ac_cv_func_pow=yes
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201         ac_cv_func_pow=no
17202 fi
17203
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205       conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
17208 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
17209
17210 if test $ac_cv_func_pow = no; then
17211   { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17212 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17213 if test "${ac_cv_lib_m_pow+set}" = set; then
17214   echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216   ac_check_lib_save_LIBS=$LIBS
17217 LIBS="-lm  $LIBS"
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224
17225 /* Override any GCC internal prototype to avoid an error.
17226    Use char because int might match the return type of a GCC
17227    builtin and then its argument prototype would still apply.  */
17228 #ifdef __cplusplus
17229 extern "C"
17230 #endif
17231 char pow ();
17232 int
17233 main ()
17234 {
17235 return pow ();
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (ac_try="$ac_link"
17242 case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_link") 2>conftest.er1
17248   ac_status=$?
17249   grep -v '^ *+' conftest.er1 >conftest.err
17250   rm -f conftest.er1
17251   cat conftest.err >&5
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); } && {
17254          test -z "$ac_c_werror_flag" ||
17255          test ! -s conftest.err
17256        } && test -s conftest$ac_exeext &&
17257        $as_test_x conftest$ac_exeext; then
17258   ac_cv_lib_m_pow=yes
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263         ac_cv_lib_m_pow=no
17264 fi
17265
17266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17267       conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17271 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17272 if test $ac_cv_lib_m_pow = yes; then
17273   POW_LIB=-lm
17274 else
17275   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
17276 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17277 fi
17278
17279 fi
17280
17281 fi
17282
17283     if test x$ac_cv_func_strtod = xyes; then
17284         cat >>confdefs.h <<\_ACEOF
17285 #define HAVE_STRTOD 1
17286 _ACEOF
17287
17288     fi
17289     { echo "$as_me:$LINENO: checking for mprotect" >&5
17290 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
17291 if test "${ac_cv_func_mprotect+set}" = set; then
17292   echo $ECHO_N "(cached) $ECHO_C" >&6
17293 else
17294   cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
17301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17302 #define mprotect innocuous_mprotect
17303
17304 /* System header to define __stub macros and hopefully few prototypes,
17305     which can conflict with char mprotect (); below.
17306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17307     <limits.h> exists even on freestanding compilers.  */
17308
17309 #ifdef __STDC__
17310 # include <limits.h>
17311 #else
17312 # include <assert.h>
17313 #endif
17314
17315 #undef mprotect
17316
17317 /* Override any GCC internal prototype to avoid an error.
17318    Use char because int might match the return type of a GCC
17319    builtin and then its argument prototype would still apply.  */
17320 #ifdef __cplusplus
17321 extern "C"
17322 #endif
17323 char mprotect ();
17324 /* The GNU C library defines this for functions which it implements
17325     to always fail with ENOSYS.  Some functions are actually named
17326     something starting with __ and the normal name is an alias.  */
17327 #if defined __stub_mprotect || defined __stub___mprotect
17328 choke me
17329 #endif
17330
17331 int
17332 main ()
17333 {
17334 return mprotect ();
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (ac_try="$ac_link"
17341 case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_link") 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } && {
17353          test -z "$ac_c_werror_flag" ||
17354          test ! -s conftest.err
17355        } && test -s conftest$ac_exeext &&
17356        $as_test_x conftest$ac_exeext; then
17357   ac_cv_func_mprotect=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362         ac_cv_func_mprotect=no
17363 fi
17364
17365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17366       conftest$ac_exeext conftest.$ac_ext
17367 fi
17368 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
17369 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
17370 if test $ac_cv_func_mprotect = yes; then
17371   cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377
17378           #include <sys/types.h>
17379           #include <sys/mman.h>
17380
17381 int
17382 main ()
17383 {
17384
17385
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394   *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397   (eval "$ac_compile") 2>conftest.er1
17398   ac_status=$?
17399   grep -v '^ *+' conftest.er1 >conftest.err
17400   rm -f conftest.er1
17401   cat conftest.err >&5
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } && {
17404          test -z "$ac_c_werror_flag" ||
17405          test ! -s conftest.err
17406        } && test -s conftest.$ac_objext; then
17407
17408         cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_MPROTECT 1
17410 _ACEOF
17411
17412
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471 for ac_func in malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep
17472 do
17473 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17477   echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479   cat >conftest.$ac_ext <<_ACEOF
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17487 #define $ac_func innocuous_$ac_func
17488
17489 /* System header to define __stub macros and hopefully few prototypes,
17490     which can conflict with char $ac_func (); below.
17491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492     <limits.h> exists even on freestanding compilers.  */
17493
17494 #ifdef __STDC__
17495 # include <limits.h>
17496 #else
17497 # include <assert.h>
17498 #endif
17499
17500 #undef $ac_func
17501
17502 /* Override any GCC internal prototype to avoid an error.
17503    Use char because int might match the return type of a GCC
17504    builtin and then its argument prototype would still apply.  */
17505 #ifdef __cplusplus
17506 extern "C"
17507 #endif
17508 char $ac_func ();
17509 /* The GNU C library defines this for functions which it implements
17510     to always fail with ENOSYS.  Some functions are actually named
17511     something starting with __ and the normal name is an alias.  */
17512 #if defined __stub_$ac_func || defined __stub___$ac_func
17513 choke me
17514 #endif
17515
17516 int
17517 main ()
17518 {
17519 return $ac_func ();
17520   ;
17521   return 0;
17522 }
17523 _ACEOF
17524 rm -f conftest.$ac_objext conftest$ac_exeext
17525 if { (ac_try="$ac_link"
17526 case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_link") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && {
17538          test -z "$ac_c_werror_flag" ||
17539          test ! -s conftest.err
17540        } && test -s conftest$ac_exeext &&
17541        $as_test_x conftest$ac_exeext; then
17542   eval "$as_ac_var=yes"
17543 else
17544   echo "$as_me: failed program was:" >&5
17545 sed 's/^/| /' conftest.$ac_ext >&5
17546
17547         eval "$as_ac_var=no"
17548 fi
17549
17550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17551       conftest$ac_exeext conftest.$ac_ext
17552 fi
17553 ac_res=`eval echo '${'$as_ac_var'}'`
17554                { echo "$as_me:$LINENO: result: $ac_res" >&5
17555 echo "${ECHO_T}$ac_res" >&6; }
17556 if test `eval echo '${'$as_ac_var'}'` = yes; then
17557   cat >>confdefs.h <<_ACEOF
17558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17559 _ACEOF
17560
17561 fi
17562 done
17563
17564
17565     { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
17566 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
17567 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
17568   echo $ECHO_N "(cached) $ECHO_C" >&6
17569 else
17570   ac_check_lib_save_LIBS=$LIBS
17571 LIBS="-liconv  $LIBS"
17572 cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578
17579 /* Override any GCC internal prototype to avoid an error.
17580    Use char because int might match the return type of a GCC
17581    builtin and then its argument prototype would still apply.  */
17582 #ifdef __cplusplus
17583 extern "C"
17584 #endif
17585 char libiconv_open ();
17586 int
17587 main ()
17588 {
17589 return libiconv_open ();
17590   ;
17591   return 0;
17592 }
17593 _ACEOF
17594 rm -f conftest.$ac_objext conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_link") 2>conftest.er1
17602   ac_status=$?
17603   grep -v '^ *+' conftest.er1 >conftest.err
17604   rm -f conftest.er1
17605   cat conftest.err >&5
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); } && {
17608          test -z "$ac_c_werror_flag" ||
17609          test ! -s conftest.err
17610        } && test -s conftest$ac_exeext &&
17611        $as_test_x conftest$ac_exeext; then
17612   ac_cv_lib_iconv_libiconv_open=yes
17613 else
17614   echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617         ac_cv_lib_iconv_libiconv_open=no
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17621       conftest$ac_exeext conftest.$ac_ext
17622 LIBS=$ac_check_lib_save_LIBS
17623 fi
17624 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
17625 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
17626 if test $ac_cv_lib_iconv_libiconv_open = yes; then
17627   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
17628 fi
17629
17630     { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17631 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17632 if test "${ac_cv_lib_m_pow+set}" = set; then
17633   echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635   ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-lm  $LIBS"
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645    Use char because int might match the return type of a GCC
17646    builtin and then its argument prototype would still apply.  */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char pow ();
17651 int
17652 main ()
17653 {
17654 return pow ();
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663   *) ac_try_echo=$ac_try;;
17664 esac
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666   (eval "$ac_link") 2>conftest.er1
17667   ac_status=$?
17668   grep -v '^ *+' conftest.er1 >conftest.err
17669   rm -f conftest.er1
17670   cat conftest.err >&5
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); } && {
17673          test -z "$ac_c_werror_flag" ||
17674          test ! -s conftest.err
17675        } && test -s conftest$ac_exeext &&
17676        $as_test_x conftest$ac_exeext; then
17677   ac_cv_lib_m_pow=yes
17678 else
17679   echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682         ac_cv_lib_m_pow=no
17683 fi
17684
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686       conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17688 fi
17689 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17690 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17691 if test $ac_cv_lib_m_pow = yes; then
17692   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
17693 fi
17694
17695
17696     { echo "$as_me:$LINENO: checking for struct sigaction.sa_sigaction" >&5
17697 echo $ECHO_N "checking for struct sigaction.sa_sigaction... $ECHO_C" >&6; }
17698 if test "${ac_cv_member_struct_sigaction_sa_sigaction+set}" = set; then
17699   echo $ECHO_N "(cached) $ECHO_C" >&6
17700 else
17701   cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707 #include <signal.h>
17708
17709 int
17710 main ()
17711 {
17712 static struct sigaction ac_aggr;
17713 if (ac_aggr.sa_sigaction)
17714 return 0;
17715   ;
17716   return 0;
17717 }
17718 _ACEOF
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726   (eval "$ac_compile") 2>conftest.er1
17727   ac_status=$?
17728   grep -v '^ *+' conftest.er1 >conftest.err
17729   rm -f conftest.er1
17730   cat conftest.err >&5
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } && {
17733          test -z "$ac_c_werror_flag" ||
17734          test ! -s conftest.err
17735        } && test -s conftest.$ac_objext; then
17736   ac_cv_member_struct_sigaction_sa_sigaction=yes
17737 else
17738   echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17740
17741         cat >conftest.$ac_ext <<_ACEOF
17742 /* confdefs.h.  */
17743 _ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h.  */
17747 #include <signal.h>
17748
17749 int
17750 main ()
17751 {
17752 static struct sigaction ac_aggr;
17753 if (sizeof ac_aggr.sa_sigaction)
17754 return 0;
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763   *) ac_try_echo=$ac_try;;
17764 esac
17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17766   (eval "$ac_compile") 2>conftest.er1
17767   ac_status=$?
17768   grep -v '^ *+' conftest.er1 >conftest.err
17769   rm -f conftest.er1
17770   cat conftest.err >&5
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); } && {
17773          test -z "$ac_c_werror_flag" ||
17774          test ! -s conftest.err
17775        } && test -s conftest.$ac_objext; then
17776   ac_cv_member_struct_sigaction_sa_sigaction=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781         ac_cv_member_struct_sigaction_sa_sigaction=no
17782 fi
17783
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 fi
17789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigaction_sa_sigaction" >&5
17790 echo "${ECHO_T}$ac_cv_member_struct_sigaction_sa_sigaction" >&6; }
17791 if test $ac_cv_member_struct_sigaction_sa_sigaction = yes; then
17792   cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_SA_SIGACTION 1
17794 _ACEOF
17795
17796 fi
17797
17798 fi
17799
17800 if test x$have_inttypes != xyes; then
17801     { echo "$as_me:$LINENO: checking for char" >&5
17802 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
17803 if test "${ac_cv_type_char+set}" = set; then
17804   echo $ECHO_N "(cached) $ECHO_C" >&6
17805 else
17806   cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h.  */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h.  */
17812 $ac_includes_default
17813 typedef char ac__type_new_;
17814 int
17815 main ()
17816 {
17817 if ((ac__type_new_ *) 0)
17818   return 0;
17819 if (sizeof (ac__type_new_))
17820   return 0;
17821   ;
17822   return 0;
17823 }
17824 _ACEOF
17825 rm -f conftest.$ac_objext
17826 if { (ac_try="$ac_compile"
17827 case "(($ac_try" in
17828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829   *) ac_try_echo=$ac_try;;
17830 esac
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_cv_type_char=yes
17843 else
17844   echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847         ac_cv_type_char=no
17848 fi
17849
17850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 fi
17852 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17853 echo "${ECHO_T}$ac_cv_type_char" >&6; }
17854
17855 # The cast to long int works around a bug in the HP C Compiler
17856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17858 # This bug is HP SR number 8606223364.
17859 { echo "$as_me:$LINENO: checking size of char" >&5
17860 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
17861 if test "${ac_cv_sizeof_char+set}" = set; then
17862   echo $ECHO_N "(cached) $ECHO_C" >&6
17863 else
17864   if test "$cross_compiling" = yes; then
17865   # Depending upon the size, compute the lo and hi bounds.
17866 cat >conftest.$ac_ext <<_ACEOF
17867 /* confdefs.h.  */
17868 _ACEOF
17869 cat confdefs.h >>conftest.$ac_ext
17870 cat >>conftest.$ac_ext <<_ACEOF
17871 /* end confdefs.h.  */
17872 $ac_includes_default
17873    typedef char ac__type_sizeof_;
17874 int
17875 main ()
17876 {
17877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17878 test_array [0] = 0
17879
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (ac_try="$ac_compile"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_compile") 2>conftest.er1
17892   ac_status=$?
17893   grep -v '^ *+' conftest.er1 >conftest.err
17894   rm -f conftest.er1
17895   cat conftest.err >&5
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } && {
17898          test -z "$ac_c_werror_flag" ||
17899          test ! -s conftest.err
17900        } && test -s conftest.$ac_objext; then
17901   ac_lo=0 ac_mid=0
17902   while :; do
17903     cat >conftest.$ac_ext <<_ACEOF
17904 /* confdefs.h.  */
17905 _ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h.  */
17909 $ac_includes_default
17910    typedef char ac__type_sizeof_;
17911 int
17912 main ()
17913 {
17914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17915 test_array [0] = 0
17916
17917   ;
17918   return 0;
17919 }
17920 _ACEOF
17921 rm -f conftest.$ac_objext
17922 if { (ac_try="$ac_compile"
17923 case "(($ac_try" in
17924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925   *) ac_try_echo=$ac_try;;
17926 esac
17927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928   (eval "$ac_compile") 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } && {
17935          test -z "$ac_c_werror_flag" ||
17936          test ! -s conftest.err
17937        } && test -s conftest.$ac_objext; then
17938   ac_hi=$ac_mid; break
17939 else
17940   echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17942
17943         ac_lo=`expr $ac_mid + 1`
17944                         if test $ac_lo -le $ac_mid; then
17945                           ac_lo= ac_hi=
17946                           break
17947                         fi
17948                         ac_mid=`expr 2 '*' $ac_mid + 1`
17949 fi
17950
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952   done
17953 else
17954   echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957         cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 $ac_includes_default
17964    typedef char ac__type_sizeof_;
17965 int
17966 main ()
17967 {
17968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17969 test_array [0] = 0
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982   (eval "$ac_compile") 2>conftest.er1
17983   ac_status=$?
17984   grep -v '^ *+' conftest.er1 >conftest.err
17985   rm -f conftest.er1
17986   cat conftest.err >&5
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } && {
17989          test -z "$ac_c_werror_flag" ||
17990          test ! -s conftest.err
17991        } && test -s conftest.$ac_objext; then
17992   ac_hi=-1 ac_mid=-1
17993   while :; do
17994     cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 $ac_includes_default
18001    typedef char ac__type_sizeof_;
18002 int
18003 main ()
18004 {
18005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18006 test_array [0] = 0
18007
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_compile") 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } && {
18026          test -z "$ac_c_werror_flag" ||
18027          test ! -s conftest.err
18028        } && test -s conftest.$ac_objext; then
18029   ac_lo=$ac_mid; break
18030 else
18031   echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034         ac_hi=`expr '(' $ac_mid ')' - 1`
18035                         if test $ac_mid -le $ac_hi; then
18036                           ac_lo= ac_hi=
18037                           break
18038                         fi
18039                         ac_mid=`expr 2 '*' $ac_mid`
18040 fi
18041
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18043   done
18044 else
18045   echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048         ac_lo= ac_hi=
18049 fi
18050
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 fi
18053
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 # Binary search between lo and hi bounds.
18056 while test "x$ac_lo" != "x$ac_hi"; do
18057   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18058   cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h.  */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h.  */
18064 $ac_includes_default
18065    typedef char ac__type_sizeof_;
18066 int
18067 main ()
18068 {
18069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18070 test_array [0] = 0
18071
18072   ;
18073   return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080   *) ac_try_echo=$ac_try;;
18081 esac
18082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083   (eval "$ac_compile") 2>conftest.er1
18084   ac_status=$?
18085   grep -v '^ *+' conftest.er1 >conftest.err
18086   rm -f conftest.er1
18087   cat conftest.err >&5
18088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089   (exit $ac_status); } && {
18090          test -z "$ac_c_werror_flag" ||
18091          test ! -s conftest.err
18092        } && test -s conftest.$ac_objext; then
18093   ac_hi=$ac_mid
18094 else
18095   echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18097
18098         ac_lo=`expr '(' $ac_mid ')' + 1`
18099 fi
18100
18101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18102 done
18103 case $ac_lo in
18104 ?*) ac_cv_sizeof_char=$ac_lo;;
18105 '') if test "$ac_cv_type_char" = yes; then
18106      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18107 See \`config.log' for more details." >&5
18108 echo "$as_me: error: cannot compute sizeof (char)
18109 See \`config.log' for more details." >&2;}
18110    { (exit 77); exit 77; }; }
18111    else
18112      ac_cv_sizeof_char=0
18113    fi ;;
18114 esac
18115 else
18116   cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h.  */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h.  */
18122 $ac_includes_default
18123    typedef char ac__type_sizeof_;
18124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18126 #include <stdio.h>
18127 #include <stdlib.h>
18128 int
18129 main ()
18130 {
18131
18132   FILE *f = fopen ("conftest.val", "w");
18133   if (! f)
18134     return 1;
18135   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18136     {
18137       long int i = longval ();
18138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18139         return 1;
18140       fprintf (f, "%ld\n", i);
18141     }
18142   else
18143     {
18144       unsigned long int i = ulongval ();
18145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18146         return 1;
18147       fprintf (f, "%lu\n", i);
18148     }
18149   return ferror (f) || fclose (f) != 0;
18150
18151   ;
18152   return 0;
18153 }
18154 _ACEOF
18155 rm -f conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_link") 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18166   { (case "(($ac_try" in
18167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168   *) ac_try_echo=$ac_try;;
18169 esac
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171   (eval "$ac_try") 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175   ac_cv_sizeof_char=`cat conftest.val`
18176 else
18177   echo "$as_me: program exited with status $ac_status" >&5
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181 ( exit $ac_status )
18182 if test "$ac_cv_type_char" = yes; then
18183      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18184 See \`config.log' for more details." >&5
18185 echo "$as_me: error: cannot compute sizeof (char)
18186 See \`config.log' for more details." >&2;}
18187    { (exit 77); exit 77; }; }
18188    else
18189      ac_cv_sizeof_char=0
18190    fi
18191 fi
18192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18193 fi
18194 rm -f conftest.val
18195 fi
18196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18197 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18198
18199
18200
18201 cat >>confdefs.h <<_ACEOF
18202 #define SIZEOF_CHAR $ac_cv_sizeof_char
18203 _ACEOF
18204
18205
18206     { echo "$as_me:$LINENO: checking for short" >&5
18207 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
18208 if test "${ac_cv_type_short+set}" = set; then
18209   echo $ECHO_N "(cached) $ECHO_C" >&6
18210 else
18211   cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217 $ac_includes_default
18218 typedef short ac__type_new_;
18219 int
18220 main ()
18221 {
18222 if ((ac__type_new_ *) 0)
18223   return 0;
18224 if (sizeof (ac__type_new_))
18225   return 0;
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext
18231 if { (ac_try="$ac_compile"
18232 case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_compile") 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } && {
18244          test -z "$ac_c_werror_flag" ||
18245          test ! -s conftest.err
18246        } && test -s conftest.$ac_objext; then
18247   ac_cv_type_short=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252         ac_cv_type_short=no
18253 fi
18254
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256 fi
18257 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18258 echo "${ECHO_T}$ac_cv_type_short" >&6; }
18259
18260 # The cast to long int works around a bug in the HP C Compiler
18261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18263 # This bug is HP SR number 8606223364.
18264 { echo "$as_me:$LINENO: checking size of short" >&5
18265 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
18266 if test "${ac_cv_sizeof_short+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   if test "$cross_compiling" = yes; then
18270   # Depending upon the size, compute the lo and hi bounds.
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h.  */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h.  */
18277 $ac_includes_default
18278    typedef short ac__type_sizeof_;
18279 int
18280 main ()
18281 {
18282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18283 test_array [0] = 0
18284
18285   ;
18286   return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext
18290 if { (ac_try="$ac_compile"
18291 case "(($ac_try" in
18292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293   *) ac_try_echo=$ac_try;;
18294 esac
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296   (eval "$ac_compile") 2>conftest.er1
18297   ac_status=$?
18298   grep -v '^ *+' conftest.er1 >conftest.err
18299   rm -f conftest.er1
18300   cat conftest.err >&5
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); } && {
18303          test -z "$ac_c_werror_flag" ||
18304          test ! -s conftest.err
18305        } && test -s conftest.$ac_objext; then
18306   ac_lo=0 ac_mid=0
18307   while :; do
18308     cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h.  */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h.  */
18314 $ac_includes_default
18315    typedef short ac__type_sizeof_;
18316 int
18317 main ()
18318 {
18319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18320 test_array [0] = 0
18321
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 rm -f conftest.$ac_objext
18327 if { (ac_try="$ac_compile"
18328 case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_compile") 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } && {
18340          test -z "$ac_c_werror_flag" ||
18341          test ! -s conftest.err
18342        } && test -s conftest.$ac_objext; then
18343   ac_hi=$ac_mid; break
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348         ac_lo=`expr $ac_mid + 1`
18349                         if test $ac_lo -le $ac_mid; then
18350                           ac_lo= ac_hi=
18351                           break
18352                         fi
18353                         ac_mid=`expr 2 '*' $ac_mid + 1`
18354 fi
18355
18356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357   done
18358 else
18359   echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18361
18362         cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h.  */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h.  */
18368 $ac_includes_default
18369    typedef short ac__type_sizeof_;
18370 int
18371 main ()
18372 {
18373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18374 test_array [0] = 0
18375
18376   ;
18377   return 0;
18378 }
18379 _ACEOF
18380 rm -f conftest.$ac_objext
18381 if { (ac_try="$ac_compile"
18382 case "(($ac_try" in
18383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384   *) ac_try_echo=$ac_try;;
18385 esac
18386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387   (eval "$ac_compile") 2>conftest.er1
18388   ac_status=$?
18389   grep -v '^ *+' conftest.er1 >conftest.err
18390   rm -f conftest.er1
18391   cat conftest.err >&5
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); } && {
18394          test -z "$ac_c_werror_flag" ||
18395          test ! -s conftest.err
18396        } && test -s conftest.$ac_objext; then
18397   ac_hi=-1 ac_mid=-1
18398   while :; do
18399     cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405 $ac_includes_default
18406    typedef short ac__type_sizeof_;
18407 int
18408 main ()
18409 {
18410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18411 test_array [0] = 0
18412
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421   *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424   (eval "$ac_compile") 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } && {
18431          test -z "$ac_c_werror_flag" ||
18432          test ! -s conftest.err
18433        } && test -s conftest.$ac_objext; then
18434   ac_lo=$ac_mid; break
18435 else
18436   echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18438
18439         ac_hi=`expr '(' $ac_mid ')' - 1`
18440                         if test $ac_mid -le $ac_hi; then
18441                           ac_lo= ac_hi=
18442                           break
18443                         fi
18444                         ac_mid=`expr 2 '*' $ac_mid`
18445 fi
18446
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448   done
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453         ac_lo= ac_hi=
18454 fi
18455
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457 fi
18458
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460 # Binary search between lo and hi bounds.
18461 while test "x$ac_lo" != "x$ac_hi"; do
18462   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18463   cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h.  */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h.  */
18469 $ac_includes_default
18470    typedef short ac__type_sizeof_;
18471 int
18472 main ()
18473 {
18474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18475 test_array [0] = 0
18476
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest.$ac_objext
18482 if { (ac_try="$ac_compile"
18483 case "(($ac_try" in
18484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18485   *) ac_try_echo=$ac_try;;
18486 esac
18487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18488   (eval "$ac_compile") 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } && {
18495          test -z "$ac_c_werror_flag" ||
18496          test ! -s conftest.err
18497        } && test -s conftest.$ac_objext; then
18498   ac_hi=$ac_mid
18499 else
18500   echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18502
18503         ac_lo=`expr '(' $ac_mid ')' + 1`
18504 fi
18505
18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507 done
18508 case $ac_lo in
18509 ?*) ac_cv_sizeof_short=$ac_lo;;
18510 '') if test "$ac_cv_type_short" = yes; then
18511      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18512 See \`config.log' for more details." >&5
18513 echo "$as_me: error: cannot compute sizeof (short)
18514 See \`config.log' for more details." >&2;}
18515    { (exit 77); exit 77; }; }
18516    else
18517      ac_cv_sizeof_short=0
18518    fi ;;
18519 esac
18520 else
18521   cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527 $ac_includes_default
18528    typedef short ac__type_sizeof_;
18529 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18530 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18531 #include <stdio.h>
18532 #include <stdlib.h>
18533 int
18534 main ()
18535 {
18536
18537   FILE *f = fopen ("conftest.val", "w");
18538   if (! f)
18539     return 1;
18540   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18541     {
18542       long int i = longval ();
18543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18544         return 1;
18545       fprintf (f, "%ld\n", i);
18546     }
18547   else
18548     {
18549       unsigned long int i = ulongval ();
18550       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18551         return 1;
18552       fprintf (f, "%lu\n", i);
18553     }
18554   return ferror (f) || fclose (f) != 0;
18555
18556   ;
18557   return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest$ac_exeext
18561 if { (ac_try="$ac_link"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_link") 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   ac_cv_sizeof_short=`cat conftest.val`
18581 else
18582   echo "$as_me: program exited with status $ac_status" >&5
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18585
18586 ( exit $ac_status )
18587 if test "$ac_cv_type_short" = yes; then
18588      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18589 See \`config.log' for more details." >&5
18590 echo "$as_me: error: cannot compute sizeof (short)
18591 See \`config.log' for more details." >&2;}
18592    { (exit 77); exit 77; }; }
18593    else
18594      ac_cv_sizeof_short=0
18595    fi
18596 fi
18597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18598 fi
18599 rm -f conftest.val
18600 fi
18601 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18602 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
18603
18604
18605
18606 cat >>confdefs.h <<_ACEOF
18607 #define SIZEOF_SHORT $ac_cv_sizeof_short
18608 _ACEOF
18609
18610
18611     { echo "$as_me:$LINENO: checking for int" >&5
18612 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
18613 if test "${ac_cv_type_int+set}" = set; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 else
18616   cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h.  */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h.  */
18622 $ac_includes_default
18623 typedef int ac__type_new_;
18624 int
18625 main ()
18626 {
18627 if ((ac__type_new_ *) 0)
18628   return 0;
18629 if (sizeof (ac__type_new_))
18630   return 0;
18631   ;
18632   return 0;
18633 }
18634 _ACEOF
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639   *) ac_try_echo=$ac_try;;
18640 esac
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642   (eval "$ac_compile") 2>conftest.er1
18643   ac_status=$?
18644   grep -v '^ *+' conftest.er1 >conftest.err
18645   rm -f conftest.er1
18646   cat conftest.err >&5
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && {
18649          test -z "$ac_c_werror_flag" ||
18650          test ! -s conftest.err
18651        } && test -s conftest.$ac_objext; then
18652   ac_cv_type_int=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657         ac_cv_type_int=no
18658 fi
18659
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 fi
18662 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18663 echo "${ECHO_T}$ac_cv_type_int" >&6; }
18664
18665 # The cast to long int works around a bug in the HP C Compiler
18666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18668 # This bug is HP SR number 8606223364.
18669 { echo "$as_me:$LINENO: checking size of int" >&5
18670 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
18671 if test "${ac_cv_sizeof_int+set}" = set; then
18672   echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674   if test "$cross_compiling" = yes; then
18675   # Depending upon the size, compute the lo and hi bounds.
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 $ac_includes_default
18683    typedef int ac__type_sizeof_;
18684 int
18685 main ()
18686 {
18687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18688 test_array [0] = 0
18689
18690   ;
18691   return 0;
18692 }
18693 _ACEOF
18694 rm -f conftest.$ac_objext
18695 if { (ac_try="$ac_compile"
18696 case "(($ac_try" in
18697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698   *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701   (eval "$ac_compile") 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } && {
18708          test -z "$ac_c_werror_flag" ||
18709          test ! -s conftest.err
18710        } && test -s conftest.$ac_objext; then
18711   ac_lo=0 ac_mid=0
18712   while :; do
18713     cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h.  */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h.  */
18719 $ac_includes_default
18720    typedef int ac__type_sizeof_;
18721 int
18722 main ()
18723 {
18724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18725 test_array [0] = 0
18726
18727   ;
18728   return 0;
18729 }
18730 _ACEOF
18731 rm -f conftest.$ac_objext
18732 if { (ac_try="$ac_compile"
18733 case "(($ac_try" in
18734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735   *) ac_try_echo=$ac_try;;
18736 esac
18737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738   (eval "$ac_compile") 2>conftest.er1
18739   ac_status=$?
18740   grep -v '^ *+' conftest.er1 >conftest.err
18741   rm -f conftest.er1
18742   cat conftest.err >&5
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); } && {
18745          test -z "$ac_c_werror_flag" ||
18746          test ! -s conftest.err
18747        } && test -s conftest.$ac_objext; then
18748   ac_hi=$ac_mid; break
18749 else
18750   echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18752
18753         ac_lo=`expr $ac_mid + 1`
18754                         if test $ac_lo -le $ac_mid; then
18755                           ac_lo= ac_hi=
18756                           break
18757                         fi
18758                         ac_mid=`expr 2 '*' $ac_mid + 1`
18759 fi
18760
18761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18762   done
18763 else
18764   echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767         cat >conftest.$ac_ext <<_ACEOF
18768 /* confdefs.h.  */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h.  */
18773 $ac_includes_default
18774    typedef int ac__type_sizeof_;
18775 int
18776 main ()
18777 {
18778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18779 test_array [0] = 0
18780
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789   *) ac_try_echo=$ac_try;;
18790 esac
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792   (eval "$ac_compile") 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } && {
18799          test -z "$ac_c_werror_flag" ||
18800          test ! -s conftest.err
18801        } && test -s conftest.$ac_objext; then
18802   ac_hi=-1 ac_mid=-1
18803   while :; do
18804     cat >conftest.$ac_ext <<_ACEOF
18805 /* confdefs.h.  */
18806 _ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h.  */
18810 $ac_includes_default
18811    typedef int ac__type_sizeof_;
18812 int
18813 main ()
18814 {
18815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18816 test_array [0] = 0
18817
18818   ;
18819   return 0;
18820 }
18821 _ACEOF
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826   *) ac_try_echo=$ac_try;;
18827 esac
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829   (eval "$ac_compile") 2>conftest.er1
18830   ac_status=$?
18831   grep -v '^ *+' conftest.er1 >conftest.err
18832   rm -f conftest.er1
18833   cat conftest.err >&5
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); } && {
18836          test -z "$ac_c_werror_flag" ||
18837          test ! -s conftest.err
18838        } && test -s conftest.$ac_objext; then
18839   ac_lo=$ac_mid; break
18840 else
18841   echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844         ac_hi=`expr '(' $ac_mid ')' - 1`
18845                         if test $ac_mid -le $ac_hi; then
18846                           ac_lo= ac_hi=
18847                           break
18848                         fi
18849                         ac_mid=`expr 2 '*' $ac_mid`
18850 fi
18851
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18853   done
18854 else
18855   echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18857
18858         ac_lo= ac_hi=
18859 fi
18860
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 # Binary search between lo and hi bounds.
18866 while test "x$ac_lo" != "x$ac_hi"; do
18867   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18868   cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h.  */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h.  */
18874 $ac_includes_default
18875    typedef int ac__type_sizeof_;
18876 int
18877 main ()
18878 {
18879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18880 test_array [0] = 0
18881
18882   ;
18883   return 0;
18884 }
18885 _ACEOF
18886 rm -f conftest.$ac_objext
18887 if { (ac_try="$ac_compile"
18888 case "(($ac_try" in
18889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890   *) ac_try_echo=$ac_try;;
18891 esac
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893   (eval "$ac_compile") 2>conftest.er1
18894   ac_status=$?
18895   grep -v '^ *+' conftest.er1 >conftest.err
18896   rm -f conftest.er1
18897   cat conftest.err >&5
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); } && {
18900          test -z "$ac_c_werror_flag" ||
18901          test ! -s conftest.err
18902        } && test -s conftest.$ac_objext; then
18903   ac_hi=$ac_mid
18904 else
18905   echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18907
18908         ac_lo=`expr '(' $ac_mid ')' + 1`
18909 fi
18910
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 done
18913 case $ac_lo in
18914 ?*) ac_cv_sizeof_int=$ac_lo;;
18915 '') if test "$ac_cv_type_int" = yes; then
18916      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18917 See \`config.log' for more details." >&5
18918 echo "$as_me: error: cannot compute sizeof (int)
18919 See \`config.log' for more details." >&2;}
18920    { (exit 77); exit 77; }; }
18921    else
18922      ac_cv_sizeof_int=0
18923    fi ;;
18924 esac
18925 else
18926   cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 $ac_includes_default
18933    typedef int ac__type_sizeof_;
18934 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18935 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18936 #include <stdio.h>
18937 #include <stdlib.h>
18938 int
18939 main ()
18940 {
18941
18942   FILE *f = fopen ("conftest.val", "w");
18943   if (! f)
18944     return 1;
18945   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18946     {
18947       long int i = longval ();
18948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18949         return 1;
18950       fprintf (f, "%ld\n", i);
18951     }
18952   else
18953     {
18954       unsigned long int i = ulongval ();
18955       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18956         return 1;
18957       fprintf (f, "%lu\n", i);
18958     }
18959   return ferror (f) || fclose (f) != 0;
18960
18961   ;
18962   return 0;
18963 }
18964 _ACEOF
18965 rm -f conftest$ac_exeext
18966 if { (ac_try="$ac_link"
18967 case "(($ac_try" in
18968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969   *) ac_try_echo=$ac_try;;
18970 esac
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972   (eval "$ac_link") 2>&5
18973   ac_status=$?
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18976   { (case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_try") 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; }; then
18985   ac_cv_sizeof_int=`cat conftest.val`
18986 else
18987   echo "$as_me: program exited with status $ac_status" >&5
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ( exit $ac_status )
18992 if test "$ac_cv_type_int" = yes; then
18993      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18994 See \`config.log' for more details." >&5
18995 echo "$as_me: error: cannot compute sizeof (int)
18996 See \`config.log' for more details." >&2;}
18997    { (exit 77); exit 77; }; }
18998    else
18999      ac_cv_sizeof_int=0
19000    fi
19001 fi
19002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19003 fi
19004 rm -f conftest.val
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19007 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19008
19009
19010
19011 cat >>confdefs.h <<_ACEOF
19012 #define SIZEOF_INT $ac_cv_sizeof_int
19013 _ACEOF
19014
19015
19016     { echo "$as_me:$LINENO: checking for long" >&5
19017 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
19018 if test "${ac_cv_type_long+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h.  */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h.  */
19027 $ac_includes_default
19028 typedef long ac__type_new_;
19029 int
19030 main ()
19031 {
19032 if ((ac__type_new_ *) 0)
19033   return 0;
19034 if (sizeof (ac__type_new_))
19035   return 0;
19036   ;
19037   return 0;
19038 }
19039 _ACEOF
19040 rm -f conftest.$ac_objext
19041 if { (ac_try="$ac_compile"
19042 case "(($ac_try" in
19043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044   *) ac_try_echo=$ac_try;;
19045 esac
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047   (eval "$ac_compile") 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } && {
19054          test -z "$ac_c_werror_flag" ||
19055          test ! -s conftest.err
19056        } && test -s conftest.$ac_objext; then
19057   ac_cv_type_long=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_type_long=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 fi
19067 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19068 echo "${ECHO_T}$ac_cv_type_long" >&6; }
19069
19070 # The cast to long int works around a bug in the HP C Compiler
19071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19073 # This bug is HP SR number 8606223364.
19074 { echo "$as_me:$LINENO: checking size of long" >&5
19075 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
19076 if test "${ac_cv_sizeof_long+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   if test "$cross_compiling" = yes; then
19080   # Depending upon the size, compute the lo and hi bounds.
19081 cat >conftest.$ac_ext <<_ACEOF
19082 /* confdefs.h.  */
19083 _ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h.  */
19087 $ac_includes_default
19088    typedef long ac__type_sizeof_;
19089 int
19090 main ()
19091 {
19092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19093 test_array [0] = 0
19094
19095   ;
19096   return 0;
19097 }
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103   *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106   (eval "$ac_compile") 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } && {
19113          test -z "$ac_c_werror_flag" ||
19114          test ! -s conftest.err
19115        } && test -s conftest.$ac_objext; then
19116   ac_lo=0 ac_mid=0
19117   while :; do
19118     cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124 $ac_includes_default
19125    typedef long ac__type_sizeof_;
19126 int
19127 main ()
19128 {
19129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19130 test_array [0] = 0
19131
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_c_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   ac_hi=$ac_mid; break
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         ac_lo=`expr $ac_mid + 1`
19159                         if test $ac_lo -le $ac_mid; then
19160                           ac_lo= ac_hi=
19161                           break
19162                         fi
19163                         ac_mid=`expr 2 '*' $ac_mid + 1`
19164 fi
19165
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167   done
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178 $ac_includes_default
19179    typedef long ac__type_sizeof_;
19180 int
19181 main ()
19182 {
19183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19184 test_array [0] = 0
19185
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_compile") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } && {
19204          test -z "$ac_c_werror_flag" ||
19205          test ! -s conftest.err
19206        } && test -s conftest.$ac_objext; then
19207   ac_hi=-1 ac_mid=-1
19208   while :; do
19209     cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 $ac_includes_default
19216    typedef long ac__type_sizeof_;
19217 int
19218 main ()
19219 {
19220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19221 test_array [0] = 0
19222
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231   *) ac_try_echo=$ac_try;;
19232 esac
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234   (eval "$ac_compile") 2>conftest.er1
19235   ac_status=$?
19236   grep -v '^ *+' conftest.er1 >conftest.err
19237   rm -f conftest.er1
19238   cat conftest.err >&5
19239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240   (exit $ac_status); } && {
19241          test -z "$ac_c_werror_flag" ||
19242          test ! -s conftest.err
19243        } && test -s conftest.$ac_objext; then
19244   ac_lo=$ac_mid; break
19245 else
19246   echo "$as_me: failed program was:" >&5
19247 sed 's/^/| /' conftest.$ac_ext >&5
19248
19249         ac_hi=`expr '(' $ac_mid ')' - 1`
19250                         if test $ac_mid -le $ac_hi; then
19251                           ac_lo= ac_hi=
19252                           break
19253                         fi
19254                         ac_mid=`expr 2 '*' $ac_mid`
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258   done
19259 else
19260   echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19262
19263         ac_lo= ac_hi=
19264 fi
19265
19266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 fi
19268
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 # Binary search between lo and hi bounds.
19271 while test "x$ac_lo" != "x$ac_hi"; do
19272   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19273   cat >conftest.$ac_ext <<_ACEOF
19274 /* confdefs.h.  */
19275 _ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h.  */
19279 $ac_includes_default
19280    typedef long ac__type_sizeof_;
19281 int
19282 main ()
19283 {
19284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19285 test_array [0] = 0
19286
19287   ;
19288   return 0;
19289 }
19290 _ACEOF
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295   *) ac_try_echo=$ac_try;;
19296 esac
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298   (eval "$ac_compile") 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } && {
19305          test -z "$ac_c_werror_flag" ||
19306          test ! -s conftest.err
19307        } && test -s conftest.$ac_objext; then
19308   ac_hi=$ac_mid
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313         ac_lo=`expr '(' $ac_mid ')' + 1`
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 done
19318 case $ac_lo in
19319 ?*) ac_cv_sizeof_long=$ac_lo;;
19320 '') if test "$ac_cv_type_long" = yes; then
19321      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19322 See \`config.log' for more details." >&5
19323 echo "$as_me: error: cannot compute sizeof (long)
19324 See \`config.log' for more details." >&2;}
19325    { (exit 77); exit 77; }; }
19326    else
19327      ac_cv_sizeof_long=0
19328    fi ;;
19329 esac
19330 else
19331   cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 $ac_includes_default
19338    typedef long ac__type_sizeof_;
19339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19341 #include <stdio.h>
19342 #include <stdlib.h>
19343 int
19344 main ()
19345 {
19346
19347   FILE *f = fopen ("conftest.val", "w");
19348   if (! f)
19349     return 1;
19350   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19351     {
19352       long int i = longval ();
19353       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19354         return 1;
19355       fprintf (f, "%ld\n", i);
19356     }
19357   else
19358     {
19359       unsigned long int i = ulongval ();
19360       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19361         return 1;
19362       fprintf (f, "%lu\n", i);
19363     }
19364   return ferror (f) || fclose (f) != 0;
19365
19366   ;
19367   return 0;
19368 }
19369 _ACEOF
19370 rm -f conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374   *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377   (eval "$ac_link") 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19381   { (case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_try") 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_sizeof_long=`cat conftest.val`
19391 else
19392   echo "$as_me: program exited with status $ac_status" >&5
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 ( exit $ac_status )
19397 if test "$ac_cv_type_long" = yes; then
19398      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19399 See \`config.log' for more details." >&5
19400 echo "$as_me: error: cannot compute sizeof (long)
19401 See \`config.log' for more details." >&2;}
19402    { (exit 77); exit 77; }; }
19403    else
19404      ac_cv_sizeof_long=0
19405    fi
19406 fi
19407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19408 fi
19409 rm -f conftest.val
19410 fi
19411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19412 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
19413
19414
19415
19416 cat >>confdefs.h <<_ACEOF
19417 #define SIZEOF_LONG $ac_cv_sizeof_long
19418 _ACEOF
19419
19420
19421     { echo "$as_me:$LINENO: checking for long long" >&5
19422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19423 if test "${ac_cv_type_long_long+set}" = set; then
19424   echo $ECHO_N "(cached) $ECHO_C" >&6
19425 else
19426   cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432 $ac_includes_default
19433 typedef long long ac__type_new_;
19434 int
19435 main ()
19436 {
19437 if ((ac__type_new_ *) 0)
19438   return 0;
19439 if (sizeof (ac__type_new_))
19440   return 0;
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_compile") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } && {
19459          test -z "$ac_c_werror_flag" ||
19460          test ! -s conftest.err
19461        } && test -s conftest.$ac_objext; then
19462   ac_cv_type_long_long=yes
19463 else
19464   echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19466
19467         ac_cv_type_long_long=no
19468 fi
19469
19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471 fi
19472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19474
19475 # The cast to long int works around a bug in the HP C Compiler
19476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19478 # This bug is HP SR number 8606223364.
19479 { echo "$as_me:$LINENO: checking size of long long" >&5
19480 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
19481 if test "${ac_cv_sizeof_long_long+set}" = set; then
19482   echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484   if test "$cross_compiling" = yes; then
19485   # Depending upon the size, compute the lo and hi bounds.
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h.  */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h.  */
19492 $ac_includes_default
19493    typedef long long ac__type_sizeof_;
19494 int
19495 main ()
19496 {
19497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19498 test_array [0] = 0
19499
19500   ;
19501   return 0;
19502 }
19503 _ACEOF
19504 rm -f conftest.$ac_objext
19505 if { (ac_try="$ac_compile"
19506 case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_compile") 2>conftest.er1
19512   ac_status=$?
19513   grep -v '^ *+' conftest.er1 >conftest.err
19514   rm -f conftest.er1
19515   cat conftest.err >&5
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } && {
19518          test -z "$ac_c_werror_flag" ||
19519          test ! -s conftest.err
19520        } && test -s conftest.$ac_objext; then
19521   ac_lo=0 ac_mid=0
19522   while :; do
19523     cat >conftest.$ac_ext <<_ACEOF
19524 /* confdefs.h.  */
19525 _ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h.  */
19529 $ac_includes_default
19530    typedef long long ac__type_sizeof_;
19531 int
19532 main ()
19533 {
19534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19535 test_array [0] = 0
19536
19537   ;
19538   return 0;
19539 }
19540 _ACEOF
19541 rm -f conftest.$ac_objext
19542 if { (ac_try="$ac_compile"
19543 case "(($ac_try" in
19544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19545   *) ac_try_echo=$ac_try;;
19546 esac
19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19548   (eval "$ac_compile") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && {
19555          test -z "$ac_c_werror_flag" ||
19556          test ! -s conftest.err
19557        } && test -s conftest.$ac_objext; then
19558   ac_hi=$ac_mid; break
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563         ac_lo=`expr $ac_mid + 1`
19564                         if test $ac_lo -le $ac_mid; then
19565                           ac_lo= ac_hi=
19566                           break
19567                         fi
19568                         ac_mid=`expr 2 '*' $ac_mid + 1`
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572   done
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577         cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583 $ac_includes_default
19584    typedef long long ac__type_sizeof_;
19585 int
19586 main ()
19587 {
19588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19589 test_array [0] = 0
19590
19591   ;
19592   return 0;
19593 }
19594 _ACEOF
19595 rm -f conftest.$ac_objext
19596 if { (ac_try="$ac_compile"
19597 case "(($ac_try" in
19598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599   *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602   (eval "$ac_compile") 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } && {
19609          test -z "$ac_c_werror_flag" ||
19610          test ! -s conftest.err
19611        } && test -s conftest.$ac_objext; then
19612   ac_hi=-1 ac_mid=-1
19613   while :; do
19614     cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 $ac_includes_default
19621    typedef long long ac__type_sizeof_;
19622 int
19623 main ()
19624 {
19625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19626 test_array [0] = 0
19627
19628   ;
19629   return 0;
19630 }
19631 _ACEOF
19632 rm -f conftest.$ac_objext
19633 if { (ac_try="$ac_compile"
19634 case "(($ac_try" in
19635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636   *) ac_try_echo=$ac_try;;
19637 esac
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639   (eval "$ac_compile") 2>conftest.er1
19640   ac_status=$?
19641   grep -v '^ *+' conftest.er1 >conftest.err
19642   rm -f conftest.er1
19643   cat conftest.err >&5
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } && {
19646          test -z "$ac_c_werror_flag" ||
19647          test ! -s conftest.err
19648        } && test -s conftest.$ac_objext; then
19649   ac_lo=$ac_mid; break
19650 else
19651   echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19653
19654         ac_hi=`expr '(' $ac_mid ')' - 1`
19655                         if test $ac_mid -le $ac_hi; then
19656                           ac_lo= ac_hi=
19657                           break
19658                         fi
19659                         ac_mid=`expr 2 '*' $ac_mid`
19660 fi
19661
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663   done
19664 else
19665   echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19667
19668         ac_lo= ac_hi=
19669 fi
19670
19671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19672 fi
19673
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675 # Binary search between lo and hi bounds.
19676 while test "x$ac_lo" != "x$ac_hi"; do
19677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19678   cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h.  */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h.  */
19684 $ac_includes_default
19685    typedef long long ac__type_sizeof_;
19686 int
19687 main ()
19688 {
19689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19690 test_array [0] = 0
19691
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700   *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703   (eval "$ac_compile") 2>conftest.er1
19704   ac_status=$?
19705   grep -v '^ *+' conftest.er1 >conftest.err
19706   rm -f conftest.er1
19707   cat conftest.err >&5
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); } && {
19710          test -z "$ac_c_werror_flag" ||
19711          test ! -s conftest.err
19712        } && test -s conftest.$ac_objext; then
19713   ac_hi=$ac_mid
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         ac_lo=`expr '(' $ac_mid ')' + 1`
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722 done
19723 case $ac_lo in
19724 ?*) ac_cv_sizeof_long_long=$ac_lo;;
19725 '') if test "$ac_cv_type_long_long" = yes; then
19726      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19727 See \`config.log' for more details." >&5
19728 echo "$as_me: error: cannot compute sizeof (long long)
19729 See \`config.log' for more details." >&2;}
19730    { (exit 77); exit 77; }; }
19731    else
19732      ac_cv_sizeof_long_long=0
19733    fi ;;
19734 esac
19735 else
19736   cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 $ac_includes_default
19743    typedef long long ac__type_sizeof_;
19744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19746 #include <stdio.h>
19747 #include <stdlib.h>
19748 int
19749 main ()
19750 {
19751
19752   FILE *f = fopen ("conftest.val", "w");
19753   if (! f)
19754     return 1;
19755   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19756     {
19757       long int i = longval ();
19758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19759         return 1;
19760       fprintf (f, "%ld\n", i);
19761     }
19762   else
19763     {
19764       unsigned long int i = ulongval ();
19765       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19766         return 1;
19767       fprintf (f, "%lu\n", i);
19768     }
19769   return ferror (f) || fclose (f) != 0;
19770
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_link") 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19786   { (case "(($ac_try" in
19787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788   *) ac_try_echo=$ac_try;;
19789 esac
19790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791   (eval "$ac_try") 2>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); }; }; then
19795   ac_cv_sizeof_long_long=`cat conftest.val`
19796 else
19797   echo "$as_me: program exited with status $ac_status" >&5
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ( exit $ac_status )
19802 if test "$ac_cv_type_long_long" = yes; then
19803      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19804 See \`config.log' for more details." >&5
19805 echo "$as_me: error: cannot compute sizeof (long long)
19806 See \`config.log' for more details." >&2;}
19807    { (exit 77); exit 77; }; }
19808    else
19809      ac_cv_sizeof_long_long=0
19810    fi
19811 fi
19812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19813 fi
19814 rm -f conftest.val
19815 fi
19816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19817 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
19818
19819
19820
19821 cat >>confdefs.h <<_ACEOF
19822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19823 _ACEOF
19824
19825
19826     if test x$ac_cv_sizeof_char = x1; then
19827         cat >>confdefs.h <<\_ACEOF
19828 #define int8_t signed char
19829 _ACEOF
19830
19831         cat >>confdefs.h <<\_ACEOF
19832 #define uint8_t unsigned char
19833 _ACEOF
19834
19835     fi
19836     if test x$ac_cv_sizeof_short = x2; then
19837         cat >>confdefs.h <<\_ACEOF
19838 #define int16_t signed short
19839 _ACEOF
19840
19841         cat >>confdefs.h <<\_ACEOF
19842 #define uint16_t unsigned short
19843 _ACEOF
19844
19845     else
19846         if test x$ac_cv_sizeof_int = x2; then
19847             cat >>confdefs.h <<\_ACEOF
19848 #define int16_t signed int
19849 _ACEOF
19850
19851             cat >>confdefs.h <<\_ACEOF
19852 #define uint16_t unsigned int
19853 _ACEOF
19854
19855         fi
19856     fi
19857     if test x$ac_cv_sizeof_int = x4; then
19858         cat >>confdefs.h <<\_ACEOF
19859 #define int32_t signed int
19860 _ACEOF
19861
19862         cat >>confdefs.h <<\_ACEOF
19863 #define uint32_t unsigned int
19864 _ACEOF
19865
19866     else
19867         if test x$ac_cv_sizeof_long = x4; then
19868             cat >>confdefs.h <<\_ACEOF
19869 #define int32_t signed long
19870 _ACEOF
19871
19872             cat >>confdefs.h <<\_ACEOF
19873 #define uint32_t unsigned long
19874 _ACEOF
19875
19876         fi
19877     fi
19878     if test x$ac_cv_sizeof_long = x8; then
19879         cat >>confdefs.h <<\_ACEOF
19880 #define int64_t signed long
19881 _ACEOF
19882
19883         cat >>confdefs.h <<\_ACEOF
19884 #define uint64_t unsigned long
19885 _ACEOF
19886
19887         cat >>confdefs.h <<\_ACEOF
19888 #define SDL_HAS_64BIT_TYPE 1
19889 _ACEOF
19890
19891     else
19892         if test x$ac_cv_sizeof_long_long = x8; then
19893             cat >>confdefs.h <<\_ACEOF
19894 #define int64_t signed long long
19895 _ACEOF
19896
19897             cat >>confdefs.h <<\_ACEOF
19898 #define uint64_t unsigned long long
19899 _ACEOF
19900
19901             cat >>confdefs.h <<\_ACEOF
19902 #define SDL_HAS_64BIT_TYPE 1
19903 _ACEOF
19904
19905         fi
19906     fi
19907     cat >>confdefs.h <<\_ACEOF
19908 #define size_t unsigned int
19909 _ACEOF
19910
19911     cat >>confdefs.h <<\_ACEOF
19912 #define uintptr_t unsigned long
19913 _ACEOF
19914
19915 fi
19916
19917 # Standard C sources
19918 SOURCES="$SOURCES $srcdir/src/*.c"
19919 SOURCES="$SOURCES $srcdir/src/audio/*.c"
19920 SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
19921 SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
19922 SOURCES="$SOURCES $srcdir/src/events/*.c"
19923 SOURCES="$SOURCES $srcdir/src/file/*.c"
19924 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
19925 SOURCES="$SOURCES $srcdir/src/thread/*.c"
19926 SOURCES="$SOURCES $srcdir/src/timer/*.c"
19927 SOURCES="$SOURCES $srcdir/src/video/*.c"
19928
19929
19930 # Check whether --enable-audio was given.
19931 if test "${enable_audio+set}" = set; then
19932   enableval=$enable_audio;
19933 else
19934   enable_audio=yes
19935 fi
19936
19937 if test x$enable_audio != xyes; then
19938     cat >>confdefs.h <<\_ACEOF
19939 #define SDL_AUDIO_DISABLED 1
19940 _ACEOF
19941
19942 fi
19943 # Check whether --enable-video was given.
19944 if test "${enable_video+set}" = set; then
19945   enableval=$enable_video;
19946 else
19947   enable_video=yes
19948 fi
19949
19950 if test x$enable_video != xyes; then
19951     cat >>confdefs.h <<\_ACEOF
19952 #define SDL_VIDEO_DISABLED 1
19953 _ACEOF
19954
19955 fi
19956 # Check whether --enable-events was given.
19957 if test "${enable_events+set}" = set; then
19958   enableval=$enable_events;
19959 else
19960   enable_events=yes
19961 fi
19962
19963 if test x$enable_events != xyes; then
19964     cat >>confdefs.h <<\_ACEOF
19965 #define SDL_EVENTS_DISABLED 1
19966 _ACEOF
19967
19968 fi
19969 # Check whether --enable-joystick was given.
19970 if test "${enable_joystick+set}" = set; then
19971   enableval=$enable_joystick;
19972 else
19973   enable_joystick=yes
19974 fi
19975
19976 if test x$enable_joystick != xyes; then
19977     cat >>confdefs.h <<\_ACEOF
19978 #define SDL_JOYSTICK_DISABLED 1
19979 _ACEOF
19980
19981 else
19982     SOURCES="$SOURCES $srcdir/src/joystick/*.c"
19983 fi
19984 # Check whether --enable-cdrom was given.
19985 if test "${enable_cdrom+set}" = set; then
19986   enableval=$enable_cdrom;
19987 else
19988   enable_cdrom=yes
19989 fi
19990
19991 if test x$enable_cdrom != xyes; then
19992     cat >>confdefs.h <<\_ACEOF
19993 #define SDL_CDROM_DISABLED 1
19994 _ACEOF
19995
19996 fi
19997 # Check whether --enable-threads was given.
19998 if test "${enable_threads+set}" = set; then
19999   enableval=$enable_threads;
20000 else
20001   enable_threads=yes
20002 fi
20003
20004 if test x$enable_threads != xyes; then
20005     cat >>confdefs.h <<\_ACEOF
20006 #define SDL_THREADS_DISABLED 1
20007 _ACEOF
20008
20009 fi
20010 # Check whether --enable-timers was given.
20011 if test "${enable_timers+set}" = set; then
20012   enableval=$enable_timers;
20013 else
20014   enable_timers=yes
20015 fi
20016
20017 if test x$enable_timers != xyes; then
20018     cat >>confdefs.h <<\_ACEOF
20019 #define SDL_TIMERS_DISABLED 1
20020 _ACEOF
20021
20022 fi
20023 # Check whether --enable-file was given.
20024 if test "${enable_file+set}" = set; then
20025   enableval=$enable_file;
20026 else
20027   enable_file=yes
20028 fi
20029
20030 if test x$enable_file != xyes; then
20031     cat >>confdefs.h <<\_ACEOF
20032 #define SDL_FILE_DISABLED 1
20033 _ACEOF
20034
20035 fi
20036 # Check whether --enable-loadso was given.
20037 if test "${enable_loadso+set}" = set; then
20038   enableval=$enable_loadso;
20039 else
20040   enable_loadso=yes
20041 fi
20042
20043 if test x$enable_loadso != xyes; then
20044     cat >>confdefs.h <<\_ACEOF
20045 #define SDL_LOADSO_DISABLED 1
20046 _ACEOF
20047
20048 fi
20049 # Check whether --enable-cpuinfo was given.
20050 if test "${enable_cpuinfo+set}" = set; then
20051   enableval=$enable_cpuinfo;
20052 else
20053   enable_cpuinfo=yes
20054 fi
20055
20056 if test x$enable_cpuinfo != xyes; then
20057     cat >>confdefs.h <<\_ACEOF
20058 #define SDL_CPUINFO_DISABLED 1
20059 _ACEOF
20060
20061 fi
20062 # Check whether --enable-assembly was given.
20063 if test "${enable_assembly+set}" = set; then
20064   enableval=$enable_assembly;
20065 else
20066   enable_assembly=yes
20067 fi
20068
20069 if test x$enable_assembly = xyes; then
20070     cat >>confdefs.h <<\_ACEOF
20071 #define SDL_ASSEMBLY_ROUTINES 1
20072 _ACEOF
20073
20074 fi
20075
20076 CheckOSS()
20077 {
20078     # Check whether --enable-oss was given.
20079 if test "${enable_oss+set}" = set; then
20080   enableval=$enable_oss;
20081 else
20082   enable_oss=yes
20083 fi
20084
20085     if test x$enable_audio = xyes -a x$enable_oss = xyes; then
20086         { echo "$as_me:$LINENO: checking for OSS audio support" >&5
20087 echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6; }
20088         have_oss=no
20089         if test x$have_oss != xyes; then
20090             cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h.  */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h.  */
20096
20097               #include <sys/soundcard.h>
20098
20099 int
20100 main ()
20101 {
20102
20103               int arg = SNDCTL_DSP_SETFRAGMENT;
20104
20105   ;
20106   return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext
20110 if { (ac_try="$ac_compile"
20111 case "(($ac_try" in
20112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113   *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116   (eval "$ac_compile") 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } && {
20123          test -z "$ac_c_werror_flag" ||
20124          test ! -s conftest.err
20125        } && test -s conftest.$ac_objext; then
20126
20127             have_oss=yes
20128
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20132
20133
20134 fi
20135
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137         fi
20138         if test x$have_oss != xyes; then
20139             cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h.  */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h.  */
20145
20146               #include <soundcard.h>
20147
20148 int
20149 main ()
20150 {
20151
20152               int arg = SNDCTL_DSP_SETFRAGMENT;
20153
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_compile") 2>conftest.er1
20166   ac_status=$?
20167   grep -v '^ *+' conftest.er1 >conftest.err
20168   rm -f conftest.er1
20169   cat conftest.err >&5
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } && {
20172          test -z "$ac_c_werror_flag" ||
20173          test ! -s conftest.err
20174        } && test -s conftest.$ac_objext; then
20175
20176             have_oss=yes
20177             cat >>confdefs.h <<\_ACEOF
20178 #define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
20179 _ACEOF
20180
20181
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186
20187 fi
20188
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190         fi
20191         { echo "$as_me:$LINENO: result: $have_oss" >&5
20192 echo "${ECHO_T}$have_oss" >&6; }
20193         if test x$have_oss = xyes; then
20194             cat >>confdefs.h <<\_ACEOF
20195 #define SDL_AUDIO_DRIVER_OSS 1
20196 _ACEOF
20197
20198             SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
20199             SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
20200             have_audio=yes
20201
20202             # We may need to link with ossaudio emulation library
20203             case "$host" in
20204                 *-*-openbsd*|*-*-netbsd*)
20205                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
20206             esac
20207         fi
20208     fi
20209 }
20210
20211 CheckALSA()
20212 {
20213     # Check whether --enable-alsa was given.
20214 if test "${enable_alsa+set}" = set; then
20215   enableval=$enable_alsa;
20216 else
20217   enable_alsa=yes
20218 fi
20219
20220     if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
20221         alsa_save_CFLAGS="$CFLAGS"
20222 alsa_save_LDFLAGS="$LDFLAGS"
20223 alsa_save_LIBS="$LIBS"
20224 alsa_found=yes
20225
20226
20227 # Check whether --with-alsa-prefix was given.
20228 if test "${with_alsa_prefix+set}" = set; then
20229   withval=$with_alsa_prefix; alsa_prefix="$withval"
20230 else
20231   alsa_prefix=""
20232 fi
20233
20234
20235
20236 # Check whether --with-alsa-inc-prefix was given.
20237 if test "${with_alsa_inc_prefix+set}" = set; then
20238   withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
20239 else
20240   alsa_inc_prefix=""
20241 fi
20242
20243
20244 # Check whether --enable-alsatest was given.
20245 if test "${enable_alsatest+set}" = set; then
20246   enableval=$enable_alsatest; enable_alsatest="$enableval"
20247 else
20248   enable_alsatest=yes
20249 fi
20250
20251
20252 { echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
20253 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
20254 if test "$alsa_inc_prefix" != "" ; then
20255         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
20256         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
20257 fi
20258 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20259 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
20260
20261 { echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
20262 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
20263 if test "$alsa_prefix" != "" ; then
20264         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
20265         LDFLAGS="$LDFLAGS $ALSA_LIBS"
20266 fi
20267
20268 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
20269 LIBS=`echo $LIBS | sed 's/-lm//'`
20270 LIBS=`echo $LIBS | sed 's/-ldl//'`
20271 LIBS=`echo $LIBS | sed 's/-lpthread//'`
20272 LIBS=`echo $LIBS | sed 's/  //'`
20273 LIBS="$ALSA_LIBS $LIBS"
20274 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20275 echo "${ECHO_T}$ALSA_LIBS" >&6; }
20276
20277 min_alsa_version=0.9.0
20278 { echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
20279 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
20280 no_alsa=""
20281     alsa_min_major_version=`echo $min_alsa_version | \
20282            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20283     alsa_min_minor_version=`echo $min_alsa_version | \
20284            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20285     alsa_min_micro_version=`echo $min_alsa_version | \
20286            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20287
20288
20289 ac_ext=c
20290 ac_cpp='$CPP $CPPFLAGS'
20291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20294
20295 cat >conftest.$ac_ext <<_ACEOF
20296 /* confdefs.h.  */
20297 _ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h.  */
20301
20302 #include <alsa/asoundlib.h>
20303
20304 int
20305 main ()
20306 {
20307
20308 /* ensure backward compatibility */
20309 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
20310 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
20311 #endif
20312 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
20313 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
20314 #endif
20315 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
20316 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
20317 #endif
20318
20319 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
20320   exit(0);
20321 #  else
20322 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
20323 #       error not present
20324 #    endif
20325
20326 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
20327   exit(0);
20328 #   else
20329 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
20330 #          error not present
20331 #      endif
20332
20333 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
20334 #        error not present
20335 #      endif
20336 #    endif
20337 #  endif
20338 exit(0);
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_compile") 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } && {
20358          test -z "$ac_c_werror_flag" ||
20359          test ! -s conftest.err
20360        } && test -s conftest.$ac_objext; then
20361   { echo "$as_me:$LINENO: result: found." >&5
20362 echo "${ECHO_T}found." >&6; }
20363 else
20364   echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20366
20367         { echo "$as_me:$LINENO: result: not present." >&5
20368 echo "${ECHO_T}not present." >&6; }
20369
20370    alsa_found=no
20371
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 ac_ext=c
20376 ac_cpp='$CPP $CPPFLAGS'
20377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20380
20381
20382 if test "x$enable_alsatest" = "xyes"; then
20383
20384 { echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
20385 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
20386 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lasound  $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397
20398 /* Override any GCC internal prototype to avoid an error.
20399    Use char because int might match the return type of a GCC
20400    builtin and then its argument prototype would still apply.  */
20401 #ifdef __cplusplus
20402 extern "C"
20403 #endif
20404 char snd_ctl_open ();
20405 int
20406 main ()
20407 {
20408 return snd_ctl_open ();
20409   ;
20410   return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417   *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420   (eval "$ac_link") 2>conftest.er1
20421   ac_status=$?
20422   grep -v '^ *+' conftest.er1 >conftest.err
20423   rm -f conftest.er1
20424   cat conftest.err >&5
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); } && {
20427          test -z "$ac_c_werror_flag" ||
20428          test ! -s conftest.err
20429        } && test -s conftest$ac_exeext &&
20430        $as_test_x conftest$ac_exeext; then
20431   ac_cv_lib_asound_snd_ctl_open=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436         ac_cv_lib_asound_snd_ctl_open=no
20437 fi
20438
20439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20440       conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20442 fi
20443 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
20444 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
20445 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
20446   cat >>confdefs.h <<_ACEOF
20447 #define HAVE_LIBASOUND 1
20448 _ACEOF
20449
20450   LIBS="-lasound $LIBS"
20451
20452 else
20453
20454          alsa_found=no
20455
20456 fi
20457
20458 fi
20459
20460 if test "x$alsa_found" = "xyes" ; then
20461    have_alsa=yes
20462    LIBS=`echo $LIBS | sed 's/-lasound//g'`
20463    LIBS=`echo $LIBS | sed 's/  //'`
20464    LIBS="-lasound $LIBS"
20465 fi
20466 if test "x$alsa_found" = "xno" ; then
20467    have_alsa=no
20468    CFLAGS="$alsa_save_CFLAGS"
20469    LDFLAGS="$alsa_save_LDFLAGS"
20470    LIBS="$alsa_save_LIBS"
20471    ALSA_CFLAGS=""
20472    ALSA_LIBS=""
20473 fi
20474
20475
20476
20477
20478         # Restore all flags from before the ALSA detection runs
20479         CFLAGS="$alsa_save_CFLAGS"
20480         LDFLAGS="$alsa_save_LDFLAGS"
20481         LIBS="$alsa_save_LIBS"
20482         if test x$have_alsa = xyes; then
20483             # Check whether --enable-alsa-shared was given.
20484 if test "${enable_alsa_shared+set}" = set; then
20485   enableval=$enable_alsa_shared;
20486 else
20487   enable_alsa_shared=yes
20488 fi
20489
20490             alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20491
20492             cat >>confdefs.h <<\_ACEOF
20493 #define SDL_AUDIO_DRIVER_ALSA 1
20494 _ACEOF
20495
20496             SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
20497             EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
20498             if test x$have_loadso != xyes && \
20499                test x$enable_alsa_shared = xyes; then
20500                 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
20501 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
20502             fi
20503             if test x$have_loadso = xyes && \
20504                test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
20505                 echo "-- dynamic libasound -> $alsa_lib"
20506                 cat >>confdefs.h <<_ACEOF
20507 #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
20508 _ACEOF
20509
20510             else
20511                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
20512             fi
20513             have_audio=yes
20514         fi
20515     fi
20516 }
20517
20518 CheckDMEDIA()
20519 {
20520     if test x$enable_audio = xyes; then
20521         { echo "$as_me:$LINENO: checking for dmedia audio support" >&5
20522 echo $ECHO_N "checking for dmedia audio support... $ECHO_C" >&6; }
20523         have_dmedia=no
20524         cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530
20531           #include <dmedia/audio.h>
20532
20533 int
20534 main ()
20535 {
20536
20537           ALport audio_port;
20538
20539   ;
20540   return 0;
20541 }
20542 _ACEOF
20543 rm -f conftest.$ac_objext
20544 if { (ac_try="$ac_compile"
20545 case "(($ac_try" in
20546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20547   *) ac_try_echo=$ac_try;;
20548 esac
20549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20550   (eval "$ac_compile") 2>conftest.er1
20551   ac_status=$?
20552   grep -v '^ *+' conftest.er1 >conftest.err
20553   rm -f conftest.er1
20554   cat conftest.err >&5
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); } && {
20557          test -z "$ac_c_werror_flag" ||
20558          test ! -s conftest.err
20559        } && test -s conftest.$ac_objext; then
20560
20561         have_dmedia=yes
20562
20563 else
20564   echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567
20568 fi
20569
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571         { echo "$as_me:$LINENO: result: $have_dmedia" >&5
20572 echo "${ECHO_T}$have_dmedia" >&6; }
20573         # Set up files for the audio library
20574         if test x$have_dmedia = xyes; then
20575             cat >>confdefs.h <<\_ACEOF
20576 #define SDL_AUDIO_DRIVER_DMEDIA 1
20577 _ACEOF
20578
20579             SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
20580             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
20581             have_audio=yes
20582         fi
20583     fi
20584 }
20585
20586 CheckMME()
20587 {
20588         case $ARCH in
20589         osf)
20590             ;;
20591         *)
20592             return
20593             ;;
20594     esac
20595     if test x$enable_audio = xyes; then
20596         { echo "$as_me:$LINENO: checking for MME audio support" >&5
20597 echo $ECHO_N "checking for MME audio support... $ECHO_C" >&6; }
20598         MME_CFLAGS="-I/usr/include/mme"
20599         MME_LIBS="-lmme"
20600         have_mme=no
20601         save_CFLAGS="$CFLAGS"
20602         CFLAGS="$CFLAGS $MME_CFLAGS"
20603         cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h.  */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h.  */
20609
20610           #include <mme_api.h>
20611
20612 int
20613 main ()
20614 {
20615
20616           HWAVEOUT sound;
20617
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_compile") 2>conftest.er1
20630   ac_status=$?
20631   grep -v '^ *+' conftest.er1 >conftest.err
20632   rm -f conftest.er1
20633   cat conftest.err >&5
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); } && {
20636          test -z "$ac_c_werror_flag" ||
20637          test ! -s conftest.err
20638        } && test -s conftest.$ac_objext; then
20639
20640         have_mme=yes
20641
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650         CFLAGS="$save_CFLAGS"
20651         { echo "$as_me:$LINENO: result: $have_mme" >&5
20652 echo "${ECHO_T}$have_mme" >&6; }
20653         # Set up files for the audio library
20654         if test x$have_mme = xyes; then
20655             cat >>confdefs.h <<\_ACEOF
20656 #define SDL_AUDIO_DRIVER_MMEAUDIO 1
20657 _ACEOF
20658
20659             SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
20660             EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
20661             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
20662             have_audio=yes
20663         fi
20664     fi
20665 }
20666
20667 CheckESD()
20668 {
20669     # Check whether --enable-esd was given.
20670 if test "${enable_esd+set}" = set; then
20671   enableval=$enable_esd;
20672 else
20673   enable_esd=yes
20674 fi
20675
20676     if test x$enable_audio = xyes -a x$enable_esd = xyes; then
20677
20678 # Check whether --with-esd-prefix was given.
20679 if test "${with_esd_prefix+set}" = set; then
20680   withval=$with_esd_prefix; esd_prefix="$withval"
20681 else
20682   esd_prefix=""
20683 fi
20684
20685
20686 # Check whether --with-esd-exec-prefix was given.
20687 if test "${with_esd_exec_prefix+set}" = set; then
20688   withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
20689 else
20690   esd_exec_prefix=""
20691 fi
20692
20693 # Check whether --enable-esdtest was given.
20694 if test "${enable_esdtest+set}" = set; then
20695   enableval=$enable_esdtest;
20696 else
20697   enable_esdtest=yes
20698 fi
20699
20700
20701   if test x$esd_exec_prefix != x ; then
20702      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
20703      if test x${ESD_CONFIG+set} != xset ; then
20704         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
20705      fi
20706   fi
20707   if test x$esd_prefix != x ; then
20708      esd_args="$esd_args --prefix=$esd_prefix"
20709      if test x${ESD_CONFIG+set} != xset ; then
20710         ESD_CONFIG=$esd_prefix/bin/esd-config
20711      fi
20712   fi
20713
20714   # Extract the first word of "esd-config", so it can be a program name with args.
20715 set dummy esd-config; ac_word=$2
20716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20718 if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   case $ESD_CONFIG in
20722   [\\/]* | ?:[\\/]*)
20723   ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
20724   ;;
20725   *)
20726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20727 for as_dir in $PATH
20728 do
20729   IFS=$as_save_IFS
20730   test -z "$as_dir" && as_dir=.
20731   for ac_exec_ext in '' $ac_executable_extensions; do
20732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20733     ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20735     break 2
20736   fi
20737 done
20738 done
20739 IFS=$as_save_IFS
20740
20741   test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
20742   ;;
20743 esac
20744 fi
20745 ESD_CONFIG=$ac_cv_path_ESD_CONFIG
20746 if test -n "$ESD_CONFIG"; then
20747   { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
20748 echo "${ECHO_T}$ESD_CONFIG" >&6; }
20749 else
20750   { echo "$as_me:$LINENO: result: no" >&5
20751 echo "${ECHO_T}no" >&6; }
20752 fi
20753
20754
20755   min_esd_version=0.2.8
20756   { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
20757 echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
20758   no_esd=""
20759   if test "$ESD_CONFIG" = "no" ; then
20760     no_esd=yes
20761   else
20762     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
20763     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
20764
20765     esd_major_version=`$ESD_CONFIG $esd_args --version | \
20766            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20767     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
20768            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20769     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
20770            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20771     if test "x$enable_esdtest" = "xyes" ; then
20772       ac_save_CFLAGS="$CFLAGS"
20773       ac_save_LIBS="$LIBS"
20774       CFLAGS="$CFLAGS $ESD_CFLAGS"
20775       LIBS="$LIBS $ESD_LIBS"
20776       rm -f conf.esdtest
20777       if test "$cross_compiling" = yes; then
20778   echo $ac_n "cross compiling; assumed OK... $ac_c"
20779 else
20780   cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h.  */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h.  */
20786
20787 #include <stdio.h>
20788 #include <stdlib.h>
20789 #include <string.h>
20790 #include <esd.h>
20791
20792 char*
20793 my_strdup (char *str)
20794 {
20795   char *new_str;
20796
20797   if (str)
20798     {
20799       new_str = malloc ((strlen (str) + 1) * sizeof(char));
20800       strcpy (new_str, str);
20801     }
20802   else
20803     new_str = NULL;
20804
20805   return new_str;
20806 }
20807
20808 int main ()
20809 {
20810   int major, minor, micro;
20811   char *tmp_version;
20812
20813   system ("touch conf.esdtest");
20814
20815   /* HP/UX 9 (%@#!) writes to sscanf strings */
20816   tmp_version = my_strdup("$min_esd_version");
20817   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20818      printf("%s, bad version string\n", "$min_esd_version");
20819      exit(1);
20820    }
20821
20822    if (($esd_major_version > major) ||
20823       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
20824       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
20825     {
20826       return 0;
20827     }
20828   else
20829     {
20830       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
20831       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
20832       printf("*** best to upgrade to the required version.\n");
20833       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
20834       printf("*** to point to the correct copy of esd-config, and remove the file\n");
20835       printf("*** config.cache before re-running configure\n");
20836       return 1;
20837     }
20838 }
20839
20840
20841 _ACEOF
20842 rm -f conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20849   (eval "$ac_link") 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853   { (case "(($ac_try" in
20854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855   *) ac_try_echo=$ac_try;;
20856 esac
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858   (eval "$ac_try") 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); }; }; then
20862   :
20863 else
20864   echo "$as_me: program exited with status $ac_status" >&5
20865 echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868 ( exit $ac_status )
20869 no_esd=yes
20870 fi
20871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20872 fi
20873
20874
20875        CFLAGS="$ac_save_CFLAGS"
20876        LIBS="$ac_save_LIBS"
20877      fi
20878   fi
20879   if test "x$no_esd" = x ; then
20880      { echo "$as_me:$LINENO: result: yes" >&5
20881 echo "${ECHO_T}yes" >&6; }
20882      have_esd=yes
20883   else
20884      { echo "$as_me:$LINENO: result: no" >&5
20885 echo "${ECHO_T}no" >&6; }
20886      if test "$ESD_CONFIG" = "no" ; then
20887        echo "*** The esd-config script installed by ESD could not be found"
20888        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
20889        echo "*** your path, or set the ESD_CONFIG environment variable to the"
20890        echo "*** full path to esd-config."
20891      else
20892        if test -f conf.esdtest ; then
20893         :
20894        else
20895           echo "*** Could not run ESD test program, checking why..."
20896           CFLAGS="$CFLAGS $ESD_CFLAGS"
20897           LIBS="$LIBS $ESD_LIBS"
20898           cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904
20905 #include <stdio.h>
20906 #include <esd.h>
20907
20908 int
20909 main ()
20910 {
20911  return 0;
20912   ;
20913   return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920   *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923   (eval "$ac_link") 2>conftest.er1
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
20927   cat conftest.err >&5
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } && {
20930          test -z "$ac_c_werror_flag" ||
20931          test ! -s conftest.err
20932        } && test -s conftest$ac_exeext &&
20933        $as_test_x conftest$ac_exeext; then
20934    echo "*** The test program compiled, but did not run. This usually means"
20935           echo "*** that the run-time linker is not finding ESD or finding the wrong"
20936           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
20937           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20938           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20939           echo "*** is required on your system"
20940           echo "***"
20941           echo "*** If you have an old version installed, it is best to remove it, although"
20942           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947          echo "*** The test program failed to compile or link. See the file config.log for the"
20948           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
20949           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
20950           echo "*** may want to edit the esd-config script: $ESD_CONFIG"
20951 fi
20952
20953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20954       conftest$ac_exeext conftest.$ac_ext
20955           CFLAGS="$ac_save_CFLAGS"
20956           LIBS="$ac_save_LIBS"
20957        fi
20958      fi
20959      ESD_CFLAGS=""
20960      ESD_LIBS=""
20961      have_esd=no
20962   fi
20963
20964
20965   rm -f conf.esdtest
20966
20967         if test x$have_esd = xyes; then
20968             # Check whether --enable-esd-shared was given.
20969 if test "${enable_esd_shared+set}" = set; then
20970   enableval=$enable_esd_shared;
20971 else
20972   enable_esd_shared=yes
20973 fi
20974
20975             esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20976
20977             cat >>confdefs.h <<\_ACEOF
20978 #define SDL_AUDIO_DRIVER_ESD 1
20979 _ACEOF
20980
20981             SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
20982             EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
20983             if test x$have_loadso != xyes && \
20984                test x$enable_esd_shared = xyes; then
20985                 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
20986 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
20987             fi
20988             if test x$have_loadso = xyes && \
20989                test x$enable_esd_shared = xyes && test x$esd_lib != x; then
20990                 echo "-- dynamic libesd -> $esd_lib"
20991                 cat >>confdefs.h <<_ACEOF
20992 #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
20993 _ACEOF
20994
20995             else
20996                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
20997             fi
20998             have_audio=yes
20999         fi
21000     fi
21001 }
21002
21003 CheckPulseAudio()
21004 {
21005     # Check whether --enable-pulseaudio was given.
21006 if test "${enable_pulseaudio+set}" = set; then
21007   enableval=$enable_pulseaudio;
21008 else
21009   enable_pulseaudio=yes
21010 fi
21011
21012     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
21013         audio_pulse=no
21014
21015         PULSE_REQUIRED_VERSION=0.9
21016
21017         # Extract the first word of "pkg-config", so it can be a program name with args.
21018 set dummy pkg-config; ac_word=$2
21019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21021 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   case $PKG_CONFIG in
21025   [\\/]* | ?:[\\/]*)
21026   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21027   ;;
21028   *)
21029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21030 for as_dir in $PATH
21031 do
21032   IFS=$as_save_IFS
21033   test -z "$as_dir" && as_dir=.
21034   for ac_exec_ext in '' $ac_executable_extensions; do
21035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21036     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21038     break 2
21039   fi
21040 done
21041 done
21042 IFS=$as_save_IFS
21043
21044   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21045   ;;
21046 esac
21047 fi
21048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21049 if test -n "$PKG_CONFIG"; then
21050   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21051 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21052 else
21053   { echo "$as_me:$LINENO: result: no" >&5
21054 echo "${ECHO_T}no" >&6; }
21055 fi
21056
21057
21058         { echo "$as_me:$LINENO: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5
21059 echo $ECHO_N "checking for PulseAudio $PULSE_REQUIRED_VERSION support... $ECHO_C" >&6; }
21060         if test x$PKG_CONFIG != xno; then
21061             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
21062                 PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
21063                 PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
21064                 audio_pulse=yes
21065             fi
21066         fi
21067         { echo "$as_me:$LINENO: result: $audio_pulse" >&5
21068 echo "${ECHO_T}$audio_pulse" >&6; }
21069
21070         if test x$audio_pulse = xyes; then
21071             # Check whether --enable-pulseaudio-shared was given.
21072 if test "${enable_pulseaudio_shared+set}" = set; then
21073   enableval=$enable_pulseaudio_shared;
21074 else
21075   enable_pulseaudio_shared=yes
21076 fi
21077
21078             pulse_lib=`find_lib "libpulse-simple.so.*" "$PULSE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21079
21080             cat >>confdefs.h <<\_ACEOF
21081 #define SDL_AUDIO_DRIVER_PULSE 1
21082 _ACEOF
21083
21084             SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
21085             EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
21086             if test x$have_loadso != xyes && \
21087                test x$enable_pulseaudio_shared = xyes; then
21088                 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
21089 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
21090             fi
21091             if test x$have_loadso = xyes && \
21092                test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
21093                 echo "-- dynamic libpulse-simple -> $pulse_lib"
21094                 cat >>confdefs.h <<_ACEOF
21095 #define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
21096 _ACEOF
21097
21098             else
21099                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
21100             fi
21101             have_audio=yes
21102         fi
21103     fi
21104 }
21105
21106 CheckARTSC()
21107 {
21108     # Check whether --enable-arts was given.
21109 if test "${enable_arts+set}" = set; then
21110   enableval=$enable_arts;
21111 else
21112   enable_arts=yes
21113 fi
21114
21115     if test x$enable_audio = xyes -a x$enable_arts = xyes; then
21116         # Extract the first word of "artsc-config", so it can be a program name with args.
21117 set dummy artsc-config; ac_word=$2
21118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21120 if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123   case $ARTSCONFIG in
21124   [\\/]* | ?:[\\/]*)
21125   ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
21126   ;;
21127   *)
21128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21129 for as_dir in $PATH
21130 do
21131   IFS=$as_save_IFS
21132   test -z "$as_dir" && as_dir=.
21133   for ac_exec_ext in '' $ac_executable_extensions; do
21134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21135     ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
21136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21137     break 2
21138   fi
21139 done
21140 done
21141 IFS=$as_save_IFS
21142
21143   ;;
21144 esac
21145 fi
21146 ARTSCONFIG=$ac_cv_path_ARTSCONFIG
21147 if test -n "$ARTSCONFIG"; then
21148   { echo "$as_me:$LINENO: result: $ARTSCONFIG" >&5
21149 echo "${ECHO_T}$ARTSCONFIG" >&6; }
21150 else
21151   { echo "$as_me:$LINENO: result: no" >&5
21152 echo "${ECHO_T}no" >&6; }
21153 fi
21154
21155
21156         if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
21157             : # arts isn't installed
21158         else
21159             ARTS_CFLAGS=`$ARTSCONFIG --cflags`
21160             ARTS_LIBS=`$ARTSCONFIG --libs`
21161             { echo "$as_me:$LINENO: checking for aRts development environment" >&5
21162 echo $ECHO_N "checking for aRts development environment... $ECHO_C" >&6; }
21163             audio_arts=no
21164             save_CFLAGS="$CFLAGS"
21165             CFLAGS="$CFLAGS $ARTS_CFLAGS"
21166             cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h.  */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h.  */
21172
21173              #include <artsc.h>
21174
21175 int
21176 main ()
21177 {
21178
21179              arts_stream_t stream;
21180
21181   ;
21182   return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189   *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192   (eval "$ac_compile") 2>conftest.er1
21193   ac_status=$?
21194   grep -v '^ *+' conftest.er1 >conftest.err
21195   rm -f conftest.er1
21196   cat conftest.err >&5
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); } && {
21199          test -z "$ac_c_werror_flag" ||
21200          test ! -s conftest.err
21201        } && test -s conftest.$ac_objext; then
21202
21203             audio_arts=yes
21204
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209
21210 fi
21211
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213             CFLAGS="$save_CFLAGS"
21214             { echo "$as_me:$LINENO: result: $audio_arts" >&5
21215 echo "${ECHO_T}$audio_arts" >&6; }
21216             if test x$audio_arts = xyes; then
21217                 # Check whether --enable-arts-shared was given.
21218 if test "${enable_arts_shared+set}" = set; then
21219   enableval=$enable_arts_shared;
21220 else
21221   enable_arts_shared=yes
21222 fi
21223
21224                 arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21225
21226                 cat >>confdefs.h <<\_ACEOF
21227 #define SDL_AUDIO_DRIVER_ARTS 1
21228 _ACEOF
21229
21230                 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
21231                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
21232                 if test x$have_loadso != xyes && \
21233                    test x$enable_arts_shared = xyes; then
21234                     { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
21235 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
21236                 fi
21237                 if test x$have_loadso = xyes && \
21238                    test x$enable_arts_shared = xyes && test x$arts_lib != x; then
21239                     echo "-- dynamic libartsc -> $arts_lib"
21240                     cat >>confdefs.h <<_ACEOF
21241 #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
21242 _ACEOF
21243
21244                 else
21245                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
21246                 fi
21247                 have_audio=yes
21248             fi
21249         fi
21250     fi
21251 }
21252
21253 CheckNAS()
21254 {
21255     # Check whether --enable-nas was given.
21256 if test "${enable_nas+set}" = set; then
21257   enableval=$enable_nas;
21258 else
21259   enable_nas=yes
21260 fi
21261
21262     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
21263         if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21264   { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21265 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21266 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 fi
21269 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21270 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21271 else
21272   # Is the header compilable?
21273 { echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
21274 echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6; }
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 $ac_includes_default
21282 #include <audio/audiolib.h>
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288   *) ac_try_echo=$ac_try;;
21289 esac
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291   (eval "$ac_compile") 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } && {
21298          test -z "$ac_c_werror_flag" ||
21299          test ! -s conftest.err
21300        } && test -s conftest.$ac_objext; then
21301   ac_header_compiler=yes
21302 else
21303   echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.$ac_ext >&5
21305
21306         ac_header_compiler=no
21307 fi
21308
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21311 echo "${ECHO_T}$ac_header_compiler" >&6; }
21312
21313 # Is the header present?
21314 { echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
21315 echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6; }
21316 cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <audio/audiolib.h>
21323 _ACEOF
21324 if { (ac_try="$ac_cpp conftest.$ac_ext"
21325 case "(($ac_try" in
21326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327   *) ac_try_echo=$ac_try;;
21328 esac
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21331   ac_status=$?
21332   grep -v '^ *+' conftest.er1 >conftest.err
21333   rm -f conftest.er1
21334   cat conftest.err >&5
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); } >/dev/null && {
21337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21338          test ! -s conftest.err
21339        }; then
21340   ac_header_preproc=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345   ac_header_preproc=no
21346 fi
21347
21348 rm -f conftest.err conftest.$ac_ext
21349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21350 echo "${ECHO_T}$ac_header_preproc" >&6; }
21351
21352 # So?  What about this header?
21353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21354   yes:no: )
21355     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21356 echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21357     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
21358 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
21359     ac_header_preproc=yes
21360     ;;
21361   no:yes:* )
21362     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
21363 echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
21364     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&5
21365 echo "$as_me: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&2;}
21366     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
21367 echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
21368     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&5
21369 echo "$as_me: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21370     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
21371 echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
21372     { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
21373 echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
21374
21375     ;;
21376 esac
21377 { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21378 echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21379 if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21380   echo $ECHO_N "(cached) $ECHO_C" >&6
21381 else
21382   ac_cv_header_audio_audiolib_h=$ac_header_preproc
21383 fi
21384 { echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21385 echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21386
21387 fi
21388 if test $ac_cv_header_audio_audiolib_h = yes; then
21389   have_nas_hdr=yes
21390 fi
21391
21392
21393         { echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
21394 echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6; }
21395 if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
21396   echo $ECHO_N "(cached) $ECHO_C" >&6
21397 else
21398   ac_check_lib_save_LIBS=$LIBS
21399 LIBS="-laudio  $LIBS"
21400 cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406
21407 /* Override any GCC internal prototype to avoid an error.
21408    Use char because int might match the return type of a GCC
21409    builtin and then its argument prototype would still apply.  */
21410 #ifdef __cplusplus
21411 extern "C"
21412 #endif
21413 char AuOpenServer ();
21414 int
21415 main ()
21416 {
21417 return AuOpenServer ();
21418   ;
21419   return 0;
21420 }
21421 _ACEOF
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_link") 2>conftest.er1
21430   ac_status=$?
21431   grep -v '^ *+' conftest.er1 >conftest.err
21432   rm -f conftest.er1
21433   cat conftest.err >&5
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); } && {
21436          test -z "$ac_c_werror_flag" ||
21437          test ! -s conftest.err
21438        } && test -s conftest$ac_exeext &&
21439        $as_test_x conftest$ac_exeext; then
21440   ac_cv_lib_audio_AuOpenServer=yes
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         ac_cv_lib_audio_AuOpenServer=no
21446 fi
21447
21448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21449       conftest$ac_exeext conftest.$ac_ext
21450 LIBS=$ac_check_lib_save_LIBS
21451 fi
21452 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
21453 echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6; }
21454 if test $ac_cv_lib_audio_AuOpenServer = yes; then
21455   have_nas_lib=yes
21456 fi
21457
21458
21459         { echo "$as_me:$LINENO: checking for NAS audio support" >&5
21460 echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6; }
21461         have_nas=no
21462
21463         if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
21464             have_nas=yes
21465             NAS_LIBS="-laudio"
21466
21467         elif test -r /usr/X11R6/include/audio/audiolib.h; then
21468             have_nas=yes
21469             NAS_CFLAGS="-I/usr/X11R6/include/"
21470             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
21471
21472
21473         elif test -r /usr/freeware/include/nas/audiolib.h; then
21474             have_nas=yes
21475             NAS_LIBS="-lnas -lXt"
21476         fi
21477
21478         { echo "$as_me:$LINENO: result: $have_nas" >&5
21479 echo "${ECHO_T}$have_nas" >&6; }
21480
21481         if test x$have_nas = xyes; then
21482             # Check whether --enable-nas-shared was given.
21483 if test "${enable_nas_shared+set}" = set; then
21484   enableval=$enable_nas_shared;
21485 else
21486   enable_nas_shared=yes
21487 fi
21488
21489             nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21490
21491             if test x$have_loadso != xyes && \
21492                test x$enable_nas_shared = xyes; then
21493                 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
21494 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
21495             fi
21496             if test x$have_loadso = xyes && \
21497                test x$enable_nas_shared = xyes && test x$nas_lib != x; then
21498                 echo "-- dynamic libaudio -> $nas_lib"
21499                 cat >>confdefs.h <<_ACEOF
21500 #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
21501 _ACEOF
21502
21503             else
21504                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
21505             fi
21506
21507             cat >>confdefs.h <<\_ACEOF
21508 #define SDL_AUDIO_DRIVER_NAS 1
21509 _ACEOF
21510
21511             SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
21512             EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
21513             have_audio=yes
21514         fi
21515     fi
21516 }
21517
21518 CheckDiskAudio()
21519 {
21520     # Check whether --enable-diskaudio was given.
21521 if test "${enable_diskaudio+set}" = set; then
21522   enableval=$enable_diskaudio;
21523 else
21524   enable_diskaudio=yes
21525 fi
21526
21527     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
21528         cat >>confdefs.h <<\_ACEOF
21529 #define SDL_AUDIO_DRIVER_DISK 1
21530 _ACEOF
21531
21532         SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
21533     fi
21534 }
21535
21536 CheckDummyAudio()
21537 {
21538     # Check whether --enable-dummyaudio was given.
21539 if test "${enable_dummyaudio+set}" = set; then
21540   enableval=$enable_dummyaudio;
21541 else
21542   enable_dummyaudio=yes
21543 fi
21544
21545     if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
21546         cat >>confdefs.h <<\_ACEOF
21547 #define SDL_AUDIO_DRIVER_DUMMY 1
21548 _ACEOF
21549
21550         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
21551     fi
21552 }
21553
21554 CheckAtariAudio()
21555 {
21556     # Check whether --enable-mintaudio was given.
21557 if test "${enable_mintaudio+set}" = set; then
21558   enableval=$enable_mintaudio;
21559 else
21560   enable_mintaudio=yes
21561 fi
21562
21563     if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
21564         mintaudio=no
21565         if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21566   { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21567 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21568 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 fi
21571 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21572 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21573 else
21574   # Is the header compilable?
21575 { echo "$as_me:$LINENO: checking mint/falcon.h usability" >&5
21576 echo $ECHO_N "checking mint/falcon.h usability... $ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583 $ac_includes_default
21584 #include <mint/falcon.h>
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (ac_try="$ac_compile"
21588 case "(($ac_try" in
21589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590   *) ac_try_echo=$ac_try;;
21591 esac
21592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21593   (eval "$ac_compile") 2>conftest.er1
21594   ac_status=$?
21595   grep -v '^ *+' conftest.er1 >conftest.err
21596   rm -f conftest.er1
21597   cat conftest.err >&5
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } && {
21600          test -z "$ac_c_werror_flag" ||
21601          test ! -s conftest.err
21602        } && test -s conftest.$ac_objext; then
21603   ac_header_compiler=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608         ac_header_compiler=no
21609 fi
21610
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21613 echo "${ECHO_T}$ac_header_compiler" >&6; }
21614
21615 # Is the header present?
21616 { echo "$as_me:$LINENO: checking mint/falcon.h presence" >&5
21617 echo $ECHO_N "checking mint/falcon.h presence... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <mint/falcon.h>
21625 _ACEOF
21626 if { (ac_try="$ac_cpp conftest.$ac_ext"
21627 case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21633   ac_status=$?
21634   grep -v '^ *+' conftest.er1 >conftest.err
21635   rm -f conftest.er1
21636   cat conftest.err >&5
21637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638   (exit $ac_status); } >/dev/null && {
21639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21640          test ! -s conftest.err
21641        }; then
21642   ac_header_preproc=yes
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647   ac_header_preproc=no
21648 fi
21649
21650 rm -f conftest.err conftest.$ac_ext
21651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6; }
21653
21654 # So?  What about this header?
21655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21656   yes:no: )
21657     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the compiler's result" >&5
21660 echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result" >&2;}
21661     ac_header_preproc=yes
21662     ;;
21663   no:yes:* )
21664     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: present but cannot be compiled" >&5
21665 echo "$as_me: WARNING: mint/falcon.h: present but cannot be compiled" >&2;}
21666     { echo "$as_me:$LINENO: WARNING: mint/falcon.h:     check for missing prerequisite headers?" >&5
21667 echo "$as_me: WARNING: mint/falcon.h:     check for missing prerequisite headers?" >&2;}
21668     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: see the Autoconf documentation" >&5
21669 echo "$as_me: WARNING: mint/falcon.h: see the Autoconf documentation" >&2;}
21670     { echo "$as_me:$LINENO: WARNING: mint/falcon.h:     section \"Present But Cannot Be Compiled\"" >&5
21671 echo "$as_me: WARNING: mint/falcon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&5
21673 echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&5
21675 echo "$as_me: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&2;}
21676
21677     ;;
21678 esac
21679 { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21680 echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21681 if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21682   echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684   ac_cv_header_mint_falcon_h=$ac_header_preproc
21685 fi
21686 { echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21687 echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21688
21689 fi
21690 if test $ac_cv_header_mint_falcon_h = yes; then
21691   have_mint_falcon_hdr=yes
21692 fi
21693
21694
21695         if test x$have_mint_falcon_hdr = xyes; then
21696             mintaudio=yes
21697             cat >>confdefs.h <<\_ACEOF
21698 #define SDL_AUDIO_DRIVER_MINT 1
21699 _ACEOF
21700
21701             SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
21702             SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
21703             have_audio=yes
21704         fi
21705     fi
21706 }
21707
21708 # NASM is available from: http://nasm.sourceforge.net
21709 CheckNASM()
21710 {
21711         case $host in
21712         i?86*)
21713             ;;
21714         *)
21715         # Nope, bail early.
21716             return
21717             ;;
21718     esac
21719
21720             { echo "$as_me:$LINENO: checking for void *" >&5
21721 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21722 if test "${ac_cv_type_void_p+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 $ac_includes_default
21732 typedef void * ac__type_new_;
21733 int
21734 main ()
21735 {
21736 if ((ac__type_new_ *) 0)
21737   return 0;
21738 if (sizeof (ac__type_new_))
21739   return 0;
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_compile") 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } && {
21758          test -z "$ac_c_werror_flag" ||
21759          test ! -s conftest.err
21760        } && test -s conftest.$ac_objext; then
21761   ac_cv_type_void_p=yes
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         ac_cv_type_void_p=no
21767 fi
21768
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 fi
21771 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21772 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21773
21774 # The cast to long int works around a bug in the HP C Compiler
21775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21777 # This bug is HP SR number 8606223364.
21778 { echo "$as_me:$LINENO: checking size of void *" >&5
21779 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21780 if test "${ac_cv_sizeof_void_p+set}" = set; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783   if test "$cross_compiling" = yes; then
21784   # Depending upon the size, compute the lo and hi bounds.
21785 cat >conftest.$ac_ext <<_ACEOF
21786 /* confdefs.h.  */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h.  */
21791 $ac_includes_default
21792    typedef void * ac__type_sizeof_;
21793 int
21794 main ()
21795 {
21796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21797 test_array [0] = 0
21798
21799   ;
21800   return 0;
21801 }
21802 _ACEOF
21803 rm -f conftest.$ac_objext
21804 if { (ac_try="$ac_compile"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_compile") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } && {
21817          test -z "$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        } && test -s conftest.$ac_objext; then
21820   ac_lo=0 ac_mid=0
21821   while :; do
21822     cat >conftest.$ac_ext <<_ACEOF
21823 /* confdefs.h.  */
21824 _ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h.  */
21828 $ac_includes_default
21829    typedef void * ac__type_sizeof_;
21830 int
21831 main ()
21832 {
21833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21834 test_array [0] = 0
21835
21836   ;
21837   return 0;
21838 }
21839 _ACEOF
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_compile") 2>conftest.er1
21848   ac_status=$?
21849   grep -v '^ *+' conftest.er1 >conftest.err
21850   rm -f conftest.er1
21851   cat conftest.err >&5
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); } && {
21854          test -z "$ac_c_werror_flag" ||
21855          test ! -s conftest.err
21856        } && test -s conftest.$ac_objext; then
21857   ac_hi=$ac_mid; break
21858 else
21859   echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862         ac_lo=`expr $ac_mid + 1`
21863                         if test $ac_lo -le $ac_mid; then
21864                           ac_lo= ac_hi=
21865                           break
21866                         fi
21867                         ac_mid=`expr 2 '*' $ac_mid + 1`
21868 fi
21869
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871   done
21872 else
21873   echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21875
21876         cat >conftest.$ac_ext <<_ACEOF
21877 /* confdefs.h.  */
21878 _ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h.  */
21882 $ac_includes_default
21883    typedef void * ac__type_sizeof_;
21884 int
21885 main ()
21886 {
21887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21888 test_array [0] = 0
21889
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext
21895 if { (ac_try="$ac_compile"
21896 case "(($ac_try" in
21897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898   *) ac_try_echo=$ac_try;;
21899 esac
21900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21901   (eval "$ac_compile") 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } && {
21908          test -z "$ac_c_werror_flag" ||
21909          test ! -s conftest.err
21910        } && test -s conftest.$ac_objext; then
21911   ac_hi=-1 ac_mid=-1
21912   while :; do
21913     cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 $ac_includes_default
21920    typedef void * ac__type_sizeof_;
21921 int
21922 main ()
21923 {
21924 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21925 test_array [0] = 0
21926
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_lo=$ac_mid; break
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_hi=`expr '(' $ac_mid ')' - 1`
21954                         if test $ac_mid -le $ac_hi; then
21955                           ac_lo= ac_hi=
21956                           break
21957                         fi
21958                         ac_mid=`expr 2 '*' $ac_mid`
21959 fi
21960
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962   done
21963 else
21964   echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967         ac_lo= ac_hi=
21968 fi
21969
21970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 # Binary search between lo and hi bounds.
21975 while test "x$ac_lo" != "x$ac_hi"; do
21976   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21977   cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h.  */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h.  */
21983 $ac_includes_default
21984    typedef void * ac__type_sizeof_;
21985 int
21986 main ()
21987 {
21988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21989 test_array [0] = 0
21990
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 rm -f conftest.$ac_objext
21996 if { (ac_try="$ac_compile"
21997 case "(($ac_try" in
21998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999   *) ac_try_echo=$ac_try;;
22000 esac
22001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002   (eval "$ac_compile") 2>conftest.er1
22003   ac_status=$?
22004   grep -v '^ *+' conftest.er1 >conftest.err
22005   rm -f conftest.er1
22006   cat conftest.err >&5
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); } && {
22009          test -z "$ac_c_werror_flag" ||
22010          test ! -s conftest.err
22011        } && test -s conftest.$ac_objext; then
22012   ac_hi=$ac_mid
22013 else
22014   echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22016
22017         ac_lo=`expr '(' $ac_mid ')' + 1`
22018 fi
22019
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 done
22022 case $ac_lo in
22023 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22024 '') if test "$ac_cv_type_void_p" = yes; then
22025      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22026 See \`config.log' for more details." >&5
22027 echo "$as_me: error: cannot compute sizeof (void *)
22028 See \`config.log' for more details." >&2;}
22029    { (exit 77); exit 77; }; }
22030    else
22031      ac_cv_sizeof_void_p=0
22032    fi ;;
22033 esac
22034 else
22035   cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h.  */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h.  */
22041 $ac_includes_default
22042    typedef void * ac__type_sizeof_;
22043 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22044 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22045 #include <stdio.h>
22046 #include <stdlib.h>
22047 int
22048 main ()
22049 {
22050
22051   FILE *f = fopen ("conftest.val", "w");
22052   if (! f)
22053     return 1;
22054   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22055     {
22056       long int i = longval ();
22057       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22058         return 1;
22059       fprintf (f, "%ld\n", i);
22060     }
22061   else
22062     {
22063       unsigned long int i = ulongval ();
22064       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22065         return 1;
22066       fprintf (f, "%lu\n", i);
22067     }
22068   return ferror (f) || fclose (f) != 0;
22069
22070   ;
22071   return 0;
22072 }
22073 _ACEOF
22074 rm -f conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078   *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081   (eval "$ac_link") 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22085   { (case "(($ac_try" in
22086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087   *) ac_try_echo=$ac_try;;
22088 esac
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090   (eval "$ac_try") 2>&5
22091   ac_status=$?
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); }; }; then
22094   ac_cv_sizeof_void_p=`cat conftest.val`
22095 else
22096   echo "$as_me: program exited with status $ac_status" >&5
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100 ( exit $ac_status )
22101 if test "$ac_cv_type_void_p" = yes; then
22102      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22103 See \`config.log' for more details." >&5
22104 echo "$as_me: error: cannot compute sizeof (void *)
22105 See \`config.log' for more details." >&2;}
22106    { (exit 77); exit 77; }; }
22107    else
22108      ac_cv_sizeof_void_p=0
22109    fi
22110 fi
22111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22112 fi
22113 rm -f conftest.val
22114 fi
22115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22116 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22117
22118
22119
22120 cat >>confdefs.h <<_ACEOF
22121 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22122 _ACEOF
22123
22124
22125     if test x$ac_cv_sizeof_void_p != x4; then
22126         return
22127     fi
22128
22129         # Check whether --enable-nasm was given.
22130 if test "${enable_nasm+set}" = set; then
22131   enableval=$enable_nasm;
22132 else
22133   enable_nasm=yes
22134 fi
22135
22136     if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
22137         CompileNASM()
22138         {
22139             # Usage: CompileNASM <filename>
22140             { echo "$as_me:$LINENO: checking to see if $NASM supports $1" >&5
22141 echo $ECHO_N "checking to see if $NASM supports $1... $ECHO_C" >&6; }
22142             if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
22143                 CompileNASM_ret="yes"
22144             else
22145                 CompileNASM_ret="no"
22146             fi
22147             rm -f $1 $1.o
22148             { echo "$as_me:$LINENO: result: $CompileNASM_ret" >&5
22149 echo "${ECHO_T}$CompileNASM_ret" >&6; }
22150             test "$CompileNASM_ret" = "yes"
22151         }
22152
22153         if test x"$NASMFLAGS" = x; then
22154             case $ARCH in
22155               win32)
22156                   NASMFLAGS="-f win32"
22157                   ;;
22158               macosx)
22159                   NASMFLAGS="-f macho"
22160                   ;;
22161               *)
22162                   NASMFLAGS="-f elf32"
22163                   ;;
22164             esac
22165         fi
22166
22167         # Extract the first word of "nasm", so it can be a program name with args.
22168 set dummy nasm; ac_word=$2
22169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22171 if test "${ac_cv_path_NASM+set}" = set; then
22172   echo $ECHO_N "(cached) $ECHO_C" >&6
22173 else
22174   case $NASM in
22175   [\\/]* | ?:[\\/]*)
22176   ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
22177   ;;
22178   *)
22179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22180 for as_dir in $PATH
22181 do
22182   IFS=$as_save_IFS
22183   test -z "$as_dir" && as_dir=.
22184   for ac_exec_ext in '' $ac_executable_extensions; do
22185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22186     ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
22187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22188     break 2
22189   fi
22190 done
22191 done
22192 IFS=$as_save_IFS
22193
22194   ;;
22195 esac
22196 fi
22197 NASM=$ac_cv_path_NASM
22198 if test -n "$NASM"; then
22199   { echo "$as_me:$LINENO: result: $NASM" >&5
22200 echo "${ECHO_T}$NASM" >&6; }
22201 else
22202   { echo "$as_me:$LINENO: result: no" >&5
22203 echo "${ECHO_T}no" >&6; }
22204 fi
22205
22206
22207         echo "%ifidn __OUTPUT_FORMAT__,elf32" > unquoted-sections
22208         echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
22209         echo "%endif" >> unquoted-sections
22210         CompileNASM unquoted-sections || NASM=""
22211
22212         if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
22213             cat >>confdefs.h <<\_ACEOF
22214 #define SDL_HERMES_BLITTERS 1
22215 _ACEOF
22216
22217             SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
22218             NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
22219
22220                         echo "GLOBAL _bar:function hidden" > symbol-visibility
22221             echo "_bar:" >> symbol-visibility
22222             CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
22223
22224
22225
22226
22227             case "$host" in
22228                 # this line is needed for QNX, because it's not defined the __ELF__
22229                 *-*-qnx*)
22230                      EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22231                 *-*-solaris*)
22232                      EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22233             esac
22234         fi
22235     fi
22236 }
22237
22238 CheckAltivec()
22239 {
22240     # Check whether --enable-altivec was given.
22241 if test "${enable_altivec+set}" = set; then
22242   enableval=$enable_altivec;
22243 else
22244   enable_altivec=yes
22245 fi
22246
22247     if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
22248         save_CFLAGS="$CFLAGS"
22249         have_gcc_altivec=no
22250         have_altivec_h_hdr=no
22251         altivec_CFLAGS="-maltivec"
22252         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22253
22254         { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -maltivec option" >&5
22255 echo $ECHO_N "checking for Altivec with GCC altivec.h and -maltivec option... $ECHO_C" >&6; }
22256         cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h.  */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h.  */
22262
22263         #include <altivec.h>
22264         vector unsigned int vzero() {
22265             return vec_splat_u32(0);
22266         }
22267
22268 int
22269 main ()
22270 {
22271
22272
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_compile") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest.$ac_objext; then
22294
22295         have_gcc_altivec=yes
22296         have_altivec_h_hdr=yes
22297
22298 else
22299   echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302
22303 fi
22304
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306         { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22307 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22308
22309         if test x$have_gcc_altivec = xno; then
22310             { echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
22311 echo $ECHO_N "checking for Altivec with GCC -maltivec option... $ECHO_C" >&6; }
22312             cat >conftest.$ac_ext <<_ACEOF
22313 /* confdefs.h.  */
22314 _ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h.  */
22318
22319             vector unsigned int vzero() {
22320                 return vec_splat_u32(0);
22321             }
22322
22323 int
22324 main ()
22325 {
22326
22327
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 rm -f conftest.$ac_objext
22333 if { (ac_try="$ac_compile"
22334 case "(($ac_try" in
22335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336   *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339   (eval "$ac_compile") 2>conftest.er1
22340   ac_status=$?
22341   grep -v '^ *+' conftest.er1 >conftest.err
22342   rm -f conftest.er1
22343   cat conftest.err >&5
22344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345   (exit $ac_status); } && {
22346          test -z "$ac_c_werror_flag" ||
22347          test ! -s conftest.err
22348        } && test -s conftest.$ac_objext; then
22349
22350             have_gcc_altivec=yes
22351
22352 else
22353   echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356
22357 fi
22358
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22361 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22362         fi
22363
22364         if test x$have_gcc_altivec = xno; then
22365             { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -faltivec option" >&5
22366 echo $ECHO_N "checking for Altivec with GCC altivec.h and -faltivec option... $ECHO_C" >&6; }
22367             altivec_CFLAGS="-faltivec"
22368             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22369             cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h.  */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h.  */
22375
22376             #include <altivec.h>
22377             vector unsigned int vzero() {
22378                 return vec_splat_u32(0);
22379             }
22380
22381 int
22382 main ()
22383 {
22384
22385
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext
22391 if { (ac_try="$ac_compile"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_compile") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest.$ac_objext; then
22407
22408             have_gcc_altivec=yes
22409             have_altivec_h_hdr=yes
22410
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22420 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22421         fi
22422
22423         if test x$have_gcc_altivec = xno; then
22424             { echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
22425 echo $ECHO_N "checking for Altivec with GCC -faltivec option... $ECHO_C" >&6; }
22426             cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432
22433             vector unsigned int vzero() {
22434                 return vec_splat_u32(0);
22435             }
22436
22437 int
22438 main ()
22439 {
22440
22441
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (ac_try="$ac_compile"
22448 case "(($ac_try" in
22449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450   *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453   (eval "$ac_compile") 2>conftest.er1
22454   ac_status=$?
22455   grep -v '^ *+' conftest.er1 >conftest.err
22456   rm -f conftest.er1
22457   cat conftest.err >&5
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); } && {
22460          test -z "$ac_c_werror_flag" ||
22461          test ! -s conftest.err
22462        } && test -s conftest.$ac_objext; then
22463
22464             have_gcc_altivec=yes
22465
22466 else
22467   echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470
22471 fi
22472
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22474             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22475 echo "${ECHO_T}$have_gcc_altivec" >&6; }
22476         fi
22477         CFLAGS="$save_CFLAGS"
22478
22479         if test x$have_gcc_altivec = xyes; then
22480             cat >>confdefs.h <<\_ACEOF
22481 #define SDL_ALTIVEC_BLITTERS 1
22482 _ACEOF
22483
22484             if test x$have_altivec_h_hdr = xyes; then
22485               cat >>confdefs.h <<\_ACEOF
22486 #define HAVE_ALTIVEC_H 1
22487 _ACEOF
22488
22489             fi
22490             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
22491         fi
22492     fi
22493 }
22494
22495 CheckVisibilityHidden()
22496 {
22497     { echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
22498 echo $ECHO_N "checking for GCC -fvisibility=hidden option... $ECHO_C" >&6; }
22499     have_gcc_fvisibility=no
22500
22501     visibility_CFLAGS="-fvisibility=hidden"
22502     save_CFLAGS="$CFLAGS"
22503     CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
22504     cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510
22511     #if !defined(__GNUC__) || __GNUC__ < 4
22512     #error SDL only uses visibility attributes in GCC 4 or newer
22513     #endif
22514
22515 int
22516 main ()
22517 {
22518
22519
22520   ;
22521   return 0;
22522 }
22523 _ACEOF
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_compile") 2>conftest.er1
22532   ac_status=$?
22533   grep -v '^ *+' conftest.er1 >conftest.err
22534   rm -f conftest.er1
22535   cat conftest.err >&5
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } && {
22538          test -z "$ac_c_werror_flag" ||
22539          test ! -s conftest.err
22540        } && test -s conftest.$ac_objext; then
22541
22542     have_gcc_fvisibility=yes
22543
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552     { echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
22553 echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
22554     CFLAGS="$save_CFLAGS"
22555
22556     if test x$have_gcc_fvisibility = xyes; then
22557         EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
22558     fi
22559 }
22560
22561 CheckWarnAll()
22562 {
22563     { echo "$as_me:$LINENO: checking for GCC -Wall option" >&5
22564 echo $ECHO_N "checking for GCC -Wall option... $ECHO_C" >&6; }
22565     have_gcc_Wall=no
22566
22567     save_CFLAGS="$CFLAGS"
22568     CFLAGS="$save_CFLAGS -Wall"
22569     cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575
22576     int x = 0;
22577
22578 int
22579 main ()
22580 {
22581
22582
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 rm -f conftest.$ac_objext
22588 if { (ac_try="$ac_compile"
22589 case "(($ac_try" in
22590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591   *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594   (eval "$ac_compile") 2>conftest.er1
22595   ac_status=$?
22596   grep -v '^ *+' conftest.er1 >conftest.err
22597   rm -f conftest.er1
22598   cat conftest.err >&5
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); } && {
22601          test -z "$ac_c_werror_flag" ||
22602          test ! -s conftest.err
22603        } && test -s conftest.$ac_objext; then
22604
22605     have_gcc_Wall=yes
22606
22607 else
22608   echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22610
22611
22612 fi
22613
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22615     { echo "$as_me:$LINENO: result: $have_gcc_Wall" >&5
22616 echo "${ECHO_T}$have_gcc_Wall" >&6; }
22617     CFLAGS="$save_CFLAGS"
22618
22619     if test x$have_gcc_Wall = xyes; then
22620         EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22621
22622                 { echo "$as_me:$LINENO: checking for necessary GCC -Wno-multichar option" >&5
22623 echo $ECHO_N "checking for necessary GCC -Wno-multichar option... $ECHO_C" >&6; }
22624         need_gcc_Wno_multichar=no
22625         case "$host" in
22626             *-*-beos* | *-*-haiku*)
22627                 need_gcc_Wno_multichar=yes
22628                 ;;
22629         esac
22630         { echo "$as_me:$LINENO: result: $need_gcc_Wno_multichar" >&5
22631 echo "${ECHO_T}$need_gcc_Wno_multichar" >&6; }
22632         if test x$need_gcc_Wno_multichar = xyes; then
22633             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
22634         fi
22635     fi
22636 }
22637
22638
22639 CheckIPod()
22640 {
22641     # Check whether --enable-ipod was given.
22642 if test "${enable_ipod+set}" = set; then
22643   enableval=$enable_ipod;
22644 else
22645   enable_ipod=no
22646 fi
22647
22648
22649     if test x$enable_ipod = xyes; then
22650         EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
22651         cat >>confdefs.h <<\_ACEOF
22652 #define SDL_VIDEO_DRIVER_IPOD 1
22653 _ACEOF
22654
22655         SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
22656     fi
22657 }
22658
22659 CheckNANOX()
22660 {
22661     # Check whether --enable-video-nanox was given.
22662 if test "${enable_video_nanox+set}" = set; then
22663   enableval=$enable_video_nanox;
22664 else
22665   enable_video_nanox=no
22666 fi
22667
22668
22669     if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
22670         # Check whether --enable-nanox-debug was given.
22671 if test "${enable_nanox_debug+set}" = set; then
22672   enableval=$enable_nanox_debug;
22673 else
22674   enable_nanox_debug=no
22675 fi
22676
22677         if test x$enable_nanox_debug = xyes; then
22678             EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
22679         fi
22680
22681         # Check whether --enable-nanox-share-memory was given.
22682 if test "${enable_nanox_share_memory+set}" = set; then
22683   enableval=$enable_nanox_share_memory;
22684 else
22685   enable_nanox_share_memory=no
22686 fi
22687
22688         if test x$enable_nanox_share_memory = xyes; then
22689             EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
22690         fi
22691
22692         # Check whether --enable-nanox_direct_fb was given.
22693 if test "${enable_nanox_direct_fb+set}" = set; then
22694   enableval=$enable_nanox_direct_fb;
22695 else
22696   enable_nanox_direct_fb=no
22697 fi
22698
22699         if test x$enable_nanox_direct_fb = xyes; then
22700             EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
22701         fi
22702
22703         cat >>confdefs.h <<\_ACEOF
22704 #define SDL_VIDEO_DRIVER_NANOX 1
22705 _ACEOF
22706
22707         SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
22708         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
22709         have_video=yes
22710     fi
22711 }
22712
22713 CheckX11()
22714 {
22715     # Check whether --enable-video-x11 was given.
22716 if test "${enable_video_x11+set}" = set; then
22717   enableval=$enable_video_x11;
22718 else
22719   enable_video_x11=yes
22720 fi
22721
22722     if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
22723         case "$host" in
22724             *-*-darwin*)
22725                 # This isn't necessary for X11, but fixes GLX detection
22726                 if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then
22727                     x_includes="/usr/X11R6/include"
22728                     x_libraries="/usr/X11R6/lib"
22729                 fi
22730                 ;;
22731         esac
22732         { echo "$as_me:$LINENO: checking for X" >&5
22733 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22734
22735
22736 # Check whether --with-x was given.
22737 if test "${with_x+set}" = set; then
22738   withval=$with_x;
22739 fi
22740
22741 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22742 if test "x$with_x" = xno; then
22743   # The user explicitly disabled X.
22744   have_x=disabled
22745 else
22746   case $x_includes,$x_libraries in #(
22747     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22748 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22749    { (exit 1); exit 1; }; };; #(
22750     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753   # One or both of the vars are not set, and there is no cached value.
22754 ac_x_includes=no ac_x_libraries=no
22755 rm -f -r conftest.dir
22756 if mkdir conftest.dir; then
22757   cd conftest.dir
22758   cat >Imakefile <<'_ACEOF'
22759 incroot:
22760         @echo incroot='${INCROOT}'
22761 usrlibdir:
22762         @echo usrlibdir='${USRLIBDIR}'
22763 libdir:
22764         @echo libdir='${LIBDIR}'
22765 _ACEOF
22766   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22767     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22768     for ac_var in incroot usrlibdir libdir; do
22769       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22770     done
22771     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22772     for ac_extension in a so sl dylib la dll; do
22773       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22774          test -f "$ac_im_libdir/libX11.$ac_extension"; then
22775         ac_im_usrlibdir=$ac_im_libdir; break
22776       fi
22777     done
22778     # Screen out bogus values from the imake configuration.  They are
22779     # bogus both because they are the default anyway, and because
22780     # using them would break gcc on systems where it needs fixed includes.
22781     case $ac_im_incroot in
22782         /usr/include) ac_x_includes= ;;
22783         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22784     esac
22785     case $ac_im_usrlibdir in
22786         /usr/lib | /lib) ;;
22787         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22788     esac
22789   fi
22790   cd ..
22791   rm -f -r conftest.dir
22792 fi
22793
22794 # Standard set of common directories for X headers.
22795 # Check X11 before X11Rn because it is often a symlink to the current release.
22796 ac_x_header_dirs='
22797 /usr/X11/include
22798 /usr/X11R6/include
22799 /usr/X11R5/include
22800 /usr/X11R4/include
22801
22802 /usr/include/X11
22803 /usr/include/X11R6
22804 /usr/include/X11R5
22805 /usr/include/X11R4
22806
22807 /usr/local/X11/include
22808 /usr/local/X11R6/include
22809 /usr/local/X11R5/include
22810 /usr/local/X11R4/include
22811
22812 /usr/local/include/X11
22813 /usr/local/include/X11R6
22814 /usr/local/include/X11R5
22815 /usr/local/include/X11R4
22816
22817 /usr/X386/include
22818 /usr/x386/include
22819 /usr/XFree86/include/X11
22820
22821 /usr/include
22822 /usr/local/include
22823 /usr/unsupported/include
22824 /usr/athena/include
22825 /usr/local/x11r5/include
22826 /usr/lpp/Xamples/include
22827
22828 /usr/openwin/include
22829 /usr/openwin/share/include'
22830
22831 if test "$ac_x_includes" = no; then
22832   # Guess where to find include files, by looking for Xlib.h.
22833   # First, try using that file with no special directory specified.
22834   cat >conftest.$ac_ext <<_ACEOF
22835 /* confdefs.h.  */
22836 _ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h.  */
22840 #include <X11/Xlib.h>
22841 _ACEOF
22842 if { (ac_try="$ac_cpp conftest.$ac_ext"
22843 case "(($ac_try" in
22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845   *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } >/dev/null && {
22855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22856          test ! -s conftest.err
22857        }; then
22858   # We can compile using X headers with no special include directory.
22859 ac_x_includes=
22860 else
22861   echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864   for ac_dir in $ac_x_header_dirs; do
22865   if test -r "$ac_dir/X11/Xlib.h"; then
22866     ac_x_includes=$ac_dir
22867     break
22868   fi
22869 done
22870 fi
22871
22872 rm -f conftest.err conftest.$ac_ext
22873 fi # $ac_x_includes = no
22874
22875 if test "$ac_x_libraries" = no; then
22876   # Check for the libraries.
22877   # See if we find them without any special options.
22878   # Don't add to $LIBS permanently.
22879   ac_save_LIBS=$LIBS
22880   LIBS="-lX11 $LIBS"
22881   cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887 #include <X11/Xlib.h>
22888 int
22889 main ()
22890 {
22891 XrmInitialize ()
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (ac_try="$ac_link"
22898 case "(($ac_try" in
22899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900   *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903   (eval "$ac_link") 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && {
22910          test -z "$ac_c_werror_flag" ||
22911          test ! -s conftest.err
22912        } && test -s conftest$ac_exeext &&
22913        $as_test_x conftest$ac_exeext; then
22914   LIBS=$ac_save_LIBS
22915 # We can link X programs with no special library path.
22916 ac_x_libraries=
22917 else
22918   echo "$as_me: failed program was:" >&5
22919 sed 's/^/| /' conftest.$ac_ext >&5
22920
22921         LIBS=$ac_save_LIBS
22922 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22923 do
22924   # Don't even attempt the hair of trying to link an X program!
22925   for ac_extension in a so sl dylib la dll; do
22926     if test -r "$ac_dir/libX11.$ac_extension"; then
22927       ac_x_libraries=$ac_dir
22928       break 2
22929     fi
22930   done
22931 done
22932 fi
22933
22934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22935       conftest$ac_exeext conftest.$ac_ext
22936 fi # $ac_x_libraries = no
22937
22938 case $ac_x_includes,$ac_x_libraries in #(
22939   no,* | *,no | *\'*)
22940     # Didn't find X, or a directory has "'" in its name.
22941     ac_cv_have_x="have_x=no";; #(
22942   *)
22943     # Record where we found X for the cache.
22944     ac_cv_have_x="have_x=yes\
22945         ac_x_includes='$ac_x_includes'\
22946         ac_x_libraries='$ac_x_libraries'"
22947 esac
22948 fi
22949 ;; #(
22950     *) have_x=yes;;
22951   esac
22952   eval "$ac_cv_have_x"
22953 fi # $with_x != no
22954
22955 if test "$have_x" != yes; then
22956   { echo "$as_me:$LINENO: result: $have_x" >&5
22957 echo "${ECHO_T}$have_x" >&6; }
22958   no_x=yes
22959 else
22960   # If each of the values was on the command line, it overrides each guess.
22961   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22962   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22963   # Update the cache value to reflect the command line values.
22964   ac_cv_have_x="have_x=yes\
22965         ac_x_includes='$x_includes'\
22966         ac_x_libraries='$x_libraries'"
22967   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22968 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22969 fi
22970
22971         if test "$no_x" = yes; then
22972   # Not all programs may use this symbol, but it does not hurt to define it.
22973
22974 cat >>confdefs.h <<\_ACEOF
22975 #define X_DISPLAY_MISSING 1
22976 _ACEOF
22977
22978   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22979 else
22980   if test -n "$x_includes"; then
22981     X_CFLAGS="$X_CFLAGS -I$x_includes"
22982   fi
22983
22984   # It would also be nice to do this for all -L options, not just this one.
22985   if test -n "$x_libraries"; then
22986     X_LIBS="$X_LIBS -L$x_libraries"
22987     # For Solaris; some versions of Sun CC require a space after -R and
22988     # others require no space.  Words are not sufficient . . . .
22989     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22990 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22991     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22992     ac_xsave_c_werror_flag=$ac_c_werror_flag
22993     ac_c_werror_flag=yes
22994     cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h.  */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h.  */
23000
23001 int
23002 main ()
23003 {
23004
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext conftest$ac_exeext
23010 if { (ac_try="$ac_link"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_link") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_c_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest$ac_exeext &&
23026        $as_test_x conftest$ac_exeext; then
23027   { echo "$as_me:$LINENO: result: no" >&5
23028 echo "${ECHO_T}no" >&6; }
23029        X_LIBS="$X_LIBS -R$x_libraries"
23030 else
23031   echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034         LIBS="$ac_xsave_LIBS -R $x_libraries"
23035        cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041
23042 int
23043 main ()
23044 {
23045
23046   ;
23047   return 0;
23048 }
23049 _ACEOF
23050 rm -f conftest.$ac_objext conftest$ac_exeext
23051 if { (ac_try="$ac_link"
23052 case "(($ac_try" in
23053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054   *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057   (eval "$ac_link") 2>conftest.er1
23058   ac_status=$?
23059   grep -v '^ *+' conftest.er1 >conftest.err
23060   rm -f conftest.er1
23061   cat conftest.err >&5
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); } && {
23064          test -z "$ac_c_werror_flag" ||
23065          test ! -s conftest.err
23066        } && test -s conftest$ac_exeext &&
23067        $as_test_x conftest$ac_exeext; then
23068   { echo "$as_me:$LINENO: result: yes" >&5
23069 echo "${ECHO_T}yes" >&6; }
23070           X_LIBS="$X_LIBS -R $x_libraries"
23071 else
23072   echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075         { echo "$as_me:$LINENO: result: neither works" >&5
23076 echo "${ECHO_T}neither works" >&6; }
23077 fi
23078
23079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23080       conftest$ac_exeext conftest.$ac_ext
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23084       conftest$ac_exeext conftest.$ac_ext
23085     ac_c_werror_flag=$ac_xsave_c_werror_flag
23086     LIBS=$ac_xsave_LIBS
23087   fi
23088
23089   # Check for system-dependent libraries X programs must link with.
23090   # Do this before checking for the system-independent R6 libraries
23091   # (-lICE), since we may need -lsocket or whatever for X linking.
23092
23093   if test "$ISC" = yes; then
23094     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23095   else
23096     # Martyn Johnson says this is needed for Ultrix, if the X
23097     # libraries were built with DECnet support.  And Karl Berry says
23098     # the Alpha needs dnet_stub (dnet does not exist).
23099     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23100     cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h.  */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h.  */
23106
23107 /* Override any GCC internal prototype to avoid an error.
23108    Use char because int might match the return type of a GCC
23109    builtin and then its argument prototype would still apply.  */
23110 #ifdef __cplusplus
23111 extern "C"
23112 #endif
23113 char XOpenDisplay ();
23114 int
23115 main ()
23116 {
23117 return XOpenDisplay ();
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext conftest$ac_exeext
23123 if { (ac_try="$ac_link"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_link") 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } && {
23136          test -z "$ac_c_werror_flag" ||
23137          test ! -s conftest.err
23138        } && test -s conftest$ac_exeext &&
23139        $as_test_x conftest$ac_exeext; then
23140   :
23141 else
23142   echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23144
23145         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23146 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23147 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23148   echo $ECHO_N "(cached) $ECHO_C" >&6
23149 else
23150   ac_check_lib_save_LIBS=$LIBS
23151 LIBS="-ldnet  $LIBS"
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159 /* Override any GCC internal prototype to avoid an error.
23160    Use char because int might match the return type of a GCC
23161    builtin and then its argument prototype would still apply.  */
23162 #ifdef __cplusplus
23163 extern "C"
23164 #endif
23165 char dnet_ntoa ();
23166 int
23167 main ()
23168 {
23169 return dnet_ntoa ();
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178   *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181   (eval "$ac_link") 2>conftest.er1
23182   ac_status=$?
23183   grep -v '^ *+' conftest.er1 >conftest.err
23184   rm -f conftest.er1
23185   cat conftest.err >&5
23186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187   (exit $ac_status); } && {
23188          test -z "$ac_c_werror_flag" ||
23189          test ! -s conftest.err
23190        } && test -s conftest$ac_exeext &&
23191        $as_test_x conftest$ac_exeext; then
23192   ac_cv_lib_dnet_dnet_ntoa=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197         ac_cv_lib_dnet_dnet_ntoa=no
23198 fi
23199
23200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23201       conftest$ac_exeext conftest.$ac_ext
23202 LIBS=$ac_check_lib_save_LIBS
23203 fi
23204 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23205 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23206 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23207   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23208 fi
23209
23210     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23211       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23212 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23213 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23214   echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216   ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-ldnet_stub  $LIBS"
23218 cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h.  */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h.  */
23224
23225 /* Override any GCC internal prototype to avoid an error.
23226    Use char because int might match the return type of a GCC
23227    builtin and then its argument prototype would still apply.  */
23228 #ifdef __cplusplus
23229 extern "C"
23230 #endif
23231 char dnet_ntoa ();
23232 int
23233 main ()
23234 {
23235 return dnet_ntoa ();
23236   ;
23237   return 0;
23238 }
23239 _ACEOF
23240 rm -f conftest.$ac_objext conftest$ac_exeext
23241 if { (ac_try="$ac_link"
23242 case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_link") 2>conftest.er1
23248   ac_status=$?
23249   grep -v '^ *+' conftest.er1 >conftest.err
23250   rm -f conftest.er1
23251   cat conftest.err >&5
23252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253   (exit $ac_status); } && {
23254          test -z "$ac_c_werror_flag" ||
23255          test ! -s conftest.err
23256        } && test -s conftest$ac_exeext &&
23257        $as_test_x conftest$ac_exeext; then
23258   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23259 else
23260   echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23262
23263         ac_cv_lib_dnet_stub_dnet_ntoa=no
23264 fi
23265
23266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23267       conftest$ac_exeext conftest.$ac_ext
23268 LIBS=$ac_check_lib_save_LIBS
23269 fi
23270 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23271 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23272 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23273   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23274 fi
23275
23276     fi
23277 fi
23278
23279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23280       conftest$ac_exeext conftest.$ac_ext
23281     LIBS="$ac_xsave_LIBS"
23282
23283     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23284     # to get the SysV transport functions.
23285     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23286     # needs -lnsl.
23287     # The nsl library prevents programs from opening the X display
23288     # on Irix 5.2, according to T.E. Dickey.
23289     # The functions gethostbyname, getservbyname, and inet_addr are
23290     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23291     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23292 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23293 if test "${ac_cv_func_gethostbyname+set}" = set; then
23294   echo $ECHO_N "(cached) $ECHO_C" >&6
23295 else
23296   cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23304 #define gethostbyname innocuous_gethostbyname
23305
23306 /* System header to define __stub macros and hopefully few prototypes,
23307     which can conflict with char gethostbyname (); below.
23308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23309     <limits.h> exists even on freestanding compilers.  */
23310
23311 #ifdef __STDC__
23312 # include <limits.h>
23313 #else
23314 # include <assert.h>
23315 #endif
23316
23317 #undef gethostbyname
23318
23319 /* Override any GCC internal prototype to avoid an error.
23320    Use char because int might match the return type of a GCC
23321    builtin and then its argument prototype would still apply.  */
23322 #ifdef __cplusplus
23323 extern "C"
23324 #endif
23325 char gethostbyname ();
23326 /* The GNU C library defines this for functions which it implements
23327     to always fail with ENOSYS.  Some functions are actually named
23328     something starting with __ and the normal name is an alias.  */
23329 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23330 choke me
23331 #endif
23332
23333 int
23334 main ()
23335 {
23336 return gethostbyname ();
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (ac_try="$ac_link"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348   (eval "$ac_link") 2>conftest.er1
23349   ac_status=$?
23350   grep -v '^ *+' conftest.er1 >conftest.err
23351   rm -f conftest.er1
23352   cat conftest.err >&5
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); } && {
23355          test -z "$ac_c_werror_flag" ||
23356          test ! -s conftest.err
23357        } && test -s conftest$ac_exeext &&
23358        $as_test_x conftest$ac_exeext; then
23359   ac_cv_func_gethostbyname=yes
23360 else
23361   echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23363
23364         ac_cv_func_gethostbyname=no
23365 fi
23366
23367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23368       conftest$ac_exeext conftest.$ac_ext
23369 fi
23370 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23371 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23372
23373     if test $ac_cv_func_gethostbyname = no; then
23374       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23375 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23376 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23377   echo $ECHO_N "(cached) $ECHO_C" >&6
23378 else
23379   ac_check_lib_save_LIBS=$LIBS
23380 LIBS="-lnsl  $LIBS"
23381 cat >conftest.$ac_ext <<_ACEOF
23382 /* confdefs.h.  */
23383 _ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h.  */
23387
23388 /* Override any GCC internal prototype to avoid an error.
23389    Use char because int might match the return type of a GCC
23390    builtin and then its argument prototype would still apply.  */
23391 #ifdef __cplusplus
23392 extern "C"
23393 #endif
23394 char gethostbyname ();
23395 int
23396 main ()
23397 {
23398 return gethostbyname ();
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext conftest$ac_exeext
23404 if { (ac_try="$ac_link"
23405 case "(($ac_try" in
23406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407   *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410   (eval "$ac_link") 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } && {
23417          test -z "$ac_c_werror_flag" ||
23418          test ! -s conftest.err
23419        } && test -s conftest$ac_exeext &&
23420        $as_test_x conftest$ac_exeext; then
23421   ac_cv_lib_nsl_gethostbyname=yes
23422 else
23423   echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23425
23426         ac_cv_lib_nsl_gethostbyname=no
23427 fi
23428
23429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23430       conftest$ac_exeext conftest.$ac_ext
23431 LIBS=$ac_check_lib_save_LIBS
23432 fi
23433 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23434 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23435 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23436   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23437 fi
23438
23439       if test $ac_cv_lib_nsl_gethostbyname = no; then
23440         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23441 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23442 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23443   echo $ECHO_N "(cached) $ECHO_C" >&6
23444 else
23445   ac_check_lib_save_LIBS=$LIBS
23446 LIBS="-lbsd  $LIBS"
23447 cat >conftest.$ac_ext <<_ACEOF
23448 /* confdefs.h.  */
23449 _ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h.  */
23453
23454 /* Override any GCC internal prototype to avoid an error.
23455    Use char because int might match the return type of a GCC
23456    builtin and then its argument prototype would still apply.  */
23457 #ifdef __cplusplus
23458 extern "C"
23459 #endif
23460 char gethostbyname ();
23461 int
23462 main ()
23463 {
23464 return gethostbyname ();
23465   ;
23466   return 0;
23467 }
23468 _ACEOF
23469 rm -f conftest.$ac_objext conftest$ac_exeext
23470 if { (ac_try="$ac_link"
23471 case "(($ac_try" in
23472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473   *) ac_try_echo=$ac_try;;
23474 esac
23475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476   (eval "$ac_link") 2>conftest.er1
23477   ac_status=$?
23478   grep -v '^ *+' conftest.er1 >conftest.err
23479   rm -f conftest.er1
23480   cat conftest.err >&5
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } && {
23483          test -z "$ac_c_werror_flag" ||
23484          test ! -s conftest.err
23485        } && test -s conftest$ac_exeext &&
23486        $as_test_x conftest$ac_exeext; then
23487   ac_cv_lib_bsd_gethostbyname=yes
23488 else
23489   echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492         ac_cv_lib_bsd_gethostbyname=no
23493 fi
23494
23495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23496       conftest$ac_exeext conftest.$ac_ext
23497 LIBS=$ac_check_lib_save_LIBS
23498 fi
23499 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23500 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23501 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23502   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23503 fi
23504
23505       fi
23506     fi
23507
23508     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23509     # socket/setsockopt and other routines are undefined under SCO ODT
23510     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23511     # on later versions), says Simon Leinen: it contains gethostby*
23512     # variants that don't use the name server (or something).  -lsocket
23513     # must be given before -lnsl if both are needed.  We assume that
23514     # if connect needs -lnsl, so does gethostbyname.
23515     { echo "$as_me:$LINENO: checking for connect" >&5
23516 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23517 if test "${ac_cv_func_connect+set}" = set; then
23518   echo $ECHO_N "(cached) $ECHO_C" >&6
23519 else
23520   cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h.  */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h.  */
23526 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23528 #define connect innocuous_connect
23529
23530 /* System header to define __stub macros and hopefully few prototypes,
23531     which can conflict with char connect (); below.
23532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23533     <limits.h> exists even on freestanding compilers.  */
23534
23535 #ifdef __STDC__
23536 # include <limits.h>
23537 #else
23538 # include <assert.h>
23539 #endif
23540
23541 #undef connect
23542
23543 /* Override any GCC internal prototype to avoid an error.
23544    Use char because int might match the return type of a GCC
23545    builtin and then its argument prototype would still apply.  */
23546 #ifdef __cplusplus
23547 extern "C"
23548 #endif
23549 char connect ();
23550 /* The GNU C library defines this for functions which it implements
23551     to always fail with ENOSYS.  Some functions are actually named
23552     something starting with __ and the normal name is an alias.  */
23553 #if defined __stub_connect || defined __stub___connect
23554 choke me
23555 #endif
23556
23557 int
23558 main ()
23559 {
23560 return connect ();
23561   ;
23562   return 0;
23563 }
23564 _ACEOF
23565 rm -f conftest.$ac_objext conftest$ac_exeext
23566 if { (ac_try="$ac_link"
23567 case "(($ac_try" in
23568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23569   *) ac_try_echo=$ac_try;;
23570 esac
23571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23572   (eval "$ac_link") 2>conftest.er1
23573   ac_status=$?
23574   grep -v '^ *+' conftest.er1 >conftest.err
23575   rm -f conftest.er1
23576   cat conftest.err >&5
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } && {
23579          test -z "$ac_c_werror_flag" ||
23580          test ! -s conftest.err
23581        } && test -s conftest$ac_exeext &&
23582        $as_test_x conftest$ac_exeext; then
23583   ac_cv_func_connect=yes
23584 else
23585   echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23587
23588         ac_cv_func_connect=no
23589 fi
23590
23591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23592       conftest$ac_exeext conftest.$ac_ext
23593 fi
23594 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23595 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23596
23597     if test $ac_cv_func_connect = no; then
23598       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23599 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23600 if test "${ac_cv_lib_socket_connect+set}" = set; then
23601   echo $ECHO_N "(cached) $ECHO_C" >&6
23602 else
23603   ac_check_lib_save_LIBS=$LIBS
23604 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23605 cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611
23612 /* Override any GCC internal prototype to avoid an error.
23613    Use char because int might match the return type of a GCC
23614    builtin and then its argument prototype would still apply.  */
23615 #ifdef __cplusplus
23616 extern "C"
23617 #endif
23618 char connect ();
23619 int
23620 main ()
23621 {
23622 return connect ();
23623   ;
23624   return 0;
23625 }
23626 _ACEOF
23627 rm -f conftest.$ac_objext conftest$ac_exeext
23628 if { (ac_try="$ac_link"
23629 case "(($ac_try" in
23630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631   *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634   (eval "$ac_link") 2>conftest.er1
23635   ac_status=$?
23636   grep -v '^ *+' conftest.er1 >conftest.err
23637   rm -f conftest.er1
23638   cat conftest.err >&5
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); } && {
23641          test -z "$ac_c_werror_flag" ||
23642          test ! -s conftest.err
23643        } && test -s conftest$ac_exeext &&
23644        $as_test_x conftest$ac_exeext; then
23645   ac_cv_lib_socket_connect=yes
23646 else
23647   echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23649
23650         ac_cv_lib_socket_connect=no
23651 fi
23652
23653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23654       conftest$ac_exeext conftest.$ac_ext
23655 LIBS=$ac_check_lib_save_LIBS
23656 fi
23657 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23658 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23659 if test $ac_cv_lib_socket_connect = yes; then
23660   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23661 fi
23662
23663     fi
23664
23665     # Guillermo Gomez says -lposix is necessary on A/UX.
23666     { echo "$as_me:$LINENO: checking for remove" >&5
23667 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23668 if test "${ac_cv_func_remove+set}" = set; then
23669   echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671   cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h.  */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h.  */
23677 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23679 #define remove innocuous_remove
23680
23681 /* System header to define __stub macros and hopefully few prototypes,
23682     which can conflict with char remove (); below.
23683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23684     <limits.h> exists even on freestanding compilers.  */
23685
23686 #ifdef __STDC__
23687 # include <limits.h>
23688 #else
23689 # include <assert.h>
23690 #endif
23691
23692 #undef remove
23693
23694 /* Override any GCC internal prototype to avoid an error.
23695    Use char because int might match the return type of a GCC
23696    builtin and then its argument prototype would still apply.  */
23697 #ifdef __cplusplus
23698 extern "C"
23699 #endif
23700 char remove ();
23701 /* The GNU C library defines this for functions which it implements
23702     to always fail with ENOSYS.  Some functions are actually named
23703     something starting with __ and the normal name is an alias.  */
23704 #if defined __stub_remove || defined __stub___remove
23705 choke me
23706 #endif
23707
23708 int
23709 main ()
23710 {
23711 return remove ();
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720   *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723   (eval "$ac_link") 2>conftest.er1
23724   ac_status=$?
23725   grep -v '^ *+' conftest.er1 >conftest.err
23726   rm -f conftest.er1
23727   cat conftest.err >&5
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); } && {
23730          test -z "$ac_c_werror_flag" ||
23731          test ! -s conftest.err
23732        } && test -s conftest$ac_exeext &&
23733        $as_test_x conftest$ac_exeext; then
23734   ac_cv_func_remove=yes
23735 else
23736   echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739         ac_cv_func_remove=no
23740 fi
23741
23742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23743       conftest$ac_exeext conftest.$ac_ext
23744 fi
23745 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23746 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23747
23748     if test $ac_cv_func_remove = no; then
23749       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23750 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23751 if test "${ac_cv_lib_posix_remove+set}" = set; then
23752   echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23754   ac_check_lib_save_LIBS=$LIBS
23755 LIBS="-lposix  $LIBS"
23756 cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762
23763 /* Override any GCC internal prototype to avoid an error.
23764    Use char because int might match the return type of a GCC
23765    builtin and then its argument prototype would still apply.  */
23766 #ifdef __cplusplus
23767 extern "C"
23768 #endif
23769 char remove ();
23770 int
23771 main ()
23772 {
23773 return remove ();
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (ac_try="$ac_link"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_link") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_c_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest$ac_exeext &&
23795        $as_test_x conftest$ac_exeext; then
23796   ac_cv_lib_posix_remove=yes
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801         ac_cv_lib_posix_remove=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23805       conftest$ac_exeext conftest.$ac_ext
23806 LIBS=$ac_check_lib_save_LIBS
23807 fi
23808 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23809 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23810 if test $ac_cv_lib_posix_remove = yes; then
23811   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23812 fi
23813
23814     fi
23815
23816     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23817     { echo "$as_me:$LINENO: checking for shmat" >&5
23818 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23819 if test "${ac_cv_func_shmat+set}" = set; then
23820   echo $ECHO_N "(cached) $ECHO_C" >&6
23821 else
23822   cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23830 #define shmat innocuous_shmat
23831
23832 /* System header to define __stub macros and hopefully few prototypes,
23833     which can conflict with char shmat (); below.
23834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23835     <limits.h> exists even on freestanding compilers.  */
23836
23837 #ifdef __STDC__
23838 # include <limits.h>
23839 #else
23840 # include <assert.h>
23841 #endif
23842
23843 #undef shmat
23844
23845 /* Override any GCC internal prototype to avoid an error.
23846    Use char because int might match the return type of a GCC
23847    builtin and then its argument prototype would still apply.  */
23848 #ifdef __cplusplus
23849 extern "C"
23850 #endif
23851 char shmat ();
23852 /* The GNU C library defines this for functions which it implements
23853     to always fail with ENOSYS.  Some functions are actually named
23854     something starting with __ and the normal name is an alias.  */
23855 #if defined __stub_shmat || defined __stub___shmat
23856 choke me
23857 #endif
23858
23859 int
23860 main ()
23861 {
23862 return shmat ();
23863   ;
23864   return 0;
23865 }
23866 _ACEOF
23867 rm -f conftest.$ac_objext conftest$ac_exeext
23868 if { (ac_try="$ac_link"
23869 case "(($ac_try" in
23870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871   *) ac_try_echo=$ac_try;;
23872 esac
23873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23874   (eval "$ac_link") 2>conftest.er1
23875   ac_status=$?
23876   grep -v '^ *+' conftest.er1 >conftest.err
23877   rm -f conftest.er1
23878   cat conftest.err >&5
23879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880   (exit $ac_status); } && {
23881          test -z "$ac_c_werror_flag" ||
23882          test ! -s conftest.err
23883        } && test -s conftest$ac_exeext &&
23884        $as_test_x conftest$ac_exeext; then
23885   ac_cv_func_shmat=yes
23886 else
23887   echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890         ac_cv_func_shmat=no
23891 fi
23892
23893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23894       conftest$ac_exeext conftest.$ac_ext
23895 fi
23896 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23897 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23898
23899     if test $ac_cv_func_shmat = no; then
23900       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23901 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23902 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23903   echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905   ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lipc  $LIBS"
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913
23914 /* Override any GCC internal prototype to avoid an error.
23915    Use char because int might match the return type of a GCC
23916    builtin and then its argument prototype would still apply.  */
23917 #ifdef __cplusplus
23918 extern "C"
23919 #endif
23920 char shmat ();
23921 int
23922 main ()
23923 {
23924 return shmat ();
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (ac_try="$ac_link"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_link") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && {
23943          test -z "$ac_c_werror_flag" ||
23944          test ! -s conftest.err
23945        } && test -s conftest$ac_exeext &&
23946        $as_test_x conftest$ac_exeext; then
23947   ac_cv_lib_ipc_shmat=yes
23948 else
23949   echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23951
23952         ac_cv_lib_ipc_shmat=no
23953 fi
23954
23955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23956       conftest$ac_exeext conftest.$ac_ext
23957 LIBS=$ac_check_lib_save_LIBS
23958 fi
23959 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23960 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23961 if test $ac_cv_lib_ipc_shmat = yes; then
23962   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23963 fi
23964
23965     fi
23966   fi
23967
23968   # Check for libraries that X11R6 Xt/Xaw programs need.
23969   ac_save_LDFLAGS=$LDFLAGS
23970   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23971   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23972   # check for ICE first), but we must link in the order -lSM -lICE or
23973   # we get undefined symbols.  So assume we have SM if we have ICE.
23974   # These have to be linked with before -lX11, unlike the other
23975   # libraries we check for below, so use a different variable.
23976   # John Interrante, Karl Berry
23977   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23978 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23979 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23980   echo $ECHO_N "(cached) $ECHO_C" >&6
23981 else
23982   ac_check_lib_save_LIBS=$LIBS
23983 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23984 cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990
23991 /* Override any GCC internal prototype to avoid an error.
23992    Use char because int might match the return type of a GCC
23993    builtin and then its argument prototype would still apply.  */
23994 #ifdef __cplusplus
23995 extern "C"
23996 #endif
23997 char IceConnectionNumber ();
23998 int
23999 main ()
24000 {
24001 return IceConnectionNumber ();
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 rm -f conftest.$ac_objext conftest$ac_exeext
24007 if { (ac_try="$ac_link"
24008 case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_link") 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } && {
24020          test -z "$ac_c_werror_flag" ||
24021          test ! -s conftest.err
24022        } && test -s conftest$ac_exeext &&
24023        $as_test_x conftest$ac_exeext; then
24024   ac_cv_lib_ICE_IceConnectionNumber=yes
24025 else
24026   echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24028
24029         ac_cv_lib_ICE_IceConnectionNumber=no
24030 fi
24031
24032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24033       conftest$ac_exeext conftest.$ac_ext
24034 LIBS=$ac_check_lib_save_LIBS
24035 fi
24036 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24037 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24038 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24039   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24040 fi
24041
24042   LDFLAGS=$ac_save_LDFLAGS
24043
24044 fi
24045
24046         if test x$have_x = xyes; then
24047             # Only allow dynamically loaded X11 if the X11 function pointers
24048             # will not end up in the global namespace, which causes problems
24049             # with other libraries calling X11 functions.
24050             x11_symbols_private=$have_gcc_fvisibility
24051
24052             # Check whether --enable-x11-shared was given.
24053 if test "${enable_x11_shared+set}" = set; then
24054   enableval=$enable_x11_shared;
24055 else
24056   enable_x11_shared=maybe
24057 fi
24058
24059
24060             case "$host" in
24061                 *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
24062                     x11_symbols_private=yes
24063                     x11_lib='/usr/X11R6/lib/libX11.6.dylib'
24064                     x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
24065                     xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
24066                     xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
24067                     ;;
24068                 *-*-osf*)
24069                     x11_lib='libX11.so'
24070                     x11ext_lib='libXext.so'
24071                     ;;
24072                 *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
24073                     x11_lib='libX11.so'
24074                     x11ext_lib='libXext.so'
24075                     ;;
24076                 *)
24077                     x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24078                     x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24079                     xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24080                     xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24081                     ;;
24082             esac
24083
24084             X_CFLAGS="$X_CFLAGS -DXTHREADS"
24085             if test x$ac_cv_func_shmat != xyes; then
24086                 X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
24087             fi
24088             CFLAGS="$CFLAGS $X_CFLAGS"
24089             LDFLAGS="$LDFLAGS $X_LIBS"
24090
24091             cat >>confdefs.h <<\_ACEOF
24092 #define SDL_VIDEO_DRIVER_X11 1
24093 _ACEOF
24094
24095             SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
24096             EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
24097
24098             if test x$enable_x11_shared = xmaybe; then
24099                 enable_x11_shared=$x11_symbols_private
24100             fi
24101             if test x$have_loadso != xyes && \
24102                test x$enable_x11_shared = xyes; then
24103                 { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
24104 echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
24105                 enable_x11_shared=no
24106             fi
24107             if test x$x11_symbols_private != xyes && \
24108                test x$enable_x11_shared = xyes; then
24109                 { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
24110 echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
24111                 enable_x11_shared=no
24112             fi
24113
24114             if test x$have_loadso = xyes && \
24115                test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
24116                 echo "-- dynamic libX11 -> $x11_lib"
24117                 echo "-- dynamic libX11ext -> $x11ext_lib"
24118                 cat >>confdefs.h <<_ACEOF
24119 #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
24120 _ACEOF
24121
24122                 cat >>confdefs.h <<_ACEOF
24123 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
24124 _ACEOF
24125
24126             else
24127                 enable_x11_shared=no
24128                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
24129             fi
24130             have_video=yes
24131
24132             # Check whether --enable-dga was given.
24133 if test "${enable_dga+set}" = set; then
24134   enableval=$enable_dga;
24135 else
24136   enable_dga=yes
24137 fi
24138
24139             if test x$enable_dga = xyes; then
24140                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
24141             fi
24142             # Check whether --enable-video-dga was given.
24143 if test "${enable_video_dga+set}" = set; then
24144   enableval=$enable_video_dga;
24145 else
24146   enable_video_dga=yes
24147 fi
24148
24149             if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
24150                 cat >>confdefs.h <<\_ACEOF
24151 #define SDL_VIDEO_DRIVER_DGA 1
24152 _ACEOF
24153
24154                 SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
24155             fi
24156             # Check whether --enable-video-x11-dgamouse was given.
24157 if test "${enable_video_x11_dgamouse+set}" = set; then
24158   enableval=$enable_video_x11_dgamouse;
24159 else
24160   enable_video_x11_dgamouse=yes
24161 fi
24162
24163             if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
24164                 cat >>confdefs.h <<\_ACEOF
24165 #define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
24166 _ACEOF
24167
24168             fi
24169             # Check whether --enable-video-x11-vm was given.
24170 if test "${enable_video_x11_vm+set}" = set; then
24171   enableval=$enable_video_x11_vm;
24172 else
24173   enable_video_x11_vm=yes
24174 fi
24175
24176             if test x$enable_video_x11_vm = xyes; then
24177                 cat >>confdefs.h <<\_ACEOF
24178 #define SDL_VIDEO_DRIVER_X11_VIDMODE 1
24179 _ACEOF
24180
24181                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
24182             fi
24183             # Check whether --enable-video-x11-xv was given.
24184 if test "${enable_video_x11_xv+set}" = set; then
24185   enableval=$enable_video_x11_xv;
24186 else
24187   enable_video_x11_xv=yes
24188 fi
24189
24190             if test x$enable_video_x11_xv = xyes; then
24191                 cat >>confdefs.h <<\_ACEOF
24192 #define SDL_VIDEO_DRIVER_X11_XV 1
24193 _ACEOF
24194
24195                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
24196             fi
24197             # Check whether --enable-video-x11-xinerama was given.
24198 if test "${enable_video_x11_xinerama+set}" = set; then
24199   enableval=$enable_video_x11_xinerama;
24200 else
24201   enable_video_x11_xinerama=yes
24202 fi
24203
24204             if test x$enable_video_x11_xinerama = xyes; then
24205                 cat >>confdefs.h <<\_ACEOF
24206 #define SDL_VIDEO_DRIVER_X11_XINERAMA 1
24207 _ACEOF
24208
24209                 SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
24210             fi
24211             # Check whether --enable-video-x11-xme was given.
24212 if test "${enable_video_x11_xme+set}" = set; then
24213   enableval=$enable_video_x11_xme;
24214 else
24215   enable_video_x11_xme=yes
24216 fi
24217
24218             if test x$enable_video_x11_xme = xyes; then
24219                 cat >>confdefs.h <<\_ACEOF
24220 #define SDL_VIDEO_DRIVER_X11_XME 1
24221 _ACEOF
24222
24223                 SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
24224             fi
24225             # Check whether --enable-video-x11-xrandr was given.
24226 if test "${enable_video_x11_xrandr+set}" = set; then
24227   enableval=$enable_video_x11_xrandr;
24228 else
24229   enable_video_x11_xrandr=yes
24230 fi
24231
24232             if test x$enable_video_x11_xrandr = xyes; then
24233                 definitely_enable_video_x11_xrandr=no
24234                 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
24235 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
24236 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
24237   echo $ECHO_N "(cached) $ECHO_C" >&6
24238 else
24239   cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 #include <X11/Xlib.h>
24246
24247
24248 #include <X11/extensions/Xrandr.h>
24249 _ACEOF
24250 rm -f conftest.$ac_objext
24251 if { (ac_try="$ac_compile"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_compile") 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && {
24264          test -z "$ac_c_werror_flag" ||
24265          test ! -s conftest.err
24266        } && test -s conftest.$ac_objext; then
24267   ac_cv_header_X11_extensions_Xrandr_h=yes
24268 else
24269   echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272         ac_cv_header_X11_extensions_Xrandr_h=no
24273 fi
24274
24275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 fi
24277 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
24278 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
24279 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
24280   have_xrandr_h_hdr=yes
24281 else
24282   have_xrandr_h_hdr=no
24283 fi
24284
24285
24286                 if test x$have_xrandr_h_hdr = xyes; then
24287                     if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
24288                         echo "-- dynamic libXrender -> $xrender_lib"
24289                         echo "-- dynamic libXrandr -> $xrandr_lib"
24290                         cat >>confdefs.h <<_ACEOF
24291 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
24292 _ACEOF
24293
24294                         cat >>confdefs.h <<_ACEOF
24295 #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
24296 _ACEOF
24297
24298                         definitely_enable_video_x11_xrandr=yes
24299                     else
24300                         { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
24301 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
24302 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
24303   echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305   ac_check_lib_save_LIBS=$LIBS
24306 LIBS="-lXrender  $LIBS"
24307 cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h.  */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h.  */
24313
24314 /* Override any GCC internal prototype to avoid an error.
24315    Use char because int might match the return type of a GCC
24316    builtin and then its argument prototype would still apply.  */
24317 #ifdef __cplusplus
24318 extern "C"
24319 #endif
24320 char XRenderQueryExtension ();
24321 int
24322 main ()
24323 {
24324 return XRenderQueryExtension ();
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (ac_try="$ac_link"
24331 case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_link") 2>conftest.er1
24337   ac_status=$?
24338   grep -v '^ *+' conftest.er1 >conftest.err
24339   rm -f conftest.er1
24340   cat conftest.err >&5
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && {
24343          test -z "$ac_c_werror_flag" ||
24344          test ! -s conftest.err
24345        } && test -s conftest$ac_exeext &&
24346        $as_test_x conftest$ac_exeext; then
24347   ac_cv_lib_Xrender_XRenderQueryExtension=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352         ac_cv_lib_Xrender_XRenderQueryExtension=no
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24356       conftest$ac_exeext conftest.$ac_ext
24357 LIBS=$ac_check_lib_save_LIBS
24358 fi
24359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
24360 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
24361 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
24362   have_xrender_lib=yes
24363 fi
24364
24365                         { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
24366 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
24367 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
24368   echo $ECHO_N "(cached) $ECHO_C" >&6
24369 else
24370   ac_check_lib_save_LIBS=$LIBS
24371 LIBS="-lXrandr  $LIBS"
24372 cat >conftest.$ac_ext <<_ACEOF
24373 /* confdefs.h.  */
24374 _ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h.  */
24378
24379 /* Override any GCC internal prototype to avoid an error.
24380    Use char because int might match the return type of a GCC
24381    builtin and then its argument prototype would still apply.  */
24382 #ifdef __cplusplus
24383 extern "C"
24384 #endif
24385 char XRRQueryExtension ();
24386 int
24387 main ()
24388 {
24389 return XRRQueryExtension ();
24390   ;
24391   return 0;
24392 }
24393 _ACEOF
24394 rm -f conftest.$ac_objext conftest$ac_exeext
24395 if { (ac_try="$ac_link"
24396 case "(($ac_try" in
24397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398   *) ac_try_echo=$ac_try;;
24399 esac
24400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401   (eval "$ac_link") 2>conftest.er1
24402   ac_status=$?
24403   grep -v '^ *+' conftest.er1 >conftest.err
24404   rm -f conftest.er1
24405   cat conftest.err >&5
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); } && {
24408          test -z "$ac_c_werror_flag" ||
24409          test ! -s conftest.err
24410        } && test -s conftest$ac_exeext &&
24411        $as_test_x conftest$ac_exeext; then
24412   ac_cv_lib_Xrandr_XRRQueryExtension=yes
24413 else
24414   echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24416
24417         ac_cv_lib_Xrandr_XRRQueryExtension=no
24418 fi
24419
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
24423 fi
24424 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
24425 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
24426 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
24427   have_xrandr_lib=yes
24428 fi
24429
24430                         if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then
24431                             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender"
24432                             definitely_enable_video_x11_xrandr=yes
24433                         fi
24434                     fi
24435                 fi
24436             fi
24437             if test x$definitely_enable_video_x11_xrandr = xyes; then
24438                 cat >>confdefs.h <<\_ACEOF
24439 #define SDL_VIDEO_DRIVER_X11_XRANDR 1
24440 _ACEOF
24441
24442             fi
24443         fi
24444     fi
24445 }
24446
24447 CheckPHOTON()
24448 {
24449     # Check whether --enable-video-photon was given.
24450 if test "${enable_video_photon+set}" = set; then
24451   enableval=$enable_video_photon;
24452 else
24453   enable_video_photon=yes
24454 fi
24455
24456     if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
24457         { echo "$as_me:$LINENO: checking for QNX Photon support" >&5
24458 echo $ECHO_N "checking for QNX Photon support... $ECHO_C" >&6; }
24459         video_photon=no
24460         cat >conftest.$ac_ext <<_ACEOF
24461 /* confdefs.h.  */
24462 _ACEOF
24463 cat confdefs.h >>conftest.$ac_ext
24464 cat >>conftest.$ac_ext <<_ACEOF
24465 /* end confdefs.h.  */
24466
24467           #include <Ph.h>
24468           #include <Pt.h>
24469           #include <photon/Pg.h>
24470           #include <photon/PdDirect.h>
24471
24472 int
24473 main ()
24474 {
24475
24476          PgDisplaySettings_t *visual;
24477
24478   ;
24479   return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_compile") 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } && {
24496          test -z "$ac_c_werror_flag" ||
24497          test ! -s conftest.err
24498        } && test -s conftest.$ac_objext; then
24499
24500         video_photon=yes
24501
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506
24507 fi
24508
24509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24510         { echo "$as_me:$LINENO: result: $video_photon" >&5
24511 echo "${ECHO_T}$video_photon" >&6; }
24512         if test x$video_photon = xyes; then
24513             cat >>confdefs.h <<\_ACEOF
24514 #define SDL_VIDEO_DRIVER_PHOTON 1
24515 _ACEOF
24516
24517             SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
24518             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
24519             have_video=yes
24520
24521             CheckOpenGLQNX
24522         fi
24523     fi
24524 }
24525
24526 CheckBWINDOW()
24527 {
24528     if test x$enable_video = xyes; then
24529         cat >>confdefs.h <<\_ACEOF
24530 #define SDL_VIDEO_DRIVER_BWINDOW 1
24531 _ACEOF
24532
24533         SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
24534         have_video=yes
24535     fi
24536 }
24537
24538 CheckCARBON()
24539 {
24540     # Check whether --enable-video-carbon was given.
24541 if test "${enable_video_carbon+set}" = set; then
24542   enableval=$enable_video_carbon;
24543 else
24544   enable_video_carbon=no
24545 fi
24546
24547     if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
24548         { echo "$as_me:$LINENO: checking for Carbon framework" >&5
24549 echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
24550         have_carbon=no
24551         cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h.  */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h.  */
24557
24558           #include <Carbon/Carbon.h>
24559
24560 int
24561 main ()
24562 {
24563
24564
24565   ;
24566   return 0;
24567 }
24568 _ACEOF
24569 rm -f conftest.$ac_objext
24570 if { (ac_try="$ac_compile"
24571 case "(($ac_try" in
24572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573   *) ac_try_echo=$ac_try;;
24574 esac
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576   (eval "$ac_compile") 2>conftest.er1
24577   ac_status=$?
24578   grep -v '^ *+' conftest.er1 >conftest.err
24579   rm -f conftest.er1
24580   cat conftest.err >&5
24581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582   (exit $ac_status); } && {
24583          test -z "$ac_c_werror_flag" ||
24584          test ! -s conftest.err
24585        } && test -s conftest.$ac_objext; then
24586
24587         have_carbon=yes
24588
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593
24594 fi
24595
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597         { echo "$as_me:$LINENO: result: $have_carbon" >&5
24598 echo "${ECHO_T}$have_carbon" >&6; }
24599         if test x$have_carbon = xyes; then
24600             cat >>confdefs.h <<\_ACEOF
24601 #define SDL_VIDEO_DRIVER_TOOLBOX 1
24602 _ACEOF
24603
24604             SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
24605             SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
24606             have_video=yes
24607         fi
24608     fi
24609 }
24610
24611 CheckCOCOA()
24612 {
24613     # Check whether --enable-video-cocoa was given.
24614 if test "${enable_video_cocoa+set}" = set; then
24615   enableval=$enable_video_cocoa;
24616 else
24617   enable_video_cocoa=yes
24618 fi
24619
24620     if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
24621         save_CFLAGS="$CFLAGS"
24622                 CFLAGS="$CFLAGS -x objective-c"
24623         { echo "$as_me:$LINENO: checking for Cocoa framework" >&5
24624 echo $ECHO_N "checking for Cocoa framework... $ECHO_C" >&6; }
24625         have_cocoa=no
24626         cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632
24633           #import <Cocoa/Cocoa.h>
24634
24635 int
24636 main ()
24637 {
24638
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_compile") 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && {
24658          test -z "$ac_c_werror_flag" ||
24659          test ! -s conftest.err
24660        } && test -s conftest.$ac_objext; then
24661
24662         have_cocoa=yes
24663
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672         { echo "$as_me:$LINENO: result: $have_cocoa" >&5
24673 echo "${ECHO_T}$have_cocoa" >&6; }
24674         CFLAGS="$save_CFLAGS"
24675         if test x$have_cocoa = xyes; then
24676             cat >>confdefs.h <<\_ACEOF
24677 #define SDL_VIDEO_DRIVER_QUARTZ 1
24678 _ACEOF
24679
24680             SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
24681             have_video=yes
24682         fi
24683     fi
24684 }
24685
24686 CheckFBCON()
24687 {
24688     # Check whether --enable-video-fbcon was given.
24689 if test "${enable_video_fbcon+set}" = set; then
24690   enableval=$enable_video_fbcon;
24691 else
24692   enable_video_fbcon=yes
24693 fi
24694
24695     if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
24696         { echo "$as_me:$LINENO: checking for framebuffer console support" >&5
24697 echo $ECHO_N "checking for framebuffer console support... $ECHO_C" >&6; }
24698         video_fbcon=no
24699         cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705
24706          #include <linux/fb.h>
24707          #include <linux/kd.h>
24708          #include <linux/keyboard.h>
24709
24710 int
24711 main ()
24712 {
24713
24714
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (ac_try="$ac_compile"
24721 case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_compile") 2>conftest.er1
24727   ac_status=$?
24728   grep -v '^ *+' conftest.er1 >conftest.err
24729   rm -f conftest.er1
24730   cat conftest.err >&5
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); } && {
24733          test -z "$ac_c_werror_flag" ||
24734          test ! -s conftest.err
24735        } && test -s conftest.$ac_objext; then
24736
24737         video_fbcon=yes
24738
24739 else
24740   echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24742
24743
24744 fi
24745
24746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24747         { echo "$as_me:$LINENO: result: $video_fbcon" >&5
24748 echo "${ECHO_T}$video_fbcon" >&6; }
24749         if test x$video_fbcon = xyes; then
24750
24751 for ac_func in getpagesize
24752 do
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24757   echo $ECHO_N "(cached) $ECHO_C" >&6
24758 else
24759   cat >conftest.$ac_ext <<_ACEOF
24760 /* confdefs.h.  */
24761 _ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h.  */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24767 #define $ac_func innocuous_$ac_func
24768
24769 /* System header to define __stub macros and hopefully few prototypes,
24770     which can conflict with char $ac_func (); below.
24771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772     <limits.h> exists even on freestanding compilers.  */
24773
24774 #ifdef __STDC__
24775 # include <limits.h>
24776 #else
24777 # include <assert.h>
24778 #endif
24779
24780 #undef $ac_func
24781
24782 /* Override any GCC internal prototype to avoid an error.
24783    Use char because int might match the return type of a GCC
24784    builtin and then its argument prototype would still apply.  */
24785 #ifdef __cplusplus
24786 extern "C"
24787 #endif
24788 char $ac_func ();
24789 /* The GNU C library defines this for functions which it implements
24790     to always fail with ENOSYS.  Some functions are actually named
24791     something starting with __ and the normal name is an alias.  */
24792 #if defined __stub_$ac_func || defined __stub___$ac_func
24793 choke me
24794 #endif
24795
24796 int
24797 main ()
24798 {
24799 return $ac_func ();
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (ac_try="$ac_link"
24806 case "(($ac_try" in
24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808   *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811   (eval "$ac_link") 2>conftest.er1
24812   ac_status=$?
24813   grep -v '^ *+' conftest.er1 >conftest.err
24814   rm -f conftest.er1
24815   cat conftest.err >&5
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } && {
24818          test -z "$ac_c_werror_flag" ||
24819          test ! -s conftest.err
24820        } && test -s conftest$ac_exeext &&
24821        $as_test_x conftest$ac_exeext; then
24822   eval "$as_ac_var=yes"
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827         eval "$as_ac_var=no"
24828 fi
24829
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831       conftest$ac_exeext conftest.$ac_ext
24832 fi
24833 ac_res=`eval echo '${'$as_ac_var'}'`
24834                { echo "$as_me:$LINENO: result: $ac_res" >&5
24835 echo "${ECHO_T}$ac_res" >&6; }
24836 if test `eval echo '${'$as_ac_var'}'` = yes; then
24837   cat >>confdefs.h <<_ACEOF
24838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24839 _ACEOF
24840
24841 fi
24842 done
24843
24844             cat >>confdefs.h <<\_ACEOF
24845 #define SDL_VIDEO_DRIVER_FBCON 1
24846 _ACEOF
24847
24848             SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
24849             have_video=yes
24850         fi
24851     fi
24852 }
24853
24854 CheckDirectFB()
24855 {
24856     # Check whether --enable-video-directfb was given.
24857 if test "${enable_video_directfb+set}" = set; then
24858   enableval=$enable_video_directfb;
24859 else
24860   enable_video_directfb=yes
24861 fi
24862
24863     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
24864         video_directfb=no
24865
24866         DIRECTFB_REQUIRED_VERSION=0.9.15
24867
24868         # Extract the first word of "directfb-config", so it can be a program name with args.
24869 set dummy directfb-config; ac_word=$2
24870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24872 if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
24873   echo $ECHO_N "(cached) $ECHO_C" >&6
24874 else
24875   case $DIRECTFBCONFIG in
24876   [\\/]* | ?:[\\/]*)
24877   ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
24878   ;;
24879   *)
24880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24882 do
24883   IFS=$as_save_IFS
24884   test -z "$as_dir" && as_dir=.
24885   for ac_exec_ext in '' $ac_executable_extensions; do
24886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24887     ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
24888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24889     break 2
24890   fi
24891 done
24892 done
24893 IFS=$as_save_IFS
24894
24895   test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no"
24896   ;;
24897 esac
24898 fi
24899 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
24900 if test -n "$DIRECTFBCONFIG"; then
24901   { echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
24902 echo "${ECHO_T}$DIRECTFBCONFIG" >&6; }
24903 else
24904   { echo "$as_me:$LINENO: result: no" >&5
24905 echo "${ECHO_T}no" >&6; }
24906 fi
24907
24908
24909         if test x$DIRECTFBCONFIG = xno; then
24910             # Extract the first word of "pkg-config", so it can be a program name with args.
24911 set dummy pkg-config; ac_word=$2
24912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24915   echo $ECHO_N "(cached) $ECHO_C" >&6
24916 else
24917   case $PKG_CONFIG in
24918   [\\/]* | ?:[\\/]*)
24919   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24920   ;;
24921   *)
24922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24923 for as_dir in $PATH
24924 do
24925   IFS=$as_save_IFS
24926   test -z "$as_dir" && as_dir=.
24927   for ac_exec_ext in '' $ac_executable_extensions; do
24928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24929     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24931     break 2
24932   fi
24933 done
24934 done
24935 IFS=$as_save_IFS
24936
24937   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24938   ;;
24939 esac
24940 fi
24941 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24942 if test -n "$PKG_CONFIG"; then
24943   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24944 echo "${ECHO_T}$PKG_CONFIG" >&6; }
24945 else
24946   { echo "$as_me:$LINENO: result: no" >&5
24947 echo "${ECHO_T}no" >&6; }
24948 fi
24949
24950
24951             if test x$PKG_CONFIG != xno; then
24952                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
24953                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
24954                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
24955                     video_directfb=yes
24956                 fi
24957             fi
24958         else
24959             set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
24960             NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24961             set -- `directfb-config --version | sed 's/\./ /g'`
24962             HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24963             if test $HAVE_VERSION -ge $NEED_VERSION; then
24964                 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
24965                 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
24966                 video_directfb=yes
24967             fi
24968         fi
24969         if test x$video_directfb = xyes; then
24970             # SuSE 11.1 installs directfb-config without directfb-devel
24971             save_CFLAGS="$CFLAGS"
24972             CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
24973             if test "${ac_cv_header_directfb_h+set}" = set; then
24974   { echo "$as_me:$LINENO: checking for directfb.h" >&5
24975 echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
24976 if test "${ac_cv_header_directfb_h+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 fi
24979 { echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
24980 echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
24981 else
24982   # Is the header compilable?
24983 { echo "$as_me:$LINENO: checking directfb.h usability" >&5
24984 echo $ECHO_N "checking directfb.h usability... $ECHO_C" >&6; }
24985 cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991 $ac_includes_default
24992 #include <directfb.h>
24993 _ACEOF
24994 rm -f conftest.$ac_objext
24995 if { (ac_try="$ac_compile"
24996 case "(($ac_try" in
24997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998   *) ac_try_echo=$ac_try;;
24999 esac
25000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25001   (eval "$ac_compile") 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } && {
25008          test -z "$ac_c_werror_flag" ||
25009          test ! -s conftest.err
25010        } && test -s conftest.$ac_objext; then
25011   ac_header_compiler=yes
25012 else
25013   echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
25015
25016         ac_header_compiler=no
25017 fi
25018
25019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021 echo "${ECHO_T}$ac_header_compiler" >&6; }
25022
25023 # Is the header present?
25024 { echo "$as_me:$LINENO: checking directfb.h presence" >&5
25025 echo $ECHO_N "checking directfb.h presence... $ECHO_C" >&6; }
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032 #include <directfb.h>
25033 _ACEOF
25034 if { (ac_try="$ac_cpp conftest.$ac_ext"
25035 case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25041   ac_status=$?
25042   grep -v '^ *+' conftest.er1 >conftest.err
25043   rm -f conftest.er1
25044   cat conftest.err >&5
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); } >/dev/null && {
25047          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25048          test ! -s conftest.err
25049        }; then
25050   ac_header_preproc=yes
25051 else
25052   echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25054
25055   ac_header_preproc=no
25056 fi
25057
25058 rm -f conftest.err conftest.$ac_ext
25059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25060 echo "${ECHO_T}$ac_header_preproc" >&6; }
25061
25062 # So?  What about this header?
25063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25064   yes:no: )
25065     { echo "$as_me:$LINENO: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&5
25066 echo "$as_me: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25067     { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the compiler's result" >&5
25068 echo "$as_me: WARNING: directfb.h: proceeding with the compiler's result" >&2;}
25069     ac_header_preproc=yes
25070     ;;
25071   no:yes:* )
25072     { echo "$as_me:$LINENO: WARNING: directfb.h: present but cannot be compiled" >&5
25073 echo "$as_me: WARNING: directfb.h: present but cannot be compiled" >&2;}
25074     { echo "$as_me:$LINENO: WARNING: directfb.h:     check for missing prerequisite headers?" >&5
25075 echo "$as_me: WARNING: directfb.h:     check for missing prerequisite headers?" >&2;}
25076     { echo "$as_me:$LINENO: WARNING: directfb.h: see the Autoconf documentation" >&5
25077 echo "$as_me: WARNING: directfb.h: see the Autoconf documentation" >&2;}
25078     { echo "$as_me:$LINENO: WARNING: directfb.h:     section \"Present But Cannot Be Compiled\"" >&5
25079 echo "$as_me: WARNING: directfb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25080     { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the preprocessor's result" >&5
25081 echo "$as_me: WARNING: directfb.h: proceeding with the preprocessor's result" >&2;}
25082     { echo "$as_me:$LINENO: WARNING: directfb.h: in the future, the compiler will take precedence" >&5
25083 echo "$as_me: WARNING: directfb.h: in the future, the compiler will take precedence" >&2;}
25084
25085     ;;
25086 esac
25087 { echo "$as_me:$LINENO: checking for directfb.h" >&5
25088 echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
25089 if test "${ac_cv_header_directfb_h+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092   ac_cv_header_directfb_h=$ac_header_preproc
25093 fi
25094 { echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
25095 echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
25096
25097 fi
25098 if test $ac_cv_header_directfb_h = yes; then
25099   have_directfb_hdr=yes
25100 else
25101   have_directfb_hdr=no
25102 fi
25103
25104
25105             CFLAGS="$save_CFLAGS"
25106             video_directfb=$have_directfb_hdr
25107         fi
25108         { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
25109 echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
25110         { echo "$as_me:$LINENO: result: $video_directfb" >&5
25111 echo "${ECHO_T}$video_directfb" >&6; }
25112
25113         if test x$video_directfb = xyes; then
25114             cat >>confdefs.h <<\_ACEOF
25115 #define SDL_VIDEO_DRIVER_DIRECTFB 1
25116 _ACEOF
25117
25118             SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
25119             EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
25120             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
25121             have_video=yes
25122         fi
25123     fi
25124 }
25125
25126 CheckPS2GS()
25127 {
25128     # Check whether --enable-video-ps2gs was given.
25129 if test "${enable_video_ps2gs+set}" = set; then
25130   enableval=$enable_video_ps2gs;
25131 else
25132   enable_video_ps2gs=yes
25133 fi
25134
25135     if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
25136         { echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
25137 echo $ECHO_N "checking for PlayStation 2 GS support... $ECHO_C" >&6; }
25138         video_ps2gs=no
25139         cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145
25146          #include <linux/ps2/dev.h>
25147          #include <linux/ps2/gs.h>
25148
25149 int
25150 main ()
25151 {
25152
25153
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && {
25172          test -z "$ac_c_werror_flag" ||
25173          test ! -s conftest.err
25174        } && test -s conftest.$ac_objext; then
25175
25176         video_ps2gs=yes
25177
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186         { echo "$as_me:$LINENO: result: $video_ps2gs" >&5
25187 echo "${ECHO_T}$video_ps2gs" >&6; }
25188         if test x$video_ps2gs = xyes; then
25189             cat >>confdefs.h <<\_ACEOF
25190 #define SDL_VIDEO_DRIVER_PS2GS 1
25191 _ACEOF
25192
25193             SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
25194             have_video=yes
25195         fi
25196     fi
25197 }
25198
25199 CheckPS3()
25200 {
25201   # Check whether --enable-video-ps3 was given.
25202 if test "${enable_video_ps3+set}" = set; then
25203   enableval=$enable_video_ps3;
25204 else
25205   enable_video_ps3=yes
25206 fi
25207
25208   if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
25209     { echo "$as_me:$LINENO: checking for PlayStation 3 Cell support" >&5
25210 echo $ECHO_N "checking for PlayStation 3 Cell support... $ECHO_C" >&6; }
25211     video_ps3=no
25212     cat >conftest.$ac_ext <<_ACEOF
25213 /* confdefs.h.  */
25214 _ACEOF
25215 cat confdefs.h >>conftest.$ac_ext
25216 cat >>conftest.$ac_ext <<_ACEOF
25217 /* end confdefs.h.  */
25218
25219       #include <linux/fb.h>
25220       #include <asm/ps3fb.h>
25221       #include <libspe2.h>
25222
25223 int
25224 main ()
25225 {
25226
25227
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest.$ac_objext
25233 if { (ac_try="$ac_compile"
25234 case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239   (eval "$ac_compile") 2>conftest.er1
25240   ac_status=$?
25241   grep -v '^ *+' conftest.er1 >conftest.err
25242   rm -f conftest.er1
25243   cat conftest.err >&5
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); } && {
25246          test -z "$ac_c_werror_flag" ||
25247          test ! -s conftest.err
25248        } && test -s conftest.$ac_objext; then
25249
25250       video_ps3=yes
25251
25252 else
25253   echo "$as_me: failed program was:" >&5
25254 sed 's/^/| /' conftest.$ac_ext >&5
25255
25256
25257 fi
25258
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260     { echo "$as_me:$LINENO: result: $video_ps3" >&5
25261 echo "${ECHO_T}$video_ps3" >&6; }
25262     if test x$video_ps3 = xyes; then
25263       cat >>confdefs.h <<\_ACEOF
25264 #define SDL_VIDEO_DRIVER_PS3 1
25265 _ACEOF
25266
25267       SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
25268       EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
25269       EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
25270       have_video=yes
25271     fi
25272   fi
25273 }
25274
25275 CheckGGI()
25276 {
25277     # Check whether --enable-video-ggi was given.
25278 if test "${enable_video_ggi+set}" = set; then
25279   enableval=$enable_video_ggi;
25280 else
25281   enable_video_ggi=no
25282 fi
25283
25284     if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
25285         { echo "$as_me:$LINENO: checking for GGI support" >&5
25286 echo $ECHO_N "checking for GGI support... $ECHO_C" >&6; }
25287         video_ggi=no
25288         cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294
25295          #include <ggi/ggi.h>
25296          #include <ggi/gii.h>
25297
25298 int
25299 main ()
25300 {
25301
25302
25303   ;
25304   return 0;
25305 }
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311   *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314   (eval "$ac_compile") 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } && {
25321          test -z "$ac_c_werror_flag" ||
25322          test ! -s conftest.err
25323        } && test -s conftest.$ac_objext; then
25324
25325         video_ggi=yes
25326
25327 else
25328   echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331
25332 fi
25333
25334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335         { echo "$as_me:$LINENO: result: $video_ggi" >&5
25336 echo "${ECHO_T}$video_ggi" >&6; }
25337         if test x$video_ggi = xyes; then
25338             cat >>confdefs.h <<\_ACEOF
25339 #define SDL_VIDEO_DRIVER_GGI 1
25340 _ACEOF
25341
25342             SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
25343             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
25344             have_video=yes
25345         fi
25346     fi
25347 }
25348
25349 CheckSVGA()
25350 {
25351     # Check whether --enable-video-svga was given.
25352 if test "${enable_video_svga+set}" = set; then
25353   enableval=$enable_video_svga;
25354 else
25355   enable_video_svga=yes
25356 fi
25357
25358     if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
25359         { echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
25360 echo $ECHO_N "checking for SVGAlib (1.4.0+) support... $ECHO_C" >&6; }
25361         video_svga=no
25362         cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368
25369          #include <vga.h>
25370          #include <vgamouse.h>
25371          #include <vgakeyboard.h>
25372
25373 int
25374 main ()
25375 {
25376
25377          if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
25378              exit(0);
25379          }
25380
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_compile") 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } && {
25399          test -z "$ac_c_werror_flag" ||
25400          test ! -s conftest.err
25401        } && test -s conftest.$ac_objext; then
25402
25403         video_svga=yes
25404
25405 else
25406   echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25408
25409
25410 fi
25411
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413         { echo "$as_me:$LINENO: result: $video_svga" >&5
25414 echo "${ECHO_T}$video_svga" >&6; }
25415         if test x$video_svga = xyes; then
25416             cat >>confdefs.h <<\_ACEOF
25417 #define SDL_VIDEO_DRIVER_SVGALIB 1
25418 _ACEOF
25419
25420             SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
25421             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
25422             have_video=yes
25423         fi
25424     fi
25425 }
25426
25427 CheckVGL()
25428 {
25429     # Check whether --enable-video-vgl was given.
25430 if test "${enable_video_vgl+set}" = set; then
25431   enableval=$enable_video_vgl;
25432 else
25433   enable_video_vgl=yes
25434 fi
25435
25436     if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
25437         { echo "$as_me:$LINENO: checking for libVGL support" >&5
25438 echo $ECHO_N "checking for libVGL support... $ECHO_C" >&6; }
25439         video_vgl=no
25440         cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446
25447          #include <sys/fbio.h>
25448          #include <sys/consio.h>
25449          #include <sys/kbio.h>
25450          #include <vgl.h>
25451
25452 int
25453 main ()
25454 {
25455
25456          VGLBitmap bitmap;
25457          bitmap.Type = VIDBUF32;
25458          bitmap.PixelBytes = 4;
25459          exit(bitmap.Bitmap);
25460
25461   ;
25462   return 0;
25463 }
25464 _ACEOF
25465 rm -f conftest.$ac_objext
25466 if { (ac_try="$ac_compile"
25467 case "(($ac_try" in
25468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469   *) ac_try_echo=$ac_try;;
25470 esac
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472   (eval "$ac_compile") 2>conftest.er1
25473   ac_status=$?
25474   grep -v '^ *+' conftest.er1 >conftest.err
25475   rm -f conftest.er1
25476   cat conftest.err >&5
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); } && {
25479          test -z "$ac_c_werror_flag" ||
25480          test ! -s conftest.err
25481        } && test -s conftest.$ac_objext; then
25482
25483         video_vgl=yes
25484
25485 else
25486   echo "$as_me: failed program was:" >&5
25487 sed 's/^/| /' conftest.$ac_ext >&5
25488
25489
25490 fi
25491
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493         { echo "$as_me:$LINENO: result: $video_vgl" >&5
25494 echo "${ECHO_T}$video_vgl" >&6; }
25495         if test x$video_vgl = xyes; then
25496             cat >>confdefs.h <<\_ACEOF
25497 #define SDL_VIDEO_DRIVER_VGL 1
25498 _ACEOF
25499
25500             SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
25501             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
25502             have_video=yes
25503         fi
25504     fi
25505 }
25506
25507 CheckWscons()
25508 {
25509     # Check whether --enable-video-wscons was given.
25510 if test "${enable_video_wscons+set}" = set; then
25511   enableval=$enable_video_wscons;
25512 else
25513   enable_video_wscons=yes
25514 fi
25515
25516     if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
25517         { echo "$as_me:$LINENO: checking for wscons support" >&5
25518 echo $ECHO_N "checking for wscons support... $ECHO_C" >&6; }
25519         video_wscons=no
25520         cat >conftest.$ac_ext <<_ACEOF
25521 /* confdefs.h.  */
25522 _ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h.  */
25526
25527          #include <sys/time.h>
25528          #include <dev/wscons/wsconsio.h>
25529          #include <dev/wscons/wsdisplay_usl_io.h>
25530
25531 int
25532 main ()
25533 {
25534
25535          int wsmode = WSDISPLAYIO_MODE_DUMBFB;
25536
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 rm -f conftest.$ac_objext
25542 if { (ac_try="$ac_compile"
25543 case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_compile") 2>conftest.er1
25549   ac_status=$?
25550   grep -v '^ *+' conftest.er1 >conftest.err
25551   rm -f conftest.er1
25552   cat conftest.err >&5
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); } && {
25555          test -z "$ac_c_werror_flag" ||
25556          test ! -s conftest.err
25557        } && test -s conftest.$ac_objext; then
25558
25559         video_wscons=yes
25560
25561 else
25562   echo "$as_me: failed program was:" >&5
25563 sed 's/^/| /' conftest.$ac_ext >&5
25564
25565
25566 fi
25567
25568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569         { echo "$as_me:$LINENO: result: $video_wscons" >&5
25570 echo "${ECHO_T}$video_wscons" >&6; }
25571         if test x$video_wscons = xyes; then
25572             cat >>confdefs.h <<\_ACEOF
25573 #define SDL_VIDEO_DRIVER_WSCONS 1
25574 _ACEOF
25575
25576             SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
25577             have_video=yes
25578         fi
25579     fi
25580 }
25581
25582
25583 CheckAAlib()
25584 {
25585     # Check whether --enable-video-aalib was given.
25586 if test "${enable_video_aalib+set}" = set; then
25587   enableval=$enable_video_aalib;
25588 else
25589   enable_video_aalib=no
25590 fi
25591
25592     if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
25593         { echo "$as_me:$LINENO: checking for AAlib support" >&5
25594 echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6; }
25595         video_aalib=no
25596         cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h.  */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h.  */
25602
25603          #include <aalib.h>
25604
25605 int
25606 main ()
25607 {
25608
25609
25610   ;
25611   return 0;
25612 }
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618   *) ac_try_echo=$ac_try;;
25619 esac
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621   (eval "$ac_compile") 2>conftest.er1
25622   ac_status=$?
25623   grep -v '^ *+' conftest.er1 >conftest.err
25624   rm -f conftest.er1
25625   cat conftest.err >&5
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); } && {
25628          test -z "$ac_c_werror_flag" ||
25629          test ! -s conftest.err
25630        } && test -s conftest.$ac_objext; then
25631
25632         video_aalib=yes
25633
25634 else
25635   echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25637
25638
25639 fi
25640
25641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25642         { echo "$as_me:$LINENO: result: $video_aalib" >&5
25643 echo "${ECHO_T}$video_aalib" >&6; }
25644         if test x$video_aalib = xyes; then
25645             cat >>confdefs.h <<\_ACEOF
25646 #define SDL_VIDEO_DRIVER_AALIB 1
25647 _ACEOF
25648
25649             SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
25650             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
25651             have_video=yes
25652         fi
25653     fi
25654 }
25655
25656 CheckCaca()
25657 {
25658     # Check whether --enable-video-caca was given.
25659 if test "${enable_video_caca+set}" = set; then
25660   enableval=$enable_video_caca;
25661 else
25662   enable_video_caca=no
25663 fi
25664
25665     if test x$enable_video = xyes -a x$enable_video_caca = xyes; then
25666         video_caca=no
25667         # Extract the first word of "caca-config", so it can be a program name with args.
25668 set dummy caca-config; ac_word=$2
25669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25671 if test "${ac_cv_path_CACACONFIG+set}" = set; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   case $CACACONFIG in
25675   [\\/]* | ?:[\\/]*)
25676   ac_cv_path_CACACONFIG="$CACACONFIG" # Let the user override the test with a path.
25677   ;;
25678   *)
25679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25680 for as_dir in $PATH
25681 do
25682   IFS=$as_save_IFS
25683   test -z "$as_dir" && as_dir=.
25684   for ac_exec_ext in '' $ac_executable_extensions; do
25685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25686     ac_cv_path_CACACONFIG="$as_dir/$ac_word$ac_exec_ext"
25687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25688     break 2
25689   fi
25690 done
25691 done
25692 IFS=$as_save_IFS
25693
25694   test -z "$ac_cv_path_CACACONFIG" && ac_cv_path_CACACONFIG="no"
25695   ;;
25696 esac
25697 fi
25698 CACACONFIG=$ac_cv_path_CACACONFIG
25699 if test -n "$CACACONFIG"; then
25700   { echo "$as_me:$LINENO: result: $CACACONFIG" >&5
25701 echo "${ECHO_T}$CACACONFIG" >&6; }
25702 else
25703   { echo "$as_me:$LINENO: result: no" >&5
25704 echo "${ECHO_T}no" >&6; }
25705 fi
25706
25707
25708         if test x$CACACONFIG != xno; then
25709             { echo "$as_me:$LINENO: checking for libcaca support" >&5
25710 echo $ECHO_N "checking for libcaca support... $ECHO_C" >&6; }
25711             CACA_CFLAGS=`$CACACONFIG --cflags`
25712             CACA_LDFLAGS=`$CACACONFIG --libs`
25713             save_CFLAGS="$CFLAGS"
25714             cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h.  */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h.  */
25720
25721              #include <caca.h>
25722
25723 int
25724 main ()
25725 {
25726
25727
25728   ;
25729   return 0;
25730 }
25731 _ACEOF
25732 rm -f conftest.$ac_objext
25733 if { (ac_try="$ac_compile"
25734 case "(($ac_try" in
25735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25736   *) ac_try_echo=$ac_try;;
25737 esac
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739   (eval "$ac_compile") 2>conftest.er1
25740   ac_status=$?
25741   grep -v '^ *+' conftest.er1 >conftest.err
25742   rm -f conftest.er1
25743   cat conftest.err >&5
25744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745   (exit $ac_status); } && {
25746          test -z "$ac_c_werror_flag" ||
25747          test ! -s conftest.err
25748        } && test -s conftest.$ac_objext; then
25749
25750              video_caca=yes
25751
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756
25757 fi
25758
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25760             CFLAGS="$save_CFLAGS"
25761             { echo "$as_me:$LINENO: result: $video_caca" >&5
25762 echo "${ECHO_T}$video_caca" >&6; }
25763             if test x$video_caca = xyes; then
25764                 cat >>confdefs.h <<\_ACEOF
25765 #define SDL_VIDEO_DRIVER_CACA 1
25766 _ACEOF
25767
25768                 EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS"
25769                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS"
25770                 SOURCES="$SOURCES $srcdir/src/video/caca/*.c"
25771             fi
25772         fi
25773     fi
25774 }
25775
25776 CheckQtopia()
25777 {
25778     # Check whether --enable-video-qtopia was given.
25779 if test "${enable_video_qtopia+set}" = set; then
25780   enableval=$enable_video_qtopia;
25781 else
25782   enable_video_qtopia=no
25783 fi
25784
25785     if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
25786         { echo "$as_me:$LINENO: checking for Qtopia support" >&5
25787 echo $ECHO_N "checking for Qtopia support... $ECHO_C" >&6; }
25788         video_qtopia=no
25789         QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
25790         ac_ext=cpp
25791 ac_cpp='$CXXCPP $CPPFLAGS'
25792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25795
25796         OLD_CXX="$CXXFLAGS"
25797         CXXFLAGS="$QTOPIA_FLAGS"
25798         cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804
25805          #include <qpe/qpeapplication.h>
25806
25807 int
25808 main ()
25809 {
25810
25811
25812   ;
25813   return 0;
25814 }
25815 _ACEOF
25816 rm -f conftest.$ac_objext
25817 if { (ac_try="$ac_compile"
25818 case "(($ac_try" in
25819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25820   *) ac_try_echo=$ac_try;;
25821 esac
25822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25823   (eval "$ac_compile") 2>conftest.er1
25824   ac_status=$?
25825   grep -v '^ *+' conftest.er1 >conftest.err
25826   rm -f conftest.er1
25827   cat conftest.err >&5
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); } && {
25830          test -z "$ac_cxx_werror_flag" ||
25831          test ! -s conftest.err
25832        } && test -s conftest.$ac_objext; then
25833
25834         video_qtopia=yes
25835
25836 else
25837   echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840
25841 fi
25842
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25844         CXXFLAGS="$OLD_CXX"
25845         { echo "$as_me:$LINENO: result: $video_qtopia" >&5
25846 echo "${ECHO_T}$video_qtopia" >&6; }
25847         if test x$video_qtopia = xyes; then
25848             cat >>confdefs.h <<\_ACEOF
25849 #define SDL_VIDEO_DRIVER_QTOPIA 1
25850 _ACEOF
25851
25852             SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
25853             SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
25854             SDLMAIN_LDFLAGS="-static"
25855             EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
25856             SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
25857             SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
25858             have_video=yes
25859         fi
25860         ac_ext=c
25861 ac_cpp='$CPP $CPPFLAGS'
25862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25865
25866     fi
25867 }
25868
25869 CheckPicoGUI()
25870 {
25871     # Check whether --enable-video-picogui was given.
25872 if test "${enable_video_picogui+set}" = set; then
25873   enableval=$enable_video_picogui;
25874 else
25875   enable_video_picogui=no
25876 fi
25877
25878     if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
25879         { echo "$as_me:$LINENO: checking for PicoGUI support" >&5
25880 echo $ECHO_N "checking for PicoGUI support... $ECHO_C" >&6; }
25881         video_picogui=no
25882         cat >conftest.$ac_ext <<_ACEOF
25883 /* confdefs.h.  */
25884 _ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h.  */
25888
25889          #include <picogui.h>
25890
25891 int
25892 main ()
25893 {
25894
25895
25896   ;
25897   return 0;
25898 }
25899 _ACEOF
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25904   *) ac_try_echo=$ac_try;;
25905 esac
25906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25907   (eval "$ac_compile") 2>conftest.er1
25908   ac_status=$?
25909   grep -v '^ *+' conftest.er1 >conftest.err
25910   rm -f conftest.er1
25911   cat conftest.err >&5
25912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25913   (exit $ac_status); } && {
25914          test -z "$ac_c_werror_flag" ||
25915          test ! -s conftest.err
25916        } && test -s conftest.$ac_objext; then
25917
25918         video_picogui=yes
25919
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924
25925 fi
25926
25927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25928         { echo "$as_me:$LINENO: result: $video_picogui" >&5
25929 echo "${ECHO_T}$video_picogui" >&6; }
25930         if test x$video_picogui = xyes; then
25931             cat >>confdefs.h <<\_ACEOF
25932 #define SDL_VIDEO_DRIVER_PICOGUI 1
25933 _ACEOF
25934
25935             SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
25936             SDL_LIBS="$SDL_LIBS -lpgui"
25937             have_video=yes
25938         fi
25939     fi
25940 }
25941
25942 CheckAtariBiosEvent()
25943 {
25944     SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c"
25945     SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S"
25946 }
25947
25948 CheckAtariXbiosVideo()
25949 {
25950     # Check whether --enable-xbios was given.
25951 if test "${enable_xbios+set}" = set; then
25952   enableval=$enable_xbios;
25953 else
25954   enable_video_xbios=yes
25955 fi
25956
25957     video_xbios=no
25958     if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
25959         video_xbios=yes
25960         cat >>confdefs.h <<\_ACEOF
25961 #define SDL_VIDEO_DRIVER_XBIOS 1
25962 _ACEOF
25963
25964         SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
25965         have_video=yes
25966     fi
25967 }
25968
25969 CheckAtariGemVideo()
25970 {
25971     # Check whether --enable-gem was given.
25972 if test "${enable_gem+set}" = set; then
25973   enableval=$enable_gem;
25974 else
25975   enable_video_gem=yes
25976 fi
25977
25978     if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
25979         video_gem=no
25980         if test "${ac_cv_header_gem_h+set}" = set; then
25981   { echo "$as_me:$LINENO: checking for gem.h" >&5
25982 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
25983 if test "${ac_cv_header_gem_h+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 fi
25986 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
25987 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
25988 else
25989   # Is the header compilable?
25990 { echo "$as_me:$LINENO: checking gem.h usability" >&5
25991 echo $ECHO_N "checking gem.h usability... $ECHO_C" >&6; }
25992 cat >conftest.$ac_ext <<_ACEOF
25993 /* confdefs.h.  */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h.  */
25998 $ac_includes_default
25999 #include <gem.h>
26000 _ACEOF
26001 rm -f conftest.$ac_objext
26002 if { (ac_try="$ac_compile"
26003 case "(($ac_try" in
26004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26005   *) ac_try_echo=$ac_try;;
26006 esac
26007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26008   (eval "$ac_compile") 2>conftest.er1
26009   ac_status=$?
26010   grep -v '^ *+' conftest.er1 >conftest.err
26011   rm -f conftest.er1
26012   cat conftest.err >&5
26013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014   (exit $ac_status); } && {
26015          test -z "$ac_c_werror_flag" ||
26016          test ! -s conftest.err
26017        } && test -s conftest.$ac_objext; then
26018   ac_header_compiler=yes
26019 else
26020   echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023         ac_header_compiler=no
26024 fi
26025
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26028 echo "${ECHO_T}$ac_header_compiler" >&6; }
26029
26030 # Is the header present?
26031 { echo "$as_me:$LINENO: checking gem.h presence" >&5
26032 echo $ECHO_N "checking gem.h presence... $ECHO_C" >&6; }
26033 cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 #include <gem.h>
26040 _ACEOF
26041 if { (ac_try="$ac_cpp conftest.$ac_ext"
26042 case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26048   ac_status=$?
26049   grep -v '^ *+' conftest.er1 >conftest.err
26050   rm -f conftest.er1
26051   cat conftest.err >&5
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); } >/dev/null && {
26054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26055          test ! -s conftest.err
26056        }; then
26057   ac_header_preproc=yes
26058 else
26059   echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26061
26062   ac_header_preproc=no
26063 fi
26064
26065 rm -f conftest.err conftest.$ac_ext
26066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26067 echo "${ECHO_T}$ac_header_preproc" >&6; }
26068
26069 # So?  What about this header?
26070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26071   yes:no: )
26072     { echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
26073 echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26074     { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
26075 echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
26076     ac_header_preproc=yes
26077     ;;
26078   no:yes:* )
26079     { echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
26080 echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
26081     { echo "$as_me:$LINENO: WARNING: gem.h:     check for missing prerequisite headers?" >&5
26082 echo "$as_me: WARNING: gem.h:     check for missing prerequisite headers?" >&2;}
26083     { echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
26084 echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
26085     { echo "$as_me:$LINENO: WARNING: gem.h:     section \"Present But Cannot Be Compiled\"" >&5
26086 echo "$as_me: WARNING: gem.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26087     { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
26088 echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
26089     { echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
26090 echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
26091
26092     ;;
26093 esac
26094 { echo "$as_me:$LINENO: checking for gem.h" >&5
26095 echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
26096 if test "${ac_cv_header_gem_h+set}" = set; then
26097   echo $ECHO_N "(cached) $ECHO_C" >&6
26098 else
26099   ac_cv_header_gem_h=$ac_header_preproc
26100 fi
26101 { echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
26102 echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
26103
26104 fi
26105 if test $ac_cv_header_gem_h = yes; then
26106   have_gem_hdr=yes
26107 fi
26108
26109
26110         { echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
26111 echo $ECHO_N "checking for appl_init in -lgem... $ECHO_C" >&6; }
26112 if test "${ac_cv_lib_gem_appl_init+set}" = set; then
26113   echo $ECHO_N "(cached) $ECHO_C" >&6
26114 else
26115   ac_check_lib_save_LIBS=$LIBS
26116 LIBS="-lgem  $LIBS"
26117 cat >conftest.$ac_ext <<_ACEOF
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123
26124 /* Override any GCC internal prototype to avoid an error.
26125    Use char because int might match the return type of a GCC
26126    builtin and then its argument prototype would still apply.  */
26127 #ifdef __cplusplus
26128 extern "C"
26129 #endif
26130 char appl_init ();
26131 int
26132 main ()
26133 {
26134 return appl_init ();
26135   ;
26136   return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146   (eval "$ac_link") 2>conftest.er1
26147   ac_status=$?
26148   grep -v '^ *+' conftest.er1 >conftest.err
26149   rm -f conftest.er1
26150   cat conftest.err >&5
26151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152   (exit $ac_status); } && {
26153          test -z "$ac_c_werror_flag" ||
26154          test ! -s conftest.err
26155        } && test -s conftest$ac_exeext &&
26156        $as_test_x conftest$ac_exeext; then
26157   ac_cv_lib_gem_appl_init=yes
26158 else
26159   echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26161
26162         ac_cv_lib_gem_appl_init=no
26163 fi
26164
26165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26166       conftest$ac_exeext conftest.$ac_ext
26167 LIBS=$ac_check_lib_save_LIBS
26168 fi
26169 { echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
26170 echo "${ECHO_T}$ac_cv_lib_gem_appl_init" >&6; }
26171 if test $ac_cv_lib_gem_appl_init = yes; then
26172   have_gem_lib=yes
26173 fi
26174
26175         if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
26176             video_gem=yes
26177             cat >>confdefs.h <<\_ACEOF
26178 #define SDL_VIDEO_DRIVER_GEM 1
26179 _ACEOF
26180
26181             SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
26182             SDL_LIBS="$SDL_LIBS -lgem"
26183             have_video=yes
26184         fi
26185     fi
26186 }
26187
26188 CheckDummyVideo()
26189 {
26190     # Check whether --enable-video-dummy was given.
26191 if test "${enable_video_dummy+set}" = set; then
26192   enableval=$enable_video_dummy;
26193 else
26194   enable_video_dummy=yes
26195 fi
26196
26197     if test x$enable_video_dummy = xyes; then
26198         cat >>confdefs.h <<\_ACEOF
26199 #define SDL_VIDEO_DRIVER_DUMMY 1
26200 _ACEOF
26201
26202         SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
26203         have_video=yes
26204     fi
26205 }
26206
26207 # Check whether --enable-video-opengl was given.
26208 if test "${enable_video_opengl+set}" = set; then
26209   enableval=$enable_video_opengl;
26210 else
26211   enable_video_opengl=yes
26212 fi
26213
26214
26215 CheckOpenGLX11()
26216 {
26217     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26218         { echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
26219 echo $ECHO_N "checking for OpenGL (GLX) support... $ECHO_C" >&6; }
26220         video_opengl=no
26221         cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h.  */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h.  */
26227
26228          #include <GL/gl.h>
26229          #include <GL/glx.h>
26230          #include <GL/glu.h>
26231
26232 int
26233 main ()
26234 {
26235
26236
26237   ;
26238   return 0;
26239 }
26240 _ACEOF
26241 rm -f conftest.$ac_objext
26242 if { (ac_try="$ac_compile"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248   (eval "$ac_compile") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } && {
26255          test -z "$ac_c_werror_flag" ||
26256          test ! -s conftest.err
26257        } && test -s conftest.$ac_objext; then
26258
26259         video_opengl=yes
26260
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265
26266 fi
26267
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269         { echo "$as_me:$LINENO: result: $video_opengl" >&5
26270 echo "${ECHO_T}$video_opengl" >&6; }
26271         if test x$video_opengl = xyes; then
26272             cat >>confdefs.h <<\_ACEOF
26273 #define SDL_VIDEO_OPENGL 1
26274 _ACEOF
26275
26276             cat >>confdefs.h <<\_ACEOF
26277 #define SDL_VIDEO_OPENGL_GLX 1
26278 _ACEOF
26279
26280         fi
26281     fi
26282 }
26283
26284 CheckOpenGLQNX()
26285 {
26286     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26287         { echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
26288 echo $ECHO_N "checking for OpenGL (Photon) support... $ECHO_C" >&6; }
26289         video_opengl=no
26290         cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296
26297          #include <GL/gl.h>
26298
26299 int
26300 main ()
26301 {
26302
26303
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312   *) ac_try_echo=$ac_try;;
26313 esac
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315   (eval "$ac_compile") 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } && {
26322          test -z "$ac_c_werror_flag" ||
26323          test ! -s conftest.err
26324        } && test -s conftest.$ac_objext; then
26325
26326         video_opengl=yes
26327
26328 else
26329   echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26331
26332
26333 fi
26334
26335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336         { echo "$as_me:$LINENO: result: $video_opengl" >&5
26337 echo "${ECHO_T}$video_opengl" >&6; }
26338         if test x$video_opengl = xyes; then
26339             cat >>confdefs.h <<\_ACEOF
26340 #define SDL_VIDEO_OPENGL 1
26341 _ACEOF
26342
26343             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26344         fi
26345     fi
26346 }
26347
26348 CheckWIN32GL()
26349 {
26350     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26351         cat >>confdefs.h <<\_ACEOF
26352 #define SDL_VIDEO_OPENGL 1
26353 _ACEOF
26354
26355         cat >>confdefs.h <<\_ACEOF
26356 #define SDL_VIDEO_OPENGL_WGL 1
26357 _ACEOF
26358
26359     fi
26360 }
26361
26362 CheckBeGL()
26363 {
26364     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26365         cat >>confdefs.h <<\_ACEOF
26366 #define SDL_VIDEO_OPENGL 1
26367 _ACEOF
26368
26369         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26370     fi
26371 }
26372
26373 CheckMacGL()
26374 {
26375     if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26376         cat >>confdefs.h <<\_ACEOF
26377 #define SDL_VIDEO_OPENGL 1
26378 _ACEOF
26379
26380         case "$host" in
26381             *-*-darwin*)
26382                 if test x$enable_video_cocoa = xyes; then
26383                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
26384                 fi
26385                 if test x$enable_video_carbon = xyes; then
26386                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
26387                 fi
26388         esac
26389     fi
26390 }
26391
26392 CheckAtariOSMesa()
26393 {
26394     if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
26395         if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26396   { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26397 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26398 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 fi
26401 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26402 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26403 else
26404   # Is the header compilable?
26405 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
26406 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
26407 cat >conftest.$ac_ext <<_ACEOF
26408 /* confdefs.h.  */
26409 _ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h.  */
26413 $ac_includes_default
26414 #include <GL/osmesa.h>
26415 _ACEOF
26416 rm -f conftest.$ac_objext
26417 if { (ac_try="$ac_compile"
26418 case "(($ac_try" in
26419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26420   *) ac_try_echo=$ac_try;;
26421 esac
26422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26423   (eval "$ac_compile") 2>conftest.er1
26424   ac_status=$?
26425   grep -v '^ *+' conftest.er1 >conftest.err
26426   rm -f conftest.er1
26427   cat conftest.err >&5
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); } && {
26430          test -z "$ac_c_werror_flag" ||
26431          test ! -s conftest.err
26432        } && test -s conftest.$ac_objext; then
26433   ac_header_compiler=yes
26434 else
26435   echo "$as_me: failed program was:" >&5
26436 sed 's/^/| /' conftest.$ac_ext >&5
26437
26438         ac_header_compiler=no
26439 fi
26440
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26443 echo "${ECHO_T}$ac_header_compiler" >&6; }
26444
26445 # Is the header present?
26446 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
26447 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
26448 cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454 #include <GL/osmesa.h>
26455 _ACEOF
26456 if { (ac_try="$ac_cpp conftest.$ac_ext"
26457 case "(($ac_try" in
26458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459   *) ac_try_echo=$ac_try;;
26460 esac
26461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26463   ac_status=$?
26464   grep -v '^ *+' conftest.er1 >conftest.err
26465   rm -f conftest.er1
26466   cat conftest.err >&5
26467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468   (exit $ac_status); } >/dev/null && {
26469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26470          test ! -s conftest.err
26471        }; then
26472   ac_header_preproc=yes
26473 else
26474   echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477   ac_header_preproc=no
26478 fi
26479
26480 rm -f conftest.err conftest.$ac_ext
26481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26482 echo "${ECHO_T}$ac_header_preproc" >&6; }
26483
26484 # So?  What about this header?
26485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26486   yes:no: )
26487     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
26488 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26489     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
26490 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
26491     ac_header_preproc=yes
26492     ;;
26493   no:yes:* )
26494     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
26495 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
26496     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
26497 echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
26498     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
26499 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
26500     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
26501 echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26502     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
26503 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
26504     { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
26505 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
26506
26507     ;;
26508 esac
26509 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26510 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26511 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26512   echo $ECHO_N "(cached) $ECHO_C" >&6
26513 else
26514   ac_cv_header_GL_osmesa_h=$ac_header_preproc
26515 fi
26516 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26517 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26518
26519 fi
26520 if test $ac_cv_header_GL_osmesa_h = yes; then
26521   have_osmesa_hdr=yes
26522 fi
26523
26524
26525         { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
26526 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
26527 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
26528   echo $ECHO_N "(cached) $ECHO_C" >&6
26529 else
26530   ac_check_lib_save_LIBS=$LIBS
26531 LIBS="-lOSMesa -lm $LIBS"
26532 cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h.  */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h.  */
26538
26539 /* Override any GCC internal prototype to avoid an error.
26540    Use char because int might match the return type of a GCC
26541    builtin and then its argument prototype would still apply.  */
26542 #ifdef __cplusplus
26543 extern "C"
26544 #endif
26545 char OSMesaCreateContext ();
26546 int
26547 main ()
26548 {
26549 return OSMesaCreateContext ();
26550   ;
26551   return 0;
26552 }
26553 _ACEOF
26554 rm -f conftest.$ac_objext conftest$ac_exeext
26555 if { (ac_try="$ac_link"
26556 case "(($ac_try" in
26557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558   *) ac_try_echo=$ac_try;;
26559 esac
26560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561   (eval "$ac_link") 2>conftest.er1
26562   ac_status=$?
26563   grep -v '^ *+' conftest.er1 >conftest.err
26564   rm -f conftest.er1
26565   cat conftest.err >&5
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); } && {
26568          test -z "$ac_c_werror_flag" ||
26569          test ! -s conftest.err
26570        } && test -s conftest$ac_exeext &&
26571        $as_test_x conftest$ac_exeext; then
26572   ac_cv_lib_OSMesa_OSMesaCreateContext=yes
26573 else
26574   echo "$as_me: failed program was:" >&5
26575 sed 's/^/| /' conftest.$ac_ext >&5
26576
26577         ac_cv_lib_OSMesa_OSMesaCreateContext=no
26578 fi
26579
26580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26581       conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26583 fi
26584 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
26585 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
26586 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
26587   have_osmesa_lib=yes
26588 else
26589   have_osmesa_lib=no
26590 fi
26591
26592
26593         # Static linking to -lOSMesa
26594         # Extract the first word of "osmesa-config", so it can be a program name with args.
26595 set dummy osmesa-config; ac_word=$2
26596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26598 if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601   case $OSMESA_CONFIG in
26602   [\\/]* | ?:[\\/]*)
26603   ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
26604   ;;
26605   *)
26606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 for as_dir in $PATH
26608 do
26609   IFS=$as_save_IFS
26610   test -z "$as_dir" && as_dir=.
26611   for ac_exec_ext in '' $ac_executable_extensions; do
26612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26613     ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26615     break 2
26616   fi
26617 done
26618 done
26619 IFS=$as_save_IFS
26620
26621   test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
26622   ;;
26623 esac
26624 fi
26625 OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
26626 if test -n "$OSMESA_CONFIG"; then
26627   { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
26628 echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
26629 else
26630   { echo "$as_me:$LINENO: result: no" >&5
26631 echo "${ECHO_T}no" >&6; }
26632 fi
26633
26634
26635         if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
26636             # -lOSMesa is really the static library
26637             if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
26638                 OSMESA_LIBS="-lOSMesa"
26639             fi
26640         else
26641             # -lOSMesa is a loader for OSMesa.ldg
26642             OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
26643             OSMESA_LIBS=`$OSMESA_CONFIG --libs`
26644         fi
26645         cat >>confdefs.h <<\_ACEOF
26646 #define SDL_VIDEO_OPENGL 1
26647 _ACEOF
26648
26649         cat >>confdefs.h <<\_ACEOF
26650 #define SDL_VIDEO_OPENGL_OSMESA 1
26651 _ACEOF
26652
26653         SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
26654         SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
26655
26656         # Check whether --enable-osmesa-shared was given.
26657 if test "${enable_osmesa_shared+set}" = set; then
26658   enableval=$enable_osmesa_shared;
26659 else
26660   enable_osmesa_shared=yes
26661 fi
26662
26663         if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
26664             # Dynamic linking
26665             if test "x$have_osmesa_hdr" = "xyes"; then
26666                 cat >>confdefs.h <<\_ACEOF
26667 #define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
26668 _ACEOF
26669
26670             fi
26671         fi
26672     fi
26673 }
26674
26675 # Check whether --enable-screensaver was given.
26676 if test "${enable_screensaver+set}" = set; then
26677   enableval=$enable_screensaver;
26678 else
26679   enable_screensaver=no
26680 fi
26681
26682 if test x$enable_screensaver = xno; then
26683     cat >>confdefs.h <<\_ACEOF
26684 #define SDL_VIDEO_DISABLE_SCREENSAVER 1
26685 _ACEOF
26686
26687 fi
26688
26689 CheckInputEvents()
26690 {
26691         # Check whether --enable-input-events was given.
26692 if test "${enable_input_events+set}" = set; then
26693   enableval=$enable_input_events;
26694 else
26695   enable_input_events=yes
26696 fi
26697
26698     if test x$enable_input_events = xyes; then
26699         { echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
26700 echo $ECHO_N "checking for Linux 2.4 unified input interface... $ECHO_C" >&6; }
26701         use_input_events=no
26702         cat >conftest.$ac_ext <<_ACEOF
26703 /* confdefs.h.  */
26704 _ACEOF
26705 cat confdefs.h >>conftest.$ac_ext
26706 cat >>conftest.$ac_ext <<_ACEOF
26707 /* end confdefs.h.  */
26708
26709           #include <linux/input.h>
26710
26711 int
26712 main ()
26713 {
26714
26715           #ifndef EVIOCGNAME
26716           #error EVIOCGNAME() ioctl not available
26717           #endif
26718
26719   ;
26720   return 0;
26721 }
26722 _ACEOF
26723 rm -f conftest.$ac_objext
26724 if { (ac_try="$ac_compile"
26725 case "(($ac_try" in
26726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727   *) ac_try_echo=$ac_try;;
26728 esac
26729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730   (eval "$ac_compile") 2>conftest.er1
26731   ac_status=$?
26732   grep -v '^ *+' conftest.er1 >conftest.err
26733   rm -f conftest.er1
26734   cat conftest.err >&5
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); } && {
26737          test -z "$ac_c_werror_flag" ||
26738          test ! -s conftest.err
26739        } && test -s conftest.$ac_objext; then
26740
26741         use_input_events=yes
26742
26743 else
26744   echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747
26748 fi
26749
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26751         { echo "$as_me:$LINENO: result: $use_input_events" >&5
26752 echo "${ECHO_T}$use_input_events" >&6; }
26753         if test x$use_input_events = xyes; then
26754             cat >>confdefs.h <<\_ACEOF
26755 #define SDL_INPUT_LINUXEV 1
26756 _ACEOF
26757
26758         fi
26759     fi
26760 }
26761
26762 CheckTslib()
26763 {
26764     # Check whether --enable-input-tslib was given.
26765 if test "${enable_input_tslib+set}" = set; then
26766   enableval=$enable_input_tslib;
26767 else
26768   enable_input_tslib=yes
26769 fi
26770
26771     if test x$enable_input_tslib = xyes; then
26772         { echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
26773 echo $ECHO_N "checking for Touchscreen library support... $ECHO_C" >&6; }
26774         enable_input_tslib=no
26775         cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781
26782           #include "tslib.h"
26783
26784 int
26785 main ()
26786 {
26787
26788
26789   ;
26790   return 0;
26791 }
26792 _ACEOF
26793 rm -f conftest.$ac_objext
26794 if { (ac_try="$ac_compile"
26795 case "(($ac_try" in
26796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797   *) ac_try_echo=$ac_try;;
26798 esac
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800   (eval "$ac_compile") 2>conftest.er1
26801   ac_status=$?
26802   grep -v '^ *+' conftest.er1 >conftest.err
26803   rm -f conftest.er1
26804   cat conftest.err >&5
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); } && {
26807          test -z "$ac_c_werror_flag" ||
26808          test ! -s conftest.err
26809        } && test -s conftest.$ac_objext; then
26810
26811         enable_input_tslib=yes
26812
26813 else
26814   echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26816
26817
26818 fi
26819
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821         { echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
26822 echo "${ECHO_T}$enable_input_tslib" >&6; }
26823         if test x$enable_input_tslib = xyes; then
26824             cat >>confdefs.h <<\_ACEOF
26825 #define SDL_INPUT_TSLIB 1
26826 _ACEOF
26827
26828             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
26829         fi
26830     fi
26831 }
26832
26833 CheckPTH()
26834 {
26835         # Check whether --enable-pth was given.
26836 if test "${enable_pth+set}" = set; then
26837   enableval=$enable_pth;
26838 else
26839   enable_pth=yes
26840 fi
26841
26842     if test x$enable_threads = xyes -a x$enable_pth = xyes; then
26843         # Extract the first word of "pth-config", so it can be a program name with args.
26844 set dummy pth-config; ac_word=$2
26845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26847 if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
26848   echo $ECHO_N "(cached) $ECHO_C" >&6
26849 else
26850   case $PTH_CONFIG in
26851   [\\/]* | ?:[\\/]*)
26852   ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
26853   ;;
26854   *)
26855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26856 for as_dir in $PATH
26857 do
26858   IFS=$as_save_IFS
26859   test -z "$as_dir" && as_dir=.
26860   for ac_exec_ext in '' $ac_executable_extensions; do
26861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26862     ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26864     break 2
26865   fi
26866 done
26867 done
26868 IFS=$as_save_IFS
26869
26870   test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
26871   ;;
26872 esac
26873 fi
26874 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
26875 if test -n "$PTH_CONFIG"; then
26876   { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
26877 echo "${ECHO_T}$PTH_CONFIG" >&6; }
26878 else
26879   { echo "$as_me:$LINENO: result: no" >&5
26880 echo "${ECHO_T}no" >&6; }
26881 fi
26882
26883
26884         if test "$PTH_CONFIG" = "no"; then
26885             use_pth=no
26886         else
26887             use_pth=yes
26888         fi
26889         { echo "$as_me:$LINENO: checking pth" >&5
26890 echo $ECHO_N "checking pth... $ECHO_C" >&6; }
26891         { echo "$as_me:$LINENO: result: $use_pth" >&5
26892 echo "${ECHO_T}$use_pth" >&6; }
26893         if test "x$use_pth" = xyes; then
26894             cat >>confdefs.h <<\_ACEOF
26895 #define SDL_THREAD_PTH 1
26896 _ACEOF
26897
26898             SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
26899             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
26900             SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
26901             SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
26902             have_threads=yes
26903         fi
26904     fi
26905 }
26906
26907 CheckPTHREAD()
26908 {
26909         # Check whether --enable-pthreads was given.
26910 if test "${enable_pthreads+set}" = set; then
26911   enableval=$enable_pthreads;
26912 else
26913   enable_pthreads=yes
26914 fi
26915
26916         # Check whether --enable-pthread-sem was given.
26917 if test "${enable_pthread_sem+set}" = set; then
26918   enableval=$enable_pthread_sem;
26919 else
26920   enable_pthread_sem=yes
26921 fi
26922
26923     case "$host" in
26924         *-*-linux*|*-*-uclinux*)
26925             pthread_cflags="-D_REENTRANT"
26926             pthread_lib="-lpthread"
26927             ;;
26928         *-*-bsdi*)
26929             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26930             pthread_lib=""
26931             ;;
26932         *-*-darwin*)
26933             pthread_cflags="-D_THREAD_SAFE"
26934 # causes Carbon.p complaints?
26935 #            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26936             ;;
26937         *-*-freebsd*|*-*-dragonfly*)
26938             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26939             pthread_lib="-pthread"
26940             ;;
26941         *-*-netbsd*)
26942             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26943             pthread_lib="-lpthread"
26944             ;;
26945         *-*-openbsd*)
26946             pthread_cflags="-D_REENTRANT"
26947             pthread_lib="-pthread"
26948             ;;
26949         *-*-solaris*)
26950             pthread_cflags="-D_REENTRANT"
26951             pthread_lib="-lpthread -lposix4"
26952             ;;
26953         *-*-sysv5*)
26954             pthread_cflags="-D_REENTRANT -Kthread"
26955             pthread_lib=""
26956             ;;
26957         *-*-irix*)
26958             pthread_cflags="-D_SGI_MP_SOURCE"
26959             pthread_lib="-lpthread"
26960             ;;
26961         *-*-aix*)
26962             pthread_cflags="-D_REENTRANT -mthreads"
26963             pthread_lib="-lpthread"
26964             ;;
26965         *-*-hpux11*)
26966             pthread_cflags="-D_REENTRANT"
26967             pthread_lib="-L/usr/lib -lpthread"
26968             ;;
26969         *-*-qnx*)
26970             pthread_cflags=""
26971             pthread_lib=""
26972             ;;
26973         *-*-osf*)
26974             pthread_cflags="-D_REENTRANT"
26975             if test x$ac_cv_c_compiler_gnu = xyes; then
26976                 pthread_lib="-lpthread -lrt"
26977             else
26978                 pthread_lib="-lpthread -lexc -lrt"
26979             fi
26980             ;;
26981         *)
26982             pthread_cflags="-D_REENTRANT"
26983             pthread_lib="-lpthread"
26984             ;;
26985     esac
26986     if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
26987         # Save the original compiler flags and libraries
26988         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
26989         # Add the pthread compiler flags and libraries
26990         CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
26991         # Check to see if we have pthread support on this system
26992         { echo "$as_me:$LINENO: checking for pthreads" >&5
26993 echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; }
26994         use_pthreads=no
26995         cat >conftest.$ac_ext <<_ACEOF
26996 /* confdefs.h.  */
26997 _ACEOF
26998 cat confdefs.h >>conftest.$ac_ext
26999 cat >>conftest.$ac_ext <<_ACEOF
27000 /* end confdefs.h.  */
27001
27002          #include <pthread.h>
27003
27004 int
27005 main ()
27006 {
27007
27008          pthread_attr_t type;
27009          pthread_attr_init(&type);
27010
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022   (eval "$ac_link") 2>conftest.er1
27023   ac_status=$?
27024   grep -v '^ *+' conftest.er1 >conftest.err
27025   rm -f conftest.er1
27026   cat conftest.err >&5
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); } && {
27029          test -z "$ac_c_werror_flag" ||
27030          test ! -s conftest.err
27031        } && test -s conftest$ac_exeext &&
27032        $as_test_x conftest$ac_exeext; then
27033
27034         use_pthreads=yes
27035
27036 else
27037   echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040
27041 fi
27042
27043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27044       conftest$ac_exeext conftest.$ac_ext
27045         { echo "$as_me:$LINENO: result: $use_pthreads" >&5
27046 echo "${ECHO_T}$use_pthreads" >&6; }
27047         # Restore the compiler flags and libraries
27048         CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27049
27050         # Do futher testing if we have pthread support...
27051         if test x$use_pthreads = xyes; then
27052             cat >>confdefs.h <<\_ACEOF
27053 #define SDL_THREAD_PTHREAD 1
27054 _ACEOF
27055
27056             EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
27057             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
27058             SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
27059             SDL_LIBS="$SDL_LIBS $pthread_lib"
27060
27061             # Save the original compiler flags and libraries
27062             ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
27063             # Add the pthread compiler flags and libraries
27064             CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
27065
27066             # Check to see if recursive mutexes are available
27067             { echo "$as_me:$LINENO: checking for recursive mutexes" >&5
27068 echo $ECHO_N "checking for recursive mutexes... $ECHO_C" >&6; }
27069             has_recursive_mutexes=no
27070             if test x$has_recursive_mutexes = xno; then
27071                 cat >conftest.$ac_ext <<_ACEOF
27072 /* confdefs.h.  */
27073 _ACEOF
27074 cat confdefs.h >>conftest.$ac_ext
27075 cat >>conftest.$ac_ext <<_ACEOF
27076 /* end confdefs.h.  */
27077
27078                   #include <pthread.h>
27079
27080 int
27081 main ()
27082 {
27083
27084                   pthread_mutexattr_t attr;
27085                   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
27086
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 rm -f conftest.$ac_objext
27092 if { (ac_try="$ac_compile"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_compile") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } && {
27105          test -z "$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        } && test -s conftest.$ac_objext; then
27108
27109                 has_recursive_mutexes=yes
27110                 cat >>confdefs.h <<\_ACEOF
27111 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
27112 _ACEOF
27113
27114
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119
27120 fi
27121
27122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123             fi
27124             if test x$has_recursive_mutexes = xno; then
27125                 cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131
27132                   #include <pthread.h>
27133
27134 int
27135 main ()
27136 {
27137
27138                   pthread_mutexattr_t attr;
27139                   pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
27140
27141   ;
27142   return 0;
27143 }
27144 _ACEOF
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_compile") 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } && {
27159          test -z "$ac_c_werror_flag" ||
27160          test ! -s conftest.err
27161        } && test -s conftest.$ac_objext; then
27162
27163                 has_recursive_mutexes=yes
27164                 cat >>confdefs.h <<\_ACEOF
27165 #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
27166 _ACEOF
27167
27168
27169 else
27170   echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27172
27173
27174 fi
27175
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27177             fi
27178             { echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
27179 echo "${ECHO_T}$has_recursive_mutexes" >&6; }
27180
27181             # Check to see if pthread semaphore support is missing
27182             if test x$enable_pthread_sem = xyes; then
27183                 { echo "$as_me:$LINENO: checking for pthread semaphores" >&5
27184 echo $ECHO_N "checking for pthread semaphores... $ECHO_C" >&6; }
27185                 have_pthread_sem=no
27186                 cat >conftest.$ac_ext <<_ACEOF
27187 /* confdefs.h.  */
27188 _ACEOF
27189 cat confdefs.h >>conftest.$ac_ext
27190 cat >>conftest.$ac_ext <<_ACEOF
27191 /* end confdefs.h.  */
27192
27193                   #include <pthread.h>
27194                   #include <semaphore.h>
27195
27196 int
27197 main ()
27198 {
27199
27200
27201   ;
27202   return 0;
27203 }
27204 _ACEOF
27205 rm -f conftest.$ac_objext
27206 if { (ac_try="$ac_compile"
27207 case "(($ac_try" in
27208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209   *) ac_try_echo=$ac_try;;
27210 esac
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212   (eval "$ac_compile") 2>conftest.er1
27213   ac_status=$?
27214   grep -v '^ *+' conftest.er1 >conftest.err
27215   rm -f conftest.er1
27216   cat conftest.err >&5
27217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218   (exit $ac_status); } && {
27219          test -z "$ac_c_werror_flag" ||
27220          test ! -s conftest.err
27221        } && test -s conftest.$ac_objext; then
27222
27223                 have_pthread_sem=yes
27224
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229
27230 fi
27231
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27233                 { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
27234 echo "${ECHO_T}$have_pthread_sem" >&6; }
27235             fi
27236             if test x$have_pthread_sem = xyes; then
27237                 { echo "$as_me:$LINENO: checking for sem_timedwait" >&5
27238 echo $ECHO_N "checking for sem_timedwait... $ECHO_C" >&6; }
27239                 have_sem_timedwait=no
27240                 cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246
27247                   #include <pthread.h>
27248                   #include <semaphore.h>
27249
27250 int
27251 main ()
27252 {
27253
27254                   sem_timedwait(NULL, NULL);
27255
27256   ;
27257   return 0;
27258 }
27259 _ACEOF
27260 rm -f conftest.$ac_objext conftest$ac_exeext
27261 if { (ac_try="$ac_link"
27262 case "(($ac_try" in
27263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27264   *) ac_try_echo=$ac_try;;
27265 esac
27266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27267   (eval "$ac_link") 2>conftest.er1
27268   ac_status=$?
27269   grep -v '^ *+' conftest.er1 >conftest.err
27270   rm -f conftest.er1
27271   cat conftest.err >&5
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); } && {
27274          test -z "$ac_c_werror_flag" ||
27275          test ! -s conftest.err
27276        } && test -s conftest$ac_exeext &&
27277        $as_test_x conftest$ac_exeext; then
27278
27279                 have_sem_timedwait=yes
27280                 cat >>confdefs.h <<\_ACEOF
27281 #define HAVE_SEM_TIMEDWAIT 1
27282 _ACEOF
27283
27284
27285 else
27286   echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289
27290 fi
27291
27292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27293       conftest$ac_exeext conftest.$ac_ext
27294                 { echo "$as_me:$LINENO: result: $have_sem_timedwait" >&5
27295 echo "${ECHO_T}$have_sem_timedwait" >&6; }
27296             fi
27297
27298             # Restore the compiler flags and libraries
27299             CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27300
27301             # Basic thread creation functions
27302             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
27303
27304             # Semaphores
27305             # We can fake these with mutexes and condition variables if necessary
27306             if test x$have_pthread_sem = xyes; then
27307                 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
27308             else
27309                 SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
27310             fi
27311
27312             # Mutexes
27313             # We can fake these with semaphores if necessary
27314             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
27315
27316             # Condition variables
27317             # We can fake these with semaphores and mutexes if necessary
27318             SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
27319
27320             have_threads=yes
27321         else
27322             CheckPTH
27323         fi
27324     fi
27325 }
27326
27327 CheckWIN32()
27328 {
27329     { echo "$as_me:$LINENO: checking Win32 compiler" >&5
27330 echo $ECHO_N "checking Win32 compiler... $ECHO_C" >&6; }
27331     have_win32_gcc=no
27332     cat >conftest.$ac_ext <<_ACEOF
27333 /* confdefs.h.  */
27334 _ACEOF
27335 cat confdefs.h >>conftest.$ac_ext
27336 cat >>conftest.$ac_ext <<_ACEOF
27337 /* end confdefs.h.  */
27338
27339      #include <windows.h>
27340
27341 int
27342 main ()
27343 {
27344
27345
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext
27351 if { (ac_try="$ac_compile"
27352 case "(($ac_try" in
27353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354   *) ac_try_echo=$ac_try;;
27355 esac
27356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357   (eval "$ac_compile") 2>conftest.er1
27358   ac_status=$?
27359   grep -v '^ *+' conftest.er1 >conftest.err
27360   rm -f conftest.er1
27361   cat conftest.err >&5
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); } && {
27364          test -z "$ac_c_werror_flag" ||
27365          test ! -s conftest.err
27366        } && test -s conftest.$ac_objext; then
27367
27368     have_win32_gcc=yes
27369
27370 else
27371   echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27373
27374
27375 fi
27376
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27378     { echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
27379 echo "${ECHO_T}$have_win32_gcc" >&6; }
27380     if test x$have_win32_gcc != xyes; then
27381        { { echo "$as_me:$LINENO: error:
27382 *** Your compiler ($CC) does not produce Win32 executables!
27383        " >&5
27384 echo "$as_me: error:
27385 *** Your compiler ($CC) does not produce Win32 executables!
27386        " >&2;}
27387    { (exit 1); exit 1; }; }
27388     fi
27389
27390         # Check whether --enable-stdio-redirect was given.
27391 if test "${enable_stdio_redirect+set}" = set; then
27392   enableval=$enable_stdio_redirect;
27393 else
27394   enable_stdio_redirect=yes
27395 fi
27396
27397     if test x$enable_stdio_redirect != xyes; then
27398         EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
27399     fi
27400
27401     if test x$enable_video = xyes; then
27402         cat >>confdefs.h <<\_ACEOF
27403 #define SDL_VIDEO_DRIVER_WINDIB 1
27404 _ACEOF
27405
27406         SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
27407         SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
27408         have_video=yes
27409     fi
27410 }
27411
27412 CheckDIRECTX()
27413 {
27414     # Check whether --enable-directx was given.
27415 if test "${enable_directx+set}" = set; then
27416   enableval=$enable_directx;
27417 else
27418   enable_directx=yes
27419 fi
27420
27421     if test x$enable_directx = xyes; then
27422         have_directx=no
27423         if test "${ac_cv_header_ddraw_h+set}" = set; then
27424   { echo "$as_me:$LINENO: checking for ddraw.h" >&5
27425 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27426 if test "${ac_cv_header_ddraw_h+set}" = set; then
27427   echo $ECHO_N "(cached) $ECHO_C" >&6
27428 fi
27429 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27430 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27431 else
27432   # Is the header compilable?
27433 { echo "$as_me:$LINENO: checking ddraw.h usability" >&5
27434 echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h.  */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h.  */
27441 $ac_includes_default
27442 #include <ddraw.h>
27443 _ACEOF
27444 rm -f conftest.$ac_objext
27445 if { (ac_try="$ac_compile"
27446 case "(($ac_try" in
27447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448   *) ac_try_echo=$ac_try;;
27449 esac
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451   (eval "$ac_compile") 2>conftest.er1
27452   ac_status=$?
27453   grep -v '^ *+' conftest.er1 >conftest.err
27454   rm -f conftest.er1
27455   cat conftest.err >&5
27456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457   (exit $ac_status); } && {
27458          test -z "$ac_c_werror_flag" ||
27459          test ! -s conftest.err
27460        } && test -s conftest.$ac_objext; then
27461   ac_header_compiler=yes
27462 else
27463   echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27465
27466         ac_header_compiler=no
27467 fi
27468
27469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27471 echo "${ECHO_T}$ac_header_compiler" >&6; }
27472
27473 # Is the header present?
27474 { echo "$as_me:$LINENO: checking ddraw.h presence" >&5
27475 echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482 #include <ddraw.h>
27483 _ACEOF
27484 if { (ac_try="$ac_cpp conftest.$ac_ext"
27485 case "(($ac_try" in
27486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27487   *) ac_try_echo=$ac_try;;
27488 esac
27489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27491   ac_status=$?
27492   grep -v '^ *+' conftest.er1 >conftest.err
27493   rm -f conftest.er1
27494   cat conftest.err >&5
27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); } >/dev/null && {
27497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27498          test ! -s conftest.err
27499        }; then
27500   ac_header_preproc=yes
27501 else
27502   echo "$as_me: failed program was:" >&5
27503 sed 's/^/| /' conftest.$ac_ext >&5
27504
27505   ac_header_preproc=no
27506 fi
27507
27508 rm -f conftest.err conftest.$ac_ext
27509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27510 echo "${ECHO_T}$ac_header_preproc" >&6; }
27511
27512 # So?  What about this header?
27513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27514   yes:no: )
27515     { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
27516 echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27517     { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
27518 echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
27519     ac_header_preproc=yes
27520     ;;
27521   no:yes:* )
27522     { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
27523 echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
27524     { echo "$as_me:$LINENO: WARNING: ddraw.h:     check for missing prerequisite headers?" >&5
27525 echo "$as_me: WARNING: ddraw.h:     check for missing prerequisite headers?" >&2;}
27526     { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
27527 echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
27528     { echo "$as_me:$LINENO: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&5
27529 echo "$as_me: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27530     { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
27531 echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
27532     { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
27533 echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
27534
27535     ;;
27536 esac
27537 { echo "$as_me:$LINENO: checking for ddraw.h" >&5
27538 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27539 if test "${ac_cv_header_ddraw_h+set}" = set; then
27540   echo $ECHO_N "(cached) $ECHO_C" >&6
27541 else
27542   ac_cv_header_ddraw_h=$ac_header_preproc
27543 fi
27544 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27545 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27546
27547 fi
27548 if test $ac_cv_header_ddraw_h = yes; then
27549   have_ddraw=yes
27550 fi
27551
27552
27553         if test "${ac_cv_header_dsound_h+set}" = set; then
27554   { echo "$as_me:$LINENO: checking for dsound.h" >&5
27555 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27556 if test "${ac_cv_header_dsound_h+set}" = set; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 fi
27559 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27560 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27561 else
27562   # Is the header compilable?
27563 { echo "$as_me:$LINENO: checking dsound.h usability" >&5
27564 echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6; }
27565 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 $ac_includes_default
27572 #include <dsound.h>
27573 _ACEOF
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_compile") 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } && {
27588          test -z "$ac_c_werror_flag" ||
27589          test ! -s conftest.err
27590        } && test -s conftest.$ac_objext; then
27591   ac_header_compiler=yes
27592 else
27593   echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596         ac_header_compiler=no
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27601 echo "${ECHO_T}$ac_header_compiler" >&6; }
27602
27603 # Is the header present?
27604 { echo "$as_me:$LINENO: checking dsound.h presence" >&5
27605 echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6; }
27606 cat >conftest.$ac_ext <<_ACEOF
27607 /* confdefs.h.  */
27608 _ACEOF
27609 cat confdefs.h >>conftest.$ac_ext
27610 cat >>conftest.$ac_ext <<_ACEOF
27611 /* end confdefs.h.  */
27612 #include <dsound.h>
27613 _ACEOF
27614 if { (ac_try="$ac_cpp conftest.$ac_ext"
27615 case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } >/dev/null && {
27627          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27628          test ! -s conftest.err
27629        }; then
27630   ac_header_preproc=yes
27631 else
27632   echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635   ac_header_preproc=no
27636 fi
27637
27638 rm -f conftest.err conftest.$ac_ext
27639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27640 echo "${ECHO_T}$ac_header_preproc" >&6; }
27641
27642 # So?  What about this header?
27643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27644   yes:no: )
27645     { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
27646 echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27647     { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
27648 echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
27649     ac_header_preproc=yes
27650     ;;
27651   no:yes:* )
27652     { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
27653 echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
27654     { echo "$as_me:$LINENO: WARNING: dsound.h:     check for missing prerequisite headers?" >&5
27655 echo "$as_me: WARNING: dsound.h:     check for missing prerequisite headers?" >&2;}
27656     { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
27657 echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
27658     { echo "$as_me:$LINENO: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&5
27659 echo "$as_me: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27660     { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
27661 echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
27662     { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
27663 echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
27664
27665     ;;
27666 esac
27667 { echo "$as_me:$LINENO: checking for dsound.h" >&5
27668 echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27669 if test "${ac_cv_header_dsound_h+set}" = set; then
27670   echo $ECHO_N "(cached) $ECHO_C" >&6
27671 else
27672   ac_cv_header_dsound_h=$ac_header_preproc
27673 fi
27674 { echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27675 echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27676
27677 fi
27678 if test $ac_cv_header_dsound_h = yes; then
27679   have_dsound=yes
27680 fi
27681
27682
27683         if test "${ac_cv_header_dinput_h+set}" = set; then
27684   { echo "$as_me:$LINENO: checking for dinput.h" >&5
27685 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27686 if test "${ac_cv_header_dinput_h+set}" = set; then
27687   echo $ECHO_N "(cached) $ECHO_C" >&6
27688 fi
27689 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27690 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27691 else
27692   # Is the header compilable?
27693 { echo "$as_me:$LINENO: checking dinput.h usability" >&5
27694 echo $ECHO_N "checking dinput.h usability... $ECHO_C" >&6; }
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h.  */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h.  */
27701 $ac_includes_default
27702 #include <dinput.h>
27703 _ACEOF
27704 rm -f conftest.$ac_objext
27705 if { (ac_try="$ac_compile"
27706 case "(($ac_try" in
27707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708   *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711   (eval "$ac_compile") 2>conftest.er1
27712   ac_status=$?
27713   grep -v '^ *+' conftest.er1 >conftest.err
27714   rm -f conftest.er1
27715   cat conftest.err >&5
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); } && {
27718          test -z "$ac_c_werror_flag" ||
27719          test ! -s conftest.err
27720        } && test -s conftest.$ac_objext; then
27721   ac_header_compiler=yes
27722 else
27723   echo "$as_me: failed program was:" >&5
27724 sed 's/^/| /' conftest.$ac_ext >&5
27725
27726         ac_header_compiler=no
27727 fi
27728
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27731 echo "${ECHO_T}$ac_header_compiler" >&6; }
27732
27733 # Is the header present?
27734 { echo "$as_me:$LINENO: checking dinput.h presence" >&5
27735 echo $ECHO_N "checking dinput.h presence... $ECHO_C" >&6; }
27736 cat >conftest.$ac_ext <<_ACEOF
27737 /* confdefs.h.  */
27738 _ACEOF
27739 cat confdefs.h >>conftest.$ac_ext
27740 cat >>conftest.$ac_ext <<_ACEOF
27741 /* end confdefs.h.  */
27742 #include <dinput.h>
27743 _ACEOF
27744 if { (ac_try="$ac_cpp conftest.$ac_ext"
27745 case "(($ac_try" in
27746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747   *) ac_try_echo=$ac_try;;
27748 esac
27749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } >/dev/null && {
27757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27758          test ! -s conftest.err
27759        }; then
27760   ac_header_preproc=yes
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765   ac_header_preproc=no
27766 fi
27767
27768 rm -f conftest.err conftest.$ac_ext
27769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27770 echo "${ECHO_T}$ac_header_preproc" >&6; }
27771
27772 # So?  What about this header?
27773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27774   yes:no: )
27775     { echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
27776 echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27777     { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
27778 echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
27779     ac_header_preproc=yes
27780     ;;
27781   no:yes:* )
27782     { echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
27783 echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
27784     { echo "$as_me:$LINENO: WARNING: dinput.h:     check for missing prerequisite headers?" >&5
27785 echo "$as_me: WARNING: dinput.h:     check for missing prerequisite headers?" >&2;}
27786     { echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
27787 echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
27788     { echo "$as_me:$LINENO: WARNING: dinput.h:     section \"Present But Cannot Be Compiled\"" >&5
27789 echo "$as_me: WARNING: dinput.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27790     { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
27791 echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
27792     { echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
27793 echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
27794
27795     ;;
27796 esac
27797 { echo "$as_me:$LINENO: checking for dinput.h" >&5
27798 echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27799 if test "${ac_cv_header_dinput_h+set}" = set; then
27800   echo $ECHO_N "(cached) $ECHO_C" >&6
27801 else
27802   ac_cv_header_dinput_h=$ac_header_preproc
27803 fi
27804 { echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27805 echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27806
27807 fi
27808 if test $ac_cv_header_dinput_h = yes; then
27809   use_dinput=yes
27810 fi
27811
27812
27813         if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
27814             have_directx=yes
27815         fi
27816         if test x$enable_video = xyes -a x$have_directx = xyes; then
27817             cat >>confdefs.h <<\_ACEOF
27818 #define SDL_VIDEO_DRIVER_DDRAW 1
27819 _ACEOF
27820
27821             SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
27822             have_video=yes
27823         fi
27824     fi
27825 }
27826
27827 CheckDLOPEN()
27828 {
27829     # Check whether --enable-sdl-dlopen was given.
27830 if test "${enable_sdl_dlopen+set}" = set; then
27831   enableval=$enable_sdl_dlopen;
27832 else
27833   enable_sdl_dlopen=yes
27834 fi
27835
27836     if test x$enable_sdl_dlopen = xyes; then
27837         { echo "$as_me:$LINENO: checking for dlopen" >&5
27838 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
27839         have_dlopen=no
27840         cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846
27847          #include <dlfcn.h>
27848
27849 int
27850 main ()
27851 {
27852
27853          #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
27854          #error Use dlcompat for Mac OS X 10.2 compatibility
27855          #endif
27856
27857   ;
27858   return 0;
27859 }
27860 _ACEOF
27861 rm -f conftest.$ac_objext
27862 if { (ac_try="$ac_compile"
27863 case "(($ac_try" in
27864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865   *) ac_try_echo=$ac_try;;
27866 esac
27867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868   (eval "$ac_compile") 2>conftest.er1
27869   ac_status=$?
27870   grep -v '^ *+' conftest.er1 >conftest.err
27871   rm -f conftest.er1
27872   cat conftest.err >&5
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); } && {
27875          test -z "$ac_c_werror_flag" ||
27876          test ! -s conftest.err
27877        } && test -s conftest.$ac_objext; then
27878
27879         have_dlopen=yes
27880
27881 else
27882   echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885
27886 fi
27887
27888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889         { echo "$as_me:$LINENO: result: $have_dlopen" >&5
27890 echo "${ECHO_T}$have_dlopen" >&6; }
27891
27892         if test x$have_dlopen = xyes; then
27893             { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
27894 echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
27895 if test "${ac_cv_lib_c_dlopen+set}" = set; then
27896   echo $ECHO_N "(cached) $ECHO_C" >&6
27897 else
27898   ac_check_lib_save_LIBS=$LIBS
27899 LIBS="-lc  $LIBS"
27900 cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906
27907 /* Override any GCC internal prototype to avoid an error.
27908    Use char because int might match the return type of a GCC
27909    builtin and then its argument prototype would still apply.  */
27910 #ifdef __cplusplus
27911 extern "C"
27912 #endif
27913 char dlopen ();
27914 int
27915 main ()
27916 {
27917 return dlopen ();
27918   ;
27919   return 0;
27920 }
27921 _ACEOF
27922 rm -f conftest.$ac_objext conftest$ac_exeext
27923 if { (ac_try="$ac_link"
27924 case "(($ac_try" in
27925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926   *) ac_try_echo=$ac_try;;
27927 esac
27928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929   (eval "$ac_link") 2>conftest.er1
27930   ac_status=$?
27931   grep -v '^ *+' conftest.er1 >conftest.err
27932   rm -f conftest.er1
27933   cat conftest.err >&5
27934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935   (exit $ac_status); } && {
27936          test -z "$ac_c_werror_flag" ||
27937          test ! -s conftest.err
27938        } && test -s conftest$ac_exeext &&
27939        $as_test_x conftest$ac_exeext; then
27940   ac_cv_lib_c_dlopen=yes
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945         ac_cv_lib_c_dlopen=no
27946 fi
27947
27948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27949       conftest$ac_exeext conftest.$ac_ext
27950 LIBS=$ac_check_lib_save_LIBS
27951 fi
27952 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
27953 echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; }
27954 if test $ac_cv_lib_c_dlopen = yes; then
27955   EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
27956 else
27957   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27958 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
27959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27960   echo $ECHO_N "(cached) $ECHO_C" >&6
27961 else
27962   ac_check_lib_save_LIBS=$LIBS
27963 LIBS="-ldl  $LIBS"
27964 cat >conftest.$ac_ext <<_ACEOF
27965 /* confdefs.h.  */
27966 _ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h.  */
27970
27971 /* Override any GCC internal prototype to avoid an error.
27972    Use char because int might match the return type of a GCC
27973    builtin and then its argument prototype would still apply.  */
27974 #ifdef __cplusplus
27975 extern "C"
27976 #endif
27977 char dlopen ();
27978 int
27979 main ()
27980 {
27981 return dlopen ();
27982   ;
27983   return 0;
27984 }
27985 _ACEOF
27986 rm -f conftest.$ac_objext conftest$ac_exeext
27987 if { (ac_try="$ac_link"
27988 case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993   (eval "$ac_link") 2>conftest.er1
27994   ac_status=$?
27995   grep -v '^ *+' conftest.er1 >conftest.err
27996   rm -f conftest.er1
27997   cat conftest.err >&5
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); } && {
28000          test -z "$ac_c_werror_flag" ||
28001          test ! -s conftest.err
28002        } && test -s conftest$ac_exeext &&
28003        $as_test_x conftest$ac_exeext; then
28004   ac_cv_lib_dl_dlopen=yes
28005 else
28006   echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28008
28009         ac_cv_lib_dl_dlopen=no
28010 fi
28011
28012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28013       conftest$ac_exeext conftest.$ac_ext
28014 LIBS=$ac_check_lib_save_LIBS
28015 fi
28016 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28017 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28018 if test $ac_cv_lib_dl_dlopen = yes; then
28019   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
28020 else
28021   { echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
28022 echo $ECHO_N "checking for dlopen in -lltdl... $ECHO_C" >&6; }
28023 if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
28024   echo $ECHO_N "(cached) $ECHO_C" >&6
28025 else
28026   ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-lltdl  $LIBS"
28028 cat >conftest.$ac_ext <<_ACEOF
28029 /* confdefs.h.  */
28030 _ACEOF
28031 cat confdefs.h >>conftest.$ac_ext
28032 cat >>conftest.$ac_ext <<_ACEOF
28033 /* end confdefs.h.  */
28034
28035 /* Override any GCC internal prototype to avoid an error.
28036    Use char because int might match the return type of a GCC
28037    builtin and then its argument prototype would still apply.  */
28038 #ifdef __cplusplus
28039 extern "C"
28040 #endif
28041 char dlopen ();
28042 int
28043 main ()
28044 {
28045 return dlopen ();
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 rm -f conftest.$ac_objext conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28057   (eval "$ac_link") 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } && {
28064          test -z "$ac_c_werror_flag" ||
28065          test ! -s conftest.err
28066        } && test -s conftest$ac_exeext &&
28067        $as_test_x conftest$ac_exeext; then
28068   ac_cv_lib_ltdl_dlopen=yes
28069 else
28070   echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073         ac_cv_lib_ltdl_dlopen=no
28074 fi
28075
28076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28077       conftest$ac_exeext conftest.$ac_ext
28078 LIBS=$ac_check_lib_save_LIBS
28079 fi
28080 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
28081 echo "${ECHO_T}$ac_cv_lib_ltdl_dlopen" >&6; }
28082 if test $ac_cv_lib_ltdl_dlopen = yes; then
28083   EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
28084 fi
28085
28086 fi
28087
28088 fi
28089
28090             cat >>confdefs.h <<\_ACEOF
28091 #define SDL_LOADSO_DLOPEN 1
28092 _ACEOF
28093
28094             SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
28095             have_loadso=yes
28096         fi
28097     fi
28098 }
28099
28100 CheckAtariLdg()
28101 {
28102     # Check whether --enable-atari-ldg was given.
28103 if test "${enable_atari_ldg+set}" = set; then
28104   enableval=$enable_atari_ldg;
28105 else
28106   enable_atari_ldg=yes
28107 fi
28108
28109     if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
28110         if test "${ac_cv_header_ldg_h+set}" = set; then
28111   { echo "$as_me:$LINENO: checking for ldg.h" >&5
28112 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28113 if test "${ac_cv_header_ldg_h+set}" = set; then
28114   echo $ECHO_N "(cached) $ECHO_C" >&6
28115 fi
28116 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28117 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28118 else
28119   # Is the header compilable?
28120 { echo "$as_me:$LINENO: checking ldg.h usability" >&5
28121 echo $ECHO_N "checking ldg.h usability... $ECHO_C" >&6; }
28122 cat >conftest.$ac_ext <<_ACEOF
28123 /* confdefs.h.  */
28124 _ACEOF
28125 cat confdefs.h >>conftest.$ac_ext
28126 cat >>conftest.$ac_ext <<_ACEOF
28127 /* end confdefs.h.  */
28128 $ac_includes_default
28129 #include <ldg.h>
28130 _ACEOF
28131 rm -f conftest.$ac_objext
28132 if { (ac_try="$ac_compile"
28133 case "(($ac_try" in
28134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135   *) ac_try_echo=$ac_try;;
28136 esac
28137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28138   (eval "$ac_compile") 2>conftest.er1
28139   ac_status=$?
28140   grep -v '^ *+' conftest.er1 >conftest.err
28141   rm -f conftest.er1
28142   cat conftest.err >&5
28143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144   (exit $ac_status); } && {
28145          test -z "$ac_c_werror_flag" ||
28146          test ! -s conftest.err
28147        } && test -s conftest.$ac_objext; then
28148   ac_header_compiler=yes
28149 else
28150   echo "$as_me: failed program was:" >&5
28151 sed 's/^/| /' conftest.$ac_ext >&5
28152
28153         ac_header_compiler=no
28154 fi
28155
28156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28158 echo "${ECHO_T}$ac_header_compiler" >&6; }
28159
28160 # Is the header present?
28161 { echo "$as_me:$LINENO: checking ldg.h presence" >&5
28162 echo $ECHO_N "checking ldg.h presence... $ECHO_C" >&6; }
28163 cat >conftest.$ac_ext <<_ACEOF
28164 /* confdefs.h.  */
28165 _ACEOF
28166 cat confdefs.h >>conftest.$ac_ext
28167 cat >>conftest.$ac_ext <<_ACEOF
28168 /* end confdefs.h.  */
28169 #include <ldg.h>
28170 _ACEOF
28171 if { (ac_try="$ac_cpp conftest.$ac_ext"
28172 case "(($ac_try" in
28173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174   *) ac_try_echo=$ac_try;;
28175 esac
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28178   ac_status=$?
28179   grep -v '^ *+' conftest.er1 >conftest.err
28180   rm -f conftest.er1
28181   cat conftest.err >&5
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } >/dev/null && {
28184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28185          test ! -s conftest.err
28186        }; then
28187   ac_header_preproc=yes
28188 else
28189   echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28191
28192   ac_header_preproc=no
28193 fi
28194
28195 rm -f conftest.err conftest.$ac_ext
28196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28197 echo "${ECHO_T}$ac_header_preproc" >&6; }
28198
28199 # So?  What about this header?
28200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28201   yes:no: )
28202     { echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28203 echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28204     { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
28205 echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
28206     ac_header_preproc=yes
28207     ;;
28208   no:yes:* )
28209     { echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
28210 echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
28211     { echo "$as_me:$LINENO: WARNING: ldg.h:     check for missing prerequisite headers?" >&5
28212 echo "$as_me: WARNING: ldg.h:     check for missing prerequisite headers?" >&2;}
28213     { echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
28214 echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
28215     { echo "$as_me:$LINENO: WARNING: ldg.h:     section \"Present But Cannot Be Compiled\"" >&5
28216 echo "$as_me: WARNING: ldg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28217     { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
28218 echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
28219     { echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
28220 echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
28221
28222     ;;
28223 esac
28224 { echo "$as_me:$LINENO: checking for ldg.h" >&5
28225 echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28226 if test "${ac_cv_header_ldg_h+set}" = set; then
28227   echo $ECHO_N "(cached) $ECHO_C" >&6
28228 else
28229   ac_cv_header_ldg_h=$ac_header_preproc
28230 fi
28231 { echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28232 echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28233
28234 fi
28235 if test $ac_cv_header_ldg_h = yes; then
28236   have_ldg_hdr=yes
28237 fi
28238
28239
28240         { echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
28241 echo $ECHO_N "checking for ldg_open in -lldg... $ECHO_C" >&6; }
28242 if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
28243   echo $ECHO_N "(cached) $ECHO_C" >&6
28244 else
28245   ac_check_lib_save_LIBS=$LIBS
28246 LIBS="-lldg -lgem $LIBS"
28247 cat >conftest.$ac_ext <<_ACEOF
28248 /* confdefs.h.  */
28249 _ACEOF
28250 cat confdefs.h >>conftest.$ac_ext
28251 cat >>conftest.$ac_ext <<_ACEOF
28252 /* end confdefs.h.  */
28253
28254 /* Override any GCC internal prototype to avoid an error.
28255    Use char because int might match the return type of a GCC
28256    builtin and then its argument prototype would still apply.  */
28257 #ifdef __cplusplus
28258 extern "C"
28259 #endif
28260 char ldg_open ();
28261 int
28262 main ()
28263 {
28264 return ldg_open ();
28265   ;
28266   return 0;
28267 }
28268 _ACEOF
28269 rm -f conftest.$ac_objext conftest$ac_exeext
28270 if { (ac_try="$ac_link"
28271 case "(($ac_try" in
28272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273   *) ac_try_echo=$ac_try;;
28274 esac
28275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276   (eval "$ac_link") 2>conftest.er1
28277   ac_status=$?
28278   grep -v '^ *+' conftest.er1 >conftest.err
28279   rm -f conftest.er1
28280   cat conftest.err >&5
28281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282   (exit $ac_status); } && {
28283          test -z "$ac_c_werror_flag" ||
28284          test ! -s conftest.err
28285        } && test -s conftest$ac_exeext &&
28286        $as_test_x conftest$ac_exeext; then
28287   ac_cv_lib_ldg_ldg_open=yes
28288 else
28289   echo "$as_me: failed program was:" >&5
28290 sed 's/^/| /' conftest.$ac_ext >&5
28291
28292         ac_cv_lib_ldg_ldg_open=no
28293 fi
28294
28295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28296       conftest$ac_exeext conftest.$ac_ext
28297 LIBS=$ac_check_lib_save_LIBS
28298 fi
28299 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
28300 echo "${ECHO_T}$ac_cv_lib_ldg_ldg_open" >&6; }
28301 if test $ac_cv_lib_ldg_ldg_open = yes; then
28302   have_ldg_lib=yes
28303 else
28304   have_ldg_lib=no
28305 fi
28306
28307         if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
28308             cat >>confdefs.h <<\_ACEOF
28309 #define SDL_LOADSO_LDG 1
28310 _ACEOF
28311
28312             SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
28313             SDL_LIBS="$SDL_LIBS -lldg -lgem"
28314             have_loadso=yes
28315         fi
28316     fi
28317 }
28318
28319 CheckUSBHID()
28320 {
28321     if test x$enable_joystick = xyes; then
28322         { echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
28323 echo $ECHO_N "checking for hid_init in -lusbhid... $ECHO_C" >&6; }
28324 if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
28325   echo $ECHO_N "(cached) $ECHO_C" >&6
28326 else
28327   ac_check_lib_save_LIBS=$LIBS
28328 LIBS="-lusbhid  $LIBS"
28329 cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335
28336 /* Override any GCC internal prototype to avoid an error.
28337    Use char because int might match the return type of a GCC
28338    builtin and then its argument prototype would still apply.  */
28339 #ifdef __cplusplus
28340 extern "C"
28341 #endif
28342 char hid_init ();
28343 int
28344 main ()
28345 {
28346 return hid_init ();
28347   ;
28348   return 0;
28349 }
28350 _ACEOF
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355   *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358   (eval "$ac_link") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest$ac_exeext &&
28368        $as_test_x conftest$ac_exeext; then
28369   ac_cv_lib_usbhid_hid_init=yes
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374         ac_cv_lib_usbhid_hid_init=no
28375 fi
28376
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378       conftest$ac_exeext conftest.$ac_ext
28379 LIBS=$ac_check_lib_save_LIBS
28380 fi
28381 { echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
28382 echo "${ECHO_T}$ac_cv_lib_usbhid_hid_init" >&6; }
28383 if test $ac_cv_lib_usbhid_hid_init = yes; then
28384   have_libusbhid=yes
28385 fi
28386
28387         if test x$have_libusbhid = xyes; then
28388             if test "${ac_cv_header_usbhid_h+set}" = set; then
28389   { echo "$as_me:$LINENO: checking for usbhid.h" >&5
28390 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28391 if test "${ac_cv_header_usbhid_h+set}" = set; then
28392   echo $ECHO_N "(cached) $ECHO_C" >&6
28393 fi
28394 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28395 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28396 else
28397   # Is the header compilable?
28398 { echo "$as_me:$LINENO: checking usbhid.h usability" >&5
28399 echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6; }
28400 cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 $ac_includes_default
28407 #include <usbhid.h>
28408 _ACEOF
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_compile") 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } && {
28423          test -z "$ac_c_werror_flag" ||
28424          test ! -s conftest.err
28425        } && test -s conftest.$ac_objext; then
28426   ac_header_compiler=yes
28427 else
28428   echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28430
28431         ac_header_compiler=no
28432 fi
28433
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28436 echo "${ECHO_T}$ac_header_compiler" >&6; }
28437
28438 # Is the header present?
28439 { echo "$as_me:$LINENO: checking usbhid.h presence" >&5
28440 echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6; }
28441 cat >conftest.$ac_ext <<_ACEOF
28442 /* confdefs.h.  */
28443 _ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h.  */
28447 #include <usbhid.h>
28448 _ACEOF
28449 if { (ac_try="$ac_cpp conftest.$ac_ext"
28450 case "(($ac_try" in
28451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452   *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } >/dev/null && {
28462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28463          test ! -s conftest.err
28464        }; then
28465   ac_header_preproc=yes
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470   ac_header_preproc=no
28471 fi
28472
28473 rm -f conftest.err conftest.$ac_ext
28474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28475 echo "${ECHO_T}$ac_header_preproc" >&6; }
28476
28477 # So?  What about this header?
28478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28479   yes:no: )
28480     { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28481 echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28482     { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
28483 echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
28484     ac_header_preproc=yes
28485     ;;
28486   no:yes:* )
28487     { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
28488 echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
28489     { echo "$as_me:$LINENO: WARNING: usbhid.h:     check for missing prerequisite headers?" >&5
28490 echo "$as_me: WARNING: usbhid.h:     check for missing prerequisite headers?" >&2;}
28491     { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
28492 echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
28493     { echo "$as_me:$LINENO: WARNING: usbhid.h:     section \"Present But Cannot Be Compiled\"" >&5
28494 echo "$as_me: WARNING: usbhid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28495     { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
28496 echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
28497     { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
28498 echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
28499
28500     ;;
28501 esac
28502 { echo "$as_me:$LINENO: checking for usbhid.h" >&5
28503 echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28504 if test "${ac_cv_header_usbhid_h+set}" = set; then
28505   echo $ECHO_N "(cached) $ECHO_C" >&6
28506 else
28507   ac_cv_header_usbhid_h=$ac_header_preproc
28508 fi
28509 { echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28510 echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28511
28512 fi
28513 if test $ac_cv_header_usbhid_h = yes; then
28514   USB_CFLAGS="-DHAVE_USBHID_H"
28515 fi
28516
28517
28518             if test "${ac_cv_header_libusbhid_h+set}" = set; then
28519   { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28520 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28521 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28522   echo $ECHO_N "(cached) $ECHO_C" >&6
28523 fi
28524 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28525 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28526 else
28527   # Is the header compilable?
28528 { echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
28529 echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6; }
28530 cat >conftest.$ac_ext <<_ACEOF
28531 /* confdefs.h.  */
28532 _ACEOF
28533 cat confdefs.h >>conftest.$ac_ext
28534 cat >>conftest.$ac_ext <<_ACEOF
28535 /* end confdefs.h.  */
28536 $ac_includes_default
28537 #include <libusbhid.h>
28538 _ACEOF
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_compile") 2>conftest.er1
28547   ac_status=$?
28548   grep -v '^ *+' conftest.er1 >conftest.err
28549   rm -f conftest.er1
28550   cat conftest.err >&5
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); } && {
28553          test -z "$ac_c_werror_flag" ||
28554          test ! -s conftest.err
28555        } && test -s conftest.$ac_objext; then
28556   ac_header_compiler=yes
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561         ac_header_compiler=no
28562 fi
28563
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28566 echo "${ECHO_T}$ac_header_compiler" >&6; }
28567
28568 # Is the header present?
28569 { echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
28570 echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6; }
28571 cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h.  */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h.  */
28577 #include <libusbhid.h>
28578 _ACEOF
28579 if { (ac_try="$ac_cpp conftest.$ac_ext"
28580 case "(($ac_try" in
28581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582   *) ac_try_echo=$ac_try;;
28583 esac
28584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28586   ac_status=$?
28587   grep -v '^ *+' conftest.er1 >conftest.err
28588   rm -f conftest.er1
28589   cat conftest.err >&5
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); } >/dev/null && {
28592          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28593          test ! -s conftest.err
28594        }; then
28595   ac_header_preproc=yes
28596 else
28597   echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28599
28600   ac_header_preproc=no
28601 fi
28602
28603 rm -f conftest.err conftest.$ac_ext
28604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28605 echo "${ECHO_T}$ac_header_preproc" >&6; }
28606
28607 # So?  What about this header?
28608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28609   yes:no: )
28610     { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28611 echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28612     { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
28613 echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
28614     ac_header_preproc=yes
28615     ;;
28616   no:yes:* )
28617     { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
28618 echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
28619     { echo "$as_me:$LINENO: WARNING: libusbhid.h:     check for missing prerequisite headers?" >&5
28620 echo "$as_me: WARNING: libusbhid.h:     check for missing prerequisite headers?" >&2;}
28621     { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
28622 echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
28623     { echo "$as_me:$LINENO: WARNING: libusbhid.h:     section \"Present But Cannot Be Compiled\"" >&5
28624 echo "$as_me: WARNING: libusbhid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28625     { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
28626 echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
28627     { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
28628 echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
28629
28630     ;;
28631 esac
28632 { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28633 echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28634 if test "${ac_cv_header_libusbhid_h+set}" = set; then
28635   echo $ECHO_N "(cached) $ECHO_C" >&6
28636 else
28637   ac_cv_header_libusbhid_h=$ac_header_preproc
28638 fi
28639 { echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28640 echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28641
28642 fi
28643 if test $ac_cv_header_libusbhid_h = yes; then
28644   USB_CFLAGS="-DHAVE_LIBUSBHID_H"
28645 fi
28646
28647
28648             USB_LIBS="$USB_LIBS -lusbhid"
28649         else
28650             if test "${ac_cv_header_usb_h+set}" = set; then
28651   { echo "$as_me:$LINENO: checking for usb.h" >&5
28652 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28653 if test "${ac_cv_header_usb_h+set}" = set; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 fi
28656 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28657 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28658 else
28659   # Is the header compilable?
28660 { echo "$as_me:$LINENO: checking usb.h usability" >&5
28661 echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
28662 cat >conftest.$ac_ext <<_ACEOF
28663 /* confdefs.h.  */
28664 _ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h.  */
28668 $ac_includes_default
28669 #include <usb.h>
28670 _ACEOF
28671 rm -f conftest.$ac_objext
28672 if { (ac_try="$ac_compile"
28673 case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_compile") 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } && {
28685          test -z "$ac_c_werror_flag" ||
28686          test ! -s conftest.err
28687        } && test -s conftest.$ac_objext; then
28688   ac_header_compiler=yes
28689 else
28690   echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28692
28693         ac_header_compiler=no
28694 fi
28695
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28698 echo "${ECHO_T}$ac_header_compiler" >&6; }
28699
28700 # Is the header present?
28701 { echo "$as_me:$LINENO: checking usb.h presence" >&5
28702 echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
28703 cat >conftest.$ac_ext <<_ACEOF
28704 /* confdefs.h.  */
28705 _ACEOF
28706 cat confdefs.h >>conftest.$ac_ext
28707 cat >>conftest.$ac_ext <<_ACEOF
28708 /* end confdefs.h.  */
28709 #include <usb.h>
28710 _ACEOF
28711 if { (ac_try="$ac_cpp conftest.$ac_ext"
28712 case "(($ac_try" in
28713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28714   *) ac_try_echo=$ac_try;;
28715 esac
28716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28718   ac_status=$?
28719   grep -v '^ *+' conftest.er1 >conftest.err
28720   rm -f conftest.er1
28721   cat conftest.err >&5
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); } >/dev/null && {
28724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28725          test ! -s conftest.err
28726        }; then
28727   ac_header_preproc=yes
28728 else
28729   echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28731
28732   ac_header_preproc=no
28733 fi
28734
28735 rm -f conftest.err conftest.$ac_ext
28736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28737 echo "${ECHO_T}$ac_header_preproc" >&6; }
28738
28739 # So?  What about this header?
28740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28741   yes:no: )
28742     { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28743 echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28744     { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
28745 echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
28746     ac_header_preproc=yes
28747     ;;
28748   no:yes:* )
28749     { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
28750 echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
28751     { echo "$as_me:$LINENO: WARNING: usb.h:     check for missing prerequisite headers?" >&5
28752 echo "$as_me: WARNING: usb.h:     check for missing prerequisite headers?" >&2;}
28753     { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
28754 echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
28755     { echo "$as_me:$LINENO: WARNING: usb.h:     section \"Present But Cannot Be Compiled\"" >&5
28756 echo "$as_me: WARNING: usb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28757     { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
28758 echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
28759     { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
28760 echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
28761
28762     ;;
28763 esac
28764 { echo "$as_me:$LINENO: checking for usb.h" >&5
28765 echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28766 if test "${ac_cv_header_usb_h+set}" = set; then
28767   echo $ECHO_N "(cached) $ECHO_C" >&6
28768 else
28769   ac_cv_header_usb_h=$ac_header_preproc
28770 fi
28771 { echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28772 echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28773
28774 fi
28775 if test $ac_cv_header_usb_h = yes; then
28776   USB_CFLAGS="-DHAVE_USB_H"
28777 fi
28778
28779
28780             if test "${ac_cv_header_libusb_h+set}" = set; then
28781   { echo "$as_me:$LINENO: checking for libusb.h" >&5
28782 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28783 if test "${ac_cv_header_libusb_h+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 fi
28786 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28787 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28788 else
28789   # Is the header compilable?
28790 { echo "$as_me:$LINENO: checking libusb.h usability" >&5
28791 echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6; }
28792 cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798 $ac_includes_default
28799 #include <libusb.h>
28800 _ACEOF
28801 rm -f conftest.$ac_objext
28802 if { (ac_try="$ac_compile"
28803 case "(($ac_try" in
28804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805   *) ac_try_echo=$ac_try;;
28806 esac
28807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808   (eval "$ac_compile") 2>conftest.er1
28809   ac_status=$?
28810   grep -v '^ *+' conftest.er1 >conftest.err
28811   rm -f conftest.er1
28812   cat conftest.err >&5
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); } && {
28815          test -z "$ac_c_werror_flag" ||
28816          test ! -s conftest.err
28817        } && test -s conftest.$ac_objext; then
28818   ac_header_compiler=yes
28819 else
28820   echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823         ac_header_compiler=no
28824 fi
28825
28826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28828 echo "${ECHO_T}$ac_header_compiler" >&6; }
28829
28830 # Is the header present?
28831 { echo "$as_me:$LINENO: checking libusb.h presence" >&5
28832 echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6; }
28833 cat >conftest.$ac_ext <<_ACEOF
28834 /* confdefs.h.  */
28835 _ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h.  */
28839 #include <libusb.h>
28840 _ACEOF
28841 if { (ac_try="$ac_cpp conftest.$ac_ext"
28842 case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28848   ac_status=$?
28849   grep -v '^ *+' conftest.er1 >conftest.err
28850   rm -f conftest.er1
28851   cat conftest.err >&5
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } >/dev/null && {
28854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28855          test ! -s conftest.err
28856        }; then
28857   ac_header_preproc=yes
28858 else
28859   echo "$as_me: failed program was:" >&5
28860 sed 's/^/| /' conftest.$ac_ext >&5
28861
28862   ac_header_preproc=no
28863 fi
28864
28865 rm -f conftest.err conftest.$ac_ext
28866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28867 echo "${ECHO_T}$ac_header_preproc" >&6; }
28868
28869 # So?  What about this header?
28870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28871   yes:no: )
28872     { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28873 echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28874     { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
28875 echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
28876     ac_header_preproc=yes
28877     ;;
28878   no:yes:* )
28879     { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
28880 echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
28881     { echo "$as_me:$LINENO: WARNING: libusb.h:     check for missing prerequisite headers?" >&5
28882 echo "$as_me: WARNING: libusb.h:     check for missing prerequisite headers?" >&2;}
28883     { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
28884 echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
28885     { echo "$as_me:$LINENO: WARNING: libusb.h:     section \"Present But Cannot Be Compiled\"" >&5
28886 echo "$as_me: WARNING: libusb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28887     { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
28888 echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
28889     { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
28890 echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
28891
28892     ;;
28893 esac
28894 { echo "$as_me:$LINENO: checking for libusb.h" >&5
28895 echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28896 if test "${ac_cv_header_libusb_h+set}" = set; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899   ac_cv_header_libusb_h=$ac_header_preproc
28900 fi
28901 { echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28902 echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28903
28904 fi
28905 if test $ac_cv_header_libusb_h = yes; then
28906   USB_CFLAGS="-DHAVE_LIBUSB_H"
28907 fi
28908
28909
28910             { echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
28911 echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6; }
28912 if test "${ac_cv_lib_usb_hid_init+set}" = set; then
28913   echo $ECHO_N "(cached) $ECHO_C" >&6
28914 else
28915   ac_check_lib_save_LIBS=$LIBS
28916 LIBS="-lusb  $LIBS"
28917 cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923
28924 /* Override any GCC internal prototype to avoid an error.
28925    Use char because int might match the return type of a GCC
28926    builtin and then its argument prototype would still apply.  */
28927 #ifdef __cplusplus
28928 extern "C"
28929 #endif
28930 char hid_init ();
28931 int
28932 main ()
28933 {
28934 return hid_init ();
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext conftest$ac_exeext
28940 if { (ac_try="$ac_link"
28941 case "(($ac_try" in
28942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943   *) ac_try_echo=$ac_try;;
28944 esac
28945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28946   (eval "$ac_link") 2>conftest.er1
28947   ac_status=$?
28948   grep -v '^ *+' conftest.er1 >conftest.err
28949   rm -f conftest.er1
28950   cat conftest.err >&5
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); } && {
28953          test -z "$ac_c_werror_flag" ||
28954          test ! -s conftest.err
28955        } && test -s conftest$ac_exeext &&
28956        $as_test_x conftest$ac_exeext; then
28957   ac_cv_lib_usb_hid_init=yes
28958 else
28959   echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28961
28962         ac_cv_lib_usb_hid_init=no
28963 fi
28964
28965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28966       conftest$ac_exeext conftest.$ac_ext
28967 LIBS=$ac_check_lib_save_LIBS
28968 fi
28969 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
28970 echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6; }
28971 if test $ac_cv_lib_usb_hid_init = yes; then
28972   USB_LIBS="$USB_LIBS -lusb"
28973 fi
28974
28975         fi
28976
28977         save_CFLAGS="$CFLAGS"
28978         CFLAGS="$CFLAGS $USB_CFLAGS"
28979
28980         { echo "$as_me:$LINENO: checking for usbhid" >&5
28981 echo $ECHO_N "checking for usbhid... $ECHO_C" >&6; }
28982         have_usbhid=no
28983         cat >conftest.$ac_ext <<_ACEOF
28984 /* confdefs.h.  */
28985 _ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h.  */
28989
28990           #include <sys/types.h>
28991           #if defined(HAVE_USB_H)
28992           #include <usb.h>
28993           #endif
28994           #ifdef __DragonFly__
28995           # include <bus/usb/usb.h>
28996           # include <bus/usb/usbhid.h>
28997           #else
28998           # include <dev/usb/usb.h>
28999           # include <dev/usb/usbhid.h>
29000           #endif
29001           #if defined(HAVE_USBHID_H)
29002           #include <usbhid.h>
29003           #elif defined(HAVE_LIBUSB_H)
29004           #include <libusb.h>
29005           #elif defined(HAVE_LIBUSBHID_H)
29006           #include <libusbhid.h>
29007           #endif
29008
29009 int
29010 main ()
29011 {
29012
29013           struct report_desc *repdesc;
29014           struct usb_ctl_report *repbuf;
29015           hid_kind_t hidkind;
29016
29017   ;
29018   return 0;
29019 }
29020 _ACEOF
29021 rm -f conftest.$ac_objext
29022 if { (ac_try="$ac_compile"
29023 case "(($ac_try" in
29024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025   *) ac_try_echo=$ac_try;;
29026 esac
29027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028   (eval "$ac_compile") 2>conftest.er1
29029   ac_status=$?
29030   grep -v '^ *+' conftest.er1 >conftest.err
29031   rm -f conftest.er1
29032   cat conftest.err >&5
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); } && {
29035          test -z "$ac_c_werror_flag" ||
29036          test ! -s conftest.err
29037        } && test -s conftest.$ac_objext; then
29038
29039         have_usbhid=yes
29040
29041 else
29042   echo "$as_me: failed program was:" >&5
29043 sed 's/^/| /' conftest.$ac_ext >&5
29044
29045
29046 fi
29047
29048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29049         { echo "$as_me:$LINENO: result: $have_usbhid" >&5
29050 echo "${ECHO_T}$have_usbhid" >&6; }
29051
29052         if test x$have_usbhid = xyes; then
29053             { echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
29054 echo $ECHO_N "checking for ucr_data member of usb_ctl_report... $ECHO_C" >&6; }
29055             have_usbhid_ucr_data=no
29056             cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h.  */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h.  */
29062
29063               #include <sys/types.h>
29064               #if defined(HAVE_USB_H)
29065               #include <usb.h>
29066               #endif
29067               #ifdef __DragonFly__
29068               # include <bus/usb/usb.h>
29069               # include <bus/usb/usbhid.h>
29070               #else
29071               # include <dev/usb/usb.h>
29072               # include <dev/usb/usbhid.h>
29073               #endif
29074               #if defined(HAVE_USBHID_H)
29075               #include <usbhid.h>
29076               #elif defined(HAVE_LIBUSB_H)
29077               #include <libusb.h>
29078               #elif defined(HAVE_LIBUSBHID_H)
29079               #include <libusbhid.h>
29080               #endif
29081
29082 int
29083 main ()
29084 {
29085
29086               struct usb_ctl_report buf;
29087               if (buf.ucr_data) { }
29088
29089   ;
29090   return 0;
29091 }
29092 _ACEOF
29093 rm -f conftest.$ac_objext
29094 if { (ac_try="$ac_compile"
29095 case "(($ac_try" in
29096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097   *) ac_try_echo=$ac_try;;
29098 esac
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100   (eval "$ac_compile") 2>conftest.er1
29101   ac_status=$?
29102   grep -v '^ *+' conftest.er1 >conftest.err
29103   rm -f conftest.er1
29104   cat conftest.err >&5
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); } && {
29107          test -z "$ac_c_werror_flag" ||
29108          test ! -s conftest.err
29109        } && test -s conftest.$ac_objext; then
29110
29111             have_usbhid_ucr_data=yes
29112
29113 else
29114   echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117
29118 fi
29119
29120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29121             if test x$have_usbhid_ucr_data = xyes; then
29122                 USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
29123             fi
29124             { echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
29125 echo "${ECHO_T}$have_usbhid_ucr_data" >&6; }
29126
29127             { echo "$as_me:$LINENO: checking for new usbhid API" >&5
29128 echo $ECHO_N "checking for new usbhid API... $ECHO_C" >&6; }
29129             have_usbhid_new=no
29130             cat >conftest.$ac_ext <<_ACEOF
29131 /* confdefs.h.  */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h.  */
29136
29137               #include <sys/types.h>
29138               #if defined(HAVE_USB_H)
29139               #include <usb.h>
29140               #endif
29141               #ifdef __DragonFly__
29142               #include <bus/usb/usb.h>
29143               #include <bus/usb/usbhid.h>
29144               #else
29145               #include <dev/usb/usb.h>
29146               #include <dev/usb/usbhid.h>
29147               #endif
29148               #if defined(HAVE_USBHID_H)
29149               #include <usbhid.h>
29150               #elif defined(HAVE_LIBUSB_H)
29151               #include <libusb.h>
29152               #elif defined(HAVE_LIBUSBHID_H)
29153               #include <libusbhid.h>
29154               #endif
29155
29156 int
29157 main ()
29158 {
29159
29160               report_desc_t d;
29161               hid_start_parse(d, 1, 1);
29162
29163   ;
29164   return 0;
29165 }
29166 _ACEOF
29167 rm -f conftest.$ac_objext
29168 if { (ac_try="$ac_compile"
29169 case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_compile") 2>conftest.er1
29175   ac_status=$?
29176   grep -v '^ *+' conftest.er1 >conftest.err
29177   rm -f conftest.er1
29178   cat conftest.err >&5
29179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180   (exit $ac_status); } && {
29181          test -z "$ac_c_werror_flag" ||
29182          test ! -s conftest.err
29183        } && test -s conftest.$ac_objext; then
29184
29185             have_usbhid_new=yes
29186
29187 else
29188   echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29190
29191
29192 fi
29193
29194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29195             if test x$have_usbhid_new = xyes; then
29196                 USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
29197             fi
29198             { echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
29199 echo "${ECHO_T}$have_usbhid_new" >&6; }
29200
29201             { echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
29202 echo $ECHO_N "checking for struct joystick in machine/joystick.h... $ECHO_C" >&6; }
29203             have_machine_joystick=no
29204             cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211               #include <machine/joystick.h>
29212
29213 int
29214 main ()
29215 {
29216
29217               struct joystick t;
29218
29219   ;
29220   return 0;
29221 }
29222 _ACEOF
29223 rm -f conftest.$ac_objext
29224 if { (ac_try="$ac_compile"
29225 case "(($ac_try" in
29226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227   *) ac_try_echo=$ac_try;;
29228 esac
29229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230   (eval "$ac_compile") 2>conftest.er1
29231   ac_status=$?
29232   grep -v '^ *+' conftest.er1 >conftest.err
29233   rm -f conftest.er1
29234   cat conftest.err >&5
29235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236   (exit $ac_status); } && {
29237          test -z "$ac_c_werror_flag" ||
29238          test ! -s conftest.err
29239        } && test -s conftest.$ac_objext; then
29240
29241             have_machine_joystick=yes
29242
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247
29248 fi
29249
29250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29251             if test x$have_machine_joystick = xyes; then
29252                 cat >>confdefs.h <<\_ACEOF
29253 #define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
29254 _ACEOF
29255
29256             fi
29257             { echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
29258 echo "${ECHO_T}$have_machine_joystick" >&6; }
29259
29260             cat >>confdefs.h <<\_ACEOF
29261 #define SDL_JOYSTICK_USBHID 1
29262 _ACEOF
29263
29264             SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
29265             EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
29266             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
29267             have_joystick=yes
29268         fi
29269         CFLAGS="$save_CFLAGS"
29270     fi
29271 }
29272
29273 CheckClockGettime()
29274 {
29275     # Check whether --enable-clock_gettime was given.
29276 if test "${enable_clock_gettime+set}" = set; then
29277   enableval=$enable_clock_gettime;
29278 else
29279   enable_clock_gettime=no
29280 fi
29281
29282     if test x$enable_clock_gettime = xyes; then
29283         { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
29284 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
29285 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
29286   echo $ECHO_N "(cached) $ECHO_C" >&6
29287 else
29288   ac_check_lib_save_LIBS=$LIBS
29289 LIBS="-lrt  $LIBS"
29290 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296
29297 /* Override any GCC internal prototype to avoid an error.
29298    Use char because int might match the return type of a GCC
29299    builtin and then its argument prototype would still apply.  */
29300 #ifdef __cplusplus
29301 extern "C"
29302 #endif
29303 char clock_gettime ();
29304 int
29305 main ()
29306 {
29307 return clock_gettime ();
29308   ;
29309   return 0;
29310 }
29311 _ACEOF
29312 rm -f conftest.$ac_objext conftest$ac_exeext
29313 if { (ac_try="$ac_link"
29314 case "(($ac_try" in
29315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316   *) ac_try_echo=$ac_try;;
29317 esac
29318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29319   (eval "$ac_link") 2>conftest.er1
29320   ac_status=$?
29321   grep -v '^ *+' conftest.er1 >conftest.err
29322   rm -f conftest.er1
29323   cat conftest.err >&5
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); } && {
29326          test -z "$ac_c_werror_flag" ||
29327          test ! -s conftest.err
29328        } && test -s conftest$ac_exeext &&
29329        $as_test_x conftest$ac_exeext; then
29330   ac_cv_lib_rt_clock_gettime=yes
29331 else
29332   echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29334
29335         ac_cv_lib_rt_clock_gettime=no
29336 fi
29337
29338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29339       conftest$ac_exeext conftest.$ac_ext
29340 LIBS=$ac_check_lib_save_LIBS
29341 fi
29342 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
29343 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
29344 if test $ac_cv_lib_rt_clock_gettime = yes; then
29345   have_clock_gettime=yes
29346 fi
29347
29348         if test x$have_clock_gettime = xyes; then
29349             cat >>confdefs.h <<\_ACEOF
29350 #define HAVE_CLOCK_GETTIME 1
29351 _ACEOF
29352
29353             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
29354         fi
29355     fi
29356 }
29357
29358 CheckLinuxVersion()
29359 {
29360     if test "${ac_cv_header_linux_version_h+set}" = set; then
29361   { echo "$as_me:$LINENO: checking for linux/version.h" >&5
29362 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29363 if test "${ac_cv_header_linux_version_h+set}" = set; then
29364   echo $ECHO_N "(cached) $ECHO_C" >&6
29365 fi
29366 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29367 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29368 else
29369   # Is the header compilable?
29370 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
29371 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
29372 cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h.  */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h.  */
29378 $ac_includes_default
29379 #include <linux/version.h>
29380 _ACEOF
29381 rm -f conftest.$ac_objext
29382 if { (ac_try="$ac_compile"
29383 case "(($ac_try" in
29384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385   *) ac_try_echo=$ac_try;;
29386 esac
29387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29388   (eval "$ac_compile") 2>conftest.er1
29389   ac_status=$?
29390   grep -v '^ *+' conftest.er1 >conftest.err
29391   rm -f conftest.er1
29392   cat conftest.err >&5
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); } && {
29395          test -z "$ac_c_werror_flag" ||
29396          test ! -s conftest.err
29397        } && test -s conftest.$ac_objext; then
29398   ac_header_compiler=yes
29399 else
29400   echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403         ac_header_compiler=no
29404 fi
29405
29406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29408 echo "${ECHO_T}$ac_header_compiler" >&6; }
29409
29410 # Is the header present?
29411 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
29412 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
29413 cat >conftest.$ac_ext <<_ACEOF
29414 /* confdefs.h.  */
29415 _ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h.  */
29419 #include <linux/version.h>
29420 _ACEOF
29421 if { (ac_try="$ac_cpp conftest.$ac_ext"
29422 case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29428   ac_status=$?
29429   grep -v '^ *+' conftest.er1 >conftest.err
29430   rm -f conftest.er1
29431   cat conftest.err >&5
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } >/dev/null && {
29434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29435          test ! -s conftest.err
29436        }; then
29437   ac_header_preproc=yes
29438 else
29439   echo "$as_me: failed program was:" >&5
29440 sed 's/^/| /' conftest.$ac_ext >&5
29441
29442   ac_header_preproc=no
29443 fi
29444
29445 rm -f conftest.err conftest.$ac_ext
29446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29447 echo "${ECHO_T}$ac_header_preproc" >&6; }
29448
29449 # So?  What about this header?
29450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29451   yes:no: )
29452     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29453 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29454     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
29455 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
29456     ac_header_preproc=yes
29457     ;;
29458   no:yes:* )
29459     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
29460 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
29461     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
29462 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
29463     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
29464 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
29465     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
29466 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29467     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
29468 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
29469     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
29470 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
29471
29472     ;;
29473 esac
29474 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
29475 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29476 if test "${ac_cv_header_linux_version_h+set}" = set; then
29477   echo $ECHO_N "(cached) $ECHO_C" >&6
29478 else
29479   ac_cv_header_linux_version_h=$ac_header_preproc
29480 fi
29481 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29482 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29483
29484 fi
29485 if test $ac_cv_header_linux_version_h = yes; then
29486   have_linux_version_h=yes
29487 fi
29488
29489
29490     if test x$have_linux_version_h = xyes; then
29491         EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
29492     fi
29493 }
29494
29495 CheckRPATH()
29496 {
29497     # Check whether --enable-rpath was given.
29498 if test "${enable_rpath+set}" = set; then
29499   enableval=$enable_rpath;
29500 else
29501   enable_rpath=yes
29502 fi
29503
29504 }
29505
29506 case "$host" in
29507     arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
29508         ARCH=linux
29509         CheckDummyVideo
29510         CheckIPod
29511         # Set up files for the timer library
29512         if test x$enable_timers = xyes; then
29513             cat >>confdefs.h <<\_ACEOF
29514 #define SDL_TIMER_UNIX 1
29515 _ACEOF
29516
29517             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29518             have_timers=yes
29519         fi
29520         ;;
29521     *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
29522         case "$host" in
29523             *-*-linux*)         ARCH=linux ;;
29524             *-*-uclinux*)       ARCH=linux ;;
29525             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
29526             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
29527             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
29528             *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
29529             *-*-bsdi*)          ARCH=bsdi ;;
29530             *-*-freebsd*)       ARCH=freebsd ;;
29531             *-*-dragonfly*)     ARCH=freebsd ;;
29532             *-*-netbsd*)        ARCH=netbsd ;;
29533             *-*-openbsd*)       ARCH=openbsd ;;
29534             *-*-sysv5*)         ARCH=sysv5 ;;
29535             *-*-solaris*)       ARCH=solaris ;;
29536             *-*-hpux*)          ARCH=hpux ;;
29537             *-*-irix*)          ARCH=irix ;;
29538             *-*-aix*)           ARCH=aix ;;
29539             *-*-osf*)           ARCH=osf ;;
29540         esac
29541         CheckVisibilityHidden
29542         CheckDummyVideo
29543         CheckDiskAudio
29544         CheckDummyAudio
29545         CheckDLOPEN
29546         CheckNASM
29547         CheckAltivec
29548         CheckOSS
29549         CheckDMEDIA
29550         CheckMME
29551         CheckALSA
29552         CheckARTSC
29553         CheckESD
29554         CheckPulseAudio
29555         CheckNAS
29556         CheckX11
29557         CheckNANOX
29558         CheckFBCON
29559         CheckDirectFB
29560         CheckPS2GS
29561         CheckPS3
29562         CheckGGI
29563         CheckSVGA
29564         CheckVGL
29565         CheckWscons
29566         CheckAAlib
29567         CheckCaca
29568         CheckQtopia
29569         CheckPicoGUI
29570         CheckOpenGLX11
29571         CheckInputEvents
29572         CheckTslib
29573         CheckUSBHID
29574         CheckPTHREAD
29575         CheckClockGettime
29576         CheckLinuxVersion
29577         CheckRPATH
29578         # Set up files for the audio library
29579         if test x$enable_audio = xyes; then
29580           case $ARCH in
29581             sysv5|solaris|hpux)
29582                 cat >>confdefs.h <<\_ACEOF
29583 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
29584 _ACEOF
29585
29586                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
29587                 have_audio=yes
29588             ;;
29589             netbsd|openbsd)
29590                 cat >>confdefs.h <<\_ACEOF
29591 #define SDL_AUDIO_DRIVER_BSD 1
29592 _ACEOF
29593
29594                 SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
29595                 have_audio=yes
29596             ;;
29597             aix)
29598                 cat >>confdefs.h <<\_ACEOF
29599 #define SDL_AUDIO_DRIVER_PAUD 1
29600 _ACEOF
29601
29602                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
29603                 have_audio=yes
29604             ;;
29605           esac
29606         fi
29607         # Set up files for the joystick library
29608         if test x$enable_joystick = xyes; then
29609           case $ARCH in
29610             linux)
29611                 cat >>confdefs.h <<\_ACEOF
29612 #define SDL_JOYSTICK_LINUX 1
29613 _ACEOF
29614
29615                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
29616                 have_joystick=yes
29617             ;;
29618           esac
29619         fi
29620         # Set up files for the cdrom library
29621         if test x$enable_cdrom = xyes; then
29622           case $ARCH in
29623             linux|solaris)
29624                 cat >>confdefs.h <<\_ACEOF
29625 #define SDL_CDROM_LINUX 1
29626 _ACEOF
29627
29628                 SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
29629                 have_cdrom=yes
29630             ;;
29631             *freebsd*)
29632                 cat >>confdefs.h <<\_ACEOF
29633 #define SDL_CDROM_FREEBSD 1
29634 _ACEOF
29635
29636                 SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
29637                 have_cdrom=yes
29638             ;;
29639             *openbsd*|*netbsd*)
29640                 cat >>confdefs.h <<\_ACEOF
29641 #define SDL_CDROM_OPENBSD 1
29642 _ACEOF
29643
29644                 SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
29645                 have_cdrom=yes
29646             ;;
29647             bsdi)
29648                 cat >>confdefs.h <<\_ACEOF
29649 #define SDL_CDROM_BSDI 1
29650 _ACEOF
29651
29652                 SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
29653                 have_cdrom=yes
29654             ;;
29655             aix)
29656                 cat >>confdefs.h <<\_ACEOF
29657 #define SDL_CDROM_AIX 1
29658 _ACEOF
29659
29660                 SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
29661                 have_cdrom=yes
29662             ;;
29663             osf)
29664                 cat >>confdefs.h <<\_ACEOF
29665 #define SDL_CDROM_OSF 1
29666 _ACEOF
29667
29668                 SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
29669                 have_cdrom=yes
29670             ;;
29671           esac
29672         fi
29673         # Set up files for the thread library
29674         if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
29675             cat >>confdefs.h <<\_ACEOF
29676 #define SDL_THREAD_SPROC 1
29677 _ACEOF
29678
29679             SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
29680             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29681             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29682             have_threads=yes
29683         fi
29684         # Set up files for the timer library
29685         if test x$enable_timers = xyes; then
29686             cat >>confdefs.h <<\_ACEOF
29687 #define SDL_TIMER_UNIX 1
29688 _ACEOF
29689
29690             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29691             have_timers=yes
29692         fi
29693         ;;
29694     *-*-qnx*)
29695         ARCH=qnx
29696         CheckDummyVideo
29697         CheckDiskAudio
29698         CheckDummyAudio
29699         # CheckNASM
29700         CheckDLOPEN
29701         CheckNAS
29702         CheckPHOTON
29703         CheckX11
29704         CheckOpenGLX11
29705         CheckPTHREAD
29706         # Set up files for the audio library
29707         if test x$enable_audio = xyes; then
29708             cat >>confdefs.h <<\_ACEOF
29709 #define SDL_AUDIO_DRIVER_QNXNTO 1
29710 _ACEOF
29711
29712             SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
29713             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
29714             have_audio=yes
29715         fi
29716         # Set up files for the cdrom library
29717         if test x$enable_cdrom = xyes; then
29718             cat >>confdefs.h <<\_ACEOF
29719 #define SDL_CDROM_QNX 1
29720 _ACEOF
29721
29722             SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
29723             have_cdrom=yes
29724         fi
29725         # Set up files for the timer library
29726         if test x$enable_timers = xyes; then
29727             cat >>confdefs.h <<\_ACEOF
29728 #define SDL_TIMER_UNIX 1
29729 _ACEOF
29730
29731             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29732             have_timers=yes
29733         fi
29734         ;;
29735     *-*-cygwin* | *-*-mingw32*)
29736         ARCH=win32
29737         if test "$build" != "$host"; then # cross-compiling
29738             # Default cross-compile location
29739             ac_default_prefix=/usr/local/cross-tools/i386-mingw32
29740         else
29741             # Look for the location of the tools and install there
29742             if test "$BUILD_PREFIX" != ""; then
29743                 ac_default_prefix=$BUILD_PREFIX
29744             fi
29745         fi
29746         CheckDummyVideo
29747         CheckDiskAudio
29748         CheckDummyAudio
29749         CheckWIN32
29750         CheckWIN32GL
29751         CheckDIRECTX
29752         CheckNASM
29753         # Set up files for the audio library
29754         if test x$enable_audio = xyes; then
29755             cat >>confdefs.h <<\_ACEOF
29756 #define SDL_AUDIO_DRIVER_WAVEOUT 1
29757 _ACEOF
29758
29759             SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29760             if test x$have_directx = xyes; then
29761                 cat >>confdefs.h <<\_ACEOF
29762 #define SDL_AUDIO_DRIVER_DSOUND 1
29763 _ACEOF
29764
29765                 SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
29766             fi
29767             have_audio=yes
29768         fi
29769         # Set up files for the joystick library
29770         if test x$enable_joystick = xyes; then
29771             cat >>confdefs.h <<\_ACEOF
29772 #define SDL_JOYSTICK_WINMM 1
29773 _ACEOF
29774
29775             SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
29776             have_joystick=yes
29777         fi
29778         # Set up files for the cdrom library
29779         if test x$enable_cdrom = xyes; then
29780             cat >>confdefs.h <<\_ACEOF
29781 #define SDL_CDROM_WIN32 1
29782 _ACEOF
29783
29784             SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
29785             have_cdrom=yes
29786         fi
29787         # Set up files for the thread library
29788         if test x$enable_threads = xyes; then
29789             cat >>confdefs.h <<\_ACEOF
29790 #define SDL_THREAD_WIN32 1
29791 _ACEOF
29792
29793             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29794             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29795             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29796             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29797             have_threads=yes
29798         fi
29799         # Set up files for the timer library
29800         if test x$enable_timers = xyes; then
29801             cat >>confdefs.h <<\_ACEOF
29802 #define SDL_TIMER_WIN32 1
29803 _ACEOF
29804
29805             SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
29806             have_timers=yes
29807         fi
29808         # Set up files for the shared object loading library
29809         if test x$enable_loadso = xyes; then
29810             cat >>confdefs.h <<\_ACEOF
29811 #define SDL_LOADSO_WIN32 1
29812 _ACEOF
29813
29814             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29815             have_loadso=yes
29816         fi
29817         # Set up the system libraries we need
29818         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
29819         if test x$have_directx = xyes; then
29820             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
29821         fi
29822         # The Win32 platform requires special setup
29823         SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
29824         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29825         SDLMAIN_LDFLAGS="-static"
29826         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
29827         SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
29828         ;;
29829     *-wince*)
29830         ARCH=win32
29831         CheckDummyVideo
29832         CheckDiskAudio
29833         CheckDummyAudio
29834         CheckWIN32
29835         CheckNASM
29836         SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
29837         EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
29838         if test x$enable_audio = xyes; then
29839             cat >>confdefs.h <<\_ACEOF
29840 #define SDL_AUDIO_DRIVER_WAVEOUT 1
29841 _ACEOF
29842
29843             SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29844             have_audio=yes
29845         fi
29846         # Set up files for the thread library
29847         if test x$enable_threads = xyes; then
29848             cat >>confdefs.h <<\_ACEOF
29849 #define SDL_THREAD_WIN32 1
29850 _ACEOF
29851
29852             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29853             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29854             SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29855             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29856             have_threads=yes
29857         fi
29858         # Set up files for the timer library
29859         if test x$enable_timers = xyes; then
29860             cat >>confdefs.h <<\_ACEOF
29861 #define SDL_TIMER_WINCE 1
29862 _ACEOF
29863
29864             SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
29865             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
29866             have_timers=yes
29867         fi
29868         # Set up files for the shared object loading library
29869         if test x$enable_loadso = xyes; then
29870             cat >>confdefs.h <<\_ACEOF
29871 #define SDL_LOADSO_WIN32 1
29872 _ACEOF
29873
29874             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29875             have_loadso=yes
29876         fi
29877         # Set up the system libraries we need
29878         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
29879         # The Win32 platform requires special setup
29880         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29881         SDLMAIN_LDFLAGS="-static"
29882         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
29883         SDL_LIBS="-lSDLmain $SDL_LIBS"
29884         ;;
29885     *-*-beos* | *-*-haiku*)
29886         ARCH=beos
29887         ac_default_prefix=/boot/develop/tools/gnupro
29888         CheckDummyVideo
29889         CheckDiskAudio
29890         CheckDummyAudio
29891         CheckNASM
29892         CheckBWINDOW
29893         CheckBeGL
29894         # Set up files for the audio library
29895         if test x$enable_audio = xyes; then
29896             cat >>confdefs.h <<\_ACEOF
29897 #define SDL_AUDIO_DRIVER_BAUDIO 1
29898 _ACEOF
29899
29900             SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
29901             have_audio=yes
29902         fi
29903         # Set up files for the joystick library
29904         if test x$enable_joystick = xyes; then
29905             cat >>confdefs.h <<\_ACEOF
29906 #define SDL_JOYSTICK_BEOS 1
29907 _ACEOF
29908
29909             SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
29910             have_joystick=yes
29911         fi
29912         # Set up files for the cdrom library
29913         if test x$enable_cdrom = xyes; then
29914             cat >>confdefs.h <<\_ACEOF
29915 #define SDL_CDROM_BEOS 1
29916 _ACEOF
29917
29918             SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
29919             have_cdrom=yes
29920         fi
29921         # Set up files for the thread library
29922         if test x$enable_threads = xyes; then
29923             cat >>confdefs.h <<\_ACEOF
29924 #define SDL_THREAD_BEOS 1
29925 _ACEOF
29926
29927             SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
29928             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29929             SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29930             have_threads=yes
29931         fi
29932         # Set up files for the timer library
29933         if test x$enable_timers = xyes; then
29934             cat >>confdefs.h <<\_ACEOF
29935 #define SDL_TIMER_BEOS 1
29936 _ACEOF
29937
29938             SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
29939             have_timers=yes
29940         fi
29941         # Set up files for the shared object loading library
29942         if test x$enable_loadso = xyes; then
29943             case "$host" in
29944                 *-*-beos*)
29945                     cat >>confdefs.h <<\_ACEOF
29946 #define SDL_LOADSO_BEOS 1
29947 _ACEOF
29948
29949                     SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
29950                 ;;
29951                 *-*-haiku*)
29952                     cat >>confdefs.h <<\_ACEOF
29953 #define SDL_LOADSO_DLOPEN 1
29954 _ACEOF
29955
29956                     SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
29957                 ;;
29958             esac
29959             have_loadso=yes
29960         fi
29961         # The BeOS platform requires special setup.
29962         SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
29963         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
29964         ;;
29965     *-*-darwin* )
29966         # This could be either full "Mac OS X", or plain "Darwin" which is
29967         # just the OS X kernel sans upper layers like Carbon and Cocoa.
29968         # Next line is broken, and a few files below require Mac OS X (full)
29969         ARCH=macosx
29970
29971         # Mac OS X builds with both the Carbon and OSX APIs at the moment
29972         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
29973         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
29974
29975         # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
29976         # is -lm which is not needed under Mac OS X. But for some reasons it
29977         # also tends to contain spurious -L switches, which we don't want to
29978         # use here or in sdl-config. Hence we reset it.
29979         EXTRA_LDFLAGS=""
29980
29981         CheckVisibilityHidden
29982         CheckDummyVideo
29983         CheckDiskAudio
29984         CheckDummyAudio
29985         CheckDLOPEN
29986         CheckNASM
29987
29988         # Set up files for the shared object loading library
29989         # (this needs to be done before the dynamic X11 check)
29990         if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
29991             cat >>confdefs.h <<\_ACEOF
29992 #define SDL_LOADSO_DLCOMPAT 1
29993 _ACEOF
29994
29995             SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
29996             have_loadso=yes
29997         fi
29998
29999         CheckCOCOA
30000         CheckCARBON
30001         CheckX11
30002         CheckMacGL
30003         CheckOpenGLX11
30004         CheckPTHREAD
30005         CheckAltivec
30006
30007         # Need this or things might misbuild on a G3.
30008         EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
30009
30010         # Set up files for the audio library
30011         if test x$enable_audio = xyes; then
30012             cat >>confdefs.h <<\_ACEOF
30013 #define SDL_AUDIO_DRIVER_COREAUDIO 1
30014 _ACEOF
30015
30016             SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
30017             have_audio=yes
30018         fi
30019         # Set up files for the joystick library
30020         if test x$enable_joystick = xyes; then
30021             cat >>confdefs.h <<\_ACEOF
30022 #define SDL_JOYSTICK_IOKIT 1
30023 _ACEOF
30024
30025             SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
30026             have_joystick=yes
30027             need_iokit_framework=yes
30028         fi
30029         # Set up files for the cdrom library
30030         if test x$enable_cdrom = xyes; then
30031             cat >>confdefs.h <<\_ACEOF
30032 #define SDL_CDROM_MACOSX 1
30033 _ACEOF
30034
30035             SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
30036             have_cdrom=yes
30037         fi
30038         # Set up files for the timer library
30039         if test x$enable_timers = xyes; then
30040             cat >>confdefs.h <<\_ACEOF
30041 #define SDL_TIMER_UNIX 1
30042 _ACEOF
30043
30044             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30045             have_timers=yes
30046         fi
30047         # The Mac OS X platform requires special setup.
30048         SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
30049         SDLMAIN_LDFLAGS="-static"
30050         EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
30051         SDL_LIBS="-lSDLmain $SDL_LIBS"
30052         if test x$enable_video_cocoa = xyes; then
30053             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
30054             need_iokit_framework=yes
30055         fi
30056         if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
30057             # The Cocoa backend still needs Carbon
30058             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices"
30059             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
30060         fi
30061         # If either the audio or CD driver is used, add the AudioUnit framework
30062         if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
30063             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
30064         fi
30065         # Some subsystems reference IOKit...
30066         if test x$need_iokit_framework = xyes; then
30067             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
30068         fi
30069         ;;
30070     *-*-mint*)
30071         ARCH=mint
30072         CheckDummyVideo
30073         CheckDiskAudio
30074         CheckDummyAudio
30075         CheckAtariBiosEvent
30076         CheckAtariXbiosVideo
30077         CheckAtariGemVideo
30078         CheckAtariAudio
30079         CheckAtariLdg
30080         CheckAtariOSMesa
30081         CheckPTH
30082         # Set up files for the audio library
30083         if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30084             if test x$enable_audio = xyes; then
30085                 cat >>confdefs.h <<\_ACEOF
30086 #define SDL_AUDIO_DRIVER_SUNAUDIO 1
30087 _ACEOF
30088
30089                 SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
30090                 have_audio=yes
30091             fi
30092         fi
30093         # Set up files for the joystick library
30094         if test x$enable_joystick = xyes; then
30095             cat >>confdefs.h <<\_ACEOF
30096 #define SDL_JOYSTICK_MINT 1
30097 _ACEOF
30098
30099             SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
30100             have_joystick=yes
30101         fi
30102         # Set up files for the cdrom library
30103         if test x$enable_cdrom = xyes; then
30104             cat >>confdefs.h <<\_ACEOF
30105 #define SDL_CDROM_MINT 1
30106 _ACEOF
30107
30108             SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
30109             have_cdrom=yes
30110         fi
30111         # Set up files for the timer library
30112         if test x$enable_timers = xyes; then
30113             if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30114                 cat >>confdefs.h <<\_ACEOF
30115 #define SDL_TIMER_UNIX 1
30116 _ACEOF
30117
30118                 SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30119             else
30120                 cat >>confdefs.h <<\_ACEOF
30121 #define SDL_TIMER_MINT 1
30122 _ACEOF
30123
30124                 SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
30125                 SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
30126             fi
30127             have_timers=yes
30128         fi
30129         ;;
30130     *-riscos)
30131         ARCH=riscos
30132         CheckOSS
30133         CheckPTHREAD
30134         # Set up files for the video library
30135         if test x$enable_video = xyes; then
30136             cat >>confdefs.h <<\_ACEOF
30137 #define SDL_VIDEO_DRIVER_RISCOS 1
30138 _ACEOF
30139
30140             SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
30141             SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
30142             have_video=yes
30143         fi
30144         # Set up files for the joystick library
30145         if test x$enable_joystick = xyes; then
30146             cat >>confdefs.h <<\_ACEOF
30147 #define SDL_JOYSTICK_RISCOS 1
30148 _ACEOF
30149
30150             SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
30151             have_joystick=yes
30152         fi
30153         # Set up files for the timer library
30154         if test x$enable_timers = xyes; then
30155             cat >>confdefs.h <<\_ACEOF
30156 #define SDL_TIMER_RISCOS 1
30157 _ACEOF
30158
30159             SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
30160             have_timers=yes
30161         fi
30162         # The RISC OS platform requires special setup.
30163         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
30164         ;;
30165     *)
30166         { { echo "$as_me:$LINENO: error:
30167 *** Unsupported host:  Please add to configure.in
30168         " >&5
30169 echo "$as_me: error:
30170 *** Unsupported host:  Please add to configure.in
30171         " >&2;}
30172    { (exit 1); exit 1; }; }
30173         ;;
30174 esac
30175
30176 CheckWarnAll
30177
30178 # Verify that we have all the platform specific files we need
30179
30180 if test x$enable_joystick = xyes; then
30181   if test x$have_joystick != xyes; then
30182     # Wants joystick subsystem, but doesn't have a platform-specific backend...
30183     cat >>confdefs.h <<\_ACEOF
30184 #define SDL_JOYSTICK_DUMMY 1
30185 _ACEOF
30186
30187     SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
30188   fi
30189 fi
30190 if test x$have_cdrom != xyes; then
30191     if test x$enable_cdrom = xyes; then
30192         cat >>confdefs.h <<\_ACEOF
30193 #define SDL_CDROM_DISABLED 1
30194 _ACEOF
30195
30196     fi
30197     SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
30198 fi
30199 if test x$have_threads != xyes; then
30200     if test x$enable_threads = xyes; then
30201         cat >>confdefs.h <<\_ACEOF
30202 #define SDL_THREADS_DISABLED 1
30203 _ACEOF
30204
30205     fi
30206     SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
30207 fi
30208 if test x$have_timers != xyes; then
30209     if test x$enable_timers = xyes; then
30210         cat >>confdefs.h <<\_ACEOF
30211 #define SDL_TIMERS_DISABLED 1
30212 _ACEOF
30213
30214     fi
30215     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
30216 fi
30217 if test x$have_loadso != xyes; then
30218     if test x$enable_loadso = xyes; then
30219         cat >>confdefs.h <<\_ACEOF
30220 #define SDL_LOADSO_DISABLED 1
30221 _ACEOF
30222
30223     fi
30224     SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
30225 fi
30226 if test x$SDLMAIN_SOURCES = x; then
30227     SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
30228     SDLMAIN_LDFLAGS="-static"
30229 fi
30230
30231 OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
30232 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30233 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30234 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30235 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
30236 OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
30237
30238 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30239 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30240 SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30241
30242 # Set runtime shared library paths as needed
30243
30244 if test "x$enable_rpath" = "xyes"; then
30245   if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
30246     SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
30247   fi
30248   if test $ARCH = solaris; then
30249     SDL_RLD_FLAGS="-R\${libdir}"
30250   fi
30251 else
30252   SDL_RLD_FLAGS=""
30253 fi
30254
30255 case "$ARCH" in
30256   macosx)
30257     if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
30258       SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
30259     fi
30260     if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
30261       SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
30262     fi
30263     # Evil hack to allow static linking on Mac OS X
30264     SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
30265     ;;
30266   *)
30267     SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
30268     ;;
30269 esac
30270
30271
30272
30273
30274
30275 if test x$enable_shared = xyes; then
30276     ENABLE_SHARED_TRUE=
30277     ENABLE_SHARED_FALSE="#"
30278 else
30279     ENABLE_SHARED_TRUE="#"
30280     ENABLE_SHARED_FALSE=
30281 fi
30282 if test x$enable_static = xyes; then
30283     ENABLE_STATIC_TRUE=
30284     ENABLE_STATIC_FALSE="#"
30285 else
30286     ENABLE_STATIC_TRUE="#"
30287     ENABLE_STATIC_FALSE=
30288 fi
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307 ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
30308
30309 ac_config_commands="$ac_config_commands default"
30310
30311 cat >confcache <<\_ACEOF
30312 # This file is a shell script that caches the results of configure
30313 # tests run on this system so they can be shared between configure
30314 # scripts and configure runs, see configure's option --config-cache.
30315 # It is not useful on other systems.  If it contains results you don't
30316 # want to keep, you may remove or edit it.
30317 #
30318 # config.status only pays attention to the cache file if you give it
30319 # the --recheck option to rerun configure.
30320 #
30321 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30322 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30323 # following values.
30324
30325 _ACEOF
30326
30327 # The following way of writing the cache mishandles newlines in values,
30328 # but we know of no workaround that is simple, portable, and efficient.
30329 # So, we kill variables containing newlines.
30330 # Ultrix sh set writes to stderr and can't be redirected directly,
30331 # and sets the high bit in the cache file unless we assign to the vars.
30332 (
30333   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30334     eval ac_val=\$$ac_var
30335     case $ac_val in #(
30336     *${as_nl}*)
30337       case $ac_var in #(
30338       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30339 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30340       esac
30341       case $ac_var in #(
30342       _ | IFS | as_nl) ;; #(
30343       *) $as_unset $ac_var ;;
30344       esac ;;
30345     esac
30346   done
30347
30348   (set) 2>&1 |
30349     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30350     *${as_nl}ac_space=\ *)
30351       # `set' does not quote correctly, so add quotes (double-quote
30352       # substitution turns \\\\ into \\, and sed turns \\ into \).
30353       sed -n \
30354         "s/'/'\\\\''/g;
30355           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30356       ;; #(
30357     *)
30358       # `set' quotes correctly as required by POSIX, so do not add quotes.
30359       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30360       ;;
30361     esac |
30362     sort
30363 ) |
30364   sed '
30365      /^ac_cv_env_/b end
30366      t clear
30367      :clear
30368      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30369      t end
30370      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30371      :end' >>confcache
30372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30373   if test -w "$cache_file"; then
30374     test "x$cache_file" != "x/dev/null" &&
30375       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30376 echo "$as_me: updating cache $cache_file" >&6;}
30377     cat confcache >$cache_file
30378   else
30379     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30380 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30381   fi
30382 fi
30383 rm -f confcache
30384
30385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30386 # Let make expand exec_prefix.
30387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30388
30389 DEFS=-DHAVE_CONFIG_H
30390
30391 ac_libobjs=
30392 ac_ltlibobjs=
30393 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30394   # 1. Remove the extension, and $U if already installed.
30395   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30396   ac_i=`echo "$ac_i" | sed "$ac_script"`
30397   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30398   #    will be set to the directory where LIBOBJS objects are built.
30399   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30400   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30401 done
30402 LIBOBJS=$ac_libobjs
30403
30404 LTLIBOBJS=$ac_ltlibobjs
30405
30406
30407
30408 : ${CONFIG_STATUS=./config.status}
30409 ac_clean_files_save=$ac_clean_files
30410 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30411 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30412 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30413 cat >$CONFIG_STATUS <<_ACEOF
30414 #! $SHELL
30415 # Generated by $as_me.
30416 # Run this file to recreate the current configuration.
30417 # Compiler output produced by configure, useful for debugging
30418 # configure, is in config.log if it exists.
30419
30420 debug=false
30421 ac_cs_recheck=false
30422 ac_cs_silent=false
30423 SHELL=\${CONFIG_SHELL-$SHELL}
30424 _ACEOF
30425
30426 cat >>$CONFIG_STATUS <<\_ACEOF
30427 ## --------------------- ##
30428 ## M4sh Initialization.  ##
30429 ## --------------------- ##
30430
30431 # Be more Bourne compatible
30432 DUALCASE=1; export DUALCASE # for MKS sh
30433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30434   emulate sh
30435   NULLCMD=:
30436   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30437   # is contrary to our usage.  Disable this feature.
30438   alias -g '${1+"$@"}'='"$@"'
30439   setopt NO_GLOB_SUBST
30440 else
30441   case `(set -o) 2>/dev/null` in
30442   *posix*) set -o posix ;;
30443 esac
30444
30445 fi
30446
30447
30448
30449
30450 # PATH needs CR
30451 # Avoid depending upon Character Ranges.
30452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30455 as_cr_digits='0123456789'
30456 as_cr_alnum=$as_cr_Letters$as_cr_digits
30457
30458 # The user is always right.
30459 if test "${PATH_SEPARATOR+set}" != set; then
30460   echo "#! /bin/sh" >conf$$.sh
30461   echo  "exit 0"   >>conf$$.sh
30462   chmod +x conf$$.sh
30463   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30464     PATH_SEPARATOR=';'
30465   else
30466     PATH_SEPARATOR=:
30467   fi
30468   rm -f conf$$.sh
30469 fi
30470
30471 # Support unset when possible.
30472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30473   as_unset=unset
30474 else
30475   as_unset=false
30476 fi
30477
30478
30479 # IFS
30480 # We need space, tab and new line, in precisely that order.  Quoting is
30481 # there to prevent editors from complaining about space-tab.
30482 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30483 # splitting by setting IFS to empty value.)
30484 as_nl='
30485 '
30486 IFS=" ""        $as_nl"
30487
30488 # Find who we are.  Look in the path if we contain no directory separator.
30489 case $0 in
30490   *[\\/]* ) as_myself=$0 ;;
30491   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30492 for as_dir in $PATH
30493 do
30494   IFS=$as_save_IFS
30495   test -z "$as_dir" && as_dir=.
30496   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30497 done
30498 IFS=$as_save_IFS
30499
30500      ;;
30501 esac
30502 # We did not find ourselves, most probably we were run as `sh COMMAND'
30503 # in which case we are not to be found in the path.
30504 if test "x$as_myself" = x; then
30505   as_myself=$0
30506 fi
30507 if test ! -f "$as_myself"; then
30508   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30509   { (exit 1); exit 1; }
30510 fi
30511
30512 # Work around bugs in pre-3.0 UWIN ksh.
30513 for as_var in ENV MAIL MAILPATH
30514 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30515 done
30516 PS1='$ '
30517 PS2='> '
30518 PS4='+ '
30519
30520 # NLS nuisances.
30521 for as_var in \
30522   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30523   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30524   LC_TELEPHONE LC_TIME
30525 do
30526   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30527     eval $as_var=C; export $as_var
30528   else
30529     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30530   fi
30531 done
30532
30533 # Required to use basename.
30534 if expr a : '\(a\)' >/dev/null 2>&1 &&
30535    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30536   as_expr=expr
30537 else
30538   as_expr=false
30539 fi
30540
30541 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30542   as_basename=basename
30543 else
30544   as_basename=false
30545 fi
30546
30547
30548 # Name of the executable.
30549 as_me=`$as_basename -- "$0" ||
30550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30551          X"$0" : 'X\(//\)$' \| \
30552          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30553 echo X/"$0" |
30554     sed '/^.*\/\([^/][^/]*\)\/*$/{
30555             s//\1/
30556             q
30557           }
30558           /^X\/\(\/\/\)$/{
30559             s//\1/
30560             q
30561           }
30562           /^X\/\(\/\).*/{
30563             s//\1/
30564             q
30565           }
30566           s/.*/./; q'`
30567
30568 # CDPATH.
30569 $as_unset CDPATH
30570
30571
30572
30573   as_lineno_1=$LINENO
30574   as_lineno_2=$LINENO
30575   test "x$as_lineno_1" != "x$as_lineno_2" &&
30576   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30577
30578   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30579   # uniformly replaced by the line number.  The first 'sed' inserts a
30580   # line-number line after each line using $LINENO; the second 'sed'
30581   # does the real work.  The second script uses 'N' to pair each
30582   # line-number line with the line containing $LINENO, and appends
30583   # trailing '-' during substitution so that $LINENO is not a special
30584   # case at line end.
30585   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30586   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30587   # E. McMahon (1931-1989) for sed's syntax.  :-)
30588   sed -n '
30589     p
30590     /[$]LINENO/=
30591   ' <$as_myself |
30592     sed '
30593       s/[$]LINENO.*/&-/
30594       t lineno
30595       b
30596       :lineno
30597       N
30598       :loop
30599       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30600       t loop
30601       s/-\n.*//
30602     ' >$as_me.lineno &&
30603   chmod +x "$as_me.lineno" ||
30604     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30605    { (exit 1); exit 1; }; }
30606
30607   # Don't try to exec as it changes $[0], causing all sort of problems
30608   # (the dirname of $[0] is not the place where we might find the
30609   # original and so on.  Autoconf is especially sensitive to this).
30610   . "./$as_me.lineno"
30611   # Exit status is that of the last command.
30612   exit
30613 }
30614
30615
30616 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30617   as_dirname=dirname
30618 else
30619   as_dirname=false
30620 fi
30621
30622 ECHO_C= ECHO_N= ECHO_T=
30623 case `echo -n x` in
30624 -n*)
30625   case `echo 'x\c'` in
30626   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30627   *)   ECHO_C='\c';;
30628   esac;;
30629 *)
30630   ECHO_N='-n';;
30631 esac
30632
30633 if expr a : '\(a\)' >/dev/null 2>&1 &&
30634    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30635   as_expr=expr
30636 else
30637   as_expr=false
30638 fi
30639
30640 rm -f conf$$ conf$$.exe conf$$.file
30641 if test -d conf$$.dir; then
30642   rm -f conf$$.dir/conf$$.file
30643 else
30644   rm -f conf$$.dir
30645   mkdir conf$$.dir
30646 fi
30647 echo >conf$$.file
30648 if ln -s conf$$.file conf$$ 2>/dev/null; then
30649   as_ln_s='ln -s'
30650   # ... but there are two gotchas:
30651   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30652   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30653   # In both cases, we have to default to `cp -p'.
30654   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30655     as_ln_s='cp -p'
30656 elif ln conf$$.file conf$$ 2>/dev/null; then
30657   as_ln_s=ln
30658 else
30659   as_ln_s='cp -p'
30660 fi
30661 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30662 rmdir conf$$.dir 2>/dev/null
30663
30664 if mkdir -p . 2>/dev/null; then
30665   as_mkdir_p=:
30666 else
30667   test -d ./-p && rmdir ./-p
30668   as_mkdir_p=false
30669 fi
30670
30671 if test -x / >/dev/null 2>&1; then
30672   as_test_x='test -x'
30673 else
30674   if ls -dL / >/dev/null 2>&1; then
30675     as_ls_L_option=L
30676   else
30677     as_ls_L_option=
30678   fi
30679   as_test_x='
30680     eval sh -c '\''
30681       if test -d "$1"; then
30682         test -d "$1/.";
30683       else
30684         case $1 in
30685         -*)set "./$1";;
30686         esac;
30687         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30688         ???[sx]*):;;*)false;;esac;fi
30689     '\'' sh
30690   '
30691 fi
30692 as_executable_p=$as_test_x
30693
30694 # Sed expression to map a string onto a valid CPP name.
30695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30696
30697 # Sed expression to map a string onto a valid variable name.
30698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30699
30700
30701 exec 6>&1
30702
30703 # Save the log message, to keep $[0] and so on meaningful, and to
30704 # report actual input values of CONFIG_FILES etc. instead of their
30705 # values after options handling.
30706 ac_log="
30707 This file was extended by $as_me, which was
30708 generated by GNU Autoconf 2.61.  Invocation command line was
30709
30710   CONFIG_FILES    = $CONFIG_FILES
30711   CONFIG_HEADERS  = $CONFIG_HEADERS
30712   CONFIG_LINKS    = $CONFIG_LINKS
30713   CONFIG_COMMANDS = $CONFIG_COMMANDS
30714   $ $0 $@
30715
30716 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30717 "
30718
30719 _ACEOF
30720
30721 cat >>$CONFIG_STATUS <<_ACEOF
30722 # Files that config.status was made for.
30723 config_files="$ac_config_files"
30724 config_headers="$ac_config_headers"
30725 config_commands="$ac_config_commands"
30726
30727 _ACEOF
30728
30729 cat >>$CONFIG_STATUS <<\_ACEOF
30730 ac_cs_usage="\
30731 \`$as_me' instantiates files from templates according to the
30732 current configuration.
30733
30734 Usage: $0 [OPTIONS] [FILE]...
30735
30736   -h, --help       print this help, then exit
30737   -V, --version    print version number and configuration settings, then exit
30738   -q, --quiet      do not print progress messages
30739   -d, --debug      don't remove temporary files
30740       --recheck    update $as_me by reconfiguring in the same conditions
30741   --file=FILE[:TEMPLATE]
30742                    instantiate the configuration file FILE
30743   --header=FILE[:TEMPLATE]
30744                    instantiate the configuration header FILE
30745
30746 Configuration files:
30747 $config_files
30748
30749 Configuration headers:
30750 $config_headers
30751
30752 Configuration commands:
30753 $config_commands
30754
30755 Report bugs to <bug-autoconf@gnu.org>."
30756
30757 _ACEOF
30758 cat >>$CONFIG_STATUS <<_ACEOF
30759 ac_cs_version="\\
30760 config.status
30761 configured by $0, generated by GNU Autoconf 2.61,
30762   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30763
30764 Copyright (C) 2006 Free Software Foundation, Inc.
30765 This config.status script is free software; the Free Software Foundation
30766 gives unlimited permission to copy, distribute and modify it."
30767
30768 ac_pwd='$ac_pwd'
30769 srcdir='$srcdir'
30770 INSTALL='$INSTALL'
30771 _ACEOF
30772
30773 cat >>$CONFIG_STATUS <<\_ACEOF
30774 # If no file are specified by the user, then we need to provide default
30775 # value.  By we need to know if files were specified by the user.
30776 ac_need_defaults=:
30777 while test $# != 0
30778 do
30779   case $1 in
30780   --*=*)
30781     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30782     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30783     ac_shift=:
30784     ;;
30785   *)
30786     ac_option=$1
30787     ac_optarg=$2
30788     ac_shift=shift
30789     ;;
30790   esac
30791
30792   case $ac_option in
30793   # Handling of the options.
30794   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30795     ac_cs_recheck=: ;;
30796   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30797     echo "$ac_cs_version"; exit ;;
30798   --debug | --debu | --deb | --de | --d | -d )
30799     debug=: ;;
30800   --file | --fil | --fi | --f )
30801     $ac_shift
30802     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30803     ac_need_defaults=false;;
30804   --header | --heade | --head | --hea )
30805     $ac_shift
30806     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30807     ac_need_defaults=false;;
30808   --he | --h)
30809     # Conflict between --help and --header
30810     { echo "$as_me: error: ambiguous option: $1
30811 Try \`$0 --help' for more information." >&2
30812    { (exit 1); exit 1; }; };;
30813   --help | --hel | -h )
30814     echo "$ac_cs_usage"; exit ;;
30815   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30816   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30817     ac_cs_silent=: ;;
30818
30819   # This is an error.
30820   -*) { echo "$as_me: error: unrecognized option: $1
30821 Try \`$0 --help' for more information." >&2
30822    { (exit 1); exit 1; }; } ;;
30823
30824   *) ac_config_targets="$ac_config_targets $1"
30825      ac_need_defaults=false ;;
30826
30827   esac
30828   shift
30829 done
30830
30831 ac_configure_extra_args=
30832
30833 if $ac_cs_silent; then
30834   exec 6>/dev/null
30835   ac_configure_extra_args="$ac_configure_extra_args --silent"
30836 fi
30837
30838 _ACEOF
30839 cat >>$CONFIG_STATUS <<_ACEOF
30840 if \$ac_cs_recheck; then
30841   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30842   CONFIG_SHELL=$SHELL
30843   export CONFIG_SHELL
30844   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30845 fi
30846
30847 _ACEOF
30848 cat >>$CONFIG_STATUS <<\_ACEOF
30849 exec 5>>config.log
30850 {
30851   echo
30852   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30853 ## Running $as_me. ##
30854 _ASBOX
30855   echo "$ac_log"
30856 } >&5
30857
30858 _ACEOF
30859 cat >>$CONFIG_STATUS <<_ACEOF
30860 #
30861 # INIT-COMMANDS
30862 #
30863
30864
30865 # The HP-UX ksh and POSIX shell print the target directory to stdout
30866 # if CDPATH is set.
30867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30868
30869 sed_quote_subst='$sed_quote_subst'
30870 double_quote_subst='$double_quote_subst'
30871 delay_variable_subst='$delay_variable_subst'
30872 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30873 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30874 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
30875 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30876 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30877 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30878 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30879 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30880 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30881 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30882 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30883 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30884 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30885 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30886 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30887 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30888 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30889 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30890 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30891 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30892 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30893 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30894 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30895 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30896 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30897 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30898 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30899 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30900 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30901 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30902 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30903 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30904 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30905 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30906 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30907 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30908 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30909 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30910 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30911 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30912 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30913 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30914 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30915 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30916 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30918 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30919 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30920 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30921 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30922 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30923 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30924 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30925 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30926 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30927 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30928 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30929 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30930 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30931 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30932 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30933 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30934 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30935 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30936 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30937 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30938 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30939 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30940 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30941 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30942 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30943 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30944 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30945 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30946 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30947 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30948 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30949 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30950 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30951 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30952 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30953 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30954 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30955 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30956 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30957 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30958 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30959 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30960 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30961 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30962 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30963 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30964 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30965 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30966 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30967 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30968 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30969 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30970 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30971 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30972 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30973 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30974 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30975 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30976 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30977 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30978 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30979 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30980 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30981 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30982 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30983 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30984 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30985 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30986 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30987 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30988 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30989 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30990 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30991 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30992 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30993 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30994 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30995 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30996 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30997 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30998 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30999 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31000 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31001 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31002 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31003 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31004 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31005 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31006 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31007 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31008 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31009 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31010 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31011 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31012 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31013 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31014 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31015 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31016 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31017 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31018 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31019 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31020 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31021 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31022 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31023 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31024 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31025 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31026 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31027 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31028 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31029 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31030 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31031 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31032 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31033 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31034 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31035 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31036 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31037 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31038 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31039 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31040 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31041 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31042 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31043 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31044 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31045
31046 LTCC='$LTCC'
31047 LTCFLAGS='$LTCFLAGS'
31048 compiler='$compiler_DEFAULT'
31049
31050 # Quote evaled strings.
31051 for var in SED \
31052 GREP \
31053 EGREP \
31054 FGREP \
31055 LD \
31056 NM \
31057 LN_S \
31058 lt_SP2NL \
31059 lt_NL2SP \
31060 reload_flag \
31061 deplibs_check_method \
31062 file_magic_cmd \
31063 AR \
31064 AR_FLAGS \
31065 STRIP \
31066 RANLIB \
31067 CC \
31068 CFLAGS \
31069 compiler \
31070 lt_cv_sys_global_symbol_pipe \
31071 lt_cv_sys_global_symbol_to_cdecl \
31072 lt_cv_sys_global_symbol_to_c_name_address \
31073 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31074 SHELL \
31075 ECHO \
31076 lt_prog_compiler_no_builtin_flag \
31077 lt_prog_compiler_wl \
31078 lt_prog_compiler_pic \
31079 lt_prog_compiler_static \
31080 lt_cv_prog_compiler_c_o \
31081 need_locks \
31082 DSYMUTIL \
31083 NMEDIT \
31084 LIPO \
31085 OTOOL \
31086 OTOOL64 \
31087 shrext_cmds \
31088 export_dynamic_flag_spec \
31089 whole_archive_flag_spec \
31090 compiler_needs_object \
31091 with_gnu_ld \
31092 allow_undefined_flag \
31093 no_undefined_flag \
31094 hardcode_libdir_flag_spec \
31095 hardcode_libdir_flag_spec_ld \
31096 hardcode_libdir_separator \
31097 fix_srcfile_path \
31098 exclude_expsyms \
31099 include_expsyms \
31100 file_list_spec \
31101 variables_saved_for_relink \
31102 libname_spec \
31103 library_names_spec \
31104 soname_spec \
31105 finish_eval \
31106 old_striplib \
31107 striplib \
31108 compiler_lib_search_dirs \
31109 predep_objects \
31110 postdep_objects \
31111 predeps \
31112 postdeps \
31113 compiler_lib_search_path \
31114 LD_CXX \
31115 compiler_CXX \
31116 lt_prog_compiler_no_builtin_flag_CXX \
31117 lt_prog_compiler_wl_CXX \
31118 lt_prog_compiler_pic_CXX \
31119 lt_prog_compiler_static_CXX \
31120 lt_cv_prog_compiler_c_o_CXX \
31121 export_dynamic_flag_spec_CXX \
31122 whole_archive_flag_spec_CXX \
31123 compiler_needs_object_CXX \
31124 with_gnu_ld_CXX \
31125 allow_undefined_flag_CXX \
31126 no_undefined_flag_CXX \
31127 hardcode_libdir_flag_spec_CXX \
31128 hardcode_libdir_flag_spec_ld_CXX \
31129 hardcode_libdir_separator_CXX \
31130 fix_srcfile_path_CXX \
31131 exclude_expsyms_CXX \
31132 include_expsyms_CXX \
31133 file_list_spec_CXX \
31134 compiler_lib_search_dirs_CXX \
31135 predep_objects_CXX \
31136 postdep_objects_CXX \
31137 predeps_CXX \
31138 postdeps_CXX \
31139 compiler_lib_search_path_CXX; do
31140     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31141     *[\\\\\\\`\\"\\\$]*)
31142       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31143       ;;
31144     *)
31145       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31146       ;;
31147     esac
31148 done
31149
31150 # Double-quote double-evaled strings.
31151 for var in reload_cmds \
31152 old_postinstall_cmds \
31153 old_postuninstall_cmds \
31154 old_archive_cmds \
31155 extract_expsyms_cmds \
31156 old_archive_from_new_cmds \
31157 old_archive_from_expsyms_cmds \
31158 archive_cmds \
31159 archive_expsym_cmds \
31160 module_cmds \
31161 module_expsym_cmds \
31162 export_symbols_cmds \
31163 prelink_cmds \
31164 postinstall_cmds \
31165 postuninstall_cmds \
31166 finish_cmds \
31167 sys_lib_search_path_spec \
31168 sys_lib_dlsearch_path_spec \
31169 old_archive_cmds_CXX \
31170 old_archive_from_new_cmds_CXX \
31171 old_archive_from_expsyms_cmds_CXX \
31172 archive_cmds_CXX \
31173 archive_expsym_cmds_CXX \
31174 module_cmds_CXX \
31175 module_expsym_cmds_CXX \
31176 export_symbols_cmds_CXX \
31177 prelink_cmds_CXX; do
31178     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31179     *[\\\\\\\`\\"\\\$]*)
31180       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31181       ;;
31182     *)
31183       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31184       ;;
31185     esac
31186 done
31187
31188 # Fix-up fallback echo if it was mangled by the above quoting rules.
31189 case \$lt_ECHO in
31190 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31191   ;;
31192 esac
31193
31194 ac_aux_dir='$ac_aux_dir'
31195 xsi_shell='$xsi_shell'
31196 lt_shell_append='$lt_shell_append'
31197
31198 # See if we are running on zsh, and set the options which allow our
31199 # commands through without removal of \ escapes INIT.
31200 if test -n "\${ZSH_VERSION+set}" ; then
31201    setopt NO_GLOB_SUBST
31202 fi
31203
31204
31205     PACKAGE='$PACKAGE'
31206     VERSION='$VERSION'
31207     TIMESTAMP='$TIMESTAMP'
31208     RM='$RM'
31209     ofile='$ofile'
31210
31211
31212
31213
31214
31215
31216 _ACEOF
31217
31218 cat >>$CONFIG_STATUS <<\_ACEOF
31219
31220 # Handling of arguments.
31221 for ac_config_target in $ac_config_targets
31222 do
31223   case $ac_config_target in
31224     "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
31225     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31226     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31227     "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
31228     "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;;
31229     "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;;
31230     "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;;
31231     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31232
31233   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31235    { (exit 1); exit 1; }; };;
31236   esac
31237 done
31238
31239
31240 # If the user did not use the arguments to specify the items to instantiate,
31241 # then the envvar interface is used.  Set only those that are not.
31242 # We use the long form for the default assignment because of an extremely
31243 # bizarre bug on SunOS 4.1.3.
31244 if $ac_need_defaults; then
31245   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31246   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31247   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31248 fi
31249
31250 # Have a temporary directory for convenience.  Make it in the build tree
31251 # simply because there is no reason against having it here, and in addition,
31252 # creating and moving files from /tmp can sometimes cause problems.
31253 # Hook for its removal unless debugging.
31254 # Note that there is a small window in which the directory will not be cleaned:
31255 # after its creation but before its name has been assigned to `$tmp'.
31256 $debug ||
31257 {
31258   tmp=
31259   trap 'exit_status=$?
31260   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31261 ' 0
31262   trap '{ (exit 1); exit 1; }' 1 2 13 15
31263 }
31264 # Create a (secure) tmp directory for tmp files.
31265
31266 {
31267   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31268   test -n "$tmp" && test -d "$tmp"
31269 }  ||
31270 {
31271   tmp=./conf$$-$RANDOM
31272   (umask 077 && mkdir "$tmp")
31273 } ||
31274 {
31275    echo "$me: cannot create a temporary directory in ." >&2
31276    { (exit 1); exit 1; }
31277 }
31278
31279 #
31280 # Set up the sed scripts for CONFIG_FILES section.
31281 #
31282
31283 # No need to generate the scripts if there are no CONFIG_FILES.
31284 # This happens for instance when ./config.status config.h
31285 if test -n "$CONFIG_FILES"; then
31286
31287 _ACEOF
31288
31289
31290
31291 ac_delim='%!_!# '
31292 for ac_last_try in false false false false false :; do
31293   cat >conf$$subs.sed <<_ACEOF
31294 SHELL!$SHELL$ac_delim
31295 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31296 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31297 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31298 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31299 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31300 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31301 exec_prefix!$exec_prefix$ac_delim
31302 prefix!$prefix$ac_delim
31303 program_transform_name!$program_transform_name$ac_delim
31304 bindir!$bindir$ac_delim
31305 sbindir!$sbindir$ac_delim
31306 libexecdir!$libexecdir$ac_delim
31307 datarootdir!$datarootdir$ac_delim
31308 datadir!$datadir$ac_delim
31309 sysconfdir!$sysconfdir$ac_delim
31310 sharedstatedir!$sharedstatedir$ac_delim
31311 localstatedir!$localstatedir$ac_delim
31312 includedir!$includedir$ac_delim
31313 oldincludedir!$oldincludedir$ac_delim
31314 docdir!$docdir$ac_delim
31315 infodir!$infodir$ac_delim
31316 htmldir!$htmldir$ac_delim
31317 dvidir!$dvidir$ac_delim
31318 pdfdir!$pdfdir$ac_delim
31319 psdir!$psdir$ac_delim
31320 libdir!$libdir$ac_delim
31321 localedir!$localedir$ac_delim
31322 mandir!$mandir$ac_delim
31323 DEFS!$DEFS$ac_delim
31324 ECHO_C!$ECHO_C$ac_delim
31325 ECHO_N!$ECHO_N$ac_delim
31326 ECHO_T!$ECHO_T$ac_delim
31327 LIBS!$LIBS$ac_delim
31328 build_alias!$build_alias$ac_delim
31329 host_alias!$host_alias$ac_delim
31330 target_alias!$target_alias$ac_delim
31331 SDL_MAJOR_VERSION!$SDL_MAJOR_VERSION$ac_delim
31332 SDL_MINOR_VERSION!$SDL_MINOR_VERSION$ac_delim
31333 SDL_MICRO_VERSION!$SDL_MICRO_VERSION$ac_delim
31334 SDL_INTERFACE_AGE!$SDL_INTERFACE_AGE$ac_delim
31335 SDL_BINARY_AGE!$SDL_BINARY_AGE$ac_delim
31336 SDL_VERSION!$SDL_VERSION$ac_delim
31337 AS!$AS$ac_delim
31338 DLLTOOL!$DLLTOOL$ac_delim
31339 OBJDUMP!$OBJDUMP$ac_delim
31340 LIBTOOL!$LIBTOOL$ac_delim
31341 build!$build$ac_delim
31342 build_cpu!$build_cpu$ac_delim
31343 build_vendor!$build_vendor$ac_delim
31344 build_os!$build_os$ac_delim
31345 host!$host$ac_delim
31346 host_cpu!$host_cpu$ac_delim
31347 host_vendor!$host_vendor$ac_delim
31348 host_os!$host_os$ac_delim
31349 CC!$CC$ac_delim
31350 CFLAGS!$CFLAGS$ac_delim
31351 LDFLAGS!$LDFLAGS$ac_delim
31352 CPPFLAGS!$CPPFLAGS$ac_delim
31353 ac_ct_CC!$ac_ct_CC$ac_delim
31354 EXEEXT!$EXEEXT$ac_delim
31355 OBJEXT!$OBJEXT$ac_delim
31356 SED!$SED$ac_delim
31357 GREP!$GREP$ac_delim
31358 EGREP!$EGREP$ac_delim
31359 FGREP!$FGREP$ac_delim
31360 LD!$LD$ac_delim
31361 DUMPBIN!$DUMPBIN$ac_delim
31362 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
31363 NM!$NM$ac_delim
31364 LN_S!$LN_S$ac_delim
31365 AR!$AR$ac_delim
31366 STRIP!$STRIP$ac_delim
31367 RANLIB!$RANLIB$ac_delim
31368 lt_ECHO!$lt_ECHO$ac_delim
31369 DSYMUTIL!$DSYMUTIL$ac_delim
31370 NMEDIT!$NMEDIT$ac_delim
31371 LIPO!$LIPO$ac_delim
31372 OTOOL!$OTOOL$ac_delim
31373 OTOOL64!$OTOOL64$ac_delim
31374 CPP!$CPP$ac_delim
31375 LT_RELEASE!$LT_RELEASE$ac_delim
31376 LT_CURRENT!$LT_CURRENT$ac_delim
31377 LT_REVISION!$LT_REVISION$ac_delim
31378 LT_AGE!$LT_AGE$ac_delim
31379 CXX!$CXX$ac_delim
31380 CXXFLAGS!$CXXFLAGS$ac_delim
31381 ac_ct_CXX!$ac_ct_CXX$ac_delim
31382 CXXCPP!$CXXCPP$ac_delim
31383 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31384 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31385 INSTALL_DATA!$INSTALL_DATA$ac_delim
31386 SET_MAKE!$SET_MAKE$ac_delim
31387 WINDRES!$WINDRES$ac_delim
31388 ALLOCA!$ALLOCA$ac_delim
31389 LIBOBJS!$LIBOBJS$ac_delim
31390 POW_LIB!$POW_LIB$ac_delim
31391 _ACEOF
31392
31393   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31394     break
31395   elif $ac_last_try; then
31396     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31397 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31398    { (exit 1); exit 1; }; }
31399   else
31400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31401   fi
31402 done
31403
31404 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31405 if test -n "$ac_eof"; then
31406   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31407   ac_eof=`expr $ac_eof + 1`
31408 fi
31409
31410 cat >>$CONFIG_STATUS <<_ACEOF
31411 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31413 _ACEOF
31414 sed '
31415 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31416 s/^/s,@/; s/!/@,|#_!!_#|/
31417 :n
31418 t n
31419 s/'"$ac_delim"'$/,g/; t
31420 s/$/\\/; p
31421 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31422 ' >>$CONFIG_STATUS <conf$$subs.sed
31423 rm -f conf$$subs.sed
31424 cat >>$CONFIG_STATUS <<_ACEOF
31425 CEOF$ac_eof
31426 _ACEOF
31427
31428
31429 ac_delim='%!_!# '
31430 for ac_last_try in false false false false false :; do
31431   cat >conf$$subs.sed <<_ACEOF
31432 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
31433 ALSA_LIBS!$ALSA_LIBS$ac_delim
31434 ESD_CONFIG!$ESD_CONFIG$ac_delim
31435 ESD_CFLAGS!$ESD_CFLAGS$ac_delim
31436 ESD_LIBS!$ESD_LIBS$ac_delim
31437 PKG_CONFIG!$PKG_CONFIG$ac_delim
31438 ARTSCONFIG!$ARTSCONFIG$ac_delim
31439 NASM!$NASM$ac_delim
31440 NASMFLAGS!$NASMFLAGS$ac_delim
31441 XMKMF!$XMKMF$ac_delim
31442 X_CFLAGS!$X_CFLAGS$ac_delim
31443 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31444 X_LIBS!$X_LIBS$ac_delim
31445 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31446 DIRECTFBCONFIG!$DIRECTFBCONFIG$ac_delim
31447 CACACONFIG!$CACACONFIG$ac_delim
31448 OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
31449 PTH_CONFIG!$PTH_CONFIG$ac_delim
31450 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
31451 SDL_LIBS!$SDL_LIBS$ac_delim
31452 SDL_STATIC_LIBS!$SDL_STATIC_LIBS$ac_delim
31453 SDL_RLD_FLAGS!$SDL_RLD_FLAGS$ac_delim
31454 ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
31455 ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
31456 ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
31457 ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
31458 ac_aux_dir!$ac_aux_dir$ac_delim
31459 INCLUDE!$INCLUDE$ac_delim
31460 SOURCES!$SOURCES$ac_delim
31461 OBJECTS!$OBJECTS$ac_delim
31462 SDLMAIN_SOURCES!$SDLMAIN_SOURCES$ac_delim
31463 SDLMAIN_OBJECTS!$SDLMAIN_OBJECTS$ac_delim
31464 SDLMAIN_LDFLAGS!$SDLMAIN_LDFLAGS$ac_delim
31465 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
31466 EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
31467 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
31468 EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
31469 LTLIBOBJS!$LTLIBOBJS$ac_delim
31470 _ACEOF
31471
31472   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
31473     break
31474   elif $ac_last_try; then
31475     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31476 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31477    { (exit 1); exit 1; }; }
31478   else
31479     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31480   fi
31481 done
31482
31483 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31484 if test -n "$ac_eof"; then
31485   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31486   ac_eof=`expr $ac_eof + 1`
31487 fi
31488
31489 cat >>$CONFIG_STATUS <<_ACEOF
31490 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31492 _ACEOF
31493 sed '
31494 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31495 s/^/s,@/; s/!/@,|#_!!_#|/
31496 :n
31497 t n
31498 s/'"$ac_delim"'$/,g/; t
31499 s/$/\\/; p
31500 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31501 ' >>$CONFIG_STATUS <conf$$subs.sed
31502 rm -f conf$$subs.sed
31503 cat >>$CONFIG_STATUS <<_ACEOF
31504 :end
31505 s/|#_!!_#|//g
31506 CEOF$ac_eof
31507 _ACEOF
31508
31509
31510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31512 # trailing colons and then remove the whole line if VPATH becomes empty
31513 # (actually we leave an empty line to preserve line numbers).
31514 if test "x$srcdir" = x.; then
31515   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31516 s/:*\$(srcdir):*/:/
31517 s/:*\${srcdir}:*/:/
31518 s/:*@srcdir@:*/:/
31519 s/^\([^=]*=[     ]*\):*/\1/
31520 s/:*$//
31521 s/^[^=]*=[       ]*$//
31522 }'
31523 fi
31524
31525 cat >>$CONFIG_STATUS <<\_ACEOF
31526 fi # test -n "$CONFIG_FILES"
31527
31528
31529 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31530 do
31531   case $ac_tag in
31532   :[FHLC]) ac_mode=$ac_tag; continue;;
31533   esac
31534   case $ac_mode$ac_tag in
31535   :[FHL]*:*);;
31536   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31537 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31538    { (exit 1); exit 1; }; };;
31539   :[FH]-) ac_tag=-:-;;
31540   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31541   esac
31542   ac_save_IFS=$IFS
31543   IFS=:
31544   set x $ac_tag
31545   IFS=$ac_save_IFS
31546   shift
31547   ac_file=$1
31548   shift
31549
31550   case $ac_mode in
31551   :L) ac_source=$1;;
31552   :[FH])
31553     ac_file_inputs=
31554     for ac_f
31555     do
31556       case $ac_f in
31557       -) ac_f="$tmp/stdin";;
31558       *) # Look for the file first in the build tree, then in the source tree
31559          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31560          # because $ac_f cannot contain `:'.
31561          test -f "$ac_f" ||
31562            case $ac_f in
31563            [\\/$]*) false;;
31564            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31565            esac ||
31566            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31567 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31568    { (exit 1); exit 1; }; };;
31569       esac
31570       ac_file_inputs="$ac_file_inputs $ac_f"
31571     done
31572
31573     # Let's still pretend it is `configure' which instantiates (i.e., don't
31574     # use $as_me), people would be surprised to read:
31575     #    /* config.h.  Generated by config.status.  */
31576     configure_input="Generated from "`IFS=:
31577           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31578     if test x"$ac_file" != x-; then
31579       configure_input="$ac_file.  $configure_input"
31580       { echo "$as_me:$LINENO: creating $ac_file" >&5
31581 echo "$as_me: creating $ac_file" >&6;}
31582     fi
31583
31584     case $ac_tag in
31585     *:-:* | *:-) cat >"$tmp/stdin";;
31586     esac
31587     ;;
31588   esac
31589
31590   ac_dir=`$as_dirname -- "$ac_file" ||
31591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31592          X"$ac_file" : 'X\(//\)[^/]' \| \
31593          X"$ac_file" : 'X\(//\)$' \| \
31594          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31595 echo X"$ac_file" |
31596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31597             s//\1/
31598             q
31599           }
31600           /^X\(\/\/\)[^/].*/{
31601             s//\1/
31602             q
31603           }
31604           /^X\(\/\/\)$/{
31605             s//\1/
31606             q
31607           }
31608           /^X\(\/\).*/{
31609             s//\1/
31610             q
31611           }
31612           s/.*/./; q'`
31613   { as_dir="$ac_dir"
31614   case $as_dir in #(
31615   -*) as_dir=./$as_dir;;
31616   esac
31617   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31618     as_dirs=
31619     while :; do
31620       case $as_dir in #(
31621       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31622       *) as_qdir=$as_dir;;
31623       esac
31624       as_dirs="'$as_qdir' $as_dirs"
31625       as_dir=`$as_dirname -- "$as_dir" ||
31626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31627          X"$as_dir" : 'X\(//\)[^/]' \| \
31628          X"$as_dir" : 'X\(//\)$' \| \
31629          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31630 echo X"$as_dir" |
31631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31632             s//\1/
31633             q
31634           }
31635           /^X\(\/\/\)[^/].*/{
31636             s//\1/
31637             q
31638           }
31639           /^X\(\/\/\)$/{
31640             s//\1/
31641             q
31642           }
31643           /^X\(\/\).*/{
31644             s//\1/
31645             q
31646           }
31647           s/.*/./; q'`
31648       test -d "$as_dir" && break
31649     done
31650     test -z "$as_dirs" || eval "mkdir $as_dirs"
31651   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31653    { (exit 1); exit 1; }; }; }
31654   ac_builddir=.
31655
31656 case "$ac_dir" in
31657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31658 *)
31659   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31660   # A ".." for each directory in $ac_dir_suffix.
31661   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31662   case $ac_top_builddir_sub in
31663   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31664   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31665   esac ;;
31666 esac
31667 ac_abs_top_builddir=$ac_pwd
31668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31669 # for backward compatibility:
31670 ac_top_builddir=$ac_top_build_prefix
31671
31672 case $srcdir in
31673   .)  # We are building in place.
31674     ac_srcdir=.
31675     ac_top_srcdir=$ac_top_builddir_sub
31676     ac_abs_top_srcdir=$ac_pwd ;;
31677   [\\/]* | ?:[\\/]* )  # Absolute name.
31678     ac_srcdir=$srcdir$ac_dir_suffix;
31679     ac_top_srcdir=$srcdir
31680     ac_abs_top_srcdir=$srcdir ;;
31681   *) # Relative name.
31682     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31683     ac_top_srcdir=$ac_top_build_prefix$srcdir
31684     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31685 esac
31686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31687
31688
31689   case $ac_mode in
31690   :F)
31691   #
31692   # CONFIG_FILE
31693   #
31694
31695   case $INSTALL in
31696   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31697   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31698   esac
31699 _ACEOF
31700
31701 cat >>$CONFIG_STATUS <<\_ACEOF
31702 # If the template does not know about datarootdir, expand it.
31703 # FIXME: This hack should be removed a few years after 2.60.
31704 ac_datarootdir_hack=; ac_datarootdir_seen=
31705
31706 case `sed -n '/datarootdir/ {
31707   p
31708   q
31709 }
31710 /@datadir@/p
31711 /@docdir@/p
31712 /@infodir@/p
31713 /@localedir@/p
31714 /@mandir@/p
31715 ' $ac_file_inputs` in
31716 *datarootdir*) ac_datarootdir_seen=yes;;
31717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31718   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31719 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31720 _ACEOF
31721 cat >>$CONFIG_STATUS <<_ACEOF
31722   ac_datarootdir_hack='
31723   s&@datadir@&$datadir&g
31724   s&@docdir@&$docdir&g
31725   s&@infodir@&$infodir&g
31726   s&@localedir@&$localedir&g
31727   s&@mandir@&$mandir&g
31728     s&\\\${datarootdir}&$datarootdir&g' ;;
31729 esac
31730 _ACEOF
31731
31732 # Neutralize VPATH when `$srcdir' = `.'.
31733 # Shell code in configure.ac might set extrasub.
31734 # FIXME: do we really want to maintain this feature?
31735 cat >>$CONFIG_STATUS <<_ACEOF
31736   sed "$ac_vpsub
31737 $extrasub
31738 _ACEOF
31739 cat >>$CONFIG_STATUS <<\_ACEOF
31740 :t
31741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31742 s&@configure_input@&$configure_input&;t t
31743 s&@top_builddir@&$ac_top_builddir_sub&;t t
31744 s&@srcdir@&$ac_srcdir&;t t
31745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31746 s&@top_srcdir@&$ac_top_srcdir&;t t
31747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31748 s&@builddir@&$ac_builddir&;t t
31749 s&@abs_builddir@&$ac_abs_builddir&;t t
31750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31751 s&@INSTALL@&$ac_INSTALL&;t t
31752 $ac_datarootdir_hack
31753 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31754
31755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31756   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31757   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31758   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31759 which seems to be undefined.  Please make sure it is defined." >&5
31760 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31761 which seems to be undefined.  Please make sure it is defined." >&2;}
31762
31763   rm -f "$tmp/stdin"
31764   case $ac_file in
31765   -) cat "$tmp/out"; rm -f "$tmp/out";;
31766   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31767   esac
31768  ;;
31769   :H)
31770   #
31771   # CONFIG_HEADER
31772   #
31773 _ACEOF
31774
31775 # Transform confdefs.h into a sed script `conftest.defines', that
31776 # substitutes the proper values into config.h.in to produce config.h.
31777 rm -f conftest.defines conftest.tail
31778 # First, append a space to every undef/define line, to ease matching.
31779 echo 's/$/ /' >conftest.defines
31780 # Then, protect against being on the right side of a sed subst, or in
31781 # an unquoted here document, in config.status.  If some macros were
31782 # called several times there might be several #defines for the same
31783 # symbol, which is useless.  But do not sort them, since the last
31784 # AC_DEFINE must be honored.
31785 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31786 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31787 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31788 # PARAMS is the parameter list in the macro definition--in most cases, it's
31789 # just an empty string.
31790 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31791 ac_dB='\\)[      (].*,\\1define\\2'
31792 ac_dC=' '
31793 ac_dD=' ,'
31794
31795 uniq confdefs.h |
31796   sed -n '
31797         t rset
31798         :rset
31799         s/^[     ]*#[    ]*define[       ][      ]*//
31800         t ok
31801         d
31802         :ok
31803         s/[\\&,]/\\&/g
31804         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31805         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31806   ' >>conftest.defines
31807
31808 # Remove the space that was appended to ease matching.
31809 # Then replace #undef with comments.  This is necessary, for
31810 # example, in the case of _POSIX_SOURCE, which is predefined and required
31811 # on some systems where configure will not decide to define it.
31812 # (The regexp can be short, since the line contains either #define or #undef.)
31813 echo 's/ $//
31814 s,^[     #]*u.*,/* & */,' >>conftest.defines
31815
31816 # Break up conftest.defines:
31817 ac_max_sed_lines=50
31818
31819 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31820 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31821 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31822 # et cetera.
31823 ac_in='$ac_file_inputs'
31824 ac_out='"$tmp/out1"'
31825 ac_nxt='"$tmp/out2"'
31826
31827 while :
31828 do
31829   # Write a here document:
31830     cat >>$CONFIG_STATUS <<_ACEOF
31831     # First, check the format of the line:
31832     cat >"\$tmp/defines.sed" <<\\CEOF
31833 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*/b def
31834 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31835 b
31836 :def
31837 _ACEOF
31838   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31839   echo 'CEOF
31840     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31841   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31842   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31843   grep . conftest.tail >/dev/null || break
31844   rm -f conftest.defines
31845   mv conftest.tail conftest.defines
31846 done
31847 rm -f conftest.defines conftest.tail
31848
31849 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31851   if test x"$ac_file" != x-; then
31852     echo "/* $configure_input  */" >"$tmp/config.h"
31853     cat "$ac_result" >>"$tmp/config.h"
31854     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31855       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31856 echo "$as_me: $ac_file is unchanged" >&6;}
31857     else
31858       rm -f $ac_file
31859       mv "$tmp/config.h" $ac_file
31860     fi
31861   else
31862     echo "/* $configure_input  */"
31863     cat "$ac_result"
31864   fi
31865   rm -f "$tmp/out12"
31866  ;;
31867
31868   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31869 echo "$as_me: executing $ac_file commands" >&6;}
31870  ;;
31871   esac
31872
31873
31874   case $ac_file$ac_mode in
31875     "libtool":C)
31876
31877     # See if we are running on zsh, and set the options which allow our
31878     # commands through without removal of \ escapes.
31879     if test -n "${ZSH_VERSION+set}" ; then
31880       setopt NO_GLOB_SUBST
31881     fi
31882
31883     cfgfile="${ofile}T"
31884     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31885     $RM "$cfgfile"
31886
31887     cat <<_LT_EOF >> "$cfgfile"
31888 #! $SHELL
31889
31890 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31891 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31894 #
31895 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31896 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31897 #   Written by Gordon Matzigkeit, 1996
31898 #
31899 #   This file is part of GNU Libtool.
31900 #
31901 # GNU Libtool is free software; you can redistribute it and/or
31902 # modify it under the terms of the GNU General Public License as
31903 # published by the Free Software Foundation; either version 2 of
31904 # the License, or (at your option) any later version.
31905 #
31906 # As a special exception to the GNU General Public License,
31907 # if you distribute this file as part of a program or library that
31908 # is built using GNU Libtool, you may include this file under the
31909 # same distribution terms that you use for the rest of that program.
31910 #
31911 # GNU Libtool is distributed in the hope that it will be useful,
31912 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31914 # GNU General Public License for more details.
31915 #
31916 # You should have received a copy of the GNU General Public License
31917 # along with GNU Libtool; see the file COPYING.  If not, a copy
31918 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31919 # obtained by writing to the Free Software Foundation, Inc.,
31920 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31921
31922
31923 # The names of the tagged configurations supported by this script.
31924 available_tags="CXX "
31925
31926 # ### BEGIN LIBTOOL CONFIG
31927
31928 # Which release of libtool.m4 was used?
31929 macro_version=$macro_version
31930 macro_revision=$macro_revision
31931
31932 # Assembler program.
31933 AS=$AS
31934
31935 # DLL creation program.
31936 DLLTOOL=$DLLTOOL
31937
31938 # Object dumper program.
31939 OBJDUMP=$OBJDUMP
31940
31941 # Whether or not to build shared libraries.
31942 build_libtool_libs=$enable_shared
31943
31944 # Whether or not to build static libraries.
31945 build_old_libs=$enable_static
31946
31947 # What type of objects to build.
31948 pic_mode=$pic_mode
31949
31950 # Whether or not to optimize for fast installation.
31951 fast_install=$enable_fast_install
31952
31953 # The host system.
31954 host_alias=$host_alias
31955 host=$host
31956 host_os=$host_os
31957
31958 # The build system.
31959 build_alias=$build_alias
31960 build=$build
31961 build_os=$build_os
31962
31963 # A sed program that does not truncate output.
31964 SED=$lt_SED
31965
31966 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31967 Xsed="\$SED -e 1s/^X//"
31968
31969 # A grep program that handles long lines.
31970 GREP=$lt_GREP
31971
31972 # An ERE matcher.
31973 EGREP=$lt_EGREP
31974
31975 # A literal string matcher.
31976 FGREP=$lt_FGREP
31977
31978 # A BSD- or MS-compatible name lister.
31979 NM=$lt_NM
31980
31981 # Whether we need soft or hard links.
31982 LN_S=$lt_LN_S
31983
31984 # What is the maximum length of a command?
31985 max_cmd_len=$max_cmd_len
31986
31987 # Object file suffix (normally "o").
31988 objext=$ac_objext
31989
31990 # Executable file suffix (normally "").
31991 exeext=$exeext
31992
31993 # whether the shell understands "unset".
31994 lt_unset=$lt_unset
31995
31996 # turn spaces into newlines.
31997 SP2NL=$lt_lt_SP2NL
31998
31999 # turn newlines into spaces.
32000 NL2SP=$lt_lt_NL2SP
32001
32002 # How to create reloadable object files.
32003 reload_flag=$lt_reload_flag
32004 reload_cmds=$lt_reload_cmds
32005
32006 # Method to check whether dependent libraries are shared objects.
32007 deplibs_check_method=$lt_deplibs_check_method
32008
32009 # Command to use when deplibs_check_method == "file_magic".
32010 file_magic_cmd=$lt_file_magic_cmd
32011
32012 # The archiver.
32013 AR=$lt_AR
32014 AR_FLAGS=$lt_AR_FLAGS
32015
32016 # A symbol stripping program.
32017 STRIP=$lt_STRIP
32018
32019 # Commands used to install an old-style archive.
32020 RANLIB=$lt_RANLIB
32021 old_postinstall_cmds=$lt_old_postinstall_cmds
32022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32023
32024 # A C compiler.
32025 LTCC=$lt_CC
32026
32027 # LTCC compiler flags.
32028 LTCFLAGS=$lt_CFLAGS
32029
32030 # Take the output of nm and produce a listing of raw symbols and C names.
32031 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32032
32033 # Transform the output of nm in a proper C declaration.
32034 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32035
32036 # Transform the output of nm in a C name address pair.
32037 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32038
32039 # Transform the output of nm in a C name address pair when lib prefix is needed.
32040 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32041
32042 # The name of the directory that contains temporary libtool files.
32043 objdir=$objdir
32044
32045 # Shell to use when invoking shell scripts.
32046 SHELL=$lt_SHELL
32047
32048 # An echo program that does not interpret backslashes.
32049 ECHO=$lt_ECHO
32050
32051 # Used to examine libraries when file_magic_cmd begins with "file".
32052 MAGIC_CMD=$MAGIC_CMD
32053
32054 # Must we lock files when doing compilation?
32055 need_locks=$lt_need_locks
32056
32057 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32058 DSYMUTIL=$lt_DSYMUTIL
32059
32060 # Tool to change global to local symbols on Mac OS X.
32061 NMEDIT=$lt_NMEDIT
32062
32063 # Tool to manipulate fat objects and archives on Mac OS X.
32064 LIPO=$lt_LIPO
32065
32066 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32067 OTOOL=$lt_OTOOL
32068
32069 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32070 OTOOL64=$lt_OTOOL64
32071
32072 # Old archive suffix (normally "a").
32073 libext=$libext
32074
32075 # Shared library suffix (normally ".so").
32076 shrext_cmds=$lt_shrext_cmds
32077
32078 # The commands to extract the exported symbol list from a shared archive.
32079 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32080
32081 # Variables whose values should be saved in libtool wrapper scripts and
32082 # restored at link time.
32083 variables_saved_for_relink=$lt_variables_saved_for_relink
32084
32085 # Do we need the "lib" prefix for modules?
32086 need_lib_prefix=$need_lib_prefix
32087
32088 # Do we need a version for libraries?
32089 need_version=$need_version
32090
32091 # Library versioning type.
32092 version_type=$version_type
32093
32094 # Shared library runtime path variable.
32095 runpath_var=$runpath_var
32096
32097 # Shared library path variable.
32098 shlibpath_var=$shlibpath_var
32099
32100 # Is shlibpath searched before the hard-coded library search path?
32101 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32102
32103 # Format of library name prefix.
32104 libname_spec=$lt_libname_spec
32105
32106 # List of archive names.  First name is the real one, the rest are links.
32107 # The last name is the one that the linker finds with -lNAME
32108 library_names_spec=$lt_library_names_spec
32109
32110 # The coded name of the library, if different from the real name.
32111 soname_spec=$lt_soname_spec
32112
32113 # Command to use after installation of a shared archive.
32114 postinstall_cmds=$lt_postinstall_cmds
32115
32116 # Command to use after uninstallation of a shared archive.
32117 postuninstall_cmds=$lt_postuninstall_cmds
32118
32119 # Commands used to finish a libtool library installation in a directory.
32120 finish_cmds=$lt_finish_cmds
32121
32122 # As "finish_cmds", except a single script fragment to be evaled but
32123 # not shown.
32124 finish_eval=$lt_finish_eval
32125
32126 # Whether we should hardcode library paths into libraries.
32127 hardcode_into_libs=$hardcode_into_libs
32128
32129 # Compile-time system search path for libraries.
32130 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32131
32132 # Run-time system search path for libraries.
32133 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32134
32135 # Whether dlopen is supported.
32136 dlopen_support=$enable_dlopen
32137
32138 # Whether dlopen of programs is supported.
32139 dlopen_self=$enable_dlopen_self
32140
32141 # Whether dlopen of statically linked programs is supported.
32142 dlopen_self_static=$enable_dlopen_self_static
32143
32144 # Commands to strip libraries.
32145 old_striplib=$lt_old_striplib
32146 striplib=$lt_striplib
32147
32148
32149 # The linker used to build libraries.
32150 LD=$lt_LD
32151
32152 # Commands used to build an old-style archive.
32153 old_archive_cmds=$lt_old_archive_cmds
32154
32155 # A language specific compiler.
32156 CC=$lt_compiler
32157
32158 # Is the compiler the GNU compiler?
32159 with_gcc=$GCC
32160
32161 # Compiler flag to turn off builtin functions.
32162 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32163
32164 # How to pass a linker flag through the compiler.
32165 wl=$lt_lt_prog_compiler_wl
32166
32167 # Additional compiler flags for building library objects.
32168 pic_flag=$lt_lt_prog_compiler_pic
32169
32170 # Compiler flag to prevent dynamic linking.
32171 link_static_flag=$lt_lt_prog_compiler_static
32172
32173 # Does compiler simultaneously support -c and -o options?
32174 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32175
32176 # Whether or not to add -lc for building shared libraries.
32177 build_libtool_need_lc=$archive_cmds_need_lc
32178
32179 # Whether or not to disallow shared libs when runtime libs are static.
32180 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32181
32182 # Compiler flag to allow reflexive dlopens.
32183 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32184
32185 # Compiler flag to generate shared objects directly from archives.
32186 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32187
32188 # Whether the compiler copes with passing no objects directly.
32189 compiler_needs_object=$lt_compiler_needs_object
32190
32191 # Create an old-style archive from a shared archive.
32192 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32193
32194 # Create a temporary old-style archive to link instead of a shared archive.
32195 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32196
32197 # Commands used to build a shared archive.
32198 archive_cmds=$lt_archive_cmds
32199 archive_expsym_cmds=$lt_archive_expsym_cmds
32200
32201 # Commands used to build a loadable module if different from building
32202 # a shared archive.
32203 module_cmds=$lt_module_cmds
32204 module_expsym_cmds=$lt_module_expsym_cmds
32205
32206 # Whether we are building with GNU ld or not.
32207 with_gnu_ld=$lt_with_gnu_ld
32208
32209 # Flag that allows shared libraries with undefined symbols to be built.
32210 allow_undefined_flag=$lt_allow_undefined_flag
32211
32212 # Flag that enforces no undefined symbols.
32213 no_undefined_flag=$lt_no_undefined_flag
32214
32215 # Flag to hardcode \$libdir into a binary during linking.
32216 # This must work even if \$libdir does not exist
32217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32218
32219 # If ld is used when linking, flag to hardcode \$libdir into a binary
32220 # during linking.  This must work even if \$libdir does not exist.
32221 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32222
32223 # Whether we need a single "-rpath" flag with a separated argument.
32224 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32225
32226 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32227 # DIR into the resulting binary.
32228 hardcode_direct=$hardcode_direct
32229
32230 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32231 # DIR into the resulting binary and the resulting library dependency is
32232 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32233 # library is relocated.
32234 hardcode_direct_absolute=$hardcode_direct_absolute
32235
32236 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32237 # into the resulting binary.
32238 hardcode_minus_L=$hardcode_minus_L
32239
32240 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32241 # into the resulting binary.
32242 hardcode_shlibpath_var=$hardcode_shlibpath_var
32243
32244 # Set to "yes" if building a shared library automatically hardcodes DIR
32245 # into the library and all subsequent libraries and executables linked
32246 # against it.
32247 hardcode_automatic=$hardcode_automatic
32248
32249 # Set to yes if linker adds runtime paths of dependent libraries
32250 # to runtime path list.
32251 inherit_rpath=$inherit_rpath
32252
32253 # Whether libtool must link a program against all its dependency libraries.
32254 link_all_deplibs=$link_all_deplibs
32255
32256 # Fix the shell variable \$srcfile for the compiler.
32257 fix_srcfile_path=$lt_fix_srcfile_path
32258
32259 # Set to "yes" if exported symbols are required.
32260 always_export_symbols=$always_export_symbols
32261
32262 # The commands to list exported symbols.
32263 export_symbols_cmds=$lt_export_symbols_cmds
32264
32265 # Symbols that should not be listed in the preloaded symbols.
32266 exclude_expsyms=$lt_exclude_expsyms
32267
32268 # Symbols that must always be exported.
32269 include_expsyms=$lt_include_expsyms
32270
32271 # Commands necessary for linking programs (against libraries) with templates.
32272 prelink_cmds=$lt_prelink_cmds
32273
32274 # Specify filename containing input files.
32275 file_list_spec=$lt_file_list_spec
32276
32277 # How to hardcode a shared library path into an executable.
32278 hardcode_action=$hardcode_action
32279
32280 # The directories searched by this compiler when creating a shared library.
32281 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32282
32283 # Dependencies to place before and after the objects being linked to
32284 # create a shared library.
32285 predep_objects=$lt_predep_objects
32286 postdep_objects=$lt_postdep_objects
32287 predeps=$lt_predeps
32288 postdeps=$lt_postdeps
32289
32290 # The library search path used internally by the compiler when linking
32291 # a shared library.
32292 compiler_lib_search_path=$lt_compiler_lib_search_path
32293
32294 # ### END LIBTOOL CONFIG
32295
32296 _LT_EOF
32297
32298   case $host_os in
32299   aix3*)
32300     cat <<\_LT_EOF >> "$cfgfile"
32301 # AIX sometimes has problems with the GCC collect2 program.  For some
32302 # reason, if we set the COLLECT_NAMES environment variable, the problems
32303 # vanish in a puff of smoke.
32304 if test "X${COLLECT_NAMES+set}" != Xset; then
32305   COLLECT_NAMES=
32306   export COLLECT_NAMES
32307 fi
32308 _LT_EOF
32309     ;;
32310   esac
32311
32312
32313 ltmain="$ac_aux_dir/ltmain.sh"
32314
32315
32316   # We use sed instead of cat because bash on DJGPP gets confused if
32317   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32318   # text mode, it properly converts lines to CR/LF.  This bash problem
32319   # is reportedly fixed, but why not run on old versions too?
32320   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32321     || (rm -f "$cfgfile"; exit 1)
32322
32323   case $xsi_shell in
32324   yes)
32325     cat << \_LT_EOF >> "$cfgfile"
32326
32327 # func_dirname file append nondir_replacement
32328 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32329 # otherwise set result to NONDIR_REPLACEMENT.
32330 func_dirname ()
32331 {
32332   case ${1} in
32333     */*) func_dirname_result="${1%/*}${2}" ;;
32334     *  ) func_dirname_result="${3}" ;;
32335   esac
32336 }
32337
32338 # func_basename file
32339 func_basename ()
32340 {
32341   func_basename_result="${1##*/}"
32342 }
32343
32344 # func_dirname_and_basename file append nondir_replacement
32345 # perform func_basename and func_dirname in a single function
32346 # call:
32347 #   dirname:  Compute the dirname of FILE.  If nonempty,
32348 #             add APPEND to the result, otherwise set result
32349 #             to NONDIR_REPLACEMENT.
32350 #             value returned in "$func_dirname_result"
32351 #   basename: Compute filename of FILE.
32352 #             value retuned in "$func_basename_result"
32353 # Implementation must be kept synchronized with func_dirname
32354 # and func_basename. For efficiency, we do not delegate to
32355 # those functions but instead duplicate the functionality here.
32356 func_dirname_and_basename ()
32357 {
32358   case ${1} in
32359     */*) func_dirname_result="${1%/*}${2}" ;;
32360     *  ) func_dirname_result="${3}" ;;
32361   esac
32362   func_basename_result="${1##*/}"
32363 }
32364
32365 # func_stripname prefix suffix name
32366 # strip PREFIX and SUFFIX off of NAME.
32367 # PREFIX and SUFFIX must not contain globbing or regex special
32368 # characters, hashes, percent signs, but SUFFIX may contain a leading
32369 # dot (in which case that matches only a dot).
32370 func_stripname ()
32371 {
32372   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32373   # positional parameters, so assign one to ordinary parameter first.
32374   func_stripname_result=${3}
32375   func_stripname_result=${func_stripname_result#"${1}"}
32376   func_stripname_result=${func_stripname_result%"${2}"}
32377 }
32378
32379 # func_opt_split
32380 func_opt_split ()
32381 {
32382   func_opt_split_opt=${1%%=*}
32383   func_opt_split_arg=${1#*=}
32384 }
32385
32386 # func_lo2o object
32387 func_lo2o ()
32388 {
32389   case ${1} in
32390     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32391     *)    func_lo2o_result=${1} ;;
32392   esac
32393 }
32394
32395 # func_xform libobj-or-source
32396 func_xform ()
32397 {
32398   func_xform_result=${1%.*}.lo
32399 }
32400
32401 # func_arith arithmetic-term...
32402 func_arith ()
32403 {
32404   func_arith_result=$(( $* ))
32405 }
32406
32407 # func_len string
32408 # STRING may not start with a hyphen.
32409 func_len ()
32410 {
32411   func_len_result=${#1}
32412 }
32413
32414 _LT_EOF
32415     ;;
32416   *) # Bourne compatible functions.
32417     cat << \_LT_EOF >> "$cfgfile"
32418
32419 # func_dirname file append nondir_replacement
32420 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32421 # otherwise set result to NONDIR_REPLACEMENT.
32422 func_dirname ()
32423 {
32424   # Extract subdirectory from the argument.
32425   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32426   if test "X$func_dirname_result" = "X${1}"; then
32427     func_dirname_result="${3}"
32428   else
32429     func_dirname_result="$func_dirname_result${2}"
32430   fi
32431 }
32432
32433 # func_basename file
32434 func_basename ()
32435 {
32436   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32437 }
32438
32439
32440 # func_stripname prefix suffix name
32441 # strip PREFIX and SUFFIX off of NAME.
32442 # PREFIX and SUFFIX must not contain globbing or regex special
32443 # characters, hashes, percent signs, but SUFFIX may contain a leading
32444 # dot (in which case that matches only a dot).
32445 # func_strip_suffix prefix name
32446 func_stripname ()
32447 {
32448   case ${2} in
32449     .*) func_stripname_result=`$ECHO "X${3}" \
32450            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32451     *)  func_stripname_result=`$ECHO "X${3}" \
32452            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32453   esac
32454 }
32455
32456 # sed scripts:
32457 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32458 my_sed_long_arg='1s/^-[^=]*=//'
32459
32460 # func_opt_split
32461 func_opt_split ()
32462 {
32463   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32464   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32465 }
32466
32467 # func_lo2o object
32468 func_lo2o ()
32469 {
32470   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32471 }
32472
32473 # func_xform libobj-or-source
32474 func_xform ()
32475 {
32476   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32477 }
32478
32479 # func_arith arithmetic-term...
32480 func_arith ()
32481 {
32482   func_arith_result=`expr "$@"`
32483 }
32484
32485 # func_len string
32486 # STRING may not start with a hyphen.
32487 func_len ()
32488 {
32489   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32490 }
32491
32492 _LT_EOF
32493 esac
32494
32495 case $lt_shell_append in
32496   yes)
32497     cat << \_LT_EOF >> "$cfgfile"
32498
32499 # func_append var value
32500 # Append VALUE to the end of shell variable VAR.
32501 func_append ()
32502 {
32503   eval "$1+=\$2"
32504 }
32505 _LT_EOF
32506     ;;
32507   *)
32508     cat << \_LT_EOF >> "$cfgfile"
32509
32510 # func_append var value
32511 # Append VALUE to the end of shell variable VAR.
32512 func_append ()
32513 {
32514   eval "$1=\$$1\$2"
32515 }
32516
32517 _LT_EOF
32518     ;;
32519   esac
32520
32521
32522   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32523     || (rm -f "$cfgfile"; exit 1)
32524
32525   mv -f "$cfgfile" "$ofile" ||
32526     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32527   chmod +x "$ofile"
32528
32529
32530     cat <<_LT_EOF >> "$ofile"
32531
32532 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32533
32534 # The linker used to build libraries.
32535 LD=$lt_LD_CXX
32536
32537 # Commands used to build an old-style archive.
32538 old_archive_cmds=$lt_old_archive_cmds_CXX
32539
32540 # A language specific compiler.
32541 CC=$lt_compiler_CXX
32542
32543 # Is the compiler the GNU compiler?
32544 with_gcc=$GCC_CXX
32545
32546 # Compiler flag to turn off builtin functions.
32547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32548
32549 # How to pass a linker flag through the compiler.
32550 wl=$lt_lt_prog_compiler_wl_CXX
32551
32552 # Additional compiler flags for building library objects.
32553 pic_flag=$lt_lt_prog_compiler_pic_CXX
32554
32555 # Compiler flag to prevent dynamic linking.
32556 link_static_flag=$lt_lt_prog_compiler_static_CXX
32557
32558 # Does compiler simultaneously support -c and -o options?
32559 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32560
32561 # Whether or not to add -lc for building shared libraries.
32562 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32563
32564 # Whether or not to disallow shared libs when runtime libs are static.
32565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32566
32567 # Compiler flag to allow reflexive dlopens.
32568 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32569
32570 # Compiler flag to generate shared objects directly from archives.
32571 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32572
32573 # Whether the compiler copes with passing no objects directly.
32574 compiler_needs_object=$lt_compiler_needs_object_CXX
32575
32576 # Create an old-style archive from a shared archive.
32577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32578
32579 # Create a temporary old-style archive to link instead of a shared archive.
32580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32581
32582 # Commands used to build a shared archive.
32583 archive_cmds=$lt_archive_cmds_CXX
32584 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32585
32586 # Commands used to build a loadable module if different from building
32587 # a shared archive.
32588 module_cmds=$lt_module_cmds_CXX
32589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32590
32591 # Whether we are building with GNU ld or not.
32592 with_gnu_ld=$lt_with_gnu_ld_CXX
32593
32594 # Flag that allows shared libraries with undefined symbols to be built.
32595 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32596
32597 # Flag that enforces no undefined symbols.
32598 no_undefined_flag=$lt_no_undefined_flag_CXX
32599
32600 # Flag to hardcode \$libdir into a binary during linking.
32601 # This must work even if \$libdir does not exist
32602 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32603
32604 # If ld is used when linking, flag to hardcode \$libdir into a binary
32605 # during linking.  This must work even if \$libdir does not exist.
32606 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32607
32608 # Whether we need a single "-rpath" flag with a separated argument.
32609 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32610
32611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32612 # DIR into the resulting binary.
32613 hardcode_direct=$hardcode_direct_CXX
32614
32615 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32616 # DIR into the resulting binary and the resulting library dependency is
32617 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32618 # library is relocated.
32619 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32620
32621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32622 # into the resulting binary.
32623 hardcode_minus_L=$hardcode_minus_L_CXX
32624
32625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32626 # into the resulting binary.
32627 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32628
32629 # Set to "yes" if building a shared library automatically hardcodes DIR
32630 # into the library and all subsequent libraries and executables linked
32631 # against it.
32632 hardcode_automatic=$hardcode_automatic_CXX
32633
32634 # Set to yes if linker adds runtime paths of dependent libraries
32635 # to runtime path list.
32636 inherit_rpath=$inherit_rpath_CXX
32637
32638 # Whether libtool must link a program against all its dependency libraries.
32639 link_all_deplibs=$link_all_deplibs_CXX
32640
32641 # Fix the shell variable \$srcfile for the compiler.
32642 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32643
32644 # Set to "yes" if exported symbols are required.
32645 always_export_symbols=$always_export_symbols_CXX
32646
32647 # The commands to list exported symbols.
32648 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32649
32650 # Symbols that should not be listed in the preloaded symbols.
32651 exclude_expsyms=$lt_exclude_expsyms_CXX
32652
32653 # Symbols that must always be exported.
32654 include_expsyms=$lt_include_expsyms_CXX
32655
32656 # Commands necessary for linking programs (against libraries) with templates.
32657 prelink_cmds=$lt_prelink_cmds_CXX
32658
32659 # Specify filename containing input files.
32660 file_list_spec=$lt_file_list_spec_CXX
32661
32662 # How to hardcode a shared library path into an executable.
32663 hardcode_action=$hardcode_action_CXX
32664
32665 # The directories searched by this compiler when creating a shared library.
32666 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32667
32668 # Dependencies to place before and after the objects being linked to
32669 # create a shared library.
32670 predep_objects=$lt_predep_objects_CXX
32671 postdep_objects=$lt_postdep_objects_CXX
32672 predeps=$lt_predeps_CXX
32673 postdeps=$lt_postdeps_CXX
32674
32675 # The library search path used internally by the compiler when linking
32676 # a shared library.
32677 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32678
32679 # ### END LIBTOOL TAG CONFIG: CXX
32680 _LT_EOF
32681
32682  ;;
32683     "default":C)
32684     : >build-deps
32685     if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
32686  ;;
32687
32688   esac
32689 done # for ac_tag
32690
32691
32692 { (exit 0); exit 0; }
32693 _ACEOF
32694 chmod +x $CONFIG_STATUS
32695 ac_clean_files=$ac_clean_files_save
32696
32697
32698 # configure is writing to config.log, and then calls config.status.
32699 # config.status does its own redirection, appending to config.log.
32700 # Unfortunately, on DOS this fails, as config.log is still kept open
32701 # by configure, so config.status won't be able to write to it; its
32702 # output is simply discarded.  So we exec the FD to /dev/null,
32703 # effectively closing config.log, so it can be properly (re)opened and
32704 # appended to by config.status.  When coming back to configure, we
32705 # need to make the FD available again.
32706 if test "$no_create" != yes; then
32707   ac_cs_success=:
32708   ac_config_status_args=
32709   test "$silent" = yes &&
32710     ac_config_status_args="$ac_config_status_args --quiet"
32711   exec 5>/dev/null
32712   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32713   exec 5>>config.log
32714   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32715   # would make configure fail if this is the last instruction.
32716   $ac_cs_success || { (exit 1); exit 1; }
32717 fi
32718