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
14DUALCASE=1; export DUALCASE # for MKS sh
15if 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
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if 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
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
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.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
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.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if 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; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for 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
107do
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
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo 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
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$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  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
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
232done
233IFS=$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
240if 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
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
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
261if 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
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $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
336fi
337
338fi
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+"$@"}
348fi
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; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$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
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `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';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if 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'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
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  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_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.
548as_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.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$lt_ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $ECHO works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if 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
585fi
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
591if 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
689fi
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.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
700
701exec 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.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708#
709# Initializations.
710#
711ac_default_prefix=/usr/local
712ac_clean_files=
713ac_config_libobj_dir=.
714LIBOBJS=
715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
721# Identity of this package.
722PACKAGE_NAME=
723PACKAGE_TARNAME=
724PACKAGE_VERSION=
725PACKAGE_STRING=
726PACKAGE_BUGREPORT=
727
728ac_unique_file="README"
729# Factoring default headers for most tests.
730ac_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
765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802SDL_MAJOR_VERSION
803SDL_MINOR_VERSION
804SDL_MICRO_VERSION
805SDL_INTERFACE_AGE
806SDL_BINARY_AGE
807SDL_VERSION
808AS
809DLLTOOL
810OBJDUMP
811LIBTOOL
812build
813build_cpu
814build_vendor
815build_os
816host
817host_cpu
818host_vendor
819host_os
820CC
821CFLAGS
822LDFLAGS
823CPPFLAGS
824ac_ct_CC
825EXEEXT
826OBJEXT
827SED
828GREP
829EGREP
830FGREP
831LD
832DUMPBIN
833ac_ct_DUMPBIN
834NM
835LN_S
836AR
837STRIP
838RANLIB
839lt_ECHO
840DSYMUTIL
841NMEDIT
842LIPO
843OTOOL
844OTOOL64
845CPP
846LT_RELEASE
847LT_CURRENT
848LT_REVISION
849LT_AGE
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXCPP
854INSTALL_PROGRAM
855INSTALL_SCRIPT
856INSTALL_DATA
857SET_MAKE
858WINDRES
859ALLOCA
860LIBOBJS
861POW_LIB
862ALSA_CFLAGS
863ALSA_LIBS
864ESD_CONFIG
865ESD_CFLAGS
866ESD_LIBS
867PKG_CONFIG
868ARTSCONFIG
869NASM
870NASMFLAGS
871XMKMF
872X_CFLAGS
873X_PRE_LIBS
874X_LIBS
875X_EXTRA_LIBS
876DIRECTFBCONFIG
877CACACONFIG
878OSMESA_CONFIG
879PTH_CONFIG
880SDL_CFLAGS
881SDL_LIBS
882SDL_STATIC_LIBS
883SDL_RLD_FLAGS
884ENABLE_SHARED_TRUE
885ENABLE_SHARED_FALSE
886ENABLE_STATIC_TRUE
887ENABLE_STATIC_FALSE
888ac_aux_dir
889INCLUDE
890SOURCES
891OBJECTS
892SDLMAIN_SOURCES
893SDLMAIN_OBJECTS
894SDLMAIN_LDFLAGS
895BUILD_CFLAGS
896EXTRA_CFLAGS
897BUILD_LDFLAGS
898EXTRA_LDFLAGS
899LTLIBOBJS'
900ac_subst_files=''
901      ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
907LIBS
908CPPFLAGS
909CPP
910CXX
911CXXFLAGS
912CCC
913CXXCPP
914XMKMF'
915
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_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.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
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
1270Try \`$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
1292done
1293
1294if 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; }; }
1298fi
1299
1300# Be sure to have absolute directory names.
1301for 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
1305do
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; }; }
1313done
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.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
1321
1322# FIXME: To remove some day.
1323if 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
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
1338
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342  { echo "$as_me: error: Working directory cannot be determined" >&2
1343   { (exit 1); exit 1; }; }
1344test "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.
1350if 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 ||
1358echo 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
1380else
1381  ac_srcdir_defaulted=no
1382fi
1383if 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; }; }
1387fi
1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_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=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395  srcdir=.
1396fi
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.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for 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}
1408done
1409
1410#
1411# Report the --help message.
1412#
1413if 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
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
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
1437Installation 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
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine 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
1474X features:
1475  --x-includes=DIR    X include files are in DIR
1476  --x-libraries=DIR   X library files are in DIR
1477
1478System 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
1482fi
1483
1484if test -n "$ac_init_help"; then
1485
1486  cat <<\_ACEOF
1487
1488Optional 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
1592Optional 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
1604Some 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
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621_ACEOF
1622ac_status=$?
1623fi
1624
1625if 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
1631case "$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 ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
1646
1647case $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 ;;
1660esac
1661ac_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
1676fi
1677
1678test -n "$ac_init_help" && exit $ac_status
1679if $ac_init_version; then
1680  cat <<\_ACEOF
1681configure
1682generated by GNU Autoconf 2.61
1683
1684Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
1688_ACEOF
1689  exit
1690fi
1691cat >config.log <<_ACEOF
1692This file contains any messages produced by compilers while
1693running configure, to aid debugging if configure makes a mistake.
1694
1695It was created by $as_me, which was
1696generated by GNU Autoconf 2.61.  Invocation command line was
1697
1698  $ $0 $@
1699
1700_ACEOF
1701exec 5>>config.log
1702{
1703cat <<_ASUNAME
1704## --------- ##
1705## Platform. ##
1706## --------- ##
1707
1708hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712uname -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
1727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730  IFS=$as_save_IFS
1731  test -z "$as_dir" && as_dir=.
1732  echo "PATH: $as_dir"
1733done
1734IFS=$as_save_IFS
1735
1736} >&5
1737
1738cat >&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.
1753ac_configure_args=
1754ac_configure_args0=
1755ac_configure_args1=
1756ac_must_keep_next=false
1757for ac_pass in 1 2
1758do
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
1792done
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.
1801trap '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
1820echo "$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
1895for ac_signal in 1 2 13 15; do
1896  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897done
1898ac_signal=0
1899
1900# confdefs.h avoids OS command line length limits that DEFS can exceed.
1901rm -f -r conftest* confdefs.h
1902
1903# Predefined preprocessor variables.
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_NAME "$PACKAGE_NAME"
1907_ACEOF
1908
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_STRING "$PACKAGE_STRING"
1922_ACEOF
1923
1924
1925cat >>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.
1932if test -n "$CONFIG_SITE"; then
1933  set x "$CONFIG_SITE"
1934elif test "x$prefix" != xNONE; then
1935  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1936else
1937  set x "$ac_default_prefix/share/config.site" \
1938	"$ac_default_prefix/etc/config.site"
1939fi
1940shift
1941for ac_site_file
1942do
1943  if test -r "$ac_site_file"; then
1944    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945echo "$as_me: loading site script $ac_site_file" >&6;}
1946    sed 's/^/| /' "$ac_site_file" >&5
1947    . "$ac_site_file"
1948  fi
1949done
1950
1951if 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
1956echo "$as_me: loading cache $cache_file" >&6;}
1957    case $cache_file in
1958      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959      *)                      . "./$cache_file";;
1960    esac
1961  fi
1962else
1963  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964echo "$as_me: creating cache $cache_file" >&6;}
1965  >$cache_file
1966fi
1967
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
1971for 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
1979echo "$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
1983echo "$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
1989echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1991echo "$as_me:   former value:  $ac_old_val" >&2;}
1992	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1993echo "$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
2008done
2009if $ac_cache_corrupted; then
2010  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011echo "$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
2013echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014   { (exit 1); exit 1; }; }
2015fi
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040ac_config_headers="$ac_config_headers include/SDL_config.h"
2041
2042ac_aux_dir=
2043for ac_dir in $srcdir/build-scripts; do
2044  if test -f "$ac_dir/install-sh"; then
2045    ac_aux_dir=$ac_dir
2046    ac_install_sh="$ac_aux_dir/install-sh -c"
2047    break
2048  elif test -f "$ac_dir/install.sh"; then
2049    ac_aux_dir=$ac_dir
2050    ac_install_sh="$ac_aux_dir/install.sh -c"
2051    break
2052  elif test -f "$ac_dir/shtool"; then
2053    ac_aux_dir=$ac_dir
2054    ac_install_sh="$ac_aux_dir/shtool install -c"
2055    break
2056  fi
2057done
2058if test -z "$ac_aux_dir"; then
2059  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2060echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2061   { (exit 1); exit 1; }; }
2062fi
2063
2064# These three variables are undocumented and unsupported,
2065# and are intended to be withdrawn in a future Autoconf release.
2066# They can cause serious problems if a builder's source tree is in a directory
2067# whose full name contains unusual characters.
2068ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2069ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2070ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2071
2072
2073
2074#
2075# Making releases:
2076# Edit include/SDL/SDL_version.h and change the version, then:
2077#   SDL_MICRO_VERSION += 1;
2078#   SDL_INTERFACE_AGE += 1;
2079#   SDL_BINARY_AGE += 1;
2080# if any functions have been added, set SDL_INTERFACE_AGE to 0.
2081# if backwards compatibility has been broken,
2082# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2083#
2084SDL_MAJOR_VERSION=1
2085SDL_MINOR_VERSION=2
2086SDL_MICRO_VERSION=15
2087SDL_INTERFACE_AGE=4
2088SDL_BINARY_AGE=15
2089SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2090
2091
2092
2093
2094
2095
2096
2097
2098# libtool versioning
2099case `pwd` in
2100  *\ * | *\	*)
2101    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2102echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2103esac
2104
2105
2106
2107macro_version='2.2.6'
2108macro_revision='1.3012'
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122ltmain="$ac_aux_dir/ltmain.sh"
2123
2124# Make sure we can run config.sub.
2125$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128   { (exit 1); exit 1; }; }
2129
2130{ echo "$as_me:$LINENO: checking build system type" >&5
2131echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2132if test "${ac_cv_build+set}" = set; then
2133  echo $ECHO_N "(cached) $ECHO_C" >&6
2134else
2135  ac_build_alias=$build_alias
2136test "x$ac_build_alias" = x &&
2137  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138test "x$ac_build_alias" = x &&
2139  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141   { (exit 1); exit 1; }; }
2142ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145   { (exit 1); exit 1; }; }
2146
2147fi
2148{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149echo "${ECHO_T}$ac_cv_build" >&6; }
2150case $ac_cv_build in
2151*-*-*) ;;
2152*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153echo "$as_me: error: invalid value of canonical build" >&2;}
2154   { (exit 1); exit 1; }; };;
2155esac
2156build=$ac_cv_build
2157ac_save_IFS=$IFS; IFS='-'
2158set x $ac_cv_build
2159shift
2160build_cpu=$1
2161build_vendor=$2
2162shift; shift
2163# Remember, the first character of IFS is used to create $*,
2164# except with old shells:
2165build_os=$*
2166IFS=$ac_save_IFS
2167case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168
2169
2170{ echo "$as_me:$LINENO: checking host system type" >&5
2171echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2172if test "${ac_cv_host+set}" = set; then
2173  echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175  if test "x$host_alias" = x; then
2176  ac_cv_host=$ac_cv_build
2177else
2178  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184fi
2185{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186echo "${ECHO_T}$ac_cv_host" >&6; }
2187case $ac_cv_host in
2188*-*-*) ;;
2189*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190echo "$as_me: error: invalid value of canonical host" >&2;}
2191   { (exit 1); exit 1; }; };;
2192esac
2193host=$ac_cv_host
2194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_host
2196shift
2197host_cpu=$1
2198host_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202host_os=$*
2203IFS=$ac_save_IFS
2204case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2205
2206
2207ac_ext=c
2208ac_cpp='$CPP $CPPFLAGS'
2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212if test -n "$ac_tool_prefix"; then
2213  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217if test "${ac_cv_prog_CC+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$CC"; then
2221  ac_cv_prog_CC="$CC" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236IFS=$as_save_IFS
2237
2238fi
2239fi
2240CC=$ac_cv_prog_CC
2241if test -n "$CC"; then
2242  { echo "$as_me:$LINENO: result: $CC" >&5
2243echo "${ECHO_T}$CC" >&6; }
2244else
2245  { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247fi
2248
2249
2250fi
2251if test -z "$ac_cv_prog_CC"; then
2252  ac_ct_CC=$CC
2253  # Extract the first word of "gcc", so it can be a program name with args.
2254set dummy gcc; ac_word=$2
2255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2257if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  if test -n "$ac_ct_CC"; then
2261  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262else
2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_exec_ext in '' $ac_executable_extensions; do
2269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270    ac_cv_prog_ac_ct_CC="gcc"
2271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272    break 2
2273  fi
2274done
2275done
2276IFS=$as_save_IFS
2277
2278fi
2279fi
2280ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281if test -n "$ac_ct_CC"; then
2282  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283echo "${ECHO_T}$ac_ct_CC" >&6; }
2284else
2285  { echo "$as_me:$LINENO: result: no" >&5
2286echo "${ECHO_T}no" >&6; }
2287fi
2288
2289  if test "x$ac_ct_CC" = x; then
2290    CC=""
2291  else
2292    case $cross_compiling:$ac_tool_warned in
2293yes:)
2294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2295whose name does not start with the host triplet.  If you think this
2296configuration is useful to you, please write to autoconf@gnu.org." >&5
2297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2298whose name does not start with the host triplet.  If you think this
2299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2300ac_tool_warned=yes ;;
2301esac
2302    CC=$ac_ct_CC
2303  fi
2304else
2305  CC="$ac_cv_prog_CC"
2306fi
2307
2308if test -z "$CC"; then
2309          if test -n "$ac_tool_prefix"; then
2310    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2311set dummy ${ac_tool_prefix}cc; ac_word=$2
2312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314if test "${ac_cv_prog_CC+set}" = set; then
2315  echo $ECHO_N "(cached) $ECHO_C" >&6
2316else
2317  if test -n "$CC"; then
2318  ac_cv_prog_CC="$CC" # Let the user override the test.
2319else
2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323  IFS=$as_save_IFS
2324  test -z "$as_dir" && as_dir=.
2325  for ac_exec_ext in '' $ac_executable_extensions; do
2326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327    ac_cv_prog_CC="${ac_tool_prefix}cc"
2328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329    break 2
2330  fi
2331done
2332done
2333IFS=$as_save_IFS
2334
2335fi
2336fi
2337CC=$ac_cv_prog_CC
2338if test -n "$CC"; then
2339  { echo "$as_me:$LINENO: result: $CC" >&5
2340echo "${ECHO_T}$CC" >&6; }
2341else
2342  { echo "$as_me:$LINENO: result: no" >&5
2343echo "${ECHO_T}no" >&6; }
2344fi
2345
2346
2347  fi
2348fi
2349if test -z "$CC"; then
2350  # Extract the first word of "cc", so it can be a program name with args.
2351set dummy cc; ac_word=$2
2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354if test "${ac_cv_prog_CC+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  if test -n "$CC"; then
2358  ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360  ac_prog_rejected=no
2361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362for as_dir in $PATH
2363do
2364  IFS=$as_save_IFS
2365  test -z "$as_dir" && as_dir=.
2366  for ac_exec_ext in '' $ac_executable_extensions; do
2367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2369       ac_prog_rejected=yes
2370       continue
2371     fi
2372    ac_cv_prog_CC="cc"
2373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377done
2378IFS=$as_save_IFS
2379
2380if test $ac_prog_rejected = yes; then
2381  # We found a bogon in the path, so make sure we never use it.
2382  set dummy $ac_cv_prog_CC
2383  shift
2384  if test $# != 0; then
2385    # We chose a different compiler from the bogus one.
2386    # However, it has the same basename, so the bogon will be chosen
2387    # first if we set CC to just the basename; use the full file name.
2388    shift
2389    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390  fi
2391fi
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
2396  { echo "$as_me:$LINENO: result: $CC" >&5
2397echo "${ECHO_T}$CC" >&6; }
2398else
2399  { echo "$as_me:$LINENO: result: no" >&5
2400echo "${ECHO_T}no" >&6; }
2401fi
2402
2403
2404fi
2405if test -z "$CC"; then
2406  if test -n "$ac_tool_prefix"; then
2407  for ac_prog in cl.exe
2408  do
2409    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413if test "${ac_cv_prog_CC+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422  IFS=$as_save_IFS
2423  test -z "$as_dir" && as_dir=.
2424  for ac_exec_ext in '' $ac_executable_extensions; do
2425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428    break 2
2429  fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438  { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
2440else
2441  { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444
2445
2446    test -n "$CC" && break
2447  done
2448fi
2449if test -z "$CC"; then
2450  ac_ct_CC=$CC
2451  for ac_prog in cl.exe
2452do
2453  # Extract the first word of "$ac_prog", so it can be a program name with args.
2454set dummy $ac_prog; ac_word=$2
2455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  if test -n "$ac_ct_CC"; then
2461  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_ac_ct_CC="$ac_prog"
2471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
2482  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483echo "${ECHO_T}$ac_ct_CC" >&6; }
2484else
2485  { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
2487fi
2488
2489
2490  test -n "$ac_ct_CC" && break
2491done
2492
2493  if test "x$ac_ct_CC" = x; then
2494    CC=""
2495  else
2496    case $cross_compiling:$ac_tool_warned in
2497yes:)
2498{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet.  If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&5
2501echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet.  If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504ac_tool_warned=yes ;;
2505esac
2506    CC=$ac_ct_CC
2507  fi
2508fi
2509
2510fi
2511
2512
2513test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2514See \`config.log' for more details." >&5
2515echo "$as_me: error: no acceptable C compiler found in \$PATH
2516See \`config.log' for more details." >&2;}
2517   { (exit 1); exit 1; }; }
2518
2519# Provide some information about the compiler.
2520echo "$as_me:$LINENO: checking for C compiler version" >&5
2521ac_compiler=`set X $ac_compile; echo $2`
2522{ (ac_try="$ac_compiler --version >&5"
2523case "(($ac_try" in
2524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525  *) ac_try_echo=$ac_try;;
2526esac
2527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528  (eval "$ac_compiler --version >&5") 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }
2532{ (ac_try="$ac_compiler -v >&5"
2533case "(($ac_try" in
2534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535  *) ac_try_echo=$ac_try;;
2536esac
2537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538  (eval "$ac_compiler -v >&5") 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }
2542{ (ac_try="$ac_compiler -V >&5"
2543case "(($ac_try" in
2544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545  *) ac_try_echo=$ac_try;;
2546esac
2547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548  (eval "$ac_compiler -V >&5") 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }
2552
2553cat >conftest.$ac_ext <<_ACEOF
2554/* confdefs.h.  */
2555_ACEOF
2556cat confdefs.h >>conftest.$ac_ext
2557cat >>conftest.$ac_ext <<_ACEOF
2558/* end confdefs.h.  */
2559
2560int
2561main ()
2562{
2563
2564  ;
2565  return 0;
2566}
2567_ACEOF
2568ac_clean_files_save=$ac_clean_files
2569ac_clean_files="$ac_clean_files a.out a.exe b.out"
2570# Try to create an executable without -o first, disregard a.out.
2571# It will help us diagnose broken compilers, and finding out an intuition
2572# of exeext.
2573{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2574echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2575ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2576#
2577# List of possible output files, starting from the most likely.
2578# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2579# only as a last resort.  b.out is created by i960 compilers.
2580ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2581#
2582# The IRIX 6 linker writes into existing files which may not be
2583# executable, retaining their permissions.  Remove them first so a
2584# subsequent execution test works.
2585ac_rmfiles=
2586for ac_file in $ac_files
2587do
2588  case $ac_file in
2589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2590    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2591  esac
2592done
2593rm -f $ac_rmfiles
2594
2595if { (ac_try="$ac_link_default"
2596case "(($ac_try" in
2597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598  *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601  (eval "$ac_link_default") 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; then
2605  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2606# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2607# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2608# so that the user can short-circuit this test for compilers unknown to
2609# Autoconf.
2610for ac_file in $ac_files ''
2611do
2612  test -f "$ac_file" || continue
2613  case $ac_file in
2614    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2615	;;
2616    [ab].out )
2617	# We found the default executable, but exeext='' is most
2618	# certainly right.
2619	break;;
2620    *.* )
2621        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2622	then :; else
2623	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624	fi
2625	# We set ac_cv_exeext here because the later test for it is not
2626	# safe: cross compilers may not add the suffix if given an `-o'
2627	# argument, so we may need to know it at that point already.
2628	# Even if this section looks crufty: it has the advantage of
2629	# actually working.
2630	break;;
2631    * )
2632	break;;
2633  esac
2634done
2635test "$ac_cv_exeext" = no && ac_cv_exeext=
2636
2637else
2638  ac_file=''
2639fi
2640
2641{ echo "$as_me:$LINENO: result: $ac_file" >&5
2642echo "${ECHO_T}$ac_file" >&6; }
2643if test -z "$ac_file"; then
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: C compiler cannot create executables
2650See \`config.log' for more details." >&2;}
2651   { (exit 77); exit 77; }; }
2652fi
2653
2654ac_exeext=$ac_cv_exeext
2655
2656# Check that the compiler produces executables we can run.  If not, either
2657# the compiler is broken, or we cross compile.
2658{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2659echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2660# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2661# If not cross compiling, check that we can run a simple program.
2662if test "$cross_compiling" != yes; then
2663  if { ac_try='./$ac_file'
2664  { (case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669  (eval "$ac_try") 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; }; then
2673    cross_compiling=no
2674  else
2675    if test "$cross_compiling" = maybe; then
2676	cross_compiling=yes
2677    else
2678	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2679If you meant to cross compile, use \`--host'.
2680See \`config.log' for more details." >&5
2681echo "$as_me: error: cannot run C compiled programs.
2682If you meant to cross compile, use \`--host'.
2683See \`config.log' for more details." >&2;}
2684   { (exit 1); exit 1; }; }
2685    fi
2686  fi
2687fi
2688{ echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6; }
2690
2691rm -f a.out a.exe conftest$ac_cv_exeext b.out
2692ac_clean_files=$ac_clean_files_save
2693# Check that the compiler produces executables we can run.  If not, either
2694# the compiler is broken, or we cross compile.
2695{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2696echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2697{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2698echo "${ECHO_T}$cross_compiling" >&6; }
2699
2700{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2701echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2702if { (ac_try="$ac_link"
2703case "(($ac_try" in
2704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705  *) ac_try_echo=$ac_try;;
2706esac
2707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708  (eval "$ac_link") 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; then
2712  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2713# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2714# work properly (i.e., refer to `conftest.exe'), while it won't with
2715# `rm'.
2716for ac_file in conftest.exe conftest conftest.*; do
2717  test -f "$ac_file" || continue
2718  case $ac_file in
2719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721	  break;;
2722    * ) break;;
2723  esac
2724done
2725else
2726  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2727See \`config.log' for more details." >&5
2728echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2729See \`config.log' for more details." >&2;}
2730   { (exit 1); exit 1; }; }
2731fi
2732
2733rm -f conftest$ac_cv_exeext
2734{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2735echo "${ECHO_T}$ac_cv_exeext" >&6; }
2736
2737rm -f conftest.$ac_ext
2738EXEEXT=$ac_cv_exeext
2739ac_exeext=$EXEEXT
2740{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2741echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2742if test "${ac_cv_objext+set}" = set; then
2743  echo $ECHO_N "(cached) $ECHO_C" >&6
2744else
2745  cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h.  */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h.  */
2751
2752int
2753main ()
2754{
2755
2756  ;
2757  return 0;
2758}
2759_ACEOF
2760rm -f conftest.o conftest.obj
2761if { (ac_try="$ac_compile"
2762case "(($ac_try" in
2763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764  *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767  (eval "$ac_compile") 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; then
2771  for ac_file in conftest.o conftest.obj conftest.*; do
2772  test -f "$ac_file" || continue;
2773  case $ac_file in
2774    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2775    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2776       break;;
2777  esac
2778done
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2784See \`config.log' for more details." >&5
2785echo "$as_me: error: cannot compute suffix of object files: cannot compile
2786See \`config.log' for more details." >&2;}
2787   { (exit 1); exit 1; }; }
2788fi
2789
2790rm -f conftest.$ac_cv_objext conftest.$ac_ext
2791fi
2792{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2793echo "${ECHO_T}$ac_cv_objext" >&6; }
2794OBJEXT=$ac_cv_objext
2795ac_objext=$OBJEXT
2796{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2797echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2798if test "${ac_cv_c_compiler_gnu+set}" = set; then
2799  echo $ECHO_N "(cached) $ECHO_C" >&6
2800else
2801  cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811#ifndef __GNUC__
2812       choke me
2813#endif
2814
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819rm -f conftest.$ac_objext
2820if { (ac_try="$ac_compile"
2821case "(($ac_try" in
2822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823  *) ac_try_echo=$ac_try;;
2824esac
2825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826  (eval "$ac_compile") 2>conftest.er1
2827  ac_status=$?
2828  grep -v '^ *+' conftest.er1 >conftest.err
2829  rm -f conftest.er1
2830  cat conftest.err >&5
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); } && {
2833	 test -z "$ac_c_werror_flag" ||
2834	 test ! -s conftest.err
2835       } && test -s conftest.$ac_objext; then
2836  ac_compiler_gnu=yes
2837else
2838  echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841	ac_compiler_gnu=no
2842fi
2843
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846
2847fi
2848{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2849echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2850GCC=`test $ac_compiler_gnu = yes && echo yes`
2851ac_test_CFLAGS=${CFLAGS+set}
2852ac_save_CFLAGS=$CFLAGS
2853{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2854echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2855if test "${ac_cv_prog_cc_g+set}" = set; then
2856  echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858  ac_save_c_werror_flag=$ac_c_werror_flag
2859   ac_c_werror_flag=yes
2860   ac_cv_prog_cc_g=no
2861   CFLAGS="-g"
2862   cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (ac_try="$ac_compile"
2879case "(($ac_try" in
2880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881  *) ac_try_echo=$ac_try;;
2882esac
2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884  (eval "$ac_compile") 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } && {
2891	 test -z "$ac_c_werror_flag" ||
2892	 test ! -s conftest.err
2893       } && test -s conftest.$ac_objext; then
2894  ac_cv_prog_cc_g=yes
2895else
2896  echo "$as_me: failed program was:" >&5
2897sed 's/^/| /' conftest.$ac_ext >&5
2898
2899	CFLAGS=""
2900      cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906
2907int
2908main ()
2909{
2910
2911  ;
2912  return 0;
2913}
2914_ACEOF
2915rm -f conftest.$ac_objext
2916if { (ac_try="$ac_compile"
2917case "(($ac_try" in
2918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919  *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922  (eval "$ac_compile") 2>conftest.er1
2923  ac_status=$?
2924  grep -v '^ *+' conftest.er1 >conftest.err
2925  rm -f conftest.er1
2926  cat conftest.err >&5
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); } && {
2929	 test -z "$ac_c_werror_flag" ||
2930	 test ! -s conftest.err
2931       } && test -s conftest.$ac_objext; then
2932  :
2933else
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937	ac_c_werror_flag=$ac_save_c_werror_flag
2938	 CFLAGS="-g"
2939	 cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext
2955if { (ac_try="$ac_compile"
2956case "(($ac_try" in
2957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958  *) ac_try_echo=$ac_try;;
2959esac
2960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961  (eval "$ac_compile") 2>conftest.er1
2962  ac_status=$?
2963  grep -v '^ *+' conftest.er1 >conftest.err
2964  rm -f conftest.er1
2965  cat conftest.err >&5
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); } && {
2968	 test -z "$ac_c_werror_flag" ||
2969	 test ! -s conftest.err
2970       } && test -s conftest.$ac_objext; then
2971  ac_cv_prog_cc_g=yes
2972else
2973  echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976
2977fi
2978
2979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980fi
2981
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983fi
2984
2985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986   ac_c_werror_flag=$ac_save_c_werror_flag
2987fi
2988{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2990if test "$ac_test_CFLAGS" = set; then
2991  CFLAGS=$ac_save_CFLAGS
2992elif test $ac_cv_prog_cc_g = yes; then
2993  if test "$GCC" = yes; then
2994    CFLAGS="-g -O2"
2995  else
2996    CFLAGS="-g"
2997  fi
2998else
2999  if test "$GCC" = yes; then
3000    CFLAGS="-O2"
3001  else
3002    CFLAGS=
3003  fi
3004fi
3005{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3006echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3007if test "${ac_cv_prog_cc_c89+set}" = set; then
3008  echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010  ac_cv_prog_cc_c89=no
3011ac_save_CC=$CC
3012cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h.  */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h.  */
3018#include <stdarg.h>
3019#include <stdio.h>
3020#include <sys/types.h>
3021#include <sys/stat.h>
3022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3023struct buf { int x; };
3024FILE * (*rcsopen) (struct buf *, struct stat *, int);
3025static char *e (p, i)
3026     char **p;
3027     int i;
3028{
3029  return p[i];
3030}
3031static char *f (char * (*g) (char **, int), char **p, ...)
3032{
3033  char *s;
3034  va_list v;
3035  va_start (v,p);
3036  s = g (p, va_arg (v,int));
3037  va_end (v);
3038  return s;
3039}
3040
3041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3042   function prototypes and stuff, but not '\xHH' hex character constants.
3043   These don't provoke an error unfortunately, instead are silently treated
3044   as 'x'.  The following induces an error, until -std is added to get
3045   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3046   array size at least.  It's necessary to write '\x00'==0 to get something
3047   that's true only with -std.  */
3048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3049
3050/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3051   inside strings and character constants.  */
3052#define FOO(x) 'x'
3053int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3054
3055int test (int i, double x);
3056struct s1 {int (*f) (int a);};
3057struct s2 {int (*f) (double a);};
3058int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3059int argc;
3060char **argv;
3061int
3062main ()
3063{
3064return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3070	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3071do
3072  CC="$ac_save_CC $ac_arg"
3073  rm -f conftest.$ac_objext
3074if { (ac_try="$ac_compile"
3075case "(($ac_try" in
3076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077  *) ac_try_echo=$ac_try;;
3078esac
3079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080  (eval "$ac_compile") 2>conftest.er1
3081  ac_status=$?
3082  grep -v '^ *+' conftest.er1 >conftest.err
3083  rm -f conftest.er1
3084  cat conftest.err >&5
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } && {
3087	 test -z "$ac_c_werror_flag" ||
3088	 test ! -s conftest.err
3089       } && test -s conftest.$ac_objext; then
3090  ac_cv_prog_cc_c89=$ac_arg
3091else
3092  echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095
3096fi
3097
3098rm -f core conftest.err conftest.$ac_objext
3099  test "x$ac_cv_prog_cc_c89" != "xno" && break
3100done
3101rm -f conftest.$ac_ext
3102CC=$ac_save_CC
3103
3104fi
3105# AC_CACHE_VAL
3106case "x$ac_cv_prog_cc_c89" in
3107  x)
3108    { echo "$as_me:$LINENO: result: none needed" >&5
3109echo "${ECHO_T}none needed" >&6; } ;;
3110  xno)
3111    { echo "$as_me:$LINENO: result: unsupported" >&5
3112echo "${ECHO_T}unsupported" >&6; } ;;
3113  *)
3114    CC="$CC $ac_cv_prog_cc_c89"
3115    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3117esac
3118
3119
3120ac_ext=c
3121ac_cpp='$CPP $CPPFLAGS'
3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125
3126{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3127echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3128if test "${ac_cv_path_SED+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3132     for ac_i in 1 2 3 4 5 6 7; do
3133       ac_script="$ac_script$as_nl$ac_script"
3134     done
3135     echo "$ac_script" | sed 99q >conftest.sed
3136     $as_unset ac_script || ac_script=
3137     # Extract the first word of "sed gsed" to use in msg output
3138if test -z "$SED"; then
3139set dummy sed gsed; ac_prog_name=$2
3140if test "${ac_cv_path_SED+set}" = set; then
3141  echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143  ac_path_SED_found=false
3144# Loop through the user's path and test for each of PROGNAME-LIST
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150  for ac_prog in sed gsed; do
3151  for ac_exec_ext in '' $ac_executable_extensions; do
3152    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3153    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3154    # Check for GNU ac_path_SED and select it if it is found.
3155  # Check for GNU $ac_path_SED
3156case `"$ac_path_SED" --version 2>&1` in
3157*GNU*)
3158  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3159*)
3160  ac_count=0
3161  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3162  while :
3163  do
3164    cat "conftest.in" "conftest.in" >"conftest.tmp"
3165    mv "conftest.tmp" "conftest.in"
3166    cp "conftest.in" "conftest.nl"
3167    echo '' >> "conftest.nl"
3168    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170    ac_count=`expr $ac_count + 1`
3171    if test $ac_count -gt ${ac_path_SED_max-0}; then
3172      # Best one so far, save it but keep looking for a better one
3173      ac_cv_path_SED="$ac_path_SED"
3174      ac_path_SED_max=$ac_count
3175    fi
3176    # 10*(2^10) chars as input seems more than enough
3177    test $ac_count -gt 10 && break
3178  done
3179  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3180esac
3181
3182
3183    $ac_path_SED_found && break 3
3184  done
3185done
3186
3187done
3188IFS=$as_save_IFS
3189
3190
3191fi
3192
3193SED="$ac_cv_path_SED"
3194if test -z "$SED"; then
3195  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3196echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3197   { (exit 1); exit 1; }; }
3198fi
3199
3200else
3201  ac_cv_path_SED=$SED
3202fi
3203
3204fi
3205{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3206echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3207 SED="$ac_cv_path_SED"
3208  rm -f conftest.sed
3209
3210test -z "$SED" && SED=sed
3211Xsed="$SED -e 1s/^X//"
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3224echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3225if test "${ac_cv_path_GREP+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  # Extract the first word of "grep ggrep" to use in msg output
3229if test -z "$GREP"; then
3230set dummy grep ggrep; ac_prog_name=$2
3231if test "${ac_cv_path_GREP+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  ac_path_GREP_found=false
3235# Loop through the user's path and test for each of PROGNAME-LIST
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for ac_prog in grep ggrep; do
3242  for ac_exec_ext in '' $ac_executable_extensions; do
3243    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3244    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3245    # Check for GNU ac_path_GREP and select it if it is found.
3246  # Check for GNU $ac_path_GREP
3247case `"$ac_path_GREP" --version 2>&1` in
3248*GNU*)
3249  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3250*)
3251  ac_count=0
3252  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3253  while :
3254  do
3255    cat "conftest.in" "conftest.in" >"conftest.tmp"
3256    mv "conftest.tmp" "conftest.in"
3257    cp "conftest.in" "conftest.nl"
3258    echo 'GREP' >> "conftest.nl"
3259    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3260    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3261    ac_count=`expr $ac_count + 1`
3262    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3263      # Best one so far, save it but keep looking for a better one
3264      ac_cv_path_GREP="$ac_path_GREP"
3265      ac_path_GREP_max=$ac_count
3266    fi
3267    # 10*(2^10) chars as input seems more than enough
3268    test $ac_count -gt 10 && break
3269  done
3270  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3271esac
3272
3273
3274    $ac_path_GREP_found && break 3
3275  done
3276done
3277
3278done
3279IFS=$as_save_IFS
3280
3281
3282fi
3283
3284GREP="$ac_cv_path_GREP"
3285if test -z "$GREP"; then
3286  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3287echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3288   { (exit 1); exit 1; }; }
3289fi
3290
3291else
3292  ac_cv_path_GREP=$GREP
3293fi
3294
3295
3296fi
3297{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3298echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3299 GREP="$ac_cv_path_GREP"
3300
3301
3302{ echo "$as_me:$LINENO: checking for egrep" >&5
3303echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3304if test "${ac_cv_path_EGREP+set}" = set; then
3305  echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3308   then ac_cv_path_EGREP="$GREP -E"
3309   else
3310     # Extract the first word of "egrep" to use in msg output
3311if test -z "$EGREP"; then
3312set dummy egrep; ac_prog_name=$2
3313if test "${ac_cv_path_EGREP+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  ac_path_EGREP_found=false
3317# Loop through the user's path and test for each of PROGNAME-LIST
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323  for ac_prog in egrep; do
3324  for ac_exec_ext in '' $ac_executable_extensions; do
3325    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3326    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3327    # Check for GNU ac_path_EGREP and select it if it is found.
3328  # Check for GNU $ac_path_EGREP
3329case `"$ac_path_EGREP" --version 2>&1` in
3330*GNU*)
3331  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3332*)
3333  ac_count=0
3334  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3335  while :
3336  do
3337    cat "conftest.in" "conftest.in" >"conftest.tmp"
3338    mv "conftest.tmp" "conftest.in"
3339    cp "conftest.in" "conftest.nl"
3340    echo 'EGREP' >> "conftest.nl"
3341    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3342    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3343    ac_count=`expr $ac_count + 1`
3344    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3345      # Best one so far, save it but keep looking for a better one
3346      ac_cv_path_EGREP="$ac_path_EGREP"
3347      ac_path_EGREP_max=$ac_count
3348    fi
3349    # 10*(2^10) chars as input seems more than enough
3350    test $ac_count -gt 10 && break
3351  done
3352  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3353esac
3354
3355
3356    $ac_path_EGREP_found && break 3
3357  done
3358done
3359
3360done
3361IFS=$as_save_IFS
3362
3363
3364fi
3365
3366EGREP="$ac_cv_path_EGREP"
3367if test -z "$EGREP"; then
3368  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3369echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3370   { (exit 1); exit 1; }; }
3371fi
3372
3373else
3374  ac_cv_path_EGREP=$EGREP
3375fi
3376
3377
3378   fi
3379fi
3380{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3381echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3382 EGREP="$ac_cv_path_EGREP"
3383
3384
3385{ echo "$as_me:$LINENO: checking for fgrep" >&5
3386echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3387if test "${ac_cv_path_FGREP+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3391   then ac_cv_path_FGREP="$GREP -F"
3392   else
3393     # Extract the first word of "fgrep" to use in msg output
3394if test -z "$FGREP"; then
3395set dummy fgrep; ac_prog_name=$2
3396if test "${ac_cv_path_FGREP+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  ac_path_FGREP_found=false
3400# Loop through the user's path and test for each of PROGNAME-LIST
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3403do
3404  IFS=$as_save_IFS
3405  test -z "$as_dir" && as_dir=.
3406  for ac_prog in fgrep; do
3407  for ac_exec_ext in '' $ac_executable_extensions; do
3408    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3409    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3410    # Check for GNU ac_path_FGREP and select it if it is found.
3411  # Check for GNU $ac_path_FGREP
3412case `"$ac_path_FGREP" --version 2>&1` in
3413*GNU*)
3414  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3415*)
3416  ac_count=0
3417  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3418  while :
3419  do
3420    cat "conftest.in" "conftest.in" >"conftest.tmp"
3421    mv "conftest.tmp" "conftest.in"
3422    cp "conftest.in" "conftest.nl"
3423    echo 'FGREP' >> "conftest.nl"
3424    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3426    ac_count=`expr $ac_count + 1`
3427    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3428      # Best one so far, save it but keep looking for a better one
3429      ac_cv_path_FGREP="$ac_path_FGREP"
3430      ac_path_FGREP_max=$ac_count
3431    fi
3432    # 10*(2^10) chars as input seems more than enough
3433    test $ac_count -gt 10 && break
3434  done
3435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3436esac
3437
3438
3439    $ac_path_FGREP_found && break 3
3440  done
3441done
3442
3443done
3444IFS=$as_save_IFS
3445
3446
3447fi
3448
3449FGREP="$ac_cv_path_FGREP"
3450if test -z "$FGREP"; then
3451  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3452echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3453   { (exit 1); exit 1; }; }
3454fi
3455
3456else
3457  ac_cv_path_FGREP=$FGREP
3458fi
3459
3460
3461   fi
3462fi
3463{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3464echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3465 FGREP="$ac_cv_path_FGREP"
3466
3467
3468test -z "$GREP" && GREP=grep
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488# Check whether --with-gnu-ld was given.
3489if test "${with_gnu_ld+set}" = set; then
3490  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3491else
3492  with_gnu_ld=no
3493fi
3494
3495ac_prog=ld
3496if test "$GCC" = yes; then
3497  # Check if gcc -print-prog-name=ld gives a path.
3498  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3499echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3500  case $host in
3501  *-*-mingw*)
3502    # gcc leaves a trailing carriage return which upsets mingw
3503    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3504  *)
3505    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3506  esac
3507  case $ac_prog in
3508    # Accept absolute paths.
3509    [\\/]* | ?:[\\/]*)
3510      re_direlt='/[^/][^/]*/\.\./'
3511      # Canonicalize the pathname of ld
3512      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3513      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3514	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3515      done
3516      test -z "$LD" && LD="$ac_prog"
3517      ;;
3518  "")
3519    # If it fails, then pretend we aren't using GCC.
3520    ac_prog=ld
3521    ;;
3522  *)
3523    # If it is relative, then search for the first ld in PATH.
3524    with_gnu_ld=unknown
3525    ;;
3526  esac
3527elif test "$with_gnu_ld" = yes; then
3528  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3530else
3531  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3533fi
3534if test "${lt_cv_path_LD+set}" = set; then
3535  echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537  if test -z "$LD"; then
3538  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3539  for ac_dir in $PATH; do
3540    IFS="$lt_save_ifs"
3541    test -z "$ac_dir" && ac_dir=.
3542    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3543      lt_cv_path_LD="$ac_dir/$ac_prog"
3544      # Check to see if the program is GNU ld.  I'd rather use --version,
3545      # but apparently some variants of GNU ld only accept -v.
3546      # Break only if it was the GNU/non-GNU ld that we prefer.
3547      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3548      *GNU* | *'with BFD'*)
3549	test "$with_gnu_ld" != no && break
3550	;;
3551      *)
3552	test "$with_gnu_ld" != yes && break
3553	;;
3554      esac
3555    fi
3556  done
3557  IFS="$lt_save_ifs"
3558else
3559  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3560fi
3561fi
3562
3563LD="$lt_cv_path_LD"
3564if test -n "$LD"; then
3565  { echo "$as_me:$LINENO: result: $LD" >&5
3566echo "${ECHO_T}$LD" >&6; }
3567else
3568  { echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6; }
3570fi
3571test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3572echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3573   { (exit 1); exit 1; }; }
3574{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3575echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3576if test "${lt_cv_prog_gnu_ld+set}" = set; then
3577  echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3580case `$LD -v 2>&1 </dev/null` in
3581*GNU* | *'with BFD'*)
3582  lt_cv_prog_gnu_ld=yes
3583  ;;
3584*)
3585  lt_cv_prog_gnu_ld=no
3586  ;;
3587esac
3588fi
3589{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3590echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3591with_gnu_ld=$lt_cv_prog_gnu_ld
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3602echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3603if test "${lt_cv_path_NM+set}" = set; then
3604  echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606  if test -n "$NM"; then
3607  # Let the user override the test.
3608  lt_cv_path_NM="$NM"
3609else
3610  lt_nm_to_check="${ac_tool_prefix}nm"
3611  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3612    lt_nm_to_check="$lt_nm_to_check nm"
3613  fi
3614  for lt_tmp_nm in $lt_nm_to_check; do
3615    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3616    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3617      IFS="$lt_save_ifs"
3618      test -z "$ac_dir" && ac_dir=.
3619      tmp_nm="$ac_dir/$lt_tmp_nm"
3620      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3621	# Check to see if the nm accepts a BSD-compat flag.
3622	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3623	#   nm: unknown option "B" ignored
3624	# Tru64's nm complains that /dev/null is an invalid object file
3625	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3626	*/dev/null* | *'Invalid file or object type'*)
3627	  lt_cv_path_NM="$tmp_nm -B"
3628	  break
3629	  ;;
3630	*)
3631	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3632	  */dev/null*)
3633	    lt_cv_path_NM="$tmp_nm -p"
3634	    break
3635	    ;;
3636	  *)
3637	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3638	    continue # so that we can try to find one that supports BSD flags
3639	    ;;
3640	  esac
3641	  ;;
3642	esac
3643      fi
3644    done
3645    IFS="$lt_save_ifs"
3646  done
3647  : ${lt_cv_path_NM=no}
3648fi
3649fi
3650{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3651echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3652if test "$lt_cv_path_NM" != "no"; then
3653  NM="$lt_cv_path_NM"
3654else
3655  # Didn't find any BSD compatible name lister, look for dumpbin.
3656  if test -n "$ac_tool_prefix"; then
3657  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3658  do
3659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3663if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3664  echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666  if test -n "$DUMPBIN"; then
3667  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3668else
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672  IFS=$as_save_IFS
3673  test -z "$as_dir" && as_dir=.
3674  for ac_exec_ext in '' $ac_executable_extensions; do
3675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678    break 2
3679  fi
3680done
3681done
3682IFS=$as_save_IFS
3683
3684fi
3685fi
3686DUMPBIN=$ac_cv_prog_DUMPBIN
3687if test -n "$DUMPBIN"; then
3688  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3689echo "${ECHO_T}$DUMPBIN" >&6; }
3690else
3691  { echo "$as_me:$LINENO: result: no" >&5
3692echo "${ECHO_T}no" >&6; }
3693fi
3694
3695
3696    test -n "$DUMPBIN" && break
3697  done
3698fi
3699if test -z "$DUMPBIN"; then
3700  ac_ct_DUMPBIN=$DUMPBIN
3701  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3702do
3703  # Extract the first word of "$ac_prog", so it can be a program name with args.
3704set dummy $ac_prog; ac_word=$2
3705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3707if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3708  echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710  if test -n "$ac_ct_DUMPBIN"; then
3711  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3712else
3713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH
3715do
3716  IFS=$as_save_IFS
3717  test -z "$as_dir" && as_dir=.
3718  for ac_exec_ext in '' $ac_executable_extensions; do
3719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722    break 2
3723  fi
3724done
3725done
3726IFS=$as_save_IFS
3727
3728fi
3729fi
3730ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3731if test -n "$ac_ct_DUMPBIN"; then
3732  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3733echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3734else
3735  { echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6; }
3737fi
3738
3739
3740  test -n "$ac_ct_DUMPBIN" && break
3741done
3742
3743  if test "x$ac_ct_DUMPBIN" = x; then
3744    DUMPBIN=":"
3745  else
3746    case $cross_compiling:$ac_tool_warned in
3747yes:)
3748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3749whose name does not start with the host triplet.  If you think this
3750configuration is useful to you, please write to autoconf@gnu.org." >&5
3751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3752whose name does not start with the host triplet.  If you think this
3753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3754ac_tool_warned=yes ;;
3755esac
3756    DUMPBIN=$ac_ct_DUMPBIN
3757  fi
3758fi
3759
3760
3761  if test "$DUMPBIN" != ":"; then
3762    NM="$DUMPBIN"
3763  fi
3764fi
3765test -z "$NM" && NM=nm
3766
3767
3768
3769
3770
3771
3772{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3773echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3774if test "${lt_cv_nm_interface+set}" = set; then
3775  echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777  lt_cv_nm_interface="BSD nm"
3778  echo "int some_variable = 0;" > conftest.$ac_ext
3779  (eval echo "\"\$as_me:3785: $ac_compile\"" >&5)
3780  (eval "$ac_compile" 2>conftest.err)
3781  cat conftest.err >&5
3782  (eval echo "\"\$as_me:3788: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3783  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3784  cat conftest.err >&5
3785  (eval echo "\"\$as_me:3791: output\"" >&5)
3786  cat conftest.out >&5
3787  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3788    lt_cv_nm_interface="MS dumpbin"
3789  fi
3790  rm -f conftest*
3791fi
3792{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3793echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3794
3795{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3796echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3797LN_S=$as_ln_s
3798if test "$LN_S" = "ln -s"; then
3799  { echo "$as_me:$LINENO: result: yes" >&5
3800echo "${ECHO_T}yes" >&6; }
3801else
3802  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3803echo "${ECHO_T}no, using $LN_S" >&6; }
3804fi
3805
3806# find the maximum length of command line arguments
3807{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3808echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3809if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3810  echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812    i=0
3813  teststring="ABCD"
3814
3815  case $build_os in
3816  msdosdjgpp*)
3817    # On DJGPP, this test can blow up pretty badly due to problems in libc
3818    # (any single argument exceeding 2000 bytes causes a buffer overrun
3819    # during glob expansion).  Even if it were fixed, the result of this
3820    # check would be larger than it should be.
3821    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3822    ;;
3823
3824  gnu*)
3825    # Under GNU Hurd, this test is not required because there is
3826    # no limit to the length of command line arguments.
3827    # Libtool will interpret -1 as no limit whatsoever
3828    lt_cv_sys_max_cmd_len=-1;
3829    ;;
3830
3831  cygwin* | mingw* | cegcc*)
3832    # On Win9x/ME, this test blows up -- it succeeds, but takes
3833    # about 5 minutes as the teststring grows exponentially.
3834    # Worse, since 9x/ME are not pre-emptively multitasking,
3835    # you end up with a "frozen" computer, even though with patience
3836    # the test eventually succeeds (with a max line length of 256k).
3837    # Instead, let's just punt: use the minimum linelength reported by
3838    # all of the supported platforms: 8192 (on NT/2K/XP).
3839    lt_cv_sys_max_cmd_len=8192;
3840    ;;
3841
3842  beos*)
3843    # On BeOS, this test takes a really really long time.
3844    # So we just punt and use a minimum line length of 8192.
3845    lt_cv_sys_max_cmd_len=8192;
3846    ;;
3847
3848  amigaos*)
3849    # On AmigaOS with pdksh, this test takes hours, literally.
3850    # So we just punt and use a minimum line length of 8192.
3851    lt_cv_sys_max_cmd_len=8192;
3852    ;;
3853
3854  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3855    # This has been around since 386BSD, at least.  Likely further.
3856    if test -x /sbin/sysctl; then
3857      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3858    elif test -x /usr/sbin/sysctl; then
3859      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3860    else
3861      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3862    fi
3863    # And add a safety zone
3864    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3865    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3866    ;;
3867
3868  interix*)
3869    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3870    lt_cv_sys_max_cmd_len=196608
3871    ;;
3872
3873  osf*)
3874    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3875    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3876    # nice to cause kernel panics so lets avoid the loop below.
3877    # First set a reasonable default.
3878    lt_cv_sys_max_cmd_len=16384
3879    #
3880    if test -x /sbin/sysconfig; then
3881      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3882        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3883      esac
3884    fi
3885    ;;
3886  sco3.2v5*)
3887    lt_cv_sys_max_cmd_len=102400
3888    ;;
3889  sysv5* | sco5v6* | sysv4.2uw2*)
3890    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3891    if test -n "$kargmax"; then
3892      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3893    else
3894      lt_cv_sys_max_cmd_len=32768
3895    fi
3896    ;;
3897  *)
3898    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3899    if test -n "$lt_cv_sys_max_cmd_len"; then
3900      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3901      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3902    else
3903      # Make teststring a little bigger before we do anything with it.
3904      # a 1K string should be a reasonable start.
3905      for i in 1 2 3 4 5 6 7 8 ; do
3906        teststring=$teststring$teststring
3907      done
3908      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3909      # If test is not a shell built-in, we'll probably end up computing a
3910      # maximum length that is only half of the actual maximum length, but
3911      # we can't tell.
3912      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3913	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3914	      test $i != 17 # 1/2 MB should be enough
3915      do
3916        i=`expr $i + 1`
3917        teststring=$teststring$teststring
3918      done
3919      # Only check the string length outside the loop.
3920      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3921      teststring=
3922      # Add a significant safety factor because C++ compilers can tack on
3923      # massive amounts of additional arguments before passing them to the
3924      # linker.  It appears as though 1/2 is a usable value.
3925      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3926    fi
3927    ;;
3928  esac
3929
3930fi
3931
3932if test -n $lt_cv_sys_max_cmd_len ; then
3933  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3934echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3935else
3936  { echo "$as_me:$LINENO: result: none" >&5
3937echo "${ECHO_T}none" >&6; }
3938fi
3939max_cmd_len=$lt_cv_sys_max_cmd_len
3940
3941
3942
3943
3944
3945
3946: ${CP="cp -f"}
3947: ${MV="mv -f"}
3948: ${RM="rm -f"}
3949
3950{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3951echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3952# Try some XSI features
3953xsi_shell=no
3954( _lt_dummy="a/b/c"
3955  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3956      = c,a/b,, \
3957    && eval 'test $(( 1 + 1 )) -eq 2 \
3958    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3959  && xsi_shell=yes
3960{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
3961echo "${ECHO_T}$xsi_shell" >&6; }
3962
3963
3964{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3965echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3966lt_shell_append=no
3967( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3968    >/dev/null 2>&1 \
3969  && lt_shell_append=yes
3970{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3971echo "${ECHO_T}$lt_shell_append" >&6; }
3972
3973
3974if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3975  lt_unset=unset
3976else
3977  lt_unset=false
3978fi
3979
3980
3981
3982
3983
3984# test EBCDIC or ASCII
3985case `echo X|tr X '\101'` in
3986 A) # ASCII based system
3987    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3988  lt_SP2NL='tr \040 \012'
3989  lt_NL2SP='tr \015\012 \040\040'
3990  ;;
3991 *) # EBCDIC based system
3992  lt_SP2NL='tr \100 \n'
3993  lt_NL2SP='tr \r\n \100\100'
3994  ;;
3995esac
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4006echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4007if test "${lt_cv_ld_reload_flag+set}" = set; then
4008  echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010  lt_cv_ld_reload_flag='-r'
4011fi
4012{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4013echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4014reload_flag=$lt_cv_ld_reload_flag
4015case $reload_flag in
4016"" | " "*) ;;
4017*) reload_flag=" $reload_flag" ;;
4018esac
4019reload_cmds='$LD$reload_flag -o $output$reload_objs'
4020case $host_os in
4021  darwin*)
4022    if test "$GCC" = yes; then
4023      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4024    else
4025      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4026    fi
4027    ;;
4028esac
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038if test -n "$ac_tool_prefix"; then
4039  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4040set dummy ${ac_tool_prefix}objdump; ac_word=$2
4041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4043if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4044  echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046  if test -n "$OBJDUMP"; then
4047  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054  for ac_exec_ext in '' $ac_executable_extensions; do
4055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061done
4062IFS=$as_save_IFS
4063
4064fi
4065fi
4066OBJDUMP=$ac_cv_prog_OBJDUMP
4067if test -n "$OBJDUMP"; then
4068  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4069echo "${ECHO_T}$OBJDUMP" >&6; }
4070else
4071  { echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6; }
4073fi
4074
4075
4076fi
4077if test -z "$ac_cv_prog_OBJDUMP"; then
4078  ac_ct_OBJDUMP=$OBJDUMP
4079  # Extract the first word of "objdump", so it can be a program name with args.
4080set dummy objdump; ac_word=$2
4081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4083if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  if test -n "$ac_ct_OBJDUMP"; then
4087  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094  for ac_exec_ext in '' $ac_executable_extensions; do
4095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098    break 2
4099  fi
4100done
4101done
4102IFS=$as_save_IFS
4103
4104fi
4105fi
4106ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4107if test -n "$ac_ct_OBJDUMP"; then
4108  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4109echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4110else
4111  { echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6; }
4113fi
4114
4115  if test "x$ac_ct_OBJDUMP" = x; then
4116    OBJDUMP="false"
4117  else
4118    case $cross_compiling:$ac_tool_warned in
4119yes:)
4120{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4121whose name does not start with the host triplet.  If you think this
4122configuration is useful to you, please write to autoconf@gnu.org." >&5
4123echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4124whose name does not start with the host triplet.  If you think this
4125configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4126ac_tool_warned=yes ;;
4127esac
4128    OBJDUMP=$ac_ct_OBJDUMP
4129  fi
4130else
4131  OBJDUMP="$ac_cv_prog_OBJDUMP"
4132fi
4133
4134test -z "$OBJDUMP" && OBJDUMP=objdump
4135
4136
4137
4138
4139
4140
4141{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4142echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4143if test "${lt_cv_deplibs_check_method+set}" = set; then
4144  echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146  lt_cv_file_magic_cmd='$MAGIC_CMD'
4147lt_cv_file_magic_test_file=
4148lt_cv_deplibs_check_method='unknown'
4149# Need to set the preceding variable on all platforms that support
4150# interlibrary dependencies.
4151# 'none' -- dependencies not supported.
4152# `unknown' -- same as none, but documents that we really don't know.
4153# 'pass_all' -- all dependencies passed with no checks.
4154# 'test_compile' -- check by making test program.
4155# 'file_magic [[regex]]' -- check by looking for files in library path
4156# which responds to the $file_magic_cmd with a given extended regex.
4157# If you have `file' or equivalent on your system and you're not sure
4158# whether `pass_all' will *always* work, you probably want this one.
4159
4160case $host_os in
4161aix[4-9]*)
4162  lt_cv_deplibs_check_method=pass_all
4163  ;;
4164
4165beos*)
4166  lt_cv_deplibs_check_method=pass_all
4167  ;;
4168
4169bsdi[45]*)
4170  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4171  lt_cv_file_magic_cmd='/usr/bin/file -L'
4172  lt_cv_file_magic_test_file=/shlib/libc.so
4173  ;;
4174
4175cygwin*)
4176  # func_win32_libid is a shell function defined in ltmain.sh
4177  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4178  lt_cv_deplibs_check_method=pass_all
4179  lt_cv_file_magic_cmd='func_win32_libid'
4180  ;;
4181
4182mingw* | pw32*)
4183  # Base MSYS/MinGW do not provide the 'file' command needed by
4184  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4185  # unless we find 'file', for example because we are cross-compiling.
4186  if ( file / ) >/dev/null 2>&1; then
4187    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4188    lt_cv_file_magic_cmd='func_win32_libid'
4189  else
4190    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4191    lt_cv_file_magic_cmd='$OBJDUMP -f'
4192  fi
4193  lt_cv_deplibs_check_method=pass_all
4194  ;;
4195
4196cegcc)
4197  # use the weaker test based on 'objdump'. See mingw*.
4198  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4199  lt_cv_file_magic_cmd='$OBJDUMP -f'
4200  ;;
4201
4202darwin* | rhapsody*)
4203  lt_cv_deplibs_check_method=pass_all
4204  ;;
4205
4206freebsd* | dragonfly*)
4207  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4208    case $host_cpu in
4209    i*86 )
4210      # Not sure whether the presence of OpenBSD here was a mistake.
4211      # Let's accept both of them until this is cleared up.
4212      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4213      lt_cv_file_magic_cmd=/usr/bin/file
4214      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4215      ;;
4216    esac
4217  else
4218    lt_cv_deplibs_check_method=pass_all
4219  fi
4220  ;;
4221
4222gnu*)
4223  lt_cv_deplibs_check_method=pass_all
4224  ;;
4225
4226hpux10.20* | hpux11*)
4227  lt_cv_file_magic_cmd=/usr/bin/file
4228  case $host_cpu in
4229  ia64*)
4230    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4231    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4232    ;;
4233  hppa*64*)
4234    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]'
4235    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4236    ;;
4237  *)
4238    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4239    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4240    ;;
4241  esac
4242  ;;
4243
4244interix[3-9]*)
4245  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4246  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4247  ;;
4248
4249irix5* | irix6* | nonstopux*)
4250  case $LD in
4251  *-32|*"-32 ") libmagic=32-bit;;
4252  *-n32|*"-n32 ") libmagic=N32;;
4253  *-64|*"-64 ") libmagic=64-bit;;
4254  *) libmagic=never-match;;
4255  esac
4256  lt_cv_deplibs_check_method=pass_all
4257  ;;
4258
4259# This must be Linux ELF.
4260linux* | k*bsd*-gnu)
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264netbsd*)
4265  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4266    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4267  else
4268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4269  fi
4270  ;;
4271
4272newos6*)
4273  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4274  lt_cv_file_magic_cmd=/usr/bin/file
4275  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4276  ;;
4277
4278*nto* | *qnx*)
4279  lt_cv_deplibs_check_method=pass_all
4280  ;;
4281
4282openbsd*)
4283  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4284    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4285  else
4286    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4287  fi
4288  ;;
4289
4290osf3* | osf4* | osf5*)
4291  lt_cv_deplibs_check_method=pass_all
4292  ;;
4293
4294rdos*)
4295  lt_cv_deplibs_check_method=pass_all
4296  ;;
4297
4298solaris*)
4299  lt_cv_deplibs_check_method=pass_all
4300  ;;
4301
4302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305
4306sysv4 | sysv4.3*)
4307  case $host_vendor in
4308  motorola)
4309    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]'
4310    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4311    ;;
4312  ncr)
4313    lt_cv_deplibs_check_method=pass_all
4314    ;;
4315  sequent)
4316    lt_cv_file_magic_cmd='/bin/file'
4317    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4318    ;;
4319  sni)
4320    lt_cv_file_magic_cmd='/bin/file'
4321    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4322    lt_cv_file_magic_test_file=/lib/libc.so
4323    ;;
4324  siemens)
4325    lt_cv_deplibs_check_method=pass_all
4326    ;;
4327  pc)
4328    lt_cv_deplibs_check_method=pass_all
4329    ;;
4330  esac
4331  ;;
4332
4333tpf*)
4334  lt_cv_deplibs_check_method=pass_all
4335  ;;
4336esac
4337
4338fi
4339{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4340echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4341file_magic_cmd=$lt_cv_file_magic_cmd
4342deplibs_check_method=$lt_cv_deplibs_check_method
4343test -z "$deplibs_check_method" && deplibs_check_method=unknown
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356if test -n "$ac_tool_prefix"; then
4357  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4358set dummy ${ac_tool_prefix}ar; ac_word=$2
4359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361if test "${ac_cv_prog_AR+set}" = set; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  if test -n "$AR"; then
4365  ac_cv_prog_AR="$AR" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370  IFS=$as_save_IFS
4371  test -z "$as_dir" && as_dir=.
4372  for ac_exec_ext in '' $ac_executable_extensions; do
4373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374    ac_cv_prog_AR="${ac_tool_prefix}ar"
4375    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376    break 2
4377  fi
4378done
4379done
4380IFS=$as_save_IFS
4381
4382fi
4383fi
4384AR=$ac_cv_prog_AR
4385if test -n "$AR"; then
4386  { echo "$as_me:$LINENO: result: $AR" >&5
4387echo "${ECHO_T}$AR" >&6; }
4388else
4389  { echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6; }
4391fi
4392
4393
4394fi
4395if test -z "$ac_cv_prog_AR"; then
4396  ac_ct_AR=$AR
4397  # Extract the first word of "ar", so it can be a program name with args.
4398set dummy ar; ac_word=$2
4399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4402  echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404  if test -n "$ac_ct_AR"; then
4405  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412  for ac_exec_ext in '' $ac_executable_extensions; do
4413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414    ac_cv_prog_ac_ct_AR="ar"
4415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416    break 2
4417  fi
4418done
4419done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424ac_ct_AR=$ac_cv_prog_ac_ct_AR
4425if test -n "$ac_ct_AR"; then
4426  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4427echo "${ECHO_T}$ac_ct_AR" >&6; }
4428else
4429  { echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6; }
4431fi
4432
4433  if test "x$ac_ct_AR" = x; then
4434    AR="false"
4435  else
4436    case $cross_compiling:$ac_tool_warned in
4437yes:)
4438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4439whose name does not start with the host triplet.  If you think this
4440configuration is useful to you, please write to autoconf@gnu.org." >&5
4441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4442whose name does not start with the host triplet.  If you think this
4443configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4444ac_tool_warned=yes ;;
4445esac
4446    AR=$ac_ct_AR
4447  fi
4448else
4449  AR="$ac_cv_prog_AR"
4450fi
4451
4452test -z "$AR" && AR=ar
4453test -z "$AR_FLAGS" && AR_FLAGS=cru
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465if test -n "$ac_tool_prefix"; then
4466  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4467set dummy ${ac_tool_prefix}strip; ac_word=$2
4468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_STRIP+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  if test -n "$STRIP"; then
4474  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481  for ac_exec_ext in '' $ac_executable_extensions; do
4482  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4483    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488done
4489IFS=$as_save_IFS
4490
4491fi
4492fi
4493STRIP=$ac_cv_prog_STRIP
4494if test -n "$STRIP"; then
4495  { echo "$as_me:$LINENO: result: $STRIP" >&5
4496echo "${ECHO_T}$STRIP" >&6; }
4497else
4498  { echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6; }
4500fi
4501
4502
4503fi
4504if test -z "$ac_cv_prog_STRIP"; then
4505  ac_ct_STRIP=$STRIP
4506  # Extract the first word of "strip", so it can be a program name with args.
4507set dummy strip; ac_word=$2
4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  if test -n "$ac_ct_STRIP"; then
4514  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521  for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_prog_ac_ct_STRIP="strip"
4524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528done
4529IFS=$as_save_IFS
4530
4531fi
4532fi
4533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4534if test -n "$ac_ct_STRIP"; then
4535  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4536echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4537else
4538  { echo "$as_me:$LINENO: result: no" >&5
4539echo "${ECHO_T}no" >&6; }
4540fi
4541
4542  if test "x$ac_ct_STRIP" = x; then
4543    STRIP=":"
4544  else
4545    case $cross_compiling:$ac_tool_warned in
4546yes:)
4547{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4548whose name does not start with the host triplet.  If you think this
4549configuration is useful to you, please write to autoconf@gnu.org." >&5
4550echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4551whose name does not start with the host triplet.  If you think this
4552configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4553ac_tool_warned=yes ;;
4554esac
4555    STRIP=$ac_ct_STRIP
4556  fi
4557else
4558  STRIP="$ac_cv_prog_STRIP"
4559fi
4560
4561test -z "$STRIP" && STRIP=:
4562
4563
4564
4565
4566
4567
4568if test -n "$ac_tool_prefix"; then
4569  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573if test "${ac_cv_prog_RANLIB+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  if test -n "$RANLIB"; then
4577  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584  for ac_exec_ext in '' $ac_executable_extensions; do
4585  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588    break 2
4589  fi
4590done
4591done
4592IFS=$as_save_IFS
4593
4594fi
4595fi
4596RANLIB=$ac_cv_prog_RANLIB
4597if test -n "$RANLIB"; then
4598  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4599echo "${ECHO_T}$RANLIB" >&6; }
4600else
4601  { echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6; }
4603fi
4604
4605
4606fi
4607if test -z "$ac_cv_prog_RANLIB"; then
4608  ac_ct_RANLIB=$RANLIB
4609  # Extract the first word of "ranlib", so it can be a program name with args.
4610set dummy ranlib; ac_word=$2
4611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  if test -n "$ac_ct_RANLIB"; then
4617  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622  IFS=$as_save_IFS
4623  test -z "$as_dir" && as_dir=.
4624  for ac_exec_ext in '' $ac_executable_extensions; do
4625  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626    ac_cv_prog_ac_ct_RANLIB="ranlib"
4627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628    break 2
4629  fi
4630done
4631done
4632IFS=$as_save_IFS
4633
4634fi
4635fi
4636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4637if test -n "$ac_ct_RANLIB"; then
4638  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4639echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4640else
4641  { echo "$as_me:$LINENO: result: no" >&5
4642echo "${ECHO_T}no" >&6; }
4643fi
4644
4645  if test "x$ac_ct_RANLIB" = x; then
4646    RANLIB=":"
4647  else
4648    case $cross_compiling:$ac_tool_warned in
4649yes:)
4650{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4651whose name does not start with the host triplet.  If you think this
4652configuration is useful to you, please write to autoconf@gnu.org." >&5
4653echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4654whose name does not start with the host triplet.  If you think this
4655configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4656ac_tool_warned=yes ;;
4657esac
4658    RANLIB=$ac_ct_RANLIB
4659  fi
4660else
4661  RANLIB="$ac_cv_prog_RANLIB"
4662fi
4663
4664test -z "$RANLIB" && RANLIB=:
4665
4666
4667
4668
4669
4670
4671# Determine commands to create old-style static archives.
4672old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4673old_postinstall_cmds='chmod 644 $oldlib'
4674old_postuninstall_cmds=
4675
4676if test -n "$RANLIB"; then
4677  case $host_os in
4678  openbsd*)
4679    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4680    ;;
4681  *)
4682    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4683    ;;
4684  esac
4685  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4686fi
4687
4688
4689
4690
4691
4692
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# If no C compiler was specified, use CC.
4722LTCC=${LTCC-"$CC"}
4723
4724# If no C compiler flags were specified, use CFLAGS.
4725LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4726
4727# Allow CC to be a program name with arguments.
4728compiler=$CC
4729
4730
4731# Check for command to grab the raw symbol name followed by C symbol from nm.
4732{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4733echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4734if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737
4738# These are sane defaults that work on at least a few old systems.
4739# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4740
4741# Character class describing NM global symbol codes.
4742symcode='[BCDEGRST]'
4743
4744# Regexp to match symbols that can be accessed directly from C.
4745sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4746
4747# Define system-specific variables.
4748case $host_os in
4749aix*)
4750  symcode='[BCDT]'
4751  ;;
4752cygwin* | mingw* | pw32* | cegcc*)
4753  symcode='[ABCDGISTW]'
4754  ;;
4755hpux*)
4756  if test "$host_cpu" = ia64; then
4757    symcode='[ABCDEGRST]'
4758  fi
4759  ;;
4760irix* | nonstopux*)
4761  symcode='[BCDEGRST]'
4762  ;;
4763osf*)
4764  symcode='[BCDEGQRST]'
4765  ;;
4766solaris*)
4767  symcode='[BDRT]'
4768  ;;
4769sco3.2v5*)
4770  symcode='[DT]'
4771  ;;
4772sysv4.2uw2*)
4773  symcode='[DT]'
4774  ;;
4775sysv5* | sco5v6* | unixware* | OpenUNIX*)
4776  symcode='[ABDT]'
4777  ;;
4778sysv4)
4779  symcode='[DFNSTU]'
4780  ;;
4781esac
4782
4783# If we're using GNU nm, then use its standard symbol codes.
4784case `$NM -V 2>&1` in
4785*GNU* | *'with BFD'*)
4786  symcode='[ABCDGIRSTW]' ;;
4787esac
4788
4789# Transform an extracted symbol line into a proper C declaration.
4790# Some systems (esp. on ia64) link data and code symbols differently,
4791# so use this general approach.
4792lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4793
4794# Transform an extracted symbol line into symbol name and symbol address
4795lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4796lt_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'"
4797
4798# Handle CRLF in mingw tool chain
4799opt_cr=
4800case $build_os in
4801mingw*)
4802  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4803  ;;
4804esac
4805
4806# Try without a prefix underscore, then with it.
4807for ac_symprfx in "" "_"; do
4808
4809  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4810  symxfrm="\\1 $ac_symprfx\\2 \\2"
4811
4812  # Write the raw and C identifiers.
4813  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4814    # Fake it for dumpbin and say T for any non-static function
4815    # and D for any global variable.
4816    # Also find C++ and __fastcall symbols from MSVC++,
4817    # which start with @ or ?.
4818    lt_cv_sys_global_symbol_pipe="$AWK '"\
4819"     {last_section=section; section=\$ 3};"\
4820"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4821"     \$ 0!~/External *\|/{next};"\
4822"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4823"     {if(hide[section]) next};"\
4824"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4825"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4826"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4827"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4828"     ' prfx=^$ac_symprfx"
4829  else
4830    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4831  fi
4832
4833  # Check to see that the pipe works correctly.
4834  pipe_works=no
4835
4836  rm -f conftest*
4837  cat > conftest.$ac_ext <<_LT_EOF
4838#ifdef __cplusplus
4839extern "C" {
4840#endif
4841char nm_test_var;
4842void nm_test_func(void);
4843void nm_test_func(void){}
4844#ifdef __cplusplus
4845}
4846#endif
4847int main(){nm_test_var='a';nm_test_func();return(0);}
4848_LT_EOF
4849
4850  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851  (eval $ac_compile) 2>&5
4852  ac_status=$?
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); }; then
4855    # Now try to grab the symbols.
4856    nlist=conftest.nm
4857    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4858  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4859  ac_status=$?
4860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861  (exit $ac_status); } && test -s "$nlist"; then
4862      # Try sorting and uniquifying the output.
4863      if sort "$nlist" | uniq > "$nlist"T; then
4864	mv -f "$nlist"T "$nlist"
4865      else
4866	rm -f "$nlist"T
4867      fi
4868
4869      # Make sure that we snagged all the symbols we need.
4870      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4871	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4872	  cat <<_LT_EOF > conftest.$ac_ext
4873#ifdef __cplusplus
4874extern "C" {
4875#endif
4876
4877_LT_EOF
4878	  # Now generate the symbol file.
4879	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4880
4881	  cat <<_LT_EOF >> conftest.$ac_ext
4882
4883/* The mapping between symbol names and symbols.  */
4884const struct {
4885  const char *name;
4886  void       *address;
4887}
4888lt__PROGRAM__LTX_preloaded_symbols[] =
4889{
4890  { "@PROGRAM@", (void *) 0 },
4891_LT_EOF
4892	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4893	  cat <<\_LT_EOF >> conftest.$ac_ext
4894  {0, (void *) 0}
4895};
4896
4897/* This works around a problem in FreeBSD linker */
4898#ifdef FREEBSD_WORKAROUND
4899static const void *lt_preloaded_setup() {
4900  return lt__PROGRAM__LTX_preloaded_symbols;
4901}
4902#endif
4903
4904#ifdef __cplusplus
4905}
4906#endif
4907_LT_EOF
4908	  # Now try linking the two files.
4909	  mv conftest.$ac_objext conftstm.$ac_objext
4910	  lt_save_LIBS="$LIBS"
4911	  lt_save_CFLAGS="$CFLAGS"
4912	  LIBS="conftstm.$ac_objext"
4913	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4914	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915  (eval $ac_link) 2>&5
4916  ac_status=$?
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4919	    pipe_works=yes
4920	  fi
4921	  LIBS="$lt_save_LIBS"
4922	  CFLAGS="$lt_save_CFLAGS"
4923	else
4924	  echo "cannot find nm_test_func in $nlist" >&5
4925	fi
4926      else
4927	echo "cannot find nm_test_var in $nlist" >&5
4928      fi
4929    else
4930      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4931    fi
4932  else
4933    echo "$progname: failed program was:" >&5
4934    cat conftest.$ac_ext >&5
4935  fi
4936  rm -rf conftest* conftst*
4937
4938  # Do not use the global_symbol_pipe unless it works.
4939  if test "$pipe_works" = yes; then
4940    break
4941  else
4942    lt_cv_sys_global_symbol_pipe=
4943  fi
4944done
4945
4946fi
4947
4948if test -z "$lt_cv_sys_global_symbol_pipe"; then
4949  lt_cv_sys_global_symbol_to_cdecl=
4950fi
4951if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4952  { echo "$as_me:$LINENO: result: failed" >&5
4953echo "${ECHO_T}failed" >&6; }
4954else
4955  { echo "$as_me:$LINENO: result: ok" >&5
4956echo "${ECHO_T}ok" >&6; }
4957fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981# Check whether --enable-libtool-lock was given.
4982if test "${enable_libtool_lock+set}" = set; then
4983  enableval=$enable_libtool_lock;
4984fi
4985
4986test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4987
4988# Some flags need to be propagated to the compiler or linker for good
4989# libtool support.
4990case $host in
4991ia64-*-hpux*)
4992  # Find out which ABI we are using.
4993  echo 'int i;' > conftest.$ac_ext
4994  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995  (eval $ac_compile) 2>&5
4996  ac_status=$?
4997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998  (exit $ac_status); }; then
4999    case `/usr/bin/file conftest.$ac_objext` in
5000      *ELF-32*)
5001	HPUX_IA64_MODE="32"
5002	;;
5003      *ELF-64*)
5004	HPUX_IA64_MODE="64"
5005	;;
5006    esac
5007  fi
5008  rm -rf conftest*
5009  ;;
5010*-*-irix6*)
5011  # Find out which ABI we are using.
5012  echo '#line 5018 "configure"' > conftest.$ac_ext
5013  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014  (eval $ac_compile) 2>&5
5015  ac_status=$?
5016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017  (exit $ac_status); }; then
5018    if test "$lt_cv_prog_gnu_ld" = yes; then
5019      case `/usr/bin/file conftest.$ac_objext` in
5020	*32-bit*)
5021	  LD="${LD-ld} -melf32bsmip"
5022	  ;;
5023	*N32*)
5024	  LD="${LD-ld} -melf32bmipn32"
5025	  ;;
5026	*64-bit*)
5027	  LD="${LD-ld} -melf64bmip"
5028	;;
5029      esac
5030    else
5031      case `/usr/bin/file conftest.$ac_objext` in
5032	*32-bit*)
5033	  LD="${LD-ld} -32"
5034	  ;;
5035	*N32*)
5036	  LD="${LD-ld} -n32"
5037	  ;;
5038	*64-bit*)
5039	  LD="${LD-ld} -64"
5040	  ;;
5041      esac
5042    fi
5043  fi
5044  rm -rf conftest*
5045  ;;
5046
5047x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5048s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5049  # Find out which ABI we are using.
5050  echo 'int i;' > conftest.$ac_ext
5051  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052  (eval $ac_compile) 2>&5
5053  ac_status=$?
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; then
5056    case `/usr/bin/file conftest.o` in
5057      *32-bit*)
5058	case $host in
5059	  x86_64-*kfreebsd*-gnu)
5060	    LD="${LD-ld} -m elf_i386_fbsd"
5061	    ;;
5062	  x86_64-*linux*)
5063	    LD="${LD-ld} -m elf_i386"
5064	    ;;
5065	  ppc64-*linux*|powerpc64-*linux*)
5066	    LD="${LD-ld} -m elf32ppclinux"
5067	    ;;
5068	  s390x-*linux*)
5069	    LD="${LD-ld} -m elf_s390"
5070	    ;;
5071	  sparc64-*linux*)
5072	    LD="${LD-ld} -m elf32_sparc"
5073	    ;;
5074	esac
5075	;;
5076      *64-bit*)
5077	case $host in
5078	  x86_64-*kfreebsd*-gnu)
5079	    LD="${LD-ld} -m elf_x86_64_fbsd"
5080	    ;;
5081	  x86_64-*linux*)
5082	    LD="${LD-ld} -m elf_x86_64"
5083	    ;;
5084	  ppc*-*linux*|powerpc*-*linux*)
5085	    LD="${LD-ld} -m elf64ppc"
5086	    ;;
5087	  s390*-*linux*|s390*-*tpf*)
5088	    LD="${LD-ld} -m elf64_s390"
5089	    ;;
5090	  sparc*-*linux*)
5091	    LD="${LD-ld} -m elf64_sparc"
5092	    ;;
5093	esac
5094	;;
5095    esac
5096  fi
5097  rm -rf conftest*
5098  ;;
5099
5100*-*-sco3.2v5*)
5101  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5102  SAVE_CFLAGS="$CFLAGS"
5103  CFLAGS="$CFLAGS -belf"
5104  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5105echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5106if test "${lt_cv_cc_needs_belf+set}" = set; then
5107  echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109  ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115     cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h.  */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h.  */
5121
5122int
5123main ()
5124{
5125
5126  ;
5127  return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext conftest$ac_exeext
5131if { (ac_try="$ac_link"
5132case "(($ac_try" in
5133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134  *) ac_try_echo=$ac_try;;
5135esac
5136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137  (eval "$ac_link") 2>conftest.er1
5138  ac_status=$?
5139  grep -v '^ *+' conftest.er1 >conftest.err
5140  rm -f conftest.er1
5141  cat conftest.err >&5
5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); } && {
5144	 test -z "$ac_c_werror_flag" ||
5145	 test ! -s conftest.err
5146       } && test -s conftest$ac_exeext &&
5147       $as_test_x conftest$ac_exeext; then
5148  lt_cv_cc_needs_belf=yes
5149else
5150  echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
5153	lt_cv_cc_needs_belf=no
5154fi
5155
5156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5157      conftest$ac_exeext conftest.$ac_ext
5158     ac_ext=c
5159ac_cpp='$CPP $CPPFLAGS'
5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163
5164fi
5165{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5166echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5167  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5168    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5169    CFLAGS="$SAVE_CFLAGS"
5170  fi
5171  ;;
5172sparc*-*solaris*)
5173  # Find out which ABI we are using.
5174  echo 'int i;' > conftest.$ac_ext
5175  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176  (eval $ac_compile) 2>&5
5177  ac_status=$?
5178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179  (exit $ac_status); }; then
5180    case `/usr/bin/file conftest.o` in
5181    *64-bit*)
5182      case $lt_cv_prog_gnu_ld in
5183      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5184      *)
5185	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5186	  LD="${LD-ld} -64"
5187	fi
5188	;;
5189      esac
5190      ;;
5191    esac
5192  fi
5193  rm -rf conftest*
5194  ;;
5195esac
5196
5197need_locks="$enable_libtool_lock"
5198
5199
5200  case $host_os in
5201    rhapsody* | darwin*)
5202    if test -n "$ac_tool_prefix"; then
5203  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5204set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5208  echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210  if test -n "$DSYMUTIL"; then
5211  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218  for ac_exec_ext in '' $ac_executable_extensions; do
5219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225done
5226IFS=$as_save_IFS
5227
5228fi
5229fi
5230DSYMUTIL=$ac_cv_prog_DSYMUTIL
5231if test -n "$DSYMUTIL"; then
5232  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5233echo "${ECHO_T}$DSYMUTIL" >&6; }
5234else
5235  { echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6; }
5237fi
5238
5239
5240fi
5241if test -z "$ac_cv_prog_DSYMUTIL"; then
5242  ac_ct_DSYMUTIL=$DSYMUTIL
5243  # Extract the first word of "dsymutil", so it can be a program name with args.
5244set dummy dsymutil; ac_word=$2
5245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250  if test -n "$ac_ct_DSYMUTIL"; then
5251  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258  for ac_exec_ext in '' $ac_executable_extensions; do
5259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265done
5266IFS=$as_save_IFS
5267
5268fi
5269fi
5270ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5271if test -n "$ac_ct_DSYMUTIL"; then
5272  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5273echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5274else
5275  { echo "$as_me:$LINENO: result: no" >&5
5276echo "${ECHO_T}no" >&6; }
5277fi
5278
5279  if test "x$ac_ct_DSYMUTIL" = x; then
5280    DSYMUTIL=":"
5281  else
5282    case $cross_compiling:$ac_tool_warned in
5283yes:)
5284{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5285whose name does not start with the host triplet.  If you think this
5286configuration is useful to you, please write to autoconf@gnu.org." >&5
5287echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5288whose name does not start with the host triplet.  If you think this
5289configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5290ac_tool_warned=yes ;;
5291esac
5292    DSYMUTIL=$ac_ct_DSYMUTIL
5293  fi
5294else
5295  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5296fi
5297
5298    if test -n "$ac_tool_prefix"; then
5299  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5300set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303if test "${ac_cv_prog_NMEDIT+set}" = set; then
5304  echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306  if test -n "$NMEDIT"; then
5307  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5308else
5309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH
5311do
5312  IFS=$as_save_IFS
5313  test -z "$as_dir" && as_dir=.
5314  for ac_exec_ext in '' $ac_executable_extensions; do
5315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5318    break 2
5319  fi
5320done
5321done
5322IFS=$as_save_IFS
5323
5324fi
5325fi
5326NMEDIT=$ac_cv_prog_NMEDIT
5327if test -n "$NMEDIT"; then
5328  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5329echo "${ECHO_T}$NMEDIT" >&6; }
5330else
5331  { echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6; }
5333fi
5334
5335
5336fi
5337if test -z "$ac_cv_prog_NMEDIT"; then
5338  ac_ct_NMEDIT=$NMEDIT
5339  # Extract the first word of "nmedit", so it can be a program name with args.
5340set dummy nmedit; ac_word=$2
5341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5344  echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346  if test -n "$ac_ct_NMEDIT"; then
5347  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354  for ac_exec_ext in '' $ac_executable_extensions; do
5355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5367if test -n "$ac_ct_NMEDIT"; then
5368  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5369echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5370else
5371  { echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6; }
5373fi
5374
5375  if test "x$ac_ct_NMEDIT" = x; then
5376    NMEDIT=":"
5377  else
5378    case $cross_compiling:$ac_tool_warned in
5379yes:)
5380{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5381whose name does not start with the host triplet.  If you think this
5382configuration is useful to you, please write to autoconf@gnu.org." >&5
5383echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5384whose name does not start with the host triplet.  If you think this
5385configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5386ac_tool_warned=yes ;;
5387esac
5388    NMEDIT=$ac_ct_NMEDIT
5389  fi
5390else
5391  NMEDIT="$ac_cv_prog_NMEDIT"
5392fi
5393
5394    if test -n "$ac_tool_prefix"; then
5395  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5396set dummy ${ac_tool_prefix}lipo; ac_word=$2
5397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5399if test "${ac_cv_prog_LIPO+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  if test -n "$LIPO"; then
5403  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410  for ac_exec_ext in '' $ac_executable_extensions; do
5411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422LIPO=$ac_cv_prog_LIPO
5423if test -n "$LIPO"; then
5424  { echo "$as_me:$LINENO: result: $LIPO" >&5
5425echo "${ECHO_T}$LIPO" >&6; }
5426else
5427  { echo "$as_me:$LINENO: result: no" >&5
5428echo "${ECHO_T}no" >&6; }
5429fi
5430
5431
5432fi
5433if test -z "$ac_cv_prog_LIPO"; then
5434  ac_ct_LIPO=$LIPO
5435  # Extract the first word of "lipo", so it can be a program name with args.
5436set dummy lipo; ac_word=$2
5437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5439if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442  if test -n "$ac_ct_LIPO"; then
5443  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5444else
5445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446for as_dir in $PATH
5447do
5448  IFS=$as_save_IFS
5449  test -z "$as_dir" && as_dir=.
5450  for ac_exec_ext in '' $ac_executable_extensions; do
5451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452    ac_cv_prog_ac_ct_LIPO="lipo"
5453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454    break 2
5455  fi
5456done
5457done
5458IFS=$as_save_IFS
5459
5460fi
5461fi
5462ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5463if test -n "$ac_ct_LIPO"; then
5464  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5465echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5466else
5467  { echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6; }
5469fi
5470
5471  if test "x$ac_ct_LIPO" = x; then
5472    LIPO=":"
5473  else
5474    case $cross_compiling:$ac_tool_warned in
5475yes:)
5476{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5477whose name does not start with the host triplet.  If you think this
5478configuration is useful to you, please write to autoconf@gnu.org." >&5
5479echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5480whose name does not start with the host triplet.  If you think this
5481configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5482ac_tool_warned=yes ;;
5483esac
5484    LIPO=$ac_ct_LIPO
5485  fi
5486else
5487  LIPO="$ac_cv_prog_LIPO"
5488fi
5489
5490    if test -n "$ac_tool_prefix"; then
5491  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5492set dummy ${ac_tool_prefix}otool; ac_word=$2
5493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5495if test "${ac_cv_prog_OTOOL+set}" = set; then
5496  echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498  if test -n "$OTOOL"; then
5499  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5500else
5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502for as_dir in $PATH
5503do
5504  IFS=$as_save_IFS
5505  test -z "$as_dir" && as_dir=.
5506  for ac_exec_ext in '' $ac_executable_extensions; do
5507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510    break 2
5511  fi
5512done
5513done
5514IFS=$as_save_IFS
5515
5516fi
5517fi
5518OTOOL=$ac_cv_prog_OTOOL
5519if test -n "$OTOOL"; then
5520  { echo "$as_me:$LINENO: result: $OTOOL" >&5
5521echo "${ECHO_T}$OTOOL" >&6; }
5522else
5523  { echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6; }
5525fi
5526
5527
5528fi
5529if test -z "$ac_cv_prog_OTOOL"; then
5530  ac_ct_OTOOL=$OTOOL
5531  # Extract the first word of "otool", so it can be a program name with args.
5532set dummy otool; ac_word=$2
5533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5536  echo $ECHO_N "(cached) $ECHO_C" >&6
5537else
5538  if test -n "$ac_ct_OTOOL"; then
5539  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5540else
5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542for as_dir in $PATH
5543do
5544  IFS=$as_save_IFS
5545  test -z "$as_dir" && as_dir=.
5546  for ac_exec_ext in '' $ac_executable_extensions; do
5547  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548    ac_cv_prog_ac_ct_OTOOL="otool"
5549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550    break 2
5551  fi
5552done
5553done
5554IFS=$as_save_IFS
5555
5556fi
5557fi
5558ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5559if test -n "$ac_ct_OTOOL"; then
5560  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5561echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5562else
5563  { echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6; }
5565fi
5566
5567  if test "x$ac_ct_OTOOL" = x; then
5568    OTOOL=":"
5569  else
5570    case $cross_compiling:$ac_tool_warned in
5571yes:)
5572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5573whose name does not start with the host triplet.  If you think this
5574configuration is useful to you, please write to autoconf@gnu.org." >&5
5575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5576whose name does not start with the host triplet.  If you think this
5577configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5578ac_tool_warned=yes ;;
5579esac
5580    OTOOL=$ac_ct_OTOOL
5581  fi
5582else
5583  OTOOL="$ac_cv_prog_OTOOL"
5584fi
5585
5586    if test -n "$ac_tool_prefix"; then
5587  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5588set dummy ${ac_tool_prefix}otool64; ac_word=$2
5589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591if test "${ac_cv_prog_OTOOL64+set}" = set; then
5592  echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594  if test -n "$OTOOL64"; then
5595  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600  IFS=$as_save_IFS
5601  test -z "$as_dir" && as_dir=.
5602  for ac_exec_ext in '' $ac_executable_extensions; do
5603  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606    break 2
5607  fi
5608done
5609done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614OTOOL64=$ac_cv_prog_OTOOL64
5615if test -n "$OTOOL64"; then
5616  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5617echo "${ECHO_T}$OTOOL64" >&6; }
5618else
5619  { echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6; }
5621fi
5622
5623
5624fi
5625if test -z "$ac_cv_prog_OTOOL64"; then
5626  ac_ct_OTOOL64=$OTOOL64
5627  # Extract the first word of "otool64", so it can be a program name with args.
5628set dummy otool64; ac_word=$2
5629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5631if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5632  echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634  if test -n "$ac_ct_OTOOL64"; then
5635  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  test -z "$as_dir" && as_dir=.
5642  for ac_exec_ext in '' $ac_executable_extensions; do
5643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644    ac_cv_prog_ac_ct_OTOOL64="otool64"
5645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646    break 2
5647  fi
5648done
5649done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5655if test -n "$ac_ct_OTOOL64"; then
5656  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5657echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5658else
5659  { echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6; }
5661fi
5662
5663  if test "x$ac_ct_OTOOL64" = x; then
5664    OTOOL64=":"
5665  else
5666    case $cross_compiling:$ac_tool_warned in
5667yes:)
5668{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5669whose name does not start with the host triplet.  If you think this
5670configuration is useful to you, please write to autoconf@gnu.org." >&5
5671echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5672whose name does not start with the host triplet.  If you think this
5673configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5674ac_tool_warned=yes ;;
5675esac
5676    OTOOL64=$ac_ct_OTOOL64
5677  fi
5678else
5679  OTOOL64="$ac_cv_prog_OTOOL64"
5680fi
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5709echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5710if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713  lt_cv_apple_cc_single_mod=no
5714      if test -z "${LT_MULTI_MODULE}"; then
5715	# By default we will add the -single_module flag. You can override
5716	# by either setting the environment variable LT_MULTI_MODULE
5717	# non-empty at configure time, or by adding -multi_module to the
5718	# link flags.
5719	rm -rf libconftest.dylib*
5720	echo "int foo(void){return 1;}" > conftest.c
5721	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5722-dynamiclib -Wl,-single_module conftest.c" >&5
5723	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5724	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5725        _lt_result=$?
5726	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5727	  lt_cv_apple_cc_single_mod=yes
5728	else
5729	  cat conftest.err >&5
5730	fi
5731	rm -rf libconftest.dylib*
5732	rm -f conftest.*
5733      fi
5734fi
5735{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5736echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5737    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5738echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5739if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5740  echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742  lt_cv_ld_exported_symbols_list=no
5743      save_LDFLAGS=$LDFLAGS
5744      echo "_main" > conftest.sym
5745      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5746      cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h.  */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h.  */
5752
5753int
5754main ()
5755{
5756
5757  ;
5758  return 0;
5759}
5760_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext
5762if { (ac_try="$ac_link"
5763case "(($ac_try" in
5764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765  *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768  (eval "$ac_link") 2>conftest.er1
5769  ac_status=$?
5770  grep -v '^ *+' conftest.er1 >conftest.err
5771  rm -f conftest.er1
5772  cat conftest.err >&5
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); } && {
5775	 test -z "$ac_c_werror_flag" ||
5776	 test ! -s conftest.err
5777       } && test -s conftest$ac_exeext &&
5778       $as_test_x conftest$ac_exeext; then
5779  lt_cv_ld_exported_symbols_list=yes
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784	lt_cv_ld_exported_symbols_list=no
5785fi
5786
5787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788      conftest$ac_exeext conftest.$ac_ext
5789	LDFLAGS="$save_LDFLAGS"
5790
5791fi
5792{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5793echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5794    case $host_os in
5795    rhapsody* | darwin1.[012])
5796      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5797    darwin1.*)
5798      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5799    darwin*) # darwin 5.x on
5800      # if running on 10.5 or later, the deployment target defaults
5801      # to the OS version, if on x86, and 10.4, the deployment
5802      # target defaults to 10.4. Don't you love it?
5803      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5804	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5805	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5806	10.[012]*)
5807	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5808	10.*)
5809	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5810      esac
5811    ;;
5812  esac
5813    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5814      _lt_dar_single_mod='$single_module'
5815    fi
5816    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5817      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5818    else
5819      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5820    fi
5821    if test "$DSYMUTIL" != ":"; then
5822      _lt_dsymutil='~$DSYMUTIL $lib || :'
5823    else
5824      _lt_dsymutil=
5825    fi
5826    ;;
5827  esac
5828
5829ac_ext=c
5830ac_cpp='$CPP $CPPFLAGS'
5831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5835echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5836# On Suns, sometimes $CPP names a directory.
5837if test -n "$CPP" && test -d "$CPP"; then
5838  CPP=
5839fi
5840if test -z "$CPP"; then
5841  if test "${ac_cv_prog_CPP+set}" = set; then
5842  echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844      # Double quotes because CPP needs to be expanded
5845    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5846    do
5847      ac_preproc_ok=false
5848for ac_c_preproc_warn_flag in '' yes
5849do
5850  # Use a header file that comes with gcc, so configuring glibc
5851  # with a fresh cross-compiler works.
5852  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5853  # <limits.h> exists even on freestanding compilers.
5854  # On the NeXT, cc -E runs the code through the compiler's parser,
5855  # not just through cpp. "Syntax error" is here to catch this case.
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#ifdef __STDC__
5863# include <limits.h>
5864#else
5865# include <assert.h>
5866#endif
5867		     Syntax error
5868_ACEOF
5869if { (ac_try="$ac_cpp conftest.$ac_ext"
5870case "(($ac_try" in
5871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872  *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876  ac_status=$?
5877  grep -v '^ *+' conftest.er1 >conftest.err
5878  rm -f conftest.er1
5879  cat conftest.err >&5
5880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); } >/dev/null && {
5882	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883	 test ! -s conftest.err
5884       }; then
5885  :
5886else
5887  echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890  # Broken: fails on valid input.
5891continue
5892fi
5893
5894rm -f conftest.err conftest.$ac_ext
5895
5896  # OK, works on sane cases.  Now check whether nonexistent headers
5897  # can be detected and how.
5898  cat >conftest.$ac_ext <<_ACEOF
5899/* confdefs.h.  */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h.  */
5904#include <ac_nonexistent.h>
5905_ACEOF
5906if { (ac_try="$ac_cpp conftest.$ac_ext"
5907case "(($ac_try" in
5908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909  *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5913  ac_status=$?
5914  grep -v '^ *+' conftest.er1 >conftest.err
5915  rm -f conftest.er1
5916  cat conftest.err >&5
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); } >/dev/null && {
5919	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5920	 test ! -s conftest.err
5921       }; then
5922  # Broken: success on invalid input.
5923continue
5924else
5925  echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928  # Passes both tests.
5929ac_preproc_ok=:
5930break
5931fi
5932
5933rm -f conftest.err conftest.$ac_ext
5934
5935done
5936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5937rm -f conftest.err conftest.$ac_ext
5938if $ac_preproc_ok; then
5939  break
5940fi
5941
5942    done
5943    ac_cv_prog_CPP=$CPP
5944
5945fi
5946  CPP=$ac_cv_prog_CPP
5947else
5948  ac_cv_prog_CPP=$CPP
5949fi
5950{ echo "$as_me:$LINENO: result: $CPP" >&5
5951echo "${ECHO_T}$CPP" >&6; }
5952ac_preproc_ok=false
5953for ac_c_preproc_warn_flag in '' yes
5954do
5955  # Use a header file that comes with gcc, so configuring glibc
5956  # with a fresh cross-compiler works.
5957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5958  # <limits.h> exists even on freestanding compilers.
5959  # On the NeXT, cc -E runs the code through the compiler's parser,
5960  # not just through cpp. "Syntax error" is here to catch this case.
5961  cat >conftest.$ac_ext <<_ACEOF
5962/* confdefs.h.  */
5963_ACEOF
5964cat confdefs.h >>conftest.$ac_ext
5965cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h.  */
5967#ifdef __STDC__
5968# include <limits.h>
5969#else
5970# include <assert.h>
5971#endif
5972		     Syntax error
5973_ACEOF
5974if { (ac_try="$ac_cpp conftest.$ac_ext"
5975case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981  ac_status=$?
5982  grep -v '^ *+' conftest.er1 >conftest.err
5983  rm -f conftest.er1
5984  cat conftest.err >&5
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); } >/dev/null && {
5987	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988	 test ! -s conftest.err
5989       }; then
5990  :
5991else
5992  echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995  # Broken: fails on valid input.
5996continue
5997fi
5998
5999rm -f conftest.err conftest.$ac_ext
6000
6001  # OK, works on sane cases.  Now check whether nonexistent headers
6002  # can be detected and how.
6003  cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009#include <ac_nonexistent.h>
6010_ACEOF
6011if { (ac_try="$ac_cpp conftest.$ac_ext"
6012case "(($ac_try" in
6013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014  *) ac_try_echo=$ac_try;;
6015esac
6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6018  ac_status=$?
6019  grep -v '^ *+' conftest.er1 >conftest.err
6020  rm -f conftest.er1
6021  cat conftest.err >&5
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); } >/dev/null && {
6024	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6025	 test ! -s conftest.err
6026       }; then
6027  # Broken: success on invalid input.
6028continue
6029else
6030  echo "$as_me: failed program was:" >&5
6031sed 's/^/| /' conftest.$ac_ext >&5
6032
6033  # Passes both tests.
6034ac_preproc_ok=:
6035break
6036fi
6037
6038rm -f conftest.err conftest.$ac_ext
6039
6040done
6041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042rm -f conftest.err conftest.$ac_ext
6043if $ac_preproc_ok; then
6044  :
6045else
6046  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6047See \`config.log' for more details." >&5
6048echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6049See \`config.log' for more details." >&2;}
6050   { (exit 1); exit 1; }; }
6051fi
6052
6053ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059
6060{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6061echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6062if test "${ac_cv_header_stdc+set}" = set; then
6063  echo $ECHO_N "(cached) $ECHO_C" >&6
6064else
6065  cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071#include <stdlib.h>
6072#include <stdarg.h>
6073#include <string.h>
6074#include <float.h>
6075
6076int
6077main ()
6078{
6079
6080  ;
6081  return 0;
6082}
6083_ACEOF
6084rm -f conftest.$ac_objext
6085if { (ac_try="$ac_compile"
6086case "(($ac_try" in
6087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088  *) ac_try_echo=$ac_try;;
6089esac
6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091  (eval "$ac_compile") 2>conftest.er1
6092  ac_status=$?
6093  grep -v '^ *+' conftest.er1 >conftest.err
6094  rm -f conftest.er1
6095  cat conftest.err >&5
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); } && {
6098	 test -z "$ac_c_werror_flag" ||
6099	 test ! -s conftest.err
6100       } && test -s conftest.$ac_objext; then
6101  ac_cv_header_stdc=yes
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106	ac_cv_header_stdc=no
6107fi
6108
6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110
6111if test $ac_cv_header_stdc = yes; then
6112  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6113  cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h.  */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h.  */
6119#include <string.h>
6120
6121_ACEOF
6122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123  $EGREP "memchr" >/dev/null 2>&1; then
6124  :
6125else
6126  ac_cv_header_stdc=no
6127fi
6128rm -f -r conftest*
6129
6130fi
6131
6132if test $ac_cv_header_stdc = yes; then
6133  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6134  cat >conftest.$ac_ext <<_ACEOF
6135/* confdefs.h.  */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h.  */
6140#include <stdlib.h>
6141
6142_ACEOF
6143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6144  $EGREP "free" >/dev/null 2>&1; then
6145  :
6146else
6147  ac_cv_header_stdc=no
6148fi
6149rm -f -r conftest*
6150
6151fi
6152
6153if test $ac_cv_header_stdc = yes; then
6154  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6155  if test "$cross_compiling" = yes; then
6156  :
6157else
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#include <ctype.h>
6165#include <stdlib.h>
6166#if ((' ' & 0x0FF) == 0x020)
6167# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6168# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6169#else
6170# define ISLOWER(c) \
6171		   (('a' <= (c) && (c) <= 'i') \
6172		     || ('j' <= (c) && (c) <= 'r') \
6173		     || ('s' <= (c) && (c) <= 'z'))
6174# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6175#endif
6176
6177#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6178int
6179main ()
6180{
6181  int i;
6182  for (i = 0; i < 256; i++)
6183    if (XOR (islower (i), ISLOWER (i))
6184	|| toupper (i) != TOUPPER (i))
6185      return 2;
6186  return 0;
6187}
6188_ACEOF
6189rm -f conftest$ac_exeext
6190if { (ac_try="$ac_link"
6191case "(($ac_try" in
6192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193  *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196  (eval "$ac_link") 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6200  { (case "(($ac_try" in
6201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202  *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205  (eval "$ac_try") 2>&5
6206  ac_status=$?
6207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208  (exit $ac_status); }; }; then
6209  :
6210else
6211  echo "$as_me: program exited with status $ac_status" >&5
6212echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215( exit $ac_status )
6216ac_cv_header_stdc=no
6217fi
6218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6219fi
6220
6221
6222fi
6223fi
6224{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6225echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6226if test $ac_cv_header_stdc = yes; then
6227
6228cat >>confdefs.h <<\_ACEOF
6229#define STDC_HEADERS 1
6230_ACEOF
6231
6232fi
6233
6234# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6245		  inttypes.h stdint.h unistd.h
6246do
6247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253  cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h.  */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h.  */
6259$ac_includes_default
6260
6261#include <$ac_header>
6262_ACEOF
6263rm -f conftest.$ac_objext
6264if { (ac_try="$ac_compile"
6265case "(($ac_try" in
6266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267  *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270  (eval "$ac_compile") 2>conftest.er1
6271  ac_status=$?
6272  grep -v '^ *+' conftest.er1 >conftest.err
6273  rm -f conftest.er1
6274  cat conftest.err >&5
6275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276  (exit $ac_status); } && {
6277	 test -z "$ac_c_werror_flag" ||
6278	 test ! -s conftest.err
6279       } && test -s conftest.$ac_objext; then
6280  eval "$as_ac_Header=yes"
6281else
6282  echo "$as_me: failed program was:" >&5
6283sed 's/^/| /' conftest.$ac_ext >&5
6284
6285	eval "$as_ac_Header=no"
6286fi
6287
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290ac_res=`eval echo '${'$as_ac_Header'}'`
6291	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6292echo "${ECHO_T}$ac_res" >&6; }
6293if test `eval echo '${'$as_ac_Header'}'` = yes; then
6294  cat >>confdefs.h <<_ACEOF
6295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6296_ACEOF
6297
6298fi
6299
6300done
6301
6302
6303
6304for ac_header in dlfcn.h
6305do
6306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6310  echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312  cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h.  */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h.  */
6318$ac_includes_default
6319
6320#include <$ac_header>
6321_ACEOF
6322rm -f conftest.$ac_objext
6323if { (ac_try="$ac_compile"
6324case "(($ac_try" in
6325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326  *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329  (eval "$ac_compile") 2>conftest.er1
6330  ac_status=$?
6331  grep -v '^ *+' conftest.er1 >conftest.err
6332  rm -f conftest.er1
6333  cat conftest.err >&5
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } && {
6336	 test -z "$ac_c_werror_flag" ||
6337	 test ! -s conftest.err
6338       } && test -s conftest.$ac_objext; then
6339  eval "$as_ac_Header=yes"
6340else
6341  echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344	eval "$as_ac_Header=no"
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349ac_res=`eval echo '${'$as_ac_Header'}'`
6350	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6351echo "${ECHO_T}$ac_res" >&6; }
6352if test `eval echo '${'$as_ac_Header'}'` = yes; then
6353  cat >>confdefs.h <<_ACEOF
6354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6355_ACEOF
6356
6357fi
6358
6359done
6360
6361
6362
6363# Set options
6364enable_win32_dll=yes
6365
6366case $host in
6367*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6368  if test -n "$ac_tool_prefix"; then
6369  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6370set dummy ${ac_tool_prefix}as; ac_word=$2
6371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373if test "${ac_cv_prog_AS+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  if test -n "$AS"; then
6377  ac_cv_prog_AS="$AS" # Let the user override the test.
6378else
6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382  IFS=$as_save_IFS
6383  test -z "$as_dir" && as_dir=.
6384  for ac_exec_ext in '' $ac_executable_extensions; do
6385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386    ac_cv_prog_AS="${ac_tool_prefix}as"
6387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388    break 2
6389  fi
6390done
6391done
6392IFS=$as_save_IFS
6393
6394fi
6395fi
6396AS=$ac_cv_prog_AS
6397if test -n "$AS"; then
6398  { echo "$as_me:$LINENO: result: $AS" >&5
6399echo "${ECHO_T}$AS" >&6; }
6400else
6401  { echo "$as_me:$LINENO: result: no" >&5
6402echo "${ECHO_T}no" >&6; }
6403fi
6404
6405
6406fi
6407if test -z "$ac_cv_prog_AS"; then
6408  ac_ct_AS=$AS
6409  # Extract the first word of "as", so it can be a program name with args.
6410set dummy as; ac_word=$2
6411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6414  echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
6416  if test -n "$ac_ct_AS"; then
6417  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6418else
6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420for as_dir in $PATH
6421do
6422  IFS=$as_save_IFS
6423  test -z "$as_dir" && as_dir=.
6424  for ac_exec_ext in '' $ac_executable_extensions; do
6425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426    ac_cv_prog_ac_ct_AS="as"
6427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428    break 2
6429  fi
6430done
6431done
6432IFS=$as_save_IFS
6433
6434fi
6435fi
6436ac_ct_AS=$ac_cv_prog_ac_ct_AS
6437if test -n "$ac_ct_AS"; then
6438  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6439echo "${ECHO_T}$ac_ct_AS" >&6; }
6440else
6441  { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
6443fi
6444
6445  if test "x$ac_ct_AS" = x; then
6446    AS="false"
6447  else
6448    case $cross_compiling:$ac_tool_warned in
6449yes:)
6450{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6451whose name does not start with the host triplet.  If you think this
6452configuration is useful to you, please write to autoconf@gnu.org." >&5
6453echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6454whose name does not start with the host triplet.  If you think this
6455configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458    AS=$ac_ct_AS
6459  fi
6460else
6461  AS="$ac_cv_prog_AS"
6462fi
6463
6464  if test -n "$ac_tool_prefix"; then
6465  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6466set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  if test -n "$DLLTOOL"; then
6473  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480  for ac_exec_ext in '' $ac_executable_extensions; do
6481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492DLLTOOL=$ac_cv_prog_DLLTOOL
6493if test -n "$DLLTOOL"; then
6494  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6495echo "${ECHO_T}$DLLTOOL" >&6; }
6496else
6497  { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6499fi
6500
6501
6502fi
6503if test -z "$ac_cv_prog_DLLTOOL"; then
6504  ac_ct_DLLTOOL=$DLLTOOL
6505  # Extract the first word of "dlltool", so it can be a program name with args.
6506set dummy dlltool; ac_word=$2
6507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6510  echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512  if test -n "$ac_ct_DLLTOOL"; then
6513  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
6517do
6518  IFS=$as_save_IFS
6519  test -z "$as_dir" && as_dir=.
6520  for ac_exec_ext in '' $ac_executable_extensions; do
6521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524    break 2
6525  fi
6526done
6527done
6528IFS=$as_save_IFS
6529
6530fi
6531fi
6532ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6533if test -n "$ac_ct_DLLTOOL"; then
6534  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6535echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6536else
6537  { echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6; }
6539fi
6540
6541  if test "x$ac_ct_DLLTOOL" = x; then
6542    DLLTOOL="false"
6543  else
6544    case $cross_compiling:$ac_tool_warned in
6545yes:)
6546{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6547whose name does not start with the host triplet.  If you think this
6548configuration is useful to you, please write to autoconf@gnu.org." >&5
6549echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6550whose name does not start with the host triplet.  If you think this
6551configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554    DLLTOOL=$ac_ct_DLLTOOL
6555  fi
6556else
6557  DLLTOOL="$ac_cv_prog_DLLTOOL"
6558fi
6559
6560  if test -n "$ac_tool_prefix"; then
6561  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}objdump; ac_word=$2
6563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568  if test -n "$OBJDUMP"; then
6569  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574  IFS=$as_save_IFS
6575  test -z "$as_dir" && as_dir=.
6576  for ac_exec_ext in '' $ac_executable_extensions; do
6577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580    break 2
6581  fi
6582done
6583done
6584IFS=$as_save_IFS
6585
6586fi
6587fi
6588OBJDUMP=$ac_cv_prog_OBJDUMP
6589if test -n "$OBJDUMP"; then
6590  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6591echo "${ECHO_T}$OBJDUMP" >&6; }
6592else
6593  { echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6; }
6595fi
6596
6597
6598fi
6599if test -z "$ac_cv_prog_OBJDUMP"; then
6600  ac_ct_OBJDUMP=$OBJDUMP
6601  # Extract the first word of "objdump", so it can be a program name with args.
6602set dummy objdump; ac_word=$2
6603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6605if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6606  echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608  if test -n "$ac_ct_OBJDUMP"; then
6609  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614  IFS=$as_save_IFS
6615  test -z "$as_dir" && as_dir=.
6616  for ac_exec_ext in '' $ac_executable_extensions; do
6617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620    break 2
6621  fi
6622done
6623done
6624IFS=$as_save_IFS
6625
6626fi
6627fi
6628ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6629if test -n "$ac_ct_OBJDUMP"; then
6630  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6631echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6632else
6633  { echo "$as_me:$LINENO: result: no" >&5
6634echo "${ECHO_T}no" >&6; }
6635fi
6636
6637  if test "x$ac_ct_OBJDUMP" = x; then
6638    OBJDUMP="false"
6639  else
6640    case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6643whose name does not start with the host triplet.  If you think this
6644configuration is useful to you, please write to autoconf@gnu.org." >&5
6645echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6646whose name does not start with the host triplet.  If you think this
6647configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6648ac_tool_warned=yes ;;
6649esac
6650    OBJDUMP=$ac_ct_OBJDUMP
6651  fi
6652else
6653  OBJDUMP="$ac_cv_prog_OBJDUMP"
6654fi
6655
6656  ;;
6657esac
6658
6659test -z "$AS" && AS=as
6660
6661
6662
6663
6664
6665test -z "$DLLTOOL" && DLLTOOL=dlltool
6666
6667
6668
6669
6670
6671test -z "$OBJDUMP" && OBJDUMP=objdump
6672
6673
6674
6675
6676
6677
6678
6679        enable_dlopen=no
6680
6681
6682
6683            # Check whether --enable-shared was given.
6684if test "${enable_shared+set}" = set; then
6685  enableval=$enable_shared; p=${PACKAGE-default}
6686    case $enableval in
6687    yes) enable_shared=yes ;;
6688    no) enable_shared=no ;;
6689    *)
6690      enable_shared=no
6691      # Look at the argument we got.  We use all the common list separators.
6692      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6693      for pkg in $enableval; do
6694	IFS="$lt_save_ifs"
6695	if test "X$pkg" = "X$p"; then
6696	  enable_shared=yes
6697	fi
6698      done
6699      IFS="$lt_save_ifs"
6700      ;;
6701    esac
6702else
6703  enable_shared=yes
6704fi
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714  # Check whether --enable-static was given.
6715if test "${enable_static+set}" = set; then
6716  enableval=$enable_static; p=${PACKAGE-default}
6717    case $enableval in
6718    yes) enable_static=yes ;;
6719    no) enable_static=no ;;
6720    *)
6721     enable_static=no
6722      # Look at the argument we got.  We use all the common list separators.
6723      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6724      for pkg in $enableval; do
6725	IFS="$lt_save_ifs"
6726	if test "X$pkg" = "X$p"; then
6727	  enable_static=yes
6728	fi
6729      done
6730      IFS="$lt_save_ifs"
6731      ;;
6732    esac
6733else
6734  enable_static=yes
6735fi
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746# Check whether --with-pic was given.
6747if test "${with_pic+set}" = set; then
6748  withval=$with_pic; pic_mode="$withval"
6749else
6750  pic_mode=default
6751fi
6752
6753
6754test -z "$pic_mode" && pic_mode=default
6755
6756
6757
6758
6759
6760
6761
6762  # Check whether --enable-fast-install was given.
6763if test "${enable_fast_install+set}" = set; then
6764  enableval=$enable_fast_install; p=${PACKAGE-default}
6765    case $enableval in
6766    yes) enable_fast_install=yes ;;
6767    no) enable_fast_install=no ;;
6768    *)
6769      enable_fast_install=no
6770      # Look at the argument we got.  We use all the common list separators.
6771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6772      for pkg in $enableval; do
6773	IFS="$lt_save_ifs"
6774	if test "X$pkg" = "X$p"; then
6775	  enable_fast_install=yes
6776	fi
6777      done
6778      IFS="$lt_save_ifs"
6779      ;;
6780    esac
6781else
6782  enable_fast_install=yes
6783fi
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795# This can be used to rebuild libtool when needed
6796LIBTOOL_DEPS="$ltmain"
6797
6798# Always use our own libtool.
6799LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825test -z "$LN_S" && LN_S="ln -s"
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840if test -n "${ZSH_VERSION+set}" ; then
6841   setopt NO_GLOB_SUBST
6842fi
6843
6844{ echo "$as_me:$LINENO: checking for objdir" >&5
6845echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6846if test "${lt_cv_objdir+set}" = set; then
6847  echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849  rm -f .libs 2>/dev/null
6850mkdir .libs 2>/dev/null
6851if test -d .libs; then
6852  lt_cv_objdir=.libs
6853else
6854  # MS-DOS does not allow filenames that begin with a dot.
6855  lt_cv_objdir=_libs
6856fi
6857rmdir .libs 2>/dev/null
6858fi
6859{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6860echo "${ECHO_T}$lt_cv_objdir" >&6; }
6861objdir=$lt_cv_objdir
6862
6863
6864
6865
6866
6867cat >>confdefs.h <<_ACEOF
6868#define LT_OBJDIR "$lt_cv_objdir/"
6869_ACEOF
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887case $host_os in
6888aix3*)
6889  # AIX sometimes has problems with the GCC collect2 program.  For some
6890  # reason, if we set the COLLECT_NAMES environment variable, the problems
6891  # vanish in a puff of smoke.
6892  if test "X${COLLECT_NAMES+set}" != Xset; then
6893    COLLECT_NAMES=
6894    export COLLECT_NAMES
6895  fi
6896  ;;
6897esac
6898
6899# Sed substitution that helps us do robust quoting.  It backslashifies
6900# metacharacters that are still active within double-quoted strings.
6901sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6902
6903# Same as above, but do not quote variable references.
6904double_quote_subst='s/\(["`\\]\)/\\\1/g'
6905
6906# Sed substitution to delay expansion of an escaped shell variable in a
6907# double_quote_subst'ed string.
6908delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6909
6910# Sed substitution to delay expansion of an escaped single quote.
6911delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6912
6913# Sed substitution to avoid accidental globbing in evaled expressions
6914no_glob_subst='s/\*/\\\*/g'
6915
6916# Global variables:
6917ofile=libtool
6918can_build_shared=yes
6919
6920# All known linkers require a `.a' archive for static linking (except MSVC,
6921# which needs '.lib').
6922libext=a
6923
6924with_gnu_ld="$lt_cv_prog_gnu_ld"
6925
6926old_CC="$CC"
6927old_CFLAGS="$CFLAGS"
6928
6929# Set sane defaults for various variables
6930test -z "$CC" && CC=cc
6931test -z "$LTCC" && LTCC=$CC
6932test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6933test -z "$LD" && LD=ld
6934test -z "$ac_objext" && ac_objext=o
6935
6936for cc_temp in $compiler""; do
6937  case $cc_temp in
6938    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6939    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6940    \-*) ;;
6941    *) break;;
6942  esac
6943done
6944cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6945
6946
6947# Only perform the check for file, if the check method requires it
6948test -z "$MAGIC_CMD" && MAGIC_CMD=file
6949case $deplibs_check_method in
6950file_magic*)
6951  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6952    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6953echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6954if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  case $MAGIC_CMD in
6958[\\/*] |  ?:[\\/]*)
6959  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6960  ;;
6961*)
6962  lt_save_MAGIC_CMD="$MAGIC_CMD"
6963  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6964  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6965  for ac_dir in $ac_dummy; do
6966    IFS="$lt_save_ifs"
6967    test -z "$ac_dir" && ac_dir=.
6968    if test -f $ac_dir/${ac_tool_prefix}file; then
6969      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6970      if test -n "$file_magic_test_file"; then
6971	case $deplibs_check_method in
6972	"file_magic "*)
6973	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6974	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6975	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6976	    $EGREP "$file_magic_regex" > /dev/null; then
6977	    :
6978	  else
6979	    cat <<_LT_EOF 1>&2
6980
6981*** Warning: the command libtool uses to detect shared libraries,
6982*** $file_magic_cmd, produces output that libtool cannot recognize.
6983*** The result is that libtool may fail to recognize shared libraries
6984*** as such.  This will affect the creation of libtool libraries that
6985*** depend on shared libraries, but programs linked with such libtool
6986*** libraries will work regardless of this problem.  Nevertheless, you
6987*** may want to report the problem to your system manager and/or to
6988*** bug-libtool@gnu.org
6989
6990_LT_EOF
6991	  fi ;;
6992	esac
6993      fi
6994      break
6995    fi
6996  done
6997  IFS="$lt_save_ifs"
6998  MAGIC_CMD="$lt_save_MAGIC_CMD"
6999  ;;
7000esac
7001fi
7002
7003MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7004if test -n "$MAGIC_CMD"; then
7005  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7006echo "${ECHO_T}$MAGIC_CMD" >&6; }
7007else
7008  { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
7010fi
7011
7012
7013
7014
7015
7016if test -z "$lt_cv_path_MAGIC_CMD"; then
7017  if test -n "$ac_tool_prefix"; then
7018    { echo "$as_me:$LINENO: checking for file" >&5
7019echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7020if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7021  echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023  case $MAGIC_CMD in
7024[\\/*] |  ?:[\\/]*)
7025  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7026  ;;
7027*)
7028  lt_save_MAGIC_CMD="$MAGIC_CMD"
7029  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7030  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7031  for ac_dir in $ac_dummy; do
7032    IFS="$lt_save_ifs"
7033    test -z "$ac_dir" && ac_dir=.
7034    if test -f $ac_dir/file; then
7035      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7036      if test -n "$file_magic_test_file"; then
7037	case $deplibs_check_method in
7038	"file_magic "*)
7039	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7040	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7041	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7042	    $EGREP "$file_magic_regex" > /dev/null; then
7043	    :
7044	  else
7045	    cat <<_LT_EOF 1>&2
7046
7047*** Warning: the command libtool uses to detect shared libraries,
7048*** $file_magic_cmd, produces output that libtool cannot recognize.
7049*** The result is that libtool may fail to recognize shared libraries
7050*** as such.  This will affect the creation of libtool libraries that
7051*** depend on shared libraries, but programs linked with such libtool
7052*** libraries will work regardless of this problem.  Nevertheless, you
7053*** may want to report the problem to your system manager and/or to
7054*** bug-libtool@gnu.org
7055
7056_LT_EOF
7057	  fi ;;
7058	esac
7059      fi
7060      break
7061    fi
7062  done
7063  IFS="$lt_save_ifs"
7064  MAGIC_CMD="$lt_save_MAGIC_CMD"
7065  ;;
7066esac
7067fi
7068
7069MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7070if test -n "$MAGIC_CMD"; then
7071  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7072echo "${ECHO_T}$MAGIC_CMD" >&6; }
7073else
7074  { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
7076fi
7077
7078
7079  else
7080    MAGIC_CMD=:
7081  fi
7082fi
7083
7084  fi
7085  ;;
7086esac
7087
7088# Use C for the default configuration in the libtool script
7089
7090lt_save_CC="$CC"
7091ac_ext=c
7092ac_cpp='$CPP $CPPFLAGS'
7093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096
7097
7098# Source file extension for C test sources.
7099ac_ext=c
7100
7101# Object file extension for compiled C test sources.
7102objext=o
7103objext=$objext
7104
7105# Code to be used in simple compile tests
7106lt_simple_compile_test_code="int some_variable = 0;"
7107
7108# Code to be used in simple link tests
7109lt_simple_link_test_code='int main(){return(0);}'
7110
7111
7112
7113
7114
7115
7116
7117# If no C compiler was specified, use CC.
7118LTCC=${LTCC-"$CC"}
7119
7120# If no C compiler flags were specified, use CFLAGS.
7121LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7122
7123# Allow CC to be a program name with arguments.
7124compiler=$CC
7125
7126# Save the default compiler, since it gets overwritten when the other
7127# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7128compiler_DEFAULT=$CC
7129
7130# save warnings/boilerplate of simple test code
7131ac_outfile=conftest.$ac_objext
7132echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7134_lt_compiler_boilerplate=`cat conftest.err`
7135$RM conftest*
7136
7137ac_outfile=conftest.$ac_objext
7138echo "$lt_simple_link_test_code" >conftest.$ac_ext
7139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140_lt_linker_boilerplate=`cat conftest.err`
7141$RM -r conftest*
7142
7143
7144## CAVEAT EMPTOR:
7145## There is no encapsulation within the following macros, do not change
7146## the running order or otherwise move them around unless you know exactly
7147## what you are doing...
7148if test -n "$compiler"; then
7149
7150lt_prog_compiler_no_builtin_flag=
7151
7152if test "$GCC" = yes; then
7153  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7154
7155  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7156echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7157if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7158  echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160  lt_cv_prog_compiler_rtti_exceptions=no
7161   ac_outfile=conftest.$ac_objext
7162   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163   lt_compiler_flag="-fno-rtti -fno-exceptions"
7164   # Insert the option either (1) after the last *FLAGS variable, or
7165   # (2) before a word containing "conftest.", or (3) at the end.
7166   # Note that $ac_compile itself does not contain backslashes and begins
7167   # with a dollar sign (not a hyphen), so the echo should work correctly.
7168   # The option is referenced via a variable to avoid confusing sed.
7169   lt_compile=`echo "$ac_compile" | $SED \
7170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172   -e 's:$: $lt_compiler_flag:'`
7173   (eval echo "\"\$as_me:7179: $lt_compile\"" >&5)
7174   (eval "$lt_compile" 2>conftest.err)
7175   ac_status=$?
7176   cat conftest.err >&5
7177   echo "$as_me:7183: \$? = $ac_status" >&5
7178   if (exit $ac_status) && test -s "$ac_outfile"; then
7179     # The compiler can only warn and ignore the option if not recognized
7180     # So say no if there are warnings other than the usual output.
7181     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7182     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7184       lt_cv_prog_compiler_rtti_exceptions=yes
7185     fi
7186   fi
7187   $RM conftest*
7188
7189fi
7190{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7191echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7192
7193if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7194    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7195else
7196    :
7197fi
7198
7199fi
7200
7201
7202
7203
7204
7205
7206  lt_prog_compiler_wl=
7207lt_prog_compiler_pic=
7208lt_prog_compiler_static=
7209
7210{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7211echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7212
7213  if test "$GCC" = yes; then
7214    lt_prog_compiler_wl='-Wl,'
7215    lt_prog_compiler_static='-static'
7216
7217    case $host_os in
7218      aix*)
7219      # All AIX code is PIC.
7220      if test "$host_cpu" = ia64; then
7221	# AIX 5 now supports IA64 processor
7222	lt_prog_compiler_static='-Bstatic'
7223      fi
7224      ;;
7225
7226    amigaos*)
7227      case $host_cpu in
7228      powerpc)
7229            # see comment about AmigaOS4 .so support
7230            lt_prog_compiler_pic='-fPIC'
7231        ;;
7232      m68k)
7233            # FIXME: we need at least 68020 code to build shared libraries, but
7234            # adding the `-m68020' flag to GCC prevents building anything better,
7235            # like `-m68040'.
7236            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7237        ;;
7238      esac
7239      ;;
7240
7241    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7242      # PIC is the default for these OSes.
7243      ;;
7244
7245    mingw* | cygwin* | pw32* | os2* | cegcc*)
7246      # This hack is so that the source file can tell whether it is being
7247      # built for inclusion in a dll (and should export symbols for example).
7248      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7249      # (--disable-auto-import) libraries
7250      lt_prog_compiler_pic='-DDLL_EXPORT'
7251      ;;
7252
7253    darwin* | rhapsody*)
7254      # PIC is the default on this platform
7255      # Common symbols not allowed in MH_DYLIB files
7256      lt_prog_compiler_pic='-fno-common'
7257      ;;
7258
7259    hpux*)
7260      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7261      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7262      # sets the default TLS model and affects inlining.
7263      case $host_cpu in
7264      hppa*64*)
7265	# +Z the default
7266	;;
7267      *)
7268	lt_prog_compiler_pic='-fPIC'
7269	;;
7270      esac
7271      ;;
7272
7273    interix[3-9]*)
7274      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7275      # Instead, we relocate shared libraries at runtime.
7276      ;;
7277
7278    msdosdjgpp*)
7279      # Just because we use GCC doesn't mean we suddenly get shared libraries
7280      # on systems that don't support them.
7281      lt_prog_compiler_can_build_shared=no
7282      enable_shared=no
7283      ;;
7284
7285    *nto* | *qnx*)
7286      # QNX uses GNU C++, but need to define -shared option too, otherwise
7287      # it will coredump.
7288      lt_prog_compiler_pic='-fPIC -shared'
7289      ;;
7290
7291    sysv4*MP*)
7292      if test -d /usr/nec; then
7293	lt_prog_compiler_pic=-Kconform_pic
7294      fi
7295      ;;
7296
7297    *)
7298      lt_prog_compiler_pic='-fPIC'
7299      ;;
7300    esac
7301  else
7302    # PORTME Check for flag to pass linker flags through the system compiler.
7303    case $host_os in
7304    aix*)
7305      lt_prog_compiler_wl='-Wl,'
7306      if test "$host_cpu" = ia64; then
7307	# AIX 5 now supports IA64 processor
7308	lt_prog_compiler_static='-Bstatic'
7309      else
7310	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7311      fi
7312      ;;
7313
7314    mingw* | cygwin* | pw32* | os2* | cegcc*)
7315      # This hack is so that the source file can tell whether it is being
7316      # built for inclusion in a dll (and should export symbols for example).
7317      lt_prog_compiler_pic='-DDLL_EXPORT'
7318      ;;
7319
7320    hpux9* | hpux10* | hpux11*)
7321      lt_prog_compiler_wl='-Wl,'
7322      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7323      # not for PA HP-UX.
7324      case $host_cpu in
7325      hppa*64*|ia64*)
7326	# +Z the default
7327	;;
7328      *)
7329	lt_prog_compiler_pic='+Z'
7330	;;
7331      esac
7332      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7333      lt_prog_compiler_static='${wl}-a ${wl}archive'
7334      ;;
7335
7336    irix5* | irix6* | nonstopux*)
7337      lt_prog_compiler_wl='-Wl,'
7338      # PIC (with -KPIC) is the default.
7339      lt_prog_compiler_static='-non_shared'
7340      ;;
7341
7342    linux* | k*bsd*-gnu)
7343      case $cc_basename in
7344      # old Intel for x86_64 which still supported -KPIC.
7345      ecc*)
7346	lt_prog_compiler_wl='-Wl,'
7347	lt_prog_compiler_pic='-KPIC'
7348	lt_prog_compiler_static='-static'
7349        ;;
7350      # icc used to be incompatible with GCC.
7351      # ICC 10 doesn't accept -KPIC any more.
7352      icc* | ifort*)
7353	lt_prog_compiler_wl='-Wl,'
7354	lt_prog_compiler_pic='-fPIC'
7355	lt_prog_compiler_static='-static'
7356        ;;
7357      # Lahey Fortran 8.1.
7358      lf95*)
7359	lt_prog_compiler_wl='-Wl,'
7360	lt_prog_compiler_pic='--shared'
7361	lt_prog_compiler_static='--static'
7362	;;
7363      pgcc* | pgf77* | pgf90* | pgf95*)
7364        # Portland Group compilers (*not* the Pentium gcc compiler,
7365	# which looks to be a dead project)
7366	lt_prog_compiler_wl='-Wl,'
7367	lt_prog_compiler_pic='-fpic'
7368	lt_prog_compiler_static='-Bstatic'
7369        ;;
7370      ccc*)
7371        lt_prog_compiler_wl='-Wl,'
7372        # All Alpha code is PIC.
7373        lt_prog_compiler_static='-non_shared'
7374        ;;
7375      xl*)
7376	# IBM XL C 8.0/Fortran 10.1 on PPC
7377	lt_prog_compiler_wl='-Wl,'
7378	lt_prog_compiler_pic='-qpic'
7379	lt_prog_compiler_static='-qstaticlink'
7380	;;
7381      *)
7382	case `$CC -V 2>&1 | sed 5q` in
7383	*Sun\ C*)
7384	  # Sun C 5.9
7385	  lt_prog_compiler_pic='-KPIC'
7386	  lt_prog_compiler_static='-Bstatic'
7387	  lt_prog_compiler_wl='-Wl,'
7388	  ;;
7389	*Sun\ F*)
7390	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7391	  lt_prog_compiler_pic='-KPIC'
7392	  lt_prog_compiler_static='-Bstatic'
7393	  lt_prog_compiler_wl=''
7394	  ;;
7395	esac
7396	;;
7397      esac
7398      ;;
7399
7400    newsos6)
7401      lt_prog_compiler_pic='-KPIC'
7402      lt_prog_compiler_static='-Bstatic'
7403      ;;
7404
7405    *nto* | *qnx*)
7406      # QNX uses GNU C++, but need to define -shared option too, otherwise
7407      # it will coredump.
7408      lt_prog_compiler_pic='-fPIC -shared'
7409      ;;
7410
7411    osf3* | osf4* | osf5*)
7412      lt_prog_compiler_wl='-Wl,'
7413      # All OSF/1 code is PIC.
7414      lt_prog_compiler_static='-non_shared'
7415      ;;
7416
7417    rdos*)
7418      lt_prog_compiler_static='-non_shared'
7419      ;;
7420
7421    solaris*)
7422      lt_prog_compiler_pic='-KPIC'
7423      lt_prog_compiler_static='-Bstatic'
7424      case $cc_basename in
7425      f77* | f90* | f95*)
7426	lt_prog_compiler_wl='-Qoption ld ';;
7427      *)
7428	lt_prog_compiler_wl='-Wl,';;
7429      esac
7430      ;;
7431
7432    sunos4*)
7433      lt_prog_compiler_wl='-Qoption ld '
7434      lt_prog_compiler_pic='-PIC'
7435      lt_prog_compiler_static='-Bstatic'
7436      ;;
7437
7438    sysv4 | sysv4.2uw2* | sysv4.3*)
7439      lt_prog_compiler_wl='-Wl,'
7440      lt_prog_compiler_pic='-KPIC'
7441      lt_prog_compiler_static='-Bstatic'
7442      ;;
7443
7444    sysv4*MP*)
7445      if test -d /usr/nec ;then
7446	lt_prog_compiler_pic='-Kconform_pic'
7447	lt_prog_compiler_static='-Bstatic'
7448      fi
7449      ;;
7450
7451    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7452      lt_prog_compiler_wl='-Wl,'
7453      lt_prog_compiler_pic='-KPIC'
7454      lt_prog_compiler_static='-Bstatic'
7455      ;;
7456
7457    unicos*)
7458      lt_prog_compiler_wl='-Wl,'
7459      lt_prog_compiler_can_build_shared=no
7460      ;;
7461
7462    uts4*)
7463      lt_prog_compiler_pic='-pic'
7464      lt_prog_compiler_static='-Bstatic'
7465      ;;
7466
7467    *)
7468      lt_prog_compiler_can_build_shared=no
7469      ;;
7470    esac
7471  fi
7472
7473case $host_os in
7474  # For platforms which do not support PIC, -DPIC is meaningless:
7475  *djgpp*)
7476    lt_prog_compiler_pic=
7477    ;;
7478  *)
7479    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7480    ;;
7481esac
7482{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7483echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7484
7485
7486
7487
7488
7489
7490#
7491# Check to make sure the PIC flag actually works.
7492#
7493if test -n "$lt_prog_compiler_pic"; then
7494  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7495echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7496if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7497  echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499  lt_cv_prog_compiler_pic_works=no
7500   ac_outfile=conftest.$ac_objext
7501   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7502   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7503   # Insert the option either (1) after the last *FLAGS variable, or
7504   # (2) before a word containing "conftest.", or (3) at the end.
7505   # Note that $ac_compile itself does not contain backslashes and begins
7506   # with a dollar sign (not a hyphen), so the echo should work correctly.
7507   # The option is referenced via a variable to avoid confusing sed.
7508   lt_compile=`echo "$ac_compile" | $SED \
7509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7511   -e 's:$: $lt_compiler_flag:'`
7512   (eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
7513   (eval "$lt_compile" 2>conftest.err)
7514   ac_status=$?
7515   cat conftest.err >&5
7516   echo "$as_me:7522: \$? = $ac_status" >&5
7517   if (exit $ac_status) && test -s "$ac_outfile"; then
7518     # The compiler can only warn and ignore the option if not recognized
7519     # So say no if there are warnings other than the usual output.
7520     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7521     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7522     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7523       lt_cv_prog_compiler_pic_works=yes
7524     fi
7525   fi
7526   $RM conftest*
7527
7528fi
7529{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7530echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7531
7532if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7533    case $lt_prog_compiler_pic in
7534     "" | " "*) ;;
7535     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7536     esac
7537else
7538    lt_prog_compiler_pic=
7539     lt_prog_compiler_can_build_shared=no
7540fi
7541
7542fi
7543
7544
7545
7546
7547
7548
7549#
7550# Check to make sure the static flag actually works.
7551#
7552wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7553{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7554echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7555if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  lt_cv_prog_compiler_static_works=no
7559   save_LDFLAGS="$LDFLAGS"
7560   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7561   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7562   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7563     # The linker can only warn and ignore the option if not recognized
7564     # So say no if there are warnings
7565     if test -s conftest.err; then
7566       # Append any errors to the config.log.
7567       cat conftest.err 1>&5
7568       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7569       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7570       if diff conftest.exp conftest.er2 >/dev/null; then
7571         lt_cv_prog_compiler_static_works=yes
7572       fi
7573     else
7574       lt_cv_prog_compiler_static_works=yes
7575     fi
7576   fi
7577   $RM -r conftest*
7578   LDFLAGS="$save_LDFLAGS"
7579
7580fi
7581{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7582echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7583
7584if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7585    :
7586else
7587    lt_prog_compiler_static=
7588fi
7589
7590
7591
7592
7593
7594
7595
7596  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7597echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7598if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7599  echo $ECHO_N "(cached) $ECHO_C" >&6
7600else
7601  lt_cv_prog_compiler_c_o=no
7602   $RM -r conftest 2>/dev/null
7603   mkdir conftest
7604   cd conftest
7605   mkdir out
7606   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7607
7608   lt_compiler_flag="-o out/conftest2.$ac_objext"
7609   # Insert the option either (1) after the last *FLAGS variable, or
7610   # (2) before a word containing "conftest.", or (3) at the end.
7611   # Note that $ac_compile itself does not contain backslashes and begins
7612   # with a dollar sign (not a hyphen), so the echo should work correctly.
7613   lt_compile=`echo "$ac_compile" | $SED \
7614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7616   -e 's:$: $lt_compiler_flag:'`
7617   (eval echo "\"\$as_me:7623: $lt_compile\"" >&5)
7618   (eval "$lt_compile" 2>out/conftest.err)
7619   ac_status=$?
7620   cat out/conftest.err >&5
7621   echo "$as_me:7627: \$? = $ac_status" >&5
7622   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7623   then
7624     # The compiler can only warn and ignore the option if not recognized
7625     # So say no if there are warnings
7626     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7627     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7628     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7629       lt_cv_prog_compiler_c_o=yes
7630     fi
7631   fi
7632   chmod u+w . 2>&5
7633   $RM conftest*
7634   # SGI C++ compiler will create directory out/ii_files/ for
7635   # template instantiation
7636   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7637   $RM out/* && rmdir out
7638   cd ..
7639   $RM -r conftest
7640   $RM conftest*
7641
7642fi
7643{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7644echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7645
7646
7647
7648
7649
7650
7651  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7653if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7654  echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656  lt_cv_prog_compiler_c_o=no
7657   $RM -r conftest 2>/dev/null
7658   mkdir conftest
7659   cd conftest
7660   mkdir out
7661   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662
7663   lt_compiler_flag="-o out/conftest2.$ac_objext"
7664   # Insert the option either (1) after the last *FLAGS variable, or
7665   # (2) before a word containing "conftest.", or (3) at the end.
7666   # Note that $ac_compile itself does not contain backslashes and begins
7667   # with a dollar sign (not a hyphen), so the echo should work correctly.
7668   lt_compile=`echo "$ac_compile" | $SED \
7669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671   -e 's:$: $lt_compiler_flag:'`
7672   (eval echo "\"\$as_me:7678: $lt_compile\"" >&5)
7673   (eval "$lt_compile" 2>out/conftest.err)
7674   ac_status=$?
7675   cat out/conftest.err >&5
7676   echo "$as_me:7682: \$? = $ac_status" >&5
7677   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7678   then
7679     # The compiler can only warn and ignore the option if not recognized
7680     # So say no if there are warnings
7681     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7682     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7683     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7684       lt_cv_prog_compiler_c_o=yes
7685     fi
7686   fi
7687   chmod u+w . 2>&5
7688   $RM conftest*
7689   # SGI C++ compiler will create directory out/ii_files/ for
7690   # template instantiation
7691   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7692   $RM out/* && rmdir out
7693   cd ..
7694   $RM -r conftest
7695   $RM conftest*
7696
7697fi
7698{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7699echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7700
7701
7702
7703
7704hard_links="nottested"
7705if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7706  # do not overwrite the value of need_locks provided by the user
7707  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7708echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7709  hard_links=yes
7710  $RM conftest*
7711  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7712  touch conftest.a
7713  ln conftest.a conftest.b 2>&5 || hard_links=no
7714  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7715  { echo "$as_me:$LINENO: result: $hard_links" >&5
7716echo "${ECHO_T}$hard_links" >&6; }
7717  if test "$hard_links" = no; then
7718    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7719echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7720    need_locks=warn
7721  fi
7722else
7723  need_locks=no
7724fi
7725
7726
7727
7728
7729
7730
7731  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7732echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7733
7734  runpath_var=
7735  allow_undefined_flag=
7736  always_export_symbols=no
7737  archive_cmds=
7738  archive_expsym_cmds=
7739  compiler_needs_object=no
7740  enable_shared_with_static_runtimes=no
7741  export_dynamic_flag_spec=
7742  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7743  hardcode_automatic=no
7744  hardcode_direct=no
7745  hardcode_direct_absolute=no
7746  hardcode_libdir_flag_spec=
7747  hardcode_libdir_flag_spec_ld=
7748  hardcode_libdir_separator=
7749  hardcode_minus_L=no
7750  hardcode_shlibpath_var=unsupported
7751  inherit_rpath=no
7752  link_all_deplibs=unknown
7753  module_cmds=
7754  module_expsym_cmds=
7755  old_archive_from_new_cmds=
7756  old_archive_from_expsyms_cmds=
7757  thread_safe_flag_spec=
7758  whole_archive_flag_spec=
7759  # include_expsyms should be a list of space-separated symbols to be *always*
7760  # included in the symbol list
7761  include_expsyms=
7762  # exclude_expsyms can be an extended regexp of symbols to exclude
7763  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7764  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7765  # as well as any symbol that contains `d'.
7766  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7767  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7768  # platforms (ab)use it in PIC code, but their linkers get confused if
7769  # the symbol is explicitly referenced.  Since portable code cannot
7770  # rely on this symbol name, it's probably fine to never include it in
7771  # preloaded symbol tables.
7772  # Exclude shared library initialization/finalization symbols.
7773  extract_expsyms_cmds=
7774
7775  case $host_os in
7776  cygwin* | mingw* | pw32* | cegcc*)
7777    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7778    # When not using gcc, we currently assume that we are using
7779    # Microsoft Visual C++.
7780    if test "$GCC" != yes; then
7781      with_gnu_ld=no
7782    fi
7783    ;;
7784  interix*)
7785    # we just hope/assume this is gcc and not c89 (= MSVC++)
7786    with_gnu_ld=yes
7787    ;;
7788  openbsd*)
7789    with_gnu_ld=no
7790    ;;
7791  esac
7792
7793  ld_shlibs=yes
7794  if test "$with_gnu_ld" = yes; then
7795    # If archive_cmds runs LD, not CC, wlarc should be empty
7796    wlarc='${wl}'
7797
7798    # Set some defaults for GNU ld with shared library support. These
7799    # are reset later if shared libraries are not supported. Putting them
7800    # here allows them to be overridden if necessary.
7801    runpath_var=LD_RUN_PATH
7802    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7803    export_dynamic_flag_spec='${wl}--export-dynamic'
7804    # ancient GNU ld didn't support --whole-archive et. al.
7805    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7806      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7807    else
7808      whole_archive_flag_spec=
7809    fi
7810    supports_anon_versioning=no
7811    case `$LD -v 2>&1` in
7812      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7813      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7814      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7815      *\ 2.11.*) ;; # other 2.11 versions
7816      *) supports_anon_versioning=yes ;;
7817    esac
7818
7819    # See if GNU ld supports shared libraries.
7820    case $host_os in
7821    aix[3-9]*)
7822      # On AIX/PPC, the GNU linker is very broken
7823      if test "$host_cpu" != ia64; then
7824	ld_shlibs=no
7825	cat <<_LT_EOF 1>&2
7826
7827*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7828*** to be unable to reliably create shared libraries on AIX.
7829*** Therefore, libtool is disabling shared libraries support.  If you
7830*** really care for shared libraries, you may want to modify your PATH
7831*** so that a non-GNU linker is found, and then restart.
7832
7833_LT_EOF
7834      fi
7835      ;;
7836
7837    amigaos*)
7838      case $host_cpu in
7839      powerpc)
7840            # see comment about AmigaOS4 .so support
7841            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842            archive_expsym_cmds=''
7843        ;;
7844      m68k)
7845            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)'
7846            hardcode_libdir_flag_spec='-L$libdir'
7847            hardcode_minus_L=yes
7848        ;;
7849      esac
7850      ;;
7851
7852    beos*)
7853      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7854	allow_undefined_flag=unsupported
7855	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7856	# support --undefined.  This deserves some investigation.  FIXME
7857	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7858      else
7859	ld_shlibs=no
7860      fi
7861      ;;
7862
7863    cygwin* | mingw* | pw32* | cegcc*)
7864      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7865      # as there is no search path for DLLs.
7866      hardcode_libdir_flag_spec='-L$libdir'
7867      allow_undefined_flag=unsupported
7868      always_export_symbols=no
7869      enable_shared_with_static_runtimes=yes
7870      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7871
7872      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7873        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7874	# If the export-symbols file already is a .def file (1st line
7875	# is EXPORTS), use it as is; otherwise, prepend...
7876	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7877	  cp $export_symbols $output_objdir/$soname.def;
7878	else
7879	  echo EXPORTS > $output_objdir/$soname.def;
7880	  cat $export_symbols >> $output_objdir/$soname.def;
7881	fi~
7882	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7883      else
7884	ld_shlibs=no
7885      fi
7886      ;;
7887
7888    interix[3-9]*)
7889      hardcode_direct=no
7890      hardcode_shlibpath_var=no
7891      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7892      export_dynamic_flag_spec='${wl}-E'
7893      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7894      # Instead, shared libraries are loaded at an image base (0x10000000 by
7895      # default) and relocated if they conflict, which is a slow very memory
7896      # consuming and fragmenting process.  To avoid this, we pick a random,
7897      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7898      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7899      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7900      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'
7901      ;;
7902
7903    gnu* | linux* | tpf* | k*bsd*-gnu)
7904      tmp_diet=no
7905      if test "$host_os" = linux-dietlibc; then
7906	case $cc_basename in
7907	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7908	esac
7909      fi
7910      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7911	 && test "$tmp_diet" = no
7912      then
7913	tmp_addflag=
7914	tmp_sharedflag='-shared'
7915	case $cc_basename,$host_cpu in
7916        pgcc*)				# Portland Group C compiler
7917	  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'
7918	  tmp_addflag=' $pic_flag'
7919	  ;;
7920	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7921	  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'
7922	  tmp_addflag=' $pic_flag -Mnomain' ;;
7923	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7924	  tmp_addflag=' -i_dynamic' ;;
7925	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7926	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7927	ifc* | ifort*)			# Intel Fortran compiler
7928	  tmp_addflag=' -nofor_main' ;;
7929	lf95*)				# Lahey Fortran 8.1
7930	  whole_archive_flag_spec=
7931	  tmp_sharedflag='--shared' ;;
7932	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7933	  tmp_sharedflag='-qmkshrobj'
7934	  tmp_addflag= ;;
7935	esac
7936	case `$CC -V 2>&1 | sed 5q` in
7937	*Sun\ C*)			# Sun C 5.9
7938	  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'
7939	  compiler_needs_object=yes
7940	  tmp_sharedflag='-G' ;;
7941	*Sun\ F*)			# Sun Fortran 8.3
7942	  tmp_sharedflag='-G' ;;
7943	esac
7944	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945
7946        if test "x$supports_anon_versioning" = xyes; then
7947          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7948	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7949	    echo "local: *; };" >> $output_objdir/$libname.ver~
7950	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7951        fi
7952
7953	case $cc_basename in
7954	xlf*)
7955	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7956	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7957	  hardcode_libdir_flag_spec=
7958	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7959	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7960	  if test "x$supports_anon_versioning" = xyes; then
7961	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7962	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7963	      echo "local: *; };" >> $output_objdir/$libname.ver~
7964	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7965	  fi
7966	  ;;
7967	esac
7968      else
7969        ld_shlibs=no
7970      fi
7971      ;;
7972
7973    netbsd*)
7974      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7975	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7976	wlarc=
7977      else
7978	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7979	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7980      fi
7981      ;;
7982
7983    solaris*)
7984      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7985	ld_shlibs=no
7986	cat <<_LT_EOF 1>&2
7987
7988*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7989*** create shared libraries on Solaris systems.  Therefore, libtool
7990*** is disabling shared libraries support.  We urge you to upgrade GNU
7991*** binutils to release 2.9.1 or newer.  Another option is to modify
7992*** your PATH or compiler configuration so that the native linker is
7993*** used, and then restart.
7994
7995_LT_EOF
7996      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7997	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7998	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7999      else
8000	ld_shlibs=no
8001      fi
8002      ;;
8003
8004    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8005      case `$LD -v 2>&1` in
8006        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8007	ld_shlibs=no
8008	cat <<_LT_EOF 1>&2
8009
8010*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8011*** reliably create shared libraries on SCO systems.  Therefore, libtool
8012*** is disabling shared libraries support.  We urge you to upgrade GNU
8013*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8014*** your PATH or compiler configuration so that the native linker is
8015*** used, and then restart.
8016
8017_LT_EOF
8018	;;
8019	*)
8020	  # For security reasons, it is highly recommended that you always
8021	  # use absolute paths for naming shared libraries, and exclude the
8022	  # DT_RUNPATH tag from executables and libraries.  But doing so
8023	  # requires that you compile everything twice, which is a pain.
8024	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8025	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8026	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8028	  else
8029	    ld_shlibs=no
8030	  fi
8031	;;
8032      esac
8033      ;;
8034
8035    sunos4*)
8036      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8037      wlarc=
8038      hardcode_direct=yes
8039      hardcode_shlibpath_var=no
8040      ;;
8041
8042    *)
8043      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8044	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8046      else
8047	ld_shlibs=no
8048      fi
8049      ;;
8050    esac
8051
8052    if test "$ld_shlibs" = no; then
8053      runpath_var=
8054      hardcode_libdir_flag_spec=
8055      export_dynamic_flag_spec=
8056      whole_archive_flag_spec=
8057    fi
8058  else
8059    # PORTME fill in a description of your system's linker (not GNU ld)
8060    case $host_os in
8061    aix3*)
8062      allow_undefined_flag=unsupported
8063      always_export_symbols=yes
8064      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'
8065      # Note: this linker hardcodes the directories in LIBPATH if there
8066      # are no directories specified by -L.
8067      hardcode_minus_L=yes
8068      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8069	# Neither direct hardcoding nor static linking is supported with a
8070	# broken collect2.
8071	hardcode_direct=unsupported
8072      fi
8073      ;;
8074
8075    aix[4-9]*)
8076      if test "$host_cpu" = ia64; then
8077	# On IA64, the linker does run time linking by default, so we don't
8078	# have to do anything special.
8079	aix_use_runtimelinking=no
8080	exp_sym_flag='-Bexport'
8081	no_entry_flag=""
8082      else
8083	# If we're using GNU nm, then we don't want the "-C" option.
8084	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8085	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8086	  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'
8087	else
8088	  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'
8089	fi
8090	aix_use_runtimelinking=no
8091
8092	# Test if we are trying to use run time linking or normal
8093	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8094	# need to do runtime linking.
8095	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8096	  for ld_flag in $LDFLAGS; do
8097	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8098	    aix_use_runtimelinking=yes
8099	    break
8100	  fi
8101	  done
8102	  ;;
8103	esac
8104
8105	exp_sym_flag='-bexport'
8106	no_entry_flag='-bnoentry'
8107      fi
8108
8109      # When large executables or shared objects are built, AIX ld can
8110      # have problems creating the table of contents.  If linking a library
8111      # or program results in "error TOC overflow" add -mminimal-toc to
8112      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8113      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8114
8115      archive_cmds=''
8116      hardcode_direct=yes
8117      hardcode_direct_absolute=yes
8118      hardcode_libdir_separator=':'
8119      link_all_deplibs=yes
8120      file_list_spec='${wl}-f,'
8121
8122      if test "$GCC" = yes; then
8123	case $host_os in aix4.[012]|aix4.[012].*)
8124	# We only want to do this on AIX 4.2 and lower, the check
8125	# below for broken collect2 doesn't work under 4.3+
8126	  collect2name=`${CC} -print-prog-name=collect2`
8127	  if test -f "$collect2name" &&
8128	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8129	  then
8130	  # We have reworked collect2
8131	  :
8132	  else
8133	  # We have old collect2
8134	  hardcode_direct=unsupported
8135	  # It fails to find uninstalled libraries when the uninstalled
8136	  # path is not listed in the libpath.  Setting hardcode_minus_L
8137	  # to unsupported forces relinking
8138	  hardcode_minus_L=yes
8139	  hardcode_libdir_flag_spec='-L$libdir'
8140	  hardcode_libdir_separator=
8141	  fi
8142	  ;;
8143	esac
8144	shared_flag='-shared'
8145	if test "$aix_use_runtimelinking" = yes; then
8146	  shared_flag="$shared_flag "'${wl}-G'
8147	fi
8148      else
8149	# not using gcc
8150	if test "$host_cpu" = ia64; then
8151	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8152	# chokes on -Wl,-G. The following line is correct:
8153	  shared_flag='-G'
8154	else
8155	  if test "$aix_use_runtimelinking" = yes; then
8156	    shared_flag='${wl}-G'
8157	  else
8158	    shared_flag='${wl}-bM:SRE'
8159	  fi
8160	fi
8161      fi
8162
8163      export_dynamic_flag_spec='${wl}-bexpall'
8164      # It seems that -bexpall does not export symbols beginning with
8165      # underscore (_), so it is better to generate a list of symbols to export.
8166      always_export_symbols=yes
8167      if test "$aix_use_runtimelinking" = yes; then
8168	# Warning - without using the other runtime loading flags (-brtl),
8169	# -berok will link without error, but may produce a broken library.
8170	allow_undefined_flag='-berok'
8171        # Determine the default libpath from the value encoded in an
8172        # empty executable.
8173        cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h.  */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h.  */
8179
8180int
8181main ()
8182{
8183
8184  ;
8185  return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext conftest$ac_exeext
8189if { (ac_try="$ac_link"
8190case "(($ac_try" in
8191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192  *) ac_try_echo=$ac_try;;
8193esac
8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195  (eval "$ac_link") 2>conftest.er1
8196  ac_status=$?
8197  grep -v '^ *+' conftest.er1 >conftest.err
8198  rm -f conftest.er1
8199  cat conftest.err >&5
8200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201  (exit $ac_status); } && {
8202	 test -z "$ac_c_werror_flag" ||
8203	 test ! -s conftest.err
8204       } && test -s conftest$ac_exeext &&
8205       $as_test_x conftest$ac_exeext; then
8206
8207lt_aix_libpath_sed='
8208    /Import File Strings/,/^$/ {
8209	/^0/ {
8210	    s/^0  *\(.*\)$/\1/
8211	    p
8212	}
8213    }'
8214aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8215# Check for a 64-bit object if we didn't find anything.
8216if test -z "$aix_libpath"; then
8217  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8218fi
8219else
8220  echo "$as_me: failed program was:" >&5
8221sed 's/^/| /' conftest.$ac_ext >&5
8222
8223
8224fi
8225
8226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8227      conftest$ac_exeext conftest.$ac_ext
8228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8229
8230        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8231        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"
8232      else
8233	if test "$host_cpu" = ia64; then
8234	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8235	  allow_undefined_flag="-z nodefs"
8236	  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"
8237	else
8238	 # Determine the default libpath from the value encoded in an
8239	 # empty executable.
8240	 cat >conftest.$ac_ext <<_ACEOF
8241/* confdefs.h.  */
8242_ACEOF
8243cat confdefs.h >>conftest.$ac_ext
8244cat >>conftest.$ac_ext <<_ACEOF
8245/* end confdefs.h.  */
8246
8247int
8248main ()
8249{
8250
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255rm -f conftest.$ac_objext conftest$ac_exeext
8256if { (ac_try="$ac_link"
8257case "(($ac_try" in
8258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259  *) ac_try_echo=$ac_try;;
8260esac
8261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262  (eval "$ac_link") 2>conftest.er1
8263  ac_status=$?
8264  grep -v '^ *+' conftest.er1 >conftest.err
8265  rm -f conftest.er1
8266  cat conftest.err >&5
8267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268  (exit $ac_status); } && {
8269	 test -z "$ac_c_werror_flag" ||
8270	 test ! -s conftest.err
8271       } && test -s conftest$ac_exeext &&
8272       $as_test_x conftest$ac_exeext; then
8273
8274lt_aix_libpath_sed='
8275    /Import File Strings/,/^$/ {
8276	/^0/ {
8277	    s/^0  *\(.*\)$/\1/
8278	    p
8279	}
8280    }'
8281aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8282# Check for a 64-bit object if we didn't find anything.
8283if test -z "$aix_libpath"; then
8284  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8285fi
8286else
8287  echo "$as_me: failed program was:" >&5
8288sed 's/^/| /' conftest.$ac_ext >&5
8289
8290
8291fi
8292
8293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8294      conftest$ac_exeext conftest.$ac_ext
8295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8296
8297	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8298	  # Warning - without using the other run time loading flags,
8299	  # -berok will link without error, but may produce a broken library.
8300	  no_undefined_flag=' ${wl}-bernotok'
8301	  allow_undefined_flag=' ${wl}-berok'
8302	  # Exported symbols can be pulled into shared objects from archives
8303	  whole_archive_flag_spec='$convenience'
8304	  archive_cmds_need_lc=yes
8305	  # This is similar to how AIX traditionally builds its shared libraries.
8306	  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'
8307	fi
8308      fi
8309      ;;
8310
8311    amigaos*)
8312      case $host_cpu in
8313      powerpc)
8314            # see comment about AmigaOS4 .so support
8315            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8316            archive_expsym_cmds=''
8317        ;;
8318      m68k)
8319            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)'
8320            hardcode_libdir_flag_spec='-L$libdir'
8321            hardcode_minus_L=yes
8322        ;;
8323      esac
8324      ;;
8325
8326    bsdi[45]*)
8327      export_dynamic_flag_spec=-rdynamic
8328      ;;
8329
8330    cygwin* | mingw* | pw32* | cegcc*)
8331      # When not using gcc, we currently assume that we are using
8332      # Microsoft Visual C++.
8333      # hardcode_libdir_flag_spec is actually meaningless, as there is
8334      # no search path for DLLs.
8335      hardcode_libdir_flag_spec=' '
8336      allow_undefined_flag=unsupported
8337      # Tell ltmain to make .lib files, not .a files.
8338      libext=lib
8339      # Tell ltmain to make .dll files, not .so files.
8340      shrext_cmds=".dll"
8341      # FIXME: Setting linknames here is a bad hack.
8342      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8343      # The linker will automatically build a .lib file if we build a DLL.
8344      old_archive_from_new_cmds='true'
8345      # FIXME: Should let the user specify the lib program.
8346      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8347      fix_srcfile_path='`cygpath -w "$srcfile"`'
8348      enable_shared_with_static_runtimes=yes
8349      ;;
8350
8351    darwin* | rhapsody*)
8352
8353
8354  archive_cmds_need_lc=no
8355  hardcode_direct=no
8356  hardcode_automatic=yes
8357  hardcode_shlibpath_var=unsupported
8358  whole_archive_flag_spec=''
8359  link_all_deplibs=yes
8360  allow_undefined_flag="$_lt_dar_allow_undefined"
8361  case $cc_basename in
8362     ifort*) _lt_dar_can_shared=yes ;;
8363     *) _lt_dar_can_shared=$GCC ;;
8364  esac
8365  if test "$_lt_dar_can_shared" = "yes"; then
8366    output_verbose_link_cmd=echo
8367    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8368    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8369    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}"
8370    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}"
8371
8372  else
8373  ld_shlibs=no
8374  fi
8375
8376      ;;
8377
8378    dgux*)
8379      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380      hardcode_libdir_flag_spec='-L$libdir'
8381      hardcode_shlibpath_var=no
8382      ;;
8383
8384    freebsd1*)
8385      ld_shlibs=no
8386      ;;
8387
8388    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8389    # support.  Future versions do this automatically, but an explicit c++rt0.o
8390    # does not break anything, and helps significantly (at the cost of a little
8391    # extra space).
8392    freebsd2.2*)
8393      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8394      hardcode_libdir_flag_spec='-R$libdir'
8395      hardcode_direct=yes
8396      hardcode_shlibpath_var=no
8397      ;;
8398
8399    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8400    freebsd2*)
8401      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8402      hardcode_direct=yes
8403      hardcode_minus_L=yes
8404      hardcode_shlibpath_var=no
8405      ;;
8406
8407    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8408    freebsd* | dragonfly*)
8409      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8410      hardcode_libdir_flag_spec='-R$libdir'
8411      hardcode_direct=yes
8412      hardcode_shlibpath_var=no
8413      ;;
8414
8415    hpux9*)
8416      if test "$GCC" = yes; then
8417	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'
8418      else
8419	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'
8420      fi
8421      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8422      hardcode_libdir_separator=:
8423      hardcode_direct=yes
8424
8425      # hardcode_minus_L: Not really in the search PATH,
8426      # but as the default location of the library.
8427      hardcode_minus_L=yes
8428      export_dynamic_flag_spec='${wl}-E'
8429      ;;
8430
8431    hpux10*)
8432      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8433	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8434      else
8435	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8436      fi
8437      if test "$with_gnu_ld" = no; then
8438	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8439	hardcode_libdir_flag_spec_ld='+b $libdir'
8440	hardcode_libdir_separator=:
8441	hardcode_direct=yes
8442	hardcode_direct_absolute=yes
8443	export_dynamic_flag_spec='${wl}-E'
8444	# hardcode_minus_L: Not really in the search PATH,
8445	# but as the default location of the library.
8446	hardcode_minus_L=yes
8447      fi
8448      ;;
8449
8450    hpux11*)
8451      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8452	case $host_cpu in
8453	hppa*64*)
8454	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8455	  ;;
8456	ia64*)
8457	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8458	  ;;
8459	*)
8460	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8461	  ;;
8462	esac
8463      else
8464	case $host_cpu in
8465	hppa*64*)
8466	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8467	  ;;
8468	ia64*)
8469	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8470	  ;;
8471	*)
8472	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8473	  ;;
8474	esac
8475      fi
8476      if test "$with_gnu_ld" = no; then
8477	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8478	hardcode_libdir_separator=:
8479
8480	case $host_cpu in
8481	hppa*64*|ia64*)
8482	  hardcode_direct=no
8483	  hardcode_shlibpath_var=no
8484	  ;;
8485	*)
8486	  hardcode_direct=yes
8487	  hardcode_direct_absolute=yes
8488	  export_dynamic_flag_spec='${wl}-E'
8489
8490	  # hardcode_minus_L: Not really in the search PATH,
8491	  # but as the default location of the library.
8492	  hardcode_minus_L=yes
8493	  ;;
8494	esac
8495      fi
8496      ;;
8497
8498    irix5* | irix6* | nonstopux*)
8499      if test "$GCC" = yes; then
8500	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'
8501	# Try to use the -exported_symbol ld option, if it does not
8502	# work, assume that -exports_file does not work either and
8503	# implicitly export all symbols.
8504        save_LDFLAGS="$LDFLAGS"
8505        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8506        cat >conftest.$ac_ext <<_ACEOF
8507int foo(void) {}
8508_ACEOF
8509rm -f conftest.$ac_objext conftest$ac_exeext
8510if { (ac_try="$ac_link"
8511case "(($ac_try" in
8512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513  *) ac_try_echo=$ac_try;;
8514esac
8515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516  (eval "$ac_link") 2>conftest.er1
8517  ac_status=$?
8518  grep -v '^ *+' conftest.er1 >conftest.err
8519  rm -f conftest.er1
8520  cat conftest.err >&5
8521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522  (exit $ac_status); } && {
8523	 test -z "$ac_c_werror_flag" ||
8524	 test ! -s conftest.err
8525       } && test -s conftest$ac_exeext &&
8526       $as_test_x conftest$ac_exeext; then
8527  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'
8528
8529else
8530  echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533
8534fi
8535
8536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537      conftest$ac_exeext conftest.$ac_ext
8538        LDFLAGS="$save_LDFLAGS"
8539      else
8540	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'
8541	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'
8542      fi
8543      archive_cmds_need_lc='no'
8544      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545      hardcode_libdir_separator=:
8546      inherit_rpath=yes
8547      link_all_deplibs=yes
8548      ;;
8549
8550    netbsd*)
8551      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8552	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8553      else
8554	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8555      fi
8556      hardcode_libdir_flag_spec='-R$libdir'
8557      hardcode_direct=yes
8558      hardcode_shlibpath_var=no
8559      ;;
8560
8561    newsos6)
8562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8563      hardcode_direct=yes
8564      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8565      hardcode_libdir_separator=:
8566      hardcode_shlibpath_var=no
8567      ;;
8568
8569    *nto* | *qnx*)
8570      ;;
8571
8572    openbsd*)
8573      if test -f /usr/libexec/ld.so; then
8574	hardcode_direct=yes
8575	hardcode_shlibpath_var=no
8576	hardcode_direct_absolute=yes
8577	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8578	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8580	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581	  export_dynamic_flag_spec='${wl}-E'
8582	else
8583	  case $host_os in
8584	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8585	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8586	     hardcode_libdir_flag_spec='-R$libdir'
8587	     ;;
8588	   *)
8589	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8590	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8591	     ;;
8592	  esac
8593	fi
8594      else
8595	ld_shlibs=no
8596      fi
8597      ;;
8598
8599    os2*)
8600      hardcode_libdir_flag_spec='-L$libdir'
8601      hardcode_minus_L=yes
8602      allow_undefined_flag=unsupported
8603      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'
8604      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8605      ;;
8606
8607    osf3*)
8608      if test "$GCC" = yes; then
8609	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8610	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'
8611      else
8612	allow_undefined_flag=' -expect_unresolved \*'
8613	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'
8614      fi
8615      archive_cmds_need_lc='no'
8616      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617      hardcode_libdir_separator=:
8618      ;;
8619
8620    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8621      if test "$GCC" = yes; then
8622	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623	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'
8624	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625      else
8626	allow_undefined_flag=' -expect_unresolved \*'
8627	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'
8628	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~
8629	$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'
8630
8631	# Both c and cxx compiler support -rpath directly
8632	hardcode_libdir_flag_spec='-rpath $libdir'
8633      fi
8634      archive_cmds_need_lc='no'
8635      hardcode_libdir_separator=:
8636      ;;
8637
8638    solaris*)
8639      no_undefined_flag=' -z defs'
8640      if test "$GCC" = yes; then
8641	wlarc='${wl}'
8642	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8644	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8645      else
8646	case `$CC -V 2>&1` in
8647	*"Compilers 5.0"*)
8648	  wlarc=''
8649	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8650	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8651	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8652	  ;;
8653	*)
8654	  wlarc='${wl}'
8655	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8656	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8657	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8658	  ;;
8659	esac
8660      fi
8661      hardcode_libdir_flag_spec='-R$libdir'
8662      hardcode_shlibpath_var=no
8663      case $host_os in
8664      solaris2.[0-5] | solaris2.[0-5].*) ;;
8665      *)
8666	# The compiler driver will combine and reorder linker options,
8667	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8668	# but is careful enough not to reorder.
8669	# Supported since Solaris 2.6 (maybe 2.5.1?)
8670	if test "$GCC" = yes; then
8671	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8672	else
8673	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8674	fi
8675	;;
8676      esac
8677      link_all_deplibs=yes
8678      ;;
8679
8680    sunos4*)
8681      if test "x$host_vendor" = xsequent; then
8682	# Use $CC to link under sequent, because it throws in some extra .o
8683	# files that make .init and .fini sections work.
8684	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8685      else
8686	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8687      fi
8688      hardcode_libdir_flag_spec='-L$libdir'
8689      hardcode_direct=yes
8690      hardcode_minus_L=yes
8691      hardcode_shlibpath_var=no
8692      ;;
8693
8694    sysv4)
8695      case $host_vendor in
8696	sni)
8697	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698	  hardcode_direct=yes # is this really true???
8699	;;
8700	siemens)
8701	  ## LD is ld it makes a PLAMLIB
8702	  ## CC just makes a GrossModule.
8703	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8704	  reload_cmds='$CC -r -o $output$reload_objs'
8705	  hardcode_direct=no
8706        ;;
8707	motorola)
8708	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8709	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8710	;;
8711      esac
8712      runpath_var='LD_RUN_PATH'
8713      hardcode_shlibpath_var=no
8714      ;;
8715
8716    sysv4.3*)
8717      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718      hardcode_shlibpath_var=no
8719      export_dynamic_flag_spec='-Bexport'
8720      ;;
8721
8722    sysv4*MP*)
8723      if test -d /usr/nec; then
8724	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725	hardcode_shlibpath_var=no
8726	runpath_var=LD_RUN_PATH
8727	hardcode_runpath_var=yes
8728	ld_shlibs=yes
8729      fi
8730      ;;
8731
8732    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8733      no_undefined_flag='${wl}-z,text'
8734      archive_cmds_need_lc=no
8735      hardcode_shlibpath_var=no
8736      runpath_var='LD_RUN_PATH'
8737
8738      if test "$GCC" = yes; then
8739	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8740	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741      else
8742	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8743	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744      fi
8745      ;;
8746
8747    sysv5* | sco3.2v5* | sco5v6*)
8748      # Note: We can NOT use -z defs as we might desire, because we do not
8749      # link with -lc, and that would cause any symbols used from libc to
8750      # always be unresolved, which means just about no library would
8751      # ever link correctly.  If we're not using GNU ld we use -z text
8752      # though, which does catch some bad symbols but isn't as heavy-handed
8753      # as -z defs.
8754      no_undefined_flag='${wl}-z,text'
8755      allow_undefined_flag='${wl}-z,nodefs'
8756      archive_cmds_need_lc=no
8757      hardcode_shlibpath_var=no
8758      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8759      hardcode_libdir_separator=':'
8760      link_all_deplibs=yes
8761      export_dynamic_flag_spec='${wl}-Bexport'
8762      runpath_var='LD_RUN_PATH'
8763
8764      if test "$GCC" = yes; then
8765	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8766	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8767      else
8768	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8769	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8770      fi
8771      ;;
8772
8773    uts4*)
8774      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775      hardcode_libdir_flag_spec='-L$libdir'
8776      hardcode_shlibpath_var=no
8777      ;;
8778
8779    *)
8780      ld_shlibs=no
8781      ;;
8782    esac
8783
8784    if test x$host_vendor = xsni; then
8785      case $host in
8786      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8787	export_dynamic_flag_spec='${wl}-Blargedynsym'
8788	;;
8789      esac
8790    fi
8791  fi
8792
8793{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8794echo "${ECHO_T}$ld_shlibs" >&6; }
8795test "$ld_shlibs" = no && can_build_shared=no
8796
8797with_gnu_ld=$with_gnu_ld
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813#
8814# Do we need to explicitly link libc?
8815#
8816case "x$archive_cmds_need_lc" in
8817x|xyes)
8818  # Assume -lc should be added
8819  archive_cmds_need_lc=yes
8820
8821  if test "$enable_shared" = yes && test "$GCC" = yes; then
8822    case $archive_cmds in
8823    *'~'*)
8824      # FIXME: we may have to deal with multi-command sequences.
8825      ;;
8826    '$CC '*)
8827      # Test whether the compiler implicitly links with -lc since on some
8828      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8829      # to ld, don't add -lc before -lgcc.
8830      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8831echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8832      $RM conftest*
8833      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834
8835      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8836  (eval $ac_compile) 2>&5
8837  ac_status=$?
8838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839  (exit $ac_status); } 2>conftest.err; then
8840        soname=conftest
8841        lib=conftest
8842        libobjs=conftest.$ac_objext
8843        deplibs=
8844        wl=$lt_prog_compiler_wl
8845	pic_flag=$lt_prog_compiler_pic
8846        compiler_flags=-v
8847        linker_flags=-v
8848        verstring=
8849        output_objdir=.
8850        libname=conftest
8851        lt_save_allow_undefined_flag=$allow_undefined_flag
8852        allow_undefined_flag=
8853        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8854  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8855  ac_status=$?
8856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857  (exit $ac_status); }
8858        then
8859	  archive_cmds_need_lc=no
8860        else
8861	  archive_cmds_need_lc=yes
8862        fi
8863        allow_undefined_flag=$lt_save_allow_undefined_flag
8864      else
8865        cat conftest.err 1>&5
8866      fi
8867      $RM conftest*
8868      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8869echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8870      ;;
8871    esac
8872  fi
8873  ;;
8874esac
8875
8876
8877
8878
8879
8880
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  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9033echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9034
9035if test "$GCC" = yes; then
9036  case $host_os in
9037    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9038    *) lt_awk_arg="/^libraries:/" ;;
9039  esac
9040  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9041  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9042    # if the path contains ";" then we assume it to be the separator
9043    # otherwise default to the standard path separator (i.e. ":") - it is
9044    # assumed that no part of a normal pathname contains ";" but that should
9045    # okay in the real world where ";" in dirpaths is itself problematic.
9046    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9047  else
9048    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9049  fi
9050  # Ok, now we have the path, separated by spaces, we can step through it
9051  # and add multilib dir if necessary.
9052  lt_tmp_lt_search_path_spec=
9053  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9054  for lt_sys_path in $lt_search_path_spec; do
9055    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9056      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9057    else
9058      test -d "$lt_sys_path" && \
9059	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9060    fi
9061  done
9062  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9063BEGIN {RS=" "; FS="/|\n";} {
9064  lt_foo="";
9065  lt_count=0;
9066  for (lt_i = NF; lt_i > 0; lt_i--) {
9067    if ($lt_i != "" && $lt_i != ".") {
9068      if ($lt_i == "..") {
9069        lt_count++;
9070      } else {
9071        if (lt_count == 0) {
9072          lt_foo="/" $lt_i lt_foo;
9073        } else {
9074          lt_count--;
9075        }
9076      }
9077    }
9078  }
9079  if (lt_foo != "") { lt_freq[lt_foo]++; }
9080  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9081}'`
9082  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9083else
9084  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9085fi
9086library_names_spec=
9087libname_spec='lib$name'
9088soname_spec=
9089shrext_cmds=".so"
9090postinstall_cmds=
9091postuninstall_cmds=
9092finish_cmds=
9093finish_eval=
9094shlibpath_var=
9095shlibpath_overrides_runpath=unknown
9096version_type=none
9097dynamic_linker="$host_os ld.so"
9098sys_lib_dlsearch_path_spec="/lib /usr/lib"
9099need_lib_prefix=unknown
9100hardcode_into_libs=no
9101
9102# when you set need_version to no, make sure it does not cause -set_version
9103# flags to be left without arguments
9104need_version=unknown
9105
9106case $host_os in
9107aix3*)
9108  version_type=linux
9109  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9110  shlibpath_var=LIBPATH
9111
9112  # AIX 3 has no versioning support, so we append a major version to the name.
9113  soname_spec='${libname}${release}${shared_ext}$major'
9114  ;;
9115
9116aix[4-9]*)
9117  version_type=linux
9118  need_lib_prefix=no
9119  need_version=no
9120  hardcode_into_libs=yes
9121  if test "$host_cpu" = ia64; then
9122    # AIX 5 supports IA64
9123    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9124    shlibpath_var=LD_LIBRARY_PATH
9125  else
9126    # With GCC up to 2.95.x, collect2 would create an import file
9127    # for dependence libraries.  The import file would start with
9128    # the line `#! .'.  This would cause the generated library to
9129    # depend on `.', always an invalid library.  This was fixed in
9130    # development snapshots of GCC prior to 3.0.
9131    case $host_os in
9132      aix4 | aix4.[01] | aix4.[01].*)
9133      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9134	   echo ' yes '
9135	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9136	:
9137      else
9138	can_build_shared=no
9139      fi
9140      ;;
9141    esac
9142    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9143    # soname into executable. Probably we can add versioning support to
9144    # collect2, so additional links can be useful in future.
9145    if test "$aix_use_runtimelinking" = yes; then
9146      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9147      # instead of lib<name>.a to let people know that these are not
9148      # typical AIX shared libraries.
9149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150    else
9151      # We preserve .a as extension for shared libraries through AIX4.2
9152      # and later when we are not doing run time linking.
9153      library_names_spec='${libname}${release}.a $libname.a'
9154      soname_spec='${libname}${release}${shared_ext}$major'
9155    fi
9156    shlibpath_var=LIBPATH
9157  fi
9158  ;;
9159
9160amigaos*)
9161  case $host_cpu in
9162  powerpc)
9163    # Since July 2007 AmigaOS4 officially supports .so libraries.
9164    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9165    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166    ;;
9167  m68k)
9168    library_names_spec='$libname.ixlibrary $libname.a'
9169    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170    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'
9171    ;;
9172  esac
9173  ;;
9174
9175beos*)
9176  library_names_spec='${libname}${shared_ext}'
9177  dynamic_linker="$host_os ld.so"
9178  shlibpath_var=LIBRARY_PATH
9179  ;;
9180
9181bsdi[45]*)
9182  version_type=linux
9183  need_version=no
9184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185  soname_spec='${libname}${release}${shared_ext}$major'
9186  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9187  shlibpath_var=LD_LIBRARY_PATH
9188  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9189  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9190  # the default ld.so.conf also contains /usr/contrib/lib and
9191  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9192  # libtool to hard-code these into programs
9193  ;;
9194
9195cygwin* | mingw* | pw32* | cegcc*)
9196  version_type=windows
9197  shrext_cmds=".dll"
9198  need_version=no
9199  need_lib_prefix=no
9200
9201  case $GCC,$host_os in
9202  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9203    library_names_spec='$libname.dll.a'
9204    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9205    postinstall_cmds='base_file=`basename \${file}`~
9206      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9207      dldir=$destdir/`dirname \$dlpath`~
9208      test -d \$dldir || mkdir -p \$dldir~
9209      $install_prog $dir/$dlname \$dldir/$dlname~
9210      chmod a+x \$dldir/$dlname~
9211      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9212        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9213      fi'
9214    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9215      dlpath=$dir/\$dldll~
9216       $RM \$dlpath'
9217    shlibpath_overrides_runpath=yes
9218
9219    case $host_os in
9220    cygwin*)
9221      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9222      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9223      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9224      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9225      ;;
9226    mingw* | cegcc*)
9227      # MinGW DLLs use traditional 'lib' prefix
9228      #soname_spec='${libname}`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=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9231      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9232        # It is most probably a Windows format PATH printed by
9233        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9234        # path with ; separators, and with drive letters. We can handle the
9235        # drive letters (cygwin fileutils understands them), so leave them,
9236        # especially as we might pass files found there to a mingw objdump,
9237        # which wouldn't understand a cygwinified path. Ahh.
9238        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9239      else
9240        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9241      fi
9242      ;;
9243    pw32*)
9244      # pw32 DLLs use 'pw' prefix rather than 'lib'
9245      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9246      ;;
9247    esac
9248    ;;
9249
9250  *)
9251    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9252    ;;
9253  esac
9254  dynamic_linker='Win32 ld.exe'
9255  # FIXME: first we should search . and the directory the executable is in
9256  shlibpath_var=PATH
9257  ;;
9258
9259darwin* | rhapsody*)
9260  dynamic_linker="$host_os dyld"
9261  version_type=darwin
9262  need_lib_prefix=no
9263  need_version=no
9264  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9265  soname_spec='${libname}${release}${major}$shared_ext'
9266  shlibpath_overrides_runpath=yes
9267  shlibpath_var=DYLD_LIBRARY_PATH
9268  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9269
9270  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9271  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9272  ;;
9273
9274dgux*)
9275  version_type=linux
9276  need_lib_prefix=no
9277  need_version=no
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9279  soname_spec='${libname}${release}${shared_ext}$major'
9280  shlibpath_var=LD_LIBRARY_PATH
9281  ;;
9282
9283freebsd1*)
9284  dynamic_linker=no
9285  ;;
9286
9287freebsd* | dragonfly*)
9288  # DragonFly does not have aout.  When/if they implement a new
9289  # versioning mechanism, adjust this.
9290  if test -x /usr/bin/objformat; then
9291    objformat=`/usr/bin/objformat`
9292  else
9293    case $host_os in
9294    freebsd[123]*) objformat=aout ;;
9295    *) objformat=elf ;;
9296    esac
9297  fi
9298  version_type=freebsd-$objformat
9299  case $version_type in
9300    freebsd-elf*)
9301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9302      need_version=no
9303      need_lib_prefix=no
9304      ;;
9305    freebsd-*)
9306      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9307      need_version=yes
9308      ;;
9309  esac
9310  shlibpath_var=LD_LIBRARY_PATH
9311  case $host_os in
9312  freebsd2*)
9313    shlibpath_overrides_runpath=yes
9314    ;;
9315  freebsd3.[01]* | freebsdelf3.[01]*)
9316    shlibpath_overrides_runpath=yes
9317    hardcode_into_libs=yes
9318    ;;
9319  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9320  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9321    shlibpath_overrides_runpath=no
9322    hardcode_into_libs=yes
9323    ;;
9324  *) # from 4.6 on, and DragonFly
9325    shlibpath_overrides_runpath=yes
9326    hardcode_into_libs=yes
9327    ;;
9328  esac
9329  ;;
9330
9331gnu*)
9332  version_type=linux
9333  need_lib_prefix=no
9334  need_version=no
9335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9336  soname_spec='${libname}${release}${shared_ext}$major'
9337  shlibpath_var=LD_LIBRARY_PATH
9338  hardcode_into_libs=yes
9339  ;;
9340
9341hpux9* | hpux10* | hpux11*)
9342  # Give a soname corresponding to the major version so that dld.sl refuses to
9343  # link against other versions.
9344  version_type=sunos
9345  need_lib_prefix=no
9346  need_version=no
9347  case $host_cpu in
9348  ia64*)
9349    shrext_cmds='.so'
9350    hardcode_into_libs=yes
9351    dynamic_linker="$host_os dld.so"
9352    shlibpath_var=LD_LIBRARY_PATH
9353    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355    soname_spec='${libname}${release}${shared_ext}$major'
9356    if test "X$HPUX_IA64_MODE" = X32; then
9357      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9358    else
9359      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9360    fi
9361    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362    ;;
9363  hppa*64*)
9364    shrext_cmds='.sl'
9365    hardcode_into_libs=yes
9366    dynamic_linker="$host_os dld.sl"
9367    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9368    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370    soname_spec='${libname}${release}${shared_ext}$major'
9371    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9372    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9373    ;;
9374  *)
9375    shrext_cmds='.sl'
9376    dynamic_linker="$host_os dld.sl"
9377    shlibpath_var=SHLIB_PATH
9378    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9379    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9380    soname_spec='${libname}${release}${shared_ext}$major'
9381    ;;
9382  esac
9383  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9384  postinstall_cmds='chmod 555 $lib'
9385  ;;
9386
9387interix[3-9]*)
9388  version_type=linux
9389  need_lib_prefix=no
9390  need_version=no
9391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9392  soname_spec='${libname}${release}${shared_ext}$major'
9393  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  shlibpath_overrides_runpath=no
9396  hardcode_into_libs=yes
9397  ;;
9398
9399irix5* | irix6* | nonstopux*)
9400  case $host_os in
9401    nonstopux*) version_type=nonstopux ;;
9402    *)
9403	if test "$lt_cv_prog_gnu_ld" = yes; then
9404		version_type=linux
9405	else
9406		version_type=irix
9407	fi ;;
9408  esac
9409  need_lib_prefix=no
9410  need_version=no
9411  soname_spec='${libname}${release}${shared_ext}$major'
9412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9413  case $host_os in
9414  irix5* | nonstopux*)
9415    libsuff= shlibsuff=
9416    ;;
9417  *)
9418    case $LD in # libtool.m4 will add one of these switches to LD
9419    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9420      libsuff= shlibsuff= libmagic=32-bit;;
9421    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9422      libsuff=32 shlibsuff=N32 libmagic=N32;;
9423    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9424      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9425    *) libsuff= shlibsuff= libmagic=never-match;;
9426    esac
9427    ;;
9428  esac
9429  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9430  shlibpath_overrides_runpath=no
9431  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9432  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9433  hardcode_into_libs=yes
9434  ;;
9435
9436# No shared lib support for Linux oldld, aout, or coff.
9437linux*oldld* | linux*aout* | linux*coff*)
9438  dynamic_linker=no
9439  ;;
9440
9441# This must be Linux ELF.
9442linux* | k*bsd*-gnu)
9443  version_type=linux
9444  need_lib_prefix=no
9445  need_version=no
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9449  shlibpath_var=LD_LIBRARY_PATH
9450  shlibpath_overrides_runpath=no
9451  # Some binutils ld are patched to set DT_RUNPATH
9452  save_LDFLAGS=$LDFLAGS
9453  save_libdir=$libdir
9454  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9455       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9456  cat >conftest.$ac_ext <<_ACEOF
9457/* confdefs.h.  */
9458_ACEOF
9459cat confdefs.h >>conftest.$ac_ext
9460cat >>conftest.$ac_ext <<_ACEOF
9461/* end confdefs.h.  */
9462
9463int
9464main ()
9465{
9466
9467  ;
9468  return 0;
9469}
9470_ACEOF
9471rm -f conftest.$ac_objext conftest$ac_exeext
9472if { (ac_try="$ac_link"
9473case "(($ac_try" in
9474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475  *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478  (eval "$ac_link") 2>conftest.er1
9479  ac_status=$?
9480  grep -v '^ *+' conftest.er1 >conftest.err
9481  rm -f conftest.er1
9482  cat conftest.err >&5
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); } && {
9485	 test -z "$ac_c_werror_flag" ||
9486	 test ! -s conftest.err
9487       } && test -s conftest$ac_exeext &&
9488       $as_test_x conftest$ac_exeext; then
9489  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9490  shlibpath_overrides_runpath=yes
9491fi
9492
9493else
9494  echo "$as_me: failed program was:" >&5
9495sed 's/^/| /' conftest.$ac_ext >&5
9496
9497
9498fi
9499
9500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9501      conftest$ac_exeext conftest.$ac_ext
9502  LDFLAGS=$save_LDFLAGS
9503  libdir=$save_libdir
9504
9505  # This implies no fast_install, which is unacceptable.
9506  # Some rework will be needed to allow for fast_install
9507  # before this can be enabled.
9508  hardcode_into_libs=yes
9509
9510  # Append ld.so.conf contents to the search path
9511  if test -f /etc/ld.so.conf; then
9512    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' ' '`
9513    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9514  fi
9515
9516  # We used to test for /lib/ld.so.1 and disable shared libraries on
9517  # powerpc, because MkLinux only supported shared libraries with the
9518  # GNU dynamic linker.  Since this was broken with cross compilers,
9519  # most powerpc-linux boxes support dynamic linking these days and
9520  # people can always --disable-shared, the test was removed, and we
9521  # assume the GNU/Linux dynamic linker is in use.
9522  dynamic_linker='GNU/Linux ld.so'
9523  ;;
9524
9525netbsd*)
9526  version_type=sunos
9527  need_lib_prefix=no
9528  need_version=no
9529  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532    dynamic_linker='NetBSD (a.out) ld.so'
9533  else
9534    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535    soname_spec='${libname}${release}${shared_ext}$major'
9536    dynamic_linker='NetBSD ld.elf_so'
9537  fi
9538  shlibpath_var=LD_LIBRARY_PATH
9539  shlibpath_overrides_runpath=yes
9540  hardcode_into_libs=yes
9541  ;;
9542
9543newsos6)
9544  version_type=linux
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546  shlibpath_var=LD_LIBRARY_PATH
9547  shlibpath_overrides_runpath=yes
9548  ;;
9549
9550*nto* | *qnx*)
9551  version_type=qnx
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  shlibpath_var=LD_LIBRARY_PATH
9557  shlibpath_overrides_runpath=no
9558  hardcode_into_libs=yes
9559  dynamic_linker='ldqnx.so'
9560  ;;
9561
9562openbsd*)
9563  version_type=sunos
9564  sys_lib_dlsearch_path_spec="/usr/lib"
9565  need_lib_prefix=no
9566  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9567  case $host_os in
9568    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9569    *)				need_version=no  ;;
9570  esac
9571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9572  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9573  shlibpath_var=LD_LIBRARY_PATH
9574  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9575    case $host_os in
9576      openbsd2.[89] | openbsd2.[89].*)
9577	shlibpath_overrides_runpath=no
9578	;;
9579      *)
9580	shlibpath_overrides_runpath=yes
9581	;;
9582      esac
9583  else
9584    shlibpath_overrides_runpath=yes
9585  fi
9586  ;;
9587
9588os2*)
9589  libname_spec='$name'
9590  shrext_cmds=".dll"
9591  need_lib_prefix=no
9592  library_names_spec='$libname${shared_ext} $libname.a'
9593  dynamic_linker='OS/2 ld.exe'
9594  shlibpath_var=LIBPATH
9595  ;;
9596
9597osf3* | osf4* | osf5*)
9598  version_type=osf
9599  need_lib_prefix=no
9600  need_version=no
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9605  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9606  ;;
9607
9608rdos*)
9609  dynamic_linker=no
9610  ;;
9611
9612solaris*)
9613  version_type=linux
9614  need_lib_prefix=no
9615  need_version=no
9616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617  soname_spec='${libname}${release}${shared_ext}$major'
9618  shlibpath_var=LD_LIBRARY_PATH
9619  shlibpath_overrides_runpath=yes
9620  hardcode_into_libs=yes
9621  # ldd complains unless libraries are executable
9622  postinstall_cmds='chmod +x $lib'
9623  ;;
9624
9625sunos4*)
9626  version_type=sunos
9627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9628  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9629  shlibpath_var=LD_LIBRARY_PATH
9630  shlibpath_overrides_runpath=yes
9631  if test "$with_gnu_ld" = yes; then
9632    need_lib_prefix=no
9633  fi
9634  need_version=yes
9635  ;;
9636
9637sysv4 | sysv4.3*)
9638  version_type=linux
9639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640  soname_spec='${libname}${release}${shared_ext}$major'
9641  shlibpath_var=LD_LIBRARY_PATH
9642  case $host_vendor in
9643    sni)
9644      shlibpath_overrides_runpath=no
9645      need_lib_prefix=no
9646      runpath_var=LD_RUN_PATH
9647      ;;
9648    siemens)
9649      need_lib_prefix=no
9650      ;;
9651    motorola)
9652      need_lib_prefix=no
9653      need_version=no
9654      shlibpath_overrides_runpath=no
9655      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9656      ;;
9657  esac
9658  ;;
9659
9660sysv4*MP*)
9661  if test -d /usr/nec ;then
9662    version_type=linux
9663    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9664    soname_spec='$libname${shared_ext}.$major'
9665    shlibpath_var=LD_LIBRARY_PATH
9666  fi
9667  ;;
9668
9669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9670  version_type=freebsd-elf
9671  need_lib_prefix=no
9672  need_version=no
9673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9674  soname_spec='${libname}${release}${shared_ext}$major'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  hardcode_into_libs=yes
9678  if test "$with_gnu_ld" = yes; then
9679    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9680  else
9681    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9682    case $host_os in
9683      sco3.2v5*)
9684        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9685	;;
9686    esac
9687  fi
9688  sys_lib_dlsearch_path_spec='/usr/lib'
9689  ;;
9690
9691tpf*)
9692  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9693  version_type=linux
9694  need_lib_prefix=no
9695  need_version=no
9696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697  shlibpath_var=LD_LIBRARY_PATH
9698  shlibpath_overrides_runpath=no
9699  hardcode_into_libs=yes
9700  ;;
9701
9702uts4*)
9703  version_type=linux
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705  soname_spec='${libname}${release}${shared_ext}$major'
9706  shlibpath_var=LD_LIBRARY_PATH
9707  ;;
9708
9709*)
9710  dynamic_linker=no
9711  ;;
9712esac
9713{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9714echo "${ECHO_T}$dynamic_linker" >&6; }
9715test "$dynamic_linker" = no && can_build_shared=no
9716
9717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9718if test "$GCC" = yes; then
9719  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9720fi
9721
9722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9723  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9724fi
9725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9726  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9727fi
9728
9729
9730
9731
9732
9733
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  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9816echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9817hardcode_action=
9818if test -n "$hardcode_libdir_flag_spec" ||
9819   test -n "$runpath_var" ||
9820   test "X$hardcode_automatic" = "Xyes" ; then
9821
9822  # We can hardcode non-existent directories.
9823  if test "$hardcode_direct" != no &&
9824     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9825     # have to relink, otherwise we might link with an installed library
9826     # when we should be linking with a yet-to-be-installed one
9827     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9828     test "$hardcode_minus_L" != no; then
9829    # Linking always hardcodes the temporary library directory.
9830    hardcode_action=relink
9831  else
9832    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9833    hardcode_action=immediate
9834  fi
9835else
9836  # We cannot hardcode anything, or else we can only hardcode existing
9837  # directories.
9838  hardcode_action=unsupported
9839fi
9840{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9841echo "${ECHO_T}$hardcode_action" >&6; }
9842
9843if test "$hardcode_action" = relink ||
9844   test "$inherit_rpath" = yes; then
9845  # Fast installation is not supported
9846  enable_fast_install=no
9847elif test "$shlibpath_overrides_runpath" = yes ||
9848     test "$enable_shared" = no; then
9849  # Fast installation is not necessary
9850  enable_fast_install=needless
9851fi
9852
9853
9854
9855
9856
9857
9858  if test "x$enable_dlopen" != xyes; then
9859  enable_dlopen=unknown
9860  enable_dlopen_self=unknown
9861  enable_dlopen_self_static=unknown
9862else
9863  lt_cv_dlopen=no
9864  lt_cv_dlopen_libs=
9865
9866  case $host_os in
9867  beos*)
9868    lt_cv_dlopen="load_add_on"
9869    lt_cv_dlopen_libs=
9870    lt_cv_dlopen_self=yes
9871    ;;
9872
9873  mingw* | pw32* | cegcc*)
9874    lt_cv_dlopen="LoadLibrary"
9875    lt_cv_dlopen_libs=
9876    ;;
9877
9878  cygwin*)
9879    lt_cv_dlopen="dlopen"
9880    lt_cv_dlopen_libs=
9881    ;;
9882
9883  darwin*)
9884  # if libdl is installed we need to link against it
9885    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9886echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9888  echo $ECHO_N "(cached) $ECHO_C" >&6
9889else
9890  ac_check_lib_save_LIBS=$LIBS
9891LIBS="-ldl  $LIBS"
9892cat >conftest.$ac_ext <<_ACEOF
9893/* confdefs.h.  */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h.  */
9898
9899/* Override any GCC internal prototype to avoid an error.
9900   Use char because int might match the return type of a GCC
9901   builtin and then its argument prototype would still apply.  */
9902#ifdef __cplusplus
9903extern "C"
9904#endif
9905char dlopen ();
9906int
9907main ()
9908{
9909return dlopen ();
9910  ;
9911  return 0;
9912}
9913_ACEOF
9914rm -f conftest.$ac_objext conftest$ac_exeext
9915if { (ac_try="$ac_link"
9916case "(($ac_try" in
9917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918  *) ac_try_echo=$ac_try;;
9919esac
9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921  (eval "$ac_link") 2>conftest.er1
9922  ac_status=$?
9923  grep -v '^ *+' conftest.er1 >conftest.err
9924  rm -f conftest.er1
9925  cat conftest.err >&5
9926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927  (exit $ac_status); } && {
9928	 test -z "$ac_c_werror_flag" ||
9929	 test ! -s conftest.err
9930       } && test -s conftest$ac_exeext &&
9931       $as_test_x conftest$ac_exeext; then
9932  ac_cv_lib_dl_dlopen=yes
9933else
9934  echo "$as_me: failed program was:" >&5
9935sed 's/^/| /' conftest.$ac_ext >&5
9936
9937	ac_cv_lib_dl_dlopen=no
9938fi
9939
9940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9941      conftest$ac_exeext conftest.$ac_ext
9942LIBS=$ac_check_lib_save_LIBS
9943fi
9944{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9946if test $ac_cv_lib_dl_dlopen = yes; then
9947  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9948else
9949
9950    lt_cv_dlopen="dyld"
9951    lt_cv_dlopen_libs=
9952    lt_cv_dlopen_self=yes
9953
9954fi
9955
9956    ;;
9957
9958  *)
9959    { echo "$as_me:$LINENO: checking for shl_load" >&5
9960echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9961if test "${ac_cv_func_shl_load+set}" = set; then
9962  echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964  cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h.  */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h.  */
9970/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9971   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972#define shl_load innocuous_shl_load
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975    which can conflict with char shl_load (); below.
9976    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977    <limits.h> exists even on freestanding compilers.  */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef shl_load
9986
9987/* Override any GCC internal prototype to avoid an error.
9988   Use char because int might match the return type of a GCC
9989   builtin and then its argument prototype would still apply.  */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993char shl_load ();
9994/* The GNU C library defines this for functions which it implements
9995    to always fail with ENOSYS.  Some functions are actually named
9996    something starting with __ and the normal name is an alias.  */
9997#if defined __stub_shl_load || defined __stub___shl_load
9998choke me
9999#endif
10000
10001int
10002main ()
10003{
10004return shl_load ();
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013  *) ac_try_echo=$ac_try;;
10014esac
10015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016  (eval "$ac_link") 2>conftest.er1
10017  ac_status=$?
10018  grep -v '^ *+' conftest.er1 >conftest.err
10019  rm -f conftest.er1
10020  cat conftest.err >&5
10021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022  (exit $ac_status); } && {
10023	 test -z "$ac_c_werror_flag" ||
10024	 test ! -s conftest.err
10025       } && test -s conftest$ac_exeext &&
10026       $as_test_x conftest$ac_exeext; then
10027  ac_cv_func_shl_load=yes
10028else
10029  echo "$as_me: failed program was:" >&5
10030sed 's/^/| /' conftest.$ac_ext >&5
10031
10032	ac_cv_func_shl_load=no
10033fi
10034
10035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10036      conftest$ac_exeext conftest.$ac_ext
10037fi
10038{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10039echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10040if test $ac_cv_func_shl_load = yes; then
10041  lt_cv_dlopen="shl_load"
10042else
10043  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10044echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10045if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10046  echo $ECHO_N "(cached) $ECHO_C" >&6
10047else
10048  ac_check_lib_save_LIBS=$LIBS
10049LIBS="-ldld  $LIBS"
10050cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h.  */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h.  */
10056
10057/* Override any GCC internal prototype to avoid an error.
10058   Use char because int might match the return type of a GCC
10059   builtin and then its argument prototype would still apply.  */
10060#ifdef __cplusplus
10061extern "C"
10062#endif
10063char shl_load ();
10064int
10065main ()
10066{
10067return shl_load ();
10068  ;
10069  return 0;
10070}
10071_ACEOF
10072rm -f conftest.$ac_objext conftest$ac_exeext
10073if { (ac_try="$ac_link"
10074case "(($ac_try" in
10075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076  *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079  (eval "$ac_link") 2>conftest.er1
10080  ac_status=$?
10081  grep -v '^ *+' conftest.er1 >conftest.err
10082  rm -f conftest.er1
10083  cat conftest.err >&5
10084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085  (exit $ac_status); } && {
10086	 test -z "$ac_c_werror_flag" ||
10087	 test ! -s conftest.err
10088       } && test -s conftest$ac_exeext &&
10089       $as_test_x conftest$ac_exeext; then
10090  ac_cv_lib_dld_shl_load=yes
10091else
10092  echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095	ac_cv_lib_dld_shl_load=no
10096fi
10097
10098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10099      conftest$ac_exeext conftest.$ac_ext
10100LIBS=$ac_check_lib_save_LIBS
10101fi
10102{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10103echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10104if test $ac_cv_lib_dld_shl_load = yes; then
10105  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10106else
10107  { echo "$as_me:$LINENO: checking for dlopen" >&5
10108echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10109if test "${ac_cv_func_dlopen+set}" = set; then
10110  echo $ECHO_N "(cached) $ECHO_C" >&6
10111else
10112  cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h.  */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h.  */
10118/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10120#define dlopen innocuous_dlopen
10121
10122/* System header to define __stub macros and hopefully few prototypes,
10123    which can conflict with char dlopen (); below.
10124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125    <limits.h> exists even on freestanding compilers.  */
10126
10127#ifdef __STDC__
10128# include <limits.h>
10129#else
10130# include <assert.h>
10131#endif
10132
10133#undef dlopen
10134
10135/* Override any GCC internal prototype to avoid an error.
10136   Use char because int might match the return type of a GCC
10137   builtin and then its argument prototype would still apply.  */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141char dlopen ();
10142/* The GNU C library defines this for functions which it implements
10143    to always fail with ENOSYS.  Some functions are actually named
10144    something starting with __ and the normal name is an alias.  */
10145#if defined __stub_dlopen || defined __stub___dlopen
10146choke me
10147#endif
10148
10149int
10150main ()
10151{
10152return dlopen ();
10153  ;
10154  return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
10158if { (ac_try="$ac_link"
10159case "(($ac_try" in
10160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161  *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164  (eval "$ac_link") 2>conftest.er1
10165  ac_status=$?
10166  grep -v '^ *+' conftest.er1 >conftest.err
10167  rm -f conftest.er1
10168  cat conftest.err >&5
10169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170  (exit $ac_status); } && {
10171	 test -z "$ac_c_werror_flag" ||
10172	 test ! -s conftest.err
10173       } && test -s conftest$ac_exeext &&
10174       $as_test_x conftest$ac_exeext; then
10175  ac_cv_func_dlopen=yes
10176else
10177  echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
10180	ac_cv_func_dlopen=no
10181fi
10182
10183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10184      conftest$ac_exeext conftest.$ac_ext
10185fi
10186{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10187echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10188if test $ac_cv_func_dlopen = yes; then
10189  lt_cv_dlopen="dlopen"
10190else
10191  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10192echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10193if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10194  echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196  ac_check_lib_save_LIBS=$LIBS
10197LIBS="-ldl  $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204
10205/* Override any GCC internal prototype to avoid an error.
10206   Use char because int might match the return type of a GCC
10207   builtin and then its argument prototype would still apply.  */
10208#ifdef __cplusplus
10209extern "C"
10210#endif
10211char dlopen ();
10212int
10213main ()
10214{
10215return dlopen ();
10216  ;
10217  return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
10221if { (ac_try="$ac_link"
10222case "(($ac_try" in
10223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224  *) ac_try_echo=$ac_try;;
10225esac
10226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227  (eval "$ac_link") 2>conftest.er1
10228  ac_status=$?
10229  grep -v '^ *+' conftest.er1 >conftest.err
10230  rm -f conftest.er1
10231  cat conftest.err >&5
10232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233  (exit $ac_status); } && {
10234	 test -z "$ac_c_werror_flag" ||
10235	 test ! -s conftest.err
10236       } && test -s conftest$ac_exeext &&
10237       $as_test_x conftest$ac_exeext; then
10238  ac_cv_lib_dl_dlopen=yes
10239else
10240  echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243	ac_cv_lib_dl_dlopen=no
10244fi
10245
10246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10247      conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10251echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10252if test $ac_cv_lib_dl_dlopen = yes; then
10253  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10254else
10255  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10256echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10257if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10258  echo $ECHO_N "(cached) $ECHO_C" >&6
10259else
10260  ac_check_lib_save_LIBS=$LIBS
10261LIBS="-lsvld  $LIBS"
10262cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h.  */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h.  */
10268
10269/* Override any GCC internal prototype to avoid an error.
10270   Use char because int might match the return type of a GCC
10271   builtin and then its argument prototype would still apply.  */
10272#ifdef __cplusplus
10273extern "C"
10274#endif
10275char dlopen ();
10276int
10277main ()
10278{
10279return dlopen ();
10280  ;
10281  return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
10285if { (ac_try="$ac_link"
10286case "(($ac_try" in
10287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288  *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291  (eval "$ac_link") 2>conftest.er1
10292  ac_status=$?
10293  grep -v '^ *+' conftest.er1 >conftest.err
10294  rm -f conftest.er1
10295  cat conftest.err >&5
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); } && {
10298	 test -z "$ac_c_werror_flag" ||
10299	 test ! -s conftest.err
10300       } && test -s conftest$ac_exeext &&
10301       $as_test_x conftest$ac_exeext; then
10302  ac_cv_lib_svld_dlopen=yes
10303else
10304  echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307	ac_cv_lib_svld_dlopen=no
10308fi
10309
10310rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10311      conftest$ac_exeext conftest.$ac_ext
10312LIBS=$ac_check_lib_save_LIBS
10313fi
10314{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10315echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10316if test $ac_cv_lib_svld_dlopen = yes; then
10317  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10318else
10319  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10320echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10321if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10322  echo $ECHO_N "(cached) $ECHO_C" >&6
10323else
10324  ac_check_lib_save_LIBS=$LIBS
10325LIBS="-ldld  $LIBS"
10326cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h.  */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h.  */
10332
10333/* Override any GCC internal prototype to avoid an error.
10334   Use char because int might match the return type of a GCC
10335   builtin and then its argument prototype would still apply.  */
10336#ifdef __cplusplus
10337extern "C"
10338#endif
10339char dld_link ();
10340int
10341main ()
10342{
10343return dld_link ();
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348rm -f conftest.$ac_objext conftest$ac_exeext
10349if { (ac_try="$ac_link"
10350case "(($ac_try" in
10351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352  *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355  (eval "$ac_link") 2>conftest.er1
10356  ac_status=$?
10357  grep -v '^ *+' conftest.er1 >conftest.err
10358  rm -f conftest.er1
10359  cat conftest.err >&5
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); } && {
10362	 test -z "$ac_c_werror_flag" ||
10363	 test ! -s conftest.err
10364       } && test -s conftest$ac_exeext &&
10365       $as_test_x conftest$ac_exeext; then
10366  ac_cv_lib_dld_dld_link=yes
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371	ac_cv_lib_dld_dld_link=no
10372fi
10373
10374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375      conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
10378{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10379echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10380if test $ac_cv_lib_dld_dld_link = yes; then
10381  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10382fi
10383
10384
10385fi
10386
10387
10388fi
10389
10390
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399    ;;
10400  esac
10401
10402  if test "x$lt_cv_dlopen" != xno; then
10403    enable_dlopen=yes
10404  else
10405    enable_dlopen=no
10406  fi
10407
10408  case $lt_cv_dlopen in
10409  dlopen)
10410    save_CPPFLAGS="$CPPFLAGS"
10411    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10412
10413    save_LDFLAGS="$LDFLAGS"
10414    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10415
10416    save_LIBS="$LIBS"
10417    LIBS="$lt_cv_dlopen_libs $LIBS"
10418
10419    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10420echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10421if test "${lt_cv_dlopen_self+set}" = set; then
10422  echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424  	  if test "$cross_compiling" = yes; then :
10425  lt_cv_dlopen_self=cross
10426else
10427  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10428  lt_status=$lt_dlunknown
10429  cat > conftest.$ac_ext <<_LT_EOF
10430#line 10436 "configure"
10431#include "confdefs.h"
10432
10433#if HAVE_DLFCN_H
10434#include <dlfcn.h>
10435#endif
10436
10437#include <stdio.h>
10438
10439#ifdef RTLD_GLOBAL
10440#  define LT_DLGLOBAL		RTLD_GLOBAL
10441#else
10442#  ifdef DL_GLOBAL
10443#    define LT_DLGLOBAL		DL_GLOBAL
10444#  else
10445#    define LT_DLGLOBAL		0
10446#  endif
10447#endif
10448
10449/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10450   find out it does not work in some platform. */
10451#ifndef LT_DLLAZY_OR_NOW
10452#  ifdef RTLD_LAZY
10453#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10454#  else
10455#    ifdef DL_LAZY
10456#      define LT_DLLAZY_OR_NOW		DL_LAZY
10457#    else
10458#      ifdef RTLD_NOW
10459#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10460#      else
10461#        ifdef DL_NOW
10462#          define LT_DLLAZY_OR_NOW	DL_NOW
10463#        else
10464#          define LT_DLLAZY_OR_NOW	0
10465#        endif
10466#      endif
10467#    endif
10468#  endif
10469#endif
10470
10471void fnord() { int i=42;}
10472int main ()
10473{
10474  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10475  int status = $lt_dlunknown;
10476
10477  if (self)
10478    {
10479      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10480      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10481      /* dlclose (self); */
10482    }
10483  else
10484    puts (dlerror ());
10485
10486  return status;
10487}
10488_LT_EOF
10489  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10490  (eval $ac_link) 2>&5
10491  ac_status=$?
10492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10494    (./conftest; exit; ) >&5 2>/dev/null
10495    lt_status=$?
10496    case x$lt_status in
10497      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10498      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10499      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10500    esac
10501  else :
10502    # compilation failed
10503    lt_cv_dlopen_self=no
10504  fi
10505fi
10506rm -fr conftest*
10507
10508
10509fi
10510{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10511echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10512
10513    if test "x$lt_cv_dlopen_self" = xyes; then
10514      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10515      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10516echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10517if test "${lt_cv_dlopen_self_static+set}" = set; then
10518  echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520  	  if test "$cross_compiling" = yes; then :
10521  lt_cv_dlopen_self_static=cross
10522else
10523  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10524  lt_status=$lt_dlunknown
10525  cat > conftest.$ac_ext <<_LT_EOF
10526#line 10532 "configure"
10527#include "confdefs.h"
10528
10529#if HAVE_DLFCN_H
10530#include <dlfcn.h>
10531#endif
10532
10533#include <stdio.h>
10534
10535#ifdef RTLD_GLOBAL
10536#  define LT_DLGLOBAL		RTLD_GLOBAL
10537#else
10538#  ifdef DL_GLOBAL
10539#    define LT_DLGLOBAL		DL_GLOBAL
10540#  else
10541#    define LT_DLGLOBAL		0
10542#  endif
10543#endif
10544
10545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10546   find out it does not work in some platform. */
10547#ifndef LT_DLLAZY_OR_NOW
10548#  ifdef RTLD_LAZY
10549#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10550#  else
10551#    ifdef DL_LAZY
10552#      define LT_DLLAZY_OR_NOW		DL_LAZY
10553#    else
10554#      ifdef RTLD_NOW
10555#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10556#      else
10557#        ifdef DL_NOW
10558#          define LT_DLLAZY_OR_NOW	DL_NOW
10559#        else
10560#          define LT_DLLAZY_OR_NOW	0
10561#        endif
10562#      endif
10563#    endif
10564#  endif
10565#endif
10566
10567void fnord() { int i=42;}
10568int main ()
10569{
10570  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10571  int status = $lt_dlunknown;
10572
10573  if (self)
10574    {
10575      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10576      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10577      /* dlclose (self); */
10578    }
10579  else
10580    puts (dlerror ());
10581
10582  return status;
10583}
10584_LT_EOF
10585  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586  (eval $ac_link) 2>&5
10587  ac_status=$?
10588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10590    (./conftest; exit; ) >&5 2>/dev/null
10591    lt_status=$?
10592    case x$lt_status in
10593      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10594      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10595      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10596    esac
10597  else :
10598    # compilation failed
10599    lt_cv_dlopen_self_static=no
10600  fi
10601fi
10602rm -fr conftest*
10603
10604
10605fi
10606{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10607echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10608    fi
10609
10610    CPPFLAGS="$save_CPPFLAGS"
10611    LDFLAGS="$save_LDFLAGS"
10612    LIBS="$save_LIBS"
10613    ;;
10614  esac
10615
10616  case $lt_cv_dlopen_self in
10617  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10618  *) enable_dlopen_self=unknown ;;
10619  esac
10620
10621  case $lt_cv_dlopen_self_static in
10622  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10623  *) enable_dlopen_self_static=unknown ;;
10624  esac
10625fi
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643striplib=
10644old_striplib=
10645{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10646echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10647if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10648  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10649  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10650  { echo "$as_me:$LINENO: result: yes" >&5
10651echo "${ECHO_T}yes" >&6; }
10652else
10653# FIXME - insert some real tests, host_os isn't really good enough
10654  case $host_os in
10655  darwin*)
10656    if test -n "$STRIP" ; then
10657      striplib="$STRIP -x"
10658      old_striplib="$STRIP -S"
10659      { echo "$as_me:$LINENO: result: yes" >&5
10660echo "${ECHO_T}yes" >&6; }
10661    else
10662      { echo "$as_me:$LINENO: result: no" >&5
10663echo "${ECHO_T}no" >&6; }
10664    fi
10665    ;;
10666  *)
10667    { echo "$as_me:$LINENO: result: no" >&5
10668echo "${ECHO_T}no" >&6; }
10669    ;;
10670  esac
10671fi
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684  # Report which library types will actually be built
10685  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10686echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10687  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10688echo "${ECHO_T}$can_build_shared" >&6; }
10689
10690  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10691echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10692  test "$can_build_shared" = "no" && enable_shared=no
10693
10694  # On AIX, shared libraries and static libraries use the same namespace, and
10695  # are all built from PIC.
10696  case $host_os in
10697  aix3*)
10698    test "$enable_shared" = yes && enable_static=no
10699    if test -n "$RANLIB"; then
10700      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10701      postinstall_cmds='$RANLIB $lib'
10702    fi
10703    ;;
10704
10705  aix[4-9]*)
10706    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10707      test "$enable_shared" = yes && enable_static=no
10708    fi
10709    ;;
10710  esac
10711  { echo "$as_me:$LINENO: result: $enable_shared" >&5
10712echo "${ECHO_T}$enable_shared" >&6; }
10713
10714  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10715echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10716  # Make sure either enable_shared or enable_static is yes.
10717  test "$enable_shared" = yes || enable_static=yes
10718  { echo "$as_me:$LINENO: result: $enable_static" >&5
10719echo "${ECHO_T}$enable_static" >&6; }
10720
10721
10722
10723
10724fi
10725ac_ext=c
10726ac_cpp='$CPP $CPPFLAGS'
10727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10729ac_compiler_gnu=$ac_cv_c_compiler_gnu
10730
10731CC="$lt_save_CC"
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745        ac_config_commands="$ac_config_commands libtool"
10746
10747
10748
10749
10750# Only expand once:
10751
10752
10753
10754LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
10755LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
10756LT_REVISION=$SDL_INTERFACE_AGE
10757LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
10758
10759
10760
10761
10762
10763
10764
10765ac_aux_dir=
10766for ac_dir in build-scripts "$srcdir"/build-scripts; do
10767  if test -f "$ac_dir/install-sh"; then
10768    ac_aux_dir=$ac_dir
10769    ac_install_sh="$ac_aux_dir/install-sh -c"
10770    break
10771  elif test -f "$ac_dir/install.sh"; then
10772    ac_aux_dir=$ac_dir
10773    ac_install_sh="$ac_aux_dir/install.sh -c"
10774    break
10775  elif test -f "$ac_dir/shtool"; then
10776    ac_aux_dir=$ac_dir
10777    ac_install_sh="$ac_aux_dir/shtool install -c"
10778    break
10779  fi
10780done
10781if test -z "$ac_aux_dir"; then
10782  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&5
10783echo "$as_me: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&2;}
10784   { (exit 1); exit 1; }; }
10785fi
10786
10787# These three variables are undocumented and unsupported,
10788# and are intended to be withdrawn in a future Autoconf release.
10789# They can cause serious problems if a builder's source tree is in a directory
10790# whose full name contains unusual characters.
10791ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10792ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10793ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10794
10795
10796{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10797echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
10798if test "${ac_cv_c_bigendian+set}" = set; then
10799  echo $ECHO_N "(cached) $ECHO_C" >&6
10800else
10801  # See if sys/param.h defines the BYTE_ORDER macro.
10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h.  */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
10807/* end confdefs.h.  */
10808#include <sys/types.h>
10809#include <sys/param.h>
10810
10811int
10812main ()
10813{
10814#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
10815	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
10816 bogus endian macros
10817#endif
10818
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823rm -f conftest.$ac_objext
10824if { (ac_try="$ac_compile"
10825case "(($ac_try" in
10826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827  *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830  (eval "$ac_compile") 2>conftest.er1
10831  ac_status=$?
10832  grep -v '^ *+' conftest.er1 >conftest.err
10833  rm -f conftest.er1
10834  cat conftest.err >&5
10835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836  (exit $ac_status); } && {
10837	 test -z "$ac_c_werror_flag" ||
10838	 test ! -s conftest.err
10839       } && test -s conftest.$ac_objext; then
10840  # It does; now see whether it defined to BIG_ENDIAN or not.
10841cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h.  */
10843_ACEOF
10844cat confdefs.h >>conftest.$ac_ext
10845cat >>conftest.$ac_ext <<_ACEOF
10846/* end confdefs.h.  */
10847#include <sys/types.h>
10848#include <sys/param.h>
10849
10850int
10851main ()
10852{
10853#if BYTE_ORDER != BIG_ENDIAN
10854 not big endian
10855#endif
10856
10857  ;
10858  return 0;
10859}
10860_ACEOF
10861rm -f conftest.$ac_objext
10862if { (ac_try="$ac_compile"
10863case "(($ac_try" in
10864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865  *) ac_try_echo=$ac_try;;
10866esac
10867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868  (eval "$ac_compile") 2>conftest.er1
10869  ac_status=$?
10870  grep -v '^ *+' conftest.er1 >conftest.err
10871  rm -f conftest.er1
10872  cat conftest.err >&5
10873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874  (exit $ac_status); } && {
10875	 test -z "$ac_c_werror_flag" ||
10876	 test ! -s conftest.err
10877       } && test -s conftest.$ac_objext; then
10878  ac_cv_c_bigendian=yes
10879else
10880  echo "$as_me: failed program was:" >&5
10881sed 's/^/| /' conftest.$ac_ext >&5
10882
10883	ac_cv_c_bigendian=no
10884fi
10885
10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887else
10888  echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
10891	# It does not; compile a test program.
10892if test "$cross_compiling" = yes; then
10893  # try to guess the endianness by grepping values into an object file
10894  ac_cv_c_bigendian=unknown
10895  cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h.  */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h.  */
10901short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10902short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10903void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10904short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10905short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10906void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10907int
10908main ()
10909{
10910 _ascii (); _ebcdic ();
10911  ;
10912  return 0;
10913}
10914_ACEOF
10915rm -f conftest.$ac_objext
10916if { (ac_try="$ac_compile"
10917case "(($ac_try" in
10918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919  *) ac_try_echo=$ac_try;;
10920esac
10921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922  (eval "$ac_compile") 2>conftest.er1
10923  ac_status=$?
10924  grep -v '^ *+' conftest.er1 >conftest.err
10925  rm -f conftest.er1
10926  cat conftest.err >&5
10927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928  (exit $ac_status); } && {
10929	 test -z "$ac_c_werror_flag" ||
10930	 test ! -s conftest.err
10931       } && test -s conftest.$ac_objext; then
10932  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10933  ac_cv_c_bigendian=yes
10934fi
10935if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10936  if test "$ac_cv_c_bigendian" = unknown; then
10937    ac_cv_c_bigendian=no
10938  else
10939    # finding both strings is unlikely to happen, but who knows?
10940    ac_cv_c_bigendian=unknown
10941  fi
10942fi
10943else
10944  echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947
10948fi
10949
10950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951else
10952  cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h.  */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h.  */
10958$ac_includes_default
10959int
10960main ()
10961{
10962
10963  /* Are we little or big endian?  From Harbison&Steele.  */
10964  union
10965  {
10966    long int l;
10967    char c[sizeof (long int)];
10968  } u;
10969  u.l = 1;
10970  return u.c[sizeof (long int) - 1] == 1;
10971
10972  ;
10973  return 0;
10974}
10975_ACEOF
10976rm -f conftest$ac_exeext
10977if { (ac_try="$ac_link"
10978case "(($ac_try" in
10979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980  *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983  (eval "$ac_link") 2>&5
10984  ac_status=$?
10985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10987  { (case "(($ac_try" in
10988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989  *) ac_try_echo=$ac_try;;
10990esac
10991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992  (eval "$ac_try") 2>&5
10993  ac_status=$?
10994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995  (exit $ac_status); }; }; then
10996  ac_cv_c_bigendian=no
10997else
10998  echo "$as_me: program exited with status $ac_status" >&5
10999echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002( exit $ac_status )
11003ac_cv_c_bigendian=yes
11004fi
11005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11006fi
11007
11008
11009fi
11010
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012fi
11013{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11014echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11015case $ac_cv_c_bigendian in
11016  yes)
11017
11018cat >>confdefs.h <<\_ACEOF
11019#define WORDS_BIGENDIAN 1
11020_ACEOF
11021 ;;
11022  no)
11023     ;;
11024  *)
11025    { { echo "$as_me:$LINENO: error: unknown endianness
11026presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11027echo "$as_me: error: unknown endianness
11028presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11029   { (exit 1); exit 1; }; } ;;
11030esac
11031
11032if test x$ac_cv_c_bigendian = xyes; then
11033    cat >>confdefs.h <<\_ACEOF
11034#define SDL_BYTEORDER 4321
11035_ACEOF
11036
11037else
11038    cat >>confdefs.h <<\_ACEOF
11039#define SDL_BYTEORDER 1234
11040_ACEOF
11041
11042fi
11043
11044
11045ac_ext=c
11046ac_cpp='$CPP $CPPFLAGS'
11047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11049ac_compiler_gnu=$ac_cv_c_compiler_gnu
11050if test -n "$ac_tool_prefix"; then
11051  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11052set dummy ${ac_tool_prefix}gcc; ac_word=$2
11053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11055if test "${ac_cv_prog_CC+set}" = set; then
11056  echo $ECHO_N "(cached) $ECHO_C" >&6
11057else
11058  if test -n "$CC"; then
11059  ac_cv_prog_CC="$CC" # Let the user override the test.
11060else
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064  IFS=$as_save_IFS
11065  test -z "$as_dir" && as_dir=.
11066  for ac_exec_ext in '' $ac_executable_extensions; do
11067  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11068    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11070    break 2
11071  fi
11072done
11073done
11074IFS=$as_save_IFS
11075
11076fi
11077fi
11078CC=$ac_cv_prog_CC
11079if test -n "$CC"; then
11080  { echo "$as_me:$LINENO: result: $CC" >&5
11081echo "${ECHO_T}$CC" >&6; }
11082else
11083  { echo "$as_me:$LINENO: result: no" >&5
11084echo "${ECHO_T}no" >&6; }
11085fi
11086
11087
11088fi
11089if test -z "$ac_cv_prog_CC"; then
11090  ac_ct_CC=$CC
11091  # Extract the first word of "gcc", so it can be a program name with args.
11092set dummy gcc; ac_word=$2
11093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11096  echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098  if test -n "$ac_ct_CC"; then
11099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11100else
11101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102for as_dir in $PATH
11103do
11104  IFS=$as_save_IFS
11105  test -z "$as_dir" && as_dir=.
11106  for ac_exec_ext in '' $ac_executable_extensions; do
11107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11108    ac_cv_prog_ac_ct_CC="gcc"
11109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11110    break 2
11111  fi
11112done
11113done
11114IFS=$as_save_IFS
11115
11116fi
11117fi
11118ac_ct_CC=$ac_cv_prog_ac_ct_CC
11119if test -n "$ac_ct_CC"; then
11120  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11121echo "${ECHO_T}$ac_ct_CC" >&6; }
11122else
11123  { echo "$as_me:$LINENO: result: no" >&5
11124echo "${ECHO_T}no" >&6; }
11125fi
11126
11127  if test "x$ac_ct_CC" = x; then
11128    CC=""
11129  else
11130    case $cross_compiling:$ac_tool_warned in
11131yes:)
11132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11133whose name does not start with the host triplet.  If you think this
11134configuration is useful to you, please write to autoconf@gnu.org." >&5
11135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11136whose name does not start with the host triplet.  If you think this
11137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11138ac_tool_warned=yes ;;
11139esac
11140    CC=$ac_ct_CC
11141  fi
11142else
11143  CC="$ac_cv_prog_CC"
11144fi
11145
11146if test -z "$CC"; then
11147          if test -n "$ac_tool_prefix"; then
11148    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11149set dummy ${ac_tool_prefix}cc; ac_word=$2
11150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11152if test "${ac_cv_prog_CC+set}" = set; then
11153  echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155  if test -n "$CC"; then
11156  ac_cv_prog_CC="$CC" # Let the user override the test.
11157else
11158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161  IFS=$as_save_IFS
11162  test -z "$as_dir" && as_dir=.
11163  for ac_exec_ext in '' $ac_executable_extensions; do
11164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165    ac_cv_prog_CC="${ac_tool_prefix}cc"
11166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11167    break 2
11168  fi
11169done
11170done
11171IFS=$as_save_IFS
11172
11173fi
11174fi
11175CC=$ac_cv_prog_CC
11176if test -n "$CC"; then
11177  { echo "$as_me:$LINENO: result: $CC" >&5
11178echo "${ECHO_T}$CC" >&6; }
11179else
11180  { echo "$as_me:$LINENO: result: no" >&5
11181echo "${ECHO_T}no" >&6; }
11182fi
11183
11184
11185  fi
11186fi
11187if test -z "$CC"; then
11188  # Extract the first word of "cc", so it can be a program name with args.
11189set dummy cc; ac_word=$2
11190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11192if test "${ac_cv_prog_CC+set}" = set; then
11193  echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195  if test -n "$CC"; then
11196  ac_cv_prog_CC="$CC" # Let the user override the test.
11197else
11198  ac_prog_rejected=no
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202  IFS=$as_save_IFS
11203  test -z "$as_dir" && as_dir=.
11204  for ac_exec_ext in '' $ac_executable_extensions; do
11205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11207       ac_prog_rejected=yes
11208       continue
11209     fi
11210    ac_cv_prog_CC="cc"
11211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212    break 2
11213  fi
11214done
11215done
11216IFS=$as_save_IFS
11217
11218if test $ac_prog_rejected = yes; then
11219  # We found a bogon in the path, so make sure we never use it.
11220  set dummy $ac_cv_prog_CC
11221  shift
11222  if test $# != 0; then
11223    # We chose a different compiler from the bogus one.
11224    # However, it has the same basename, so the bogon will be chosen
11225    # first if we set CC to just the basename; use the full file name.
11226    shift
11227    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11228  fi
11229fi
11230fi
11231fi
11232CC=$ac_cv_prog_CC
11233if test -n "$CC"; then
11234  { echo "$as_me:$LINENO: result: $CC" >&5
11235echo "${ECHO_T}$CC" >&6; }
11236else
11237  { echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6; }
11239fi
11240
11241
11242fi
11243if test -z "$CC"; then
11244  if test -n "$ac_tool_prefix"; then
11245  for ac_prog in cl.exe
11246  do
11247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11251if test "${ac_cv_prog_CC+set}" = set; then
11252  echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254  if test -n "$CC"; then
11255  ac_cv_prog_CC="$CC" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260  IFS=$as_save_IFS
11261  test -z "$as_dir" && as_dir=.
11262  for ac_exec_ext in '' $ac_executable_extensions; do
11263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266    break 2
11267  fi
11268done
11269done
11270IFS=$as_save_IFS
11271
11272fi
11273fi
11274CC=$ac_cv_prog_CC
11275if test -n "$CC"; then
11276  { echo "$as_me:$LINENO: result: $CC" >&5
11277echo "${ECHO_T}$CC" >&6; }
11278else
11279  { echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6; }
11281fi
11282
11283
11284    test -n "$CC" && break
11285  done
11286fi
11287if test -z "$CC"; then
11288  ac_ct_CC=$CC
11289  for ac_prog in cl.exe
11290do
11291  # Extract the first word of "$ac_prog", so it can be a program name with args.
11292set dummy $ac_prog; ac_word=$2
11293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11295if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11296  echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298  if test -n "$ac_ct_CC"; then
11299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304  IFS=$as_save_IFS
11305  test -z "$as_dir" && as_dir=.
11306  for ac_exec_ext in '' $ac_executable_extensions; do
11307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11308    ac_cv_prog_ac_ct_CC="$ac_prog"
11309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11310    break 2
11311  fi
11312done
11313done
11314IFS=$as_save_IFS
11315
11316fi
11317fi
11318ac_ct_CC=$ac_cv_prog_ac_ct_CC
11319if test -n "$ac_ct_CC"; then
11320  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11321echo "${ECHO_T}$ac_ct_CC" >&6; }
11322else
11323  { echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6; }
11325fi
11326
11327
11328  test -n "$ac_ct_CC" && break
11329done
11330
11331  if test "x$ac_ct_CC" = x; then
11332    CC=""
11333  else
11334    case $cross_compiling:$ac_tool_warned in
11335yes:)
11336{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11337whose name does not start with the host triplet.  If you think this
11338configuration is useful to you, please write to autoconf@gnu.org." >&5
11339echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11340whose name does not start with the host triplet.  If you think this
11341configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11342ac_tool_warned=yes ;;
11343esac
11344    CC=$ac_ct_CC
11345  fi
11346fi
11347
11348fi
11349
11350
11351test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11352See \`config.log' for more details." >&5
11353echo "$as_me: error: no acceptable C compiler found in \$PATH
11354See \`config.log' for more details." >&2;}
11355   { (exit 1); exit 1; }; }
11356
11357# Provide some information about the compiler.
11358echo "$as_me:$LINENO: checking for C compiler version" >&5
11359ac_compiler=`set X $ac_compile; echo $2`
11360{ (ac_try="$ac_compiler --version >&5"
11361case "(($ac_try" in
11362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363  *) ac_try_echo=$ac_try;;
11364esac
11365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366  (eval "$ac_compiler --version >&5") 2>&5
11367  ac_status=$?
11368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369  (exit $ac_status); }
11370{ (ac_try="$ac_compiler -v >&5"
11371case "(($ac_try" in
11372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373  *) ac_try_echo=$ac_try;;
11374esac
11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376  (eval "$ac_compiler -v >&5") 2>&5
11377  ac_status=$?
11378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379  (exit $ac_status); }
11380{ (ac_try="$ac_compiler -V >&5"
11381case "(($ac_try" in
11382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383  *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386  (eval "$ac_compiler -V >&5") 2>&5
11387  ac_status=$?
11388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389  (exit $ac_status); }
11390
11391{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11392echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11393if test "${ac_cv_c_compiler_gnu+set}" = set; then
11394  echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396  cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h.  */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h.  */
11402
11403int
11404main ()
11405{
11406#ifndef __GNUC__
11407       choke me
11408#endif
11409
11410  ;
11411  return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (ac_try="$ac_compile"
11416case "(($ac_try" in
11417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418  *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421  (eval "$ac_compile") 2>conftest.er1
11422  ac_status=$?
11423  grep -v '^ *+' conftest.er1 >conftest.err
11424  rm -f conftest.er1
11425  cat conftest.err >&5
11426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427  (exit $ac_status); } && {
11428	 test -z "$ac_c_werror_flag" ||
11429	 test ! -s conftest.err
11430       } && test -s conftest.$ac_objext; then
11431  ac_compiler_gnu=yes
11432else
11433  echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436	ac_compiler_gnu=no
11437fi
11438
11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440ac_cv_c_compiler_gnu=$ac_compiler_gnu
11441
11442fi
11443{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11444echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11445GCC=`test $ac_compiler_gnu = yes && echo yes`
11446ac_test_CFLAGS=${CFLAGS+set}
11447ac_save_CFLAGS=$CFLAGS
11448{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11449echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11450if test "${ac_cv_prog_cc_g+set}" = set; then
11451  echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453  ac_save_c_werror_flag=$ac_c_werror_flag
11454   ac_c_werror_flag=yes
11455   ac_cv_prog_cc_g=no
11456   CFLAGS="-g"
11457   cat >conftest.$ac_ext <<_ACEOF
11458/* confdefs.h.  */
11459_ACEOF
11460cat confdefs.h >>conftest.$ac_ext
11461cat >>conftest.$ac_ext <<_ACEOF
11462/* end confdefs.h.  */
11463
11464int
11465main ()
11466{
11467
11468  ;
11469  return 0;
11470}
11471_ACEOF
11472rm -f conftest.$ac_objext
11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476  *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479  (eval "$ac_compile") 2>conftest.er1
11480  ac_status=$?
11481  grep -v '^ *+' conftest.er1 >conftest.err
11482  rm -f conftest.er1
11483  cat conftest.err >&5
11484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485  (exit $ac_status); } && {
11486	 test -z "$ac_c_werror_flag" ||
11487	 test ! -s conftest.err
11488       } && test -s conftest.$ac_objext; then
11489  ac_cv_prog_cc_g=yes
11490else
11491  echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494	CFLAGS=""
11495      cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h.  */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h.  */
11501
11502int
11503main ()
11504{
11505
11506  ;
11507  return 0;
11508}
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (ac_try="$ac_compile"
11512case "(($ac_try" in
11513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514  *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517  (eval "$ac_compile") 2>conftest.er1
11518  ac_status=$?
11519  grep -v '^ *+' conftest.er1 >conftest.err
11520  rm -f conftest.er1
11521  cat conftest.err >&5
11522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523  (exit $ac_status); } && {
11524	 test -z "$ac_c_werror_flag" ||
11525	 test ! -s conftest.err
11526       } && test -s conftest.$ac_objext; then
11527  :
11528else
11529  echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532	ac_c_werror_flag=$ac_save_c_werror_flag
11533	 CFLAGS="-g"
11534	 cat >conftest.$ac_ext <<_ACEOF
11535/* confdefs.h.  */
11536_ACEOF
11537cat confdefs.h >>conftest.$ac_ext
11538cat >>conftest.$ac_ext <<_ACEOF
11539/* end confdefs.h.  */
11540
11541int
11542main ()
11543{
11544
11545  ;
11546  return 0;
11547}
11548_ACEOF
11549rm -f conftest.$ac_objext
11550if { (ac_try="$ac_compile"
11551case "(($ac_try" in
11552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553  *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556  (eval "$ac_compile") 2>conftest.er1
11557  ac_status=$?
11558  grep -v '^ *+' conftest.er1 >conftest.err
11559  rm -f conftest.er1
11560  cat conftest.err >&5
11561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562  (exit $ac_status); } && {
11563	 test -z "$ac_c_werror_flag" ||
11564	 test ! -s conftest.err
11565       } && test -s conftest.$ac_objext; then
11566  ac_cv_prog_cc_g=yes
11567else
11568  echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
11571
11572fi
11573
11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575fi
11576
11577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578fi
11579
11580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11581   ac_c_werror_flag=$ac_save_c_werror_flag
11582fi
11583{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11584echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11585if test "$ac_test_CFLAGS" = set; then
11586  CFLAGS=$ac_save_CFLAGS
11587elif test $ac_cv_prog_cc_g = yes; then
11588  if test "$GCC" = yes; then
11589    CFLAGS="-g -O2"
11590  else
11591    CFLAGS="-g"
11592  fi
11593else
11594  if test "$GCC" = yes; then
11595    CFLAGS="-O2"
11596  else
11597    CFLAGS=
11598  fi
11599fi
11600{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11601echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11602if test "${ac_cv_prog_cc_c89+set}" = set; then
11603  echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605  ac_cv_prog_cc_c89=no
11606ac_save_CC=$CC
11607cat >conftest.$ac_ext <<_ACEOF
11608/* confdefs.h.  */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h.  */
11613#include <stdarg.h>
11614#include <stdio.h>
11615#include <sys/types.h>
11616#include <sys/stat.h>
11617/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11618struct buf { int x; };
11619FILE * (*rcsopen) (struct buf *, struct stat *, int);
11620static char *e (p, i)
11621     char **p;
11622     int i;
11623{
11624  return p[i];
11625}
11626static char *f (char * (*g) (char **, int), char **p, ...)
11627{
11628  char *s;
11629  va_list v;
11630  va_start (v,p);
11631  s = g (p, va_arg (v,int));
11632  va_end (v);
11633  return s;
11634}
11635
11636/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11637   function prototypes and stuff, but not '\xHH' hex character constants.
11638   These don't provoke an error unfortunately, instead are silently treated
11639   as 'x'.  The following induces an error, until -std is added to get
11640   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11641   array size at least.  It's necessary to write '\x00'==0 to get something
11642   that's true only with -std.  */
11643int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11644
11645/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11646   inside strings and character constants.  */
11647#define FOO(x) 'x'
11648int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11649
11650int test (int i, double x);
11651struct s1 {int (*f) (int a);};
11652struct s2 {int (*f) (double a);};
11653int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11654int argc;
11655char **argv;
11656int
11657main ()
11658{
11659return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11665	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11666do
11667  CC="$ac_save_CC $ac_arg"
11668  rm -f conftest.$ac_objext
11669if { (ac_try="$ac_compile"
11670case "(($ac_try" in
11671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672  *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675  (eval "$ac_compile") 2>conftest.er1
11676  ac_status=$?
11677  grep -v '^ *+' conftest.er1 >conftest.err
11678  rm -f conftest.er1
11679  cat conftest.err >&5
11680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681  (exit $ac_status); } && {
11682	 test -z "$ac_c_werror_flag" ||
11683	 test ! -s conftest.err
11684       } && test -s conftest.$ac_objext; then
11685  ac_cv_prog_cc_c89=$ac_arg
11686else
11687  echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690
11691fi
11692
11693rm -f core conftest.err conftest.$ac_objext
11694  test "x$ac_cv_prog_cc_c89" != "xno" && break
11695done
11696rm -f conftest.$ac_ext
11697CC=$ac_save_CC
11698
11699fi
11700# AC_CACHE_VAL
11701case "x$ac_cv_prog_cc_c89" in
11702  x)
11703    { echo "$as_me:$LINENO: result: none needed" >&5
11704echo "${ECHO_T}none needed" >&6; } ;;
11705  xno)
11706    { echo "$as_me:$LINENO: result: unsupported" >&5
11707echo "${ECHO_T}unsupported" >&6; } ;;
11708  *)
11709    CC="$CC $ac_cv_prog_cc_c89"
11710    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11711echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11712esac
11713
11714
11715ac_ext=c
11716ac_cpp='$CPP $CPPFLAGS'
11717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11719ac_compiler_gnu=$ac_cv_c_compiler_gnu
11720
11721ac_ext=cpp
11722ac_cpp='$CXXCPP $CPPFLAGS'
11723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11726if test -z "$CXX"; then
11727  if test -n "$CCC"; then
11728    CXX=$CCC
11729  else
11730    if test -n "$ac_tool_prefix"; then
11731  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11732  do
11733    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11735{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11737if test "${ac_cv_prog_CXX+set}" = set; then
11738  echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740  if test -n "$CXX"; then
11741  ac_cv_prog_CXX="$CXX" # Let the user override the test.
11742else
11743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744for as_dir in $PATH
11745do
11746  IFS=$as_save_IFS
11747  test -z "$as_dir" && as_dir=.
11748  for ac_exec_ext in '' $ac_executable_extensions; do
11749  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11750    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11752    break 2
11753  fi
11754done
11755done
11756IFS=$as_save_IFS
11757
11758fi
11759fi
11760CXX=$ac_cv_prog_CXX
11761if test -n "$CXX"; then
11762  { echo "$as_me:$LINENO: result: $CXX" >&5
11763echo "${ECHO_T}$CXX" >&6; }
11764else
11765  { echo "$as_me:$LINENO: result: no" >&5
11766echo "${ECHO_T}no" >&6; }
11767fi
11768
11769
11770    test -n "$CXX" && break
11771  done
11772fi
11773if test -z "$CXX"; then
11774  ac_ct_CXX=$CXX
11775  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11776do
11777  # Extract the first word of "$ac_prog", so it can be a program name with args.
11778set dummy $ac_prog; ac_word=$2
11779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11781if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11782  echo $ECHO_N "(cached) $ECHO_C" >&6
11783else
11784  if test -n "$ac_ct_CXX"; then
11785  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11786else
11787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11788for as_dir in $PATH
11789do
11790  IFS=$as_save_IFS
11791  test -z "$as_dir" && as_dir=.
11792  for ac_exec_ext in '' $ac_executable_extensions; do
11793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11794    ac_cv_prog_ac_ct_CXX="$ac_prog"
11795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11796    break 2
11797  fi
11798done
11799done
11800IFS=$as_save_IFS
11801
11802fi
11803fi
11804ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11805if test -n "$ac_ct_CXX"; then
11806  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11807echo "${ECHO_T}$ac_ct_CXX" >&6; }
11808else
11809  { echo "$as_me:$LINENO: result: no" >&5
11810echo "${ECHO_T}no" >&6; }
11811fi
11812
11813
11814  test -n "$ac_ct_CXX" && break
11815done
11816
11817  if test "x$ac_ct_CXX" = x; then
11818    CXX="g++"
11819  else
11820    case $cross_compiling:$ac_tool_warned in
11821yes:)
11822{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11823whose name does not start with the host triplet.  If you think this
11824configuration is useful to you, please write to autoconf@gnu.org." >&5
11825echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11826whose name does not start with the host triplet.  If you think this
11827configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11828ac_tool_warned=yes ;;
11829esac
11830    CXX=$ac_ct_CXX
11831  fi
11832fi
11833
11834  fi
11835fi
11836# Provide some information about the compiler.
11837echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11838ac_compiler=`set X $ac_compile; echo $2`
11839{ (ac_try="$ac_compiler --version >&5"
11840case "(($ac_try" in
11841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842  *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845  (eval "$ac_compiler --version >&5") 2>&5
11846  ac_status=$?
11847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848  (exit $ac_status); }
11849{ (ac_try="$ac_compiler -v >&5"
11850case "(($ac_try" in
11851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852  *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855  (eval "$ac_compiler -v >&5") 2>&5
11856  ac_status=$?
11857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858  (exit $ac_status); }
11859{ (ac_try="$ac_compiler -V >&5"
11860case "(($ac_try" in
11861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862  *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865  (eval "$ac_compiler -V >&5") 2>&5
11866  ac_status=$?
11867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868  (exit $ac_status); }
11869
11870{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11871echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11872if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11873  echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875  cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h.  */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h.  */
11881
11882int
11883main ()
11884{
11885#ifndef __GNUC__
11886       choke me
11887#endif
11888
11889  ;
11890  return 0;
11891}
11892_ACEOF
11893rm -f conftest.$ac_objext
11894if { (ac_try="$ac_compile"
11895case "(($ac_try" in
11896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897  *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900  (eval "$ac_compile") 2>conftest.er1
11901  ac_status=$?
11902  grep -v '^ *+' conftest.er1 >conftest.err
11903  rm -f conftest.er1
11904  cat conftest.err >&5
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); } && {
11907	 test -z "$ac_cxx_werror_flag" ||
11908	 test ! -s conftest.err
11909       } && test -s conftest.$ac_objext; then
11910  ac_compiler_gnu=yes
11911else
11912  echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915	ac_compiler_gnu=no
11916fi
11917
11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11920
11921fi
11922{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11923echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11924GXX=`test $ac_compiler_gnu = yes && echo yes`
11925ac_test_CXXFLAGS=${CXXFLAGS+set}
11926ac_save_CXXFLAGS=$CXXFLAGS
11927{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11928echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11929if test "${ac_cv_prog_cxx_g+set}" = set; then
11930  echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
11932  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11933   ac_cxx_werror_flag=yes
11934   ac_cv_prog_cxx_g=no
11935   CXXFLAGS="-g"
11936   cat >conftest.$ac_ext <<_ACEOF
11937/* confdefs.h.  */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h.  */
11942
11943int
11944main ()
11945{
11946
11947  ;
11948  return 0;
11949}
11950_ACEOF
11951rm -f conftest.$ac_objext
11952if { (ac_try="$ac_compile"
11953case "(($ac_try" in
11954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955  *) ac_try_echo=$ac_try;;
11956esac
11957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958  (eval "$ac_compile") 2>conftest.er1
11959  ac_status=$?
11960  grep -v '^ *+' conftest.er1 >conftest.err
11961  rm -f conftest.er1
11962  cat conftest.err >&5
11963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964  (exit $ac_status); } && {
11965	 test -z "$ac_cxx_werror_flag" ||
11966	 test ! -s conftest.err
11967       } && test -s conftest.$ac_objext; then
11968  ac_cv_prog_cxx_g=yes
11969else
11970  echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973	CXXFLAGS=""
11974      cat >conftest.$ac_ext <<_ACEOF
11975/* confdefs.h.  */
11976_ACEOF
11977cat confdefs.h >>conftest.$ac_ext
11978cat >>conftest.$ac_ext <<_ACEOF
11979/* end confdefs.h.  */
11980
11981int
11982main ()
11983{
11984
11985  ;
11986  return 0;
11987}
11988_ACEOF
11989rm -f conftest.$ac_objext
11990if { (ac_try="$ac_compile"
11991case "(($ac_try" in
11992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993  *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996  (eval "$ac_compile") 2>conftest.er1
11997  ac_status=$?
11998  grep -v '^ *+' conftest.er1 >conftest.err
11999  rm -f conftest.er1
12000  cat conftest.err >&5
12001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002  (exit $ac_status); } && {
12003	 test -z "$ac_cxx_werror_flag" ||
12004	 test ! -s conftest.err
12005       } && test -s conftest.$ac_objext; then
12006  :
12007else
12008  echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12012	 CXXFLAGS="-g"
12013	 cat >conftest.$ac_ext <<_ACEOF
12014/* confdefs.h.  */
12015_ACEOF
12016cat confdefs.h >>conftest.$ac_ext
12017cat >>conftest.$ac_ext <<_ACEOF
12018/* end confdefs.h.  */
12019
12020int
12021main ()
12022{
12023
12024  ;
12025  return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (ac_try="$ac_compile"
12030case "(($ac_try" in
12031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032  *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035  (eval "$ac_compile") 2>conftest.er1
12036  ac_status=$?
12037  grep -v '^ *+' conftest.er1 >conftest.err
12038  rm -f conftest.er1
12039  cat conftest.err >&5
12040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041  (exit $ac_status); } && {
12042	 test -z "$ac_cxx_werror_flag" ||
12043	 test ! -s conftest.err
12044       } && test -s conftest.$ac_objext; then
12045  ac_cv_prog_cxx_g=yes
12046else
12047  echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050
12051fi
12052
12053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12054fi
12055
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057fi
12058
12059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12061fi
12062{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12063echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12064if test "$ac_test_CXXFLAGS" = set; then
12065  CXXFLAGS=$ac_save_CXXFLAGS
12066elif test $ac_cv_prog_cxx_g = yes; then
12067  if test "$GXX" = yes; then
12068    CXXFLAGS="-g -O2"
12069  else
12070    CXXFLAGS="-g"
12071  fi
12072else
12073  if test "$GXX" = yes; then
12074    CXXFLAGS="-O2"
12075  else
12076    CXXFLAGS=
12077  fi
12078fi
12079ac_ext=c
12080ac_cpp='$CPP $CPPFLAGS'
12081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12083ac_compiler_gnu=$ac_cv_c_compiler_gnu
12084
12085
12086ac_ext=cpp
12087ac_cpp='$CXXCPP $CPPFLAGS'
12088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12091if test -z "$CXX"; then
12092  if test -n "$CCC"; then
12093    CXX=$CCC
12094  else
12095    if test -n "$ac_tool_prefix"; then
12096  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12097  do
12098    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12102if test "${ac_cv_prog_CXX+set}" = set; then
12103  echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105  if test -n "$CXX"; then
12106  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12107else
12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109for as_dir in $PATH
12110do
12111  IFS=$as_save_IFS
12112  test -z "$as_dir" && as_dir=.
12113  for ac_exec_ext in '' $ac_executable_extensions; do
12114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12115    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12117    break 2
12118  fi
12119done
12120done
12121IFS=$as_save_IFS
12122
12123fi
12124fi
12125CXX=$ac_cv_prog_CXX
12126if test -n "$CXX"; then
12127  { echo "$as_me:$LINENO: result: $CXX" >&5
12128echo "${ECHO_T}$CXX" >&6; }
12129else
12130  { echo "$as_me:$LINENO: result: no" >&5
12131echo "${ECHO_T}no" >&6; }
12132fi
12133
12134
12135    test -n "$CXX" && break
12136  done
12137fi
12138if test -z "$CXX"; then
12139  ac_ct_CXX=$CXX
12140  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12141do
12142  # Extract the first word of "$ac_prog", so it can be a program name with args.
12143set dummy $ac_prog; ac_word=$2
12144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12146if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12147  echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149  if test -n "$ac_ct_CXX"; then
12150  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155  IFS=$as_save_IFS
12156  test -z "$as_dir" && as_dir=.
12157  for ac_exec_ext in '' $ac_executable_extensions; do
12158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159    ac_cv_prog_ac_ct_CXX="$ac_prog"
12160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12161    break 2
12162  fi
12163done
12164done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12170if test -n "$ac_ct_CXX"; then
12171  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12172echo "${ECHO_T}$ac_ct_CXX" >&6; }
12173else
12174  { echo "$as_me:$LINENO: result: no" >&5
12175echo "${ECHO_T}no" >&6; }
12176fi
12177
12178
12179  test -n "$ac_ct_CXX" && break
12180done
12181
12182  if test "x$ac_ct_CXX" = x; then
12183    CXX="g++"
12184  else
12185    case $cross_compiling:$ac_tool_warned in
12186yes:)
12187{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12188whose name does not start with the host triplet.  If you think this
12189configuration is useful to you, please write to autoconf@gnu.org." >&5
12190echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12191whose name does not start with the host triplet.  If you think this
12192configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12193ac_tool_warned=yes ;;
12194esac
12195    CXX=$ac_ct_CXX
12196  fi
12197fi
12198
12199  fi
12200fi
12201# Provide some information about the compiler.
12202echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12203ac_compiler=`set X $ac_compile; echo $2`
12204{ (ac_try="$ac_compiler --version >&5"
12205case "(($ac_try" in
12206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207  *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210  (eval "$ac_compiler --version >&5") 2>&5
12211  ac_status=$?
12212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213  (exit $ac_status); }
12214{ (ac_try="$ac_compiler -v >&5"
12215case "(($ac_try" in
12216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217  *) ac_try_echo=$ac_try;;
12218esac
12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220  (eval "$ac_compiler -v >&5") 2>&5
12221  ac_status=$?
12222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223  (exit $ac_status); }
12224{ (ac_try="$ac_compiler -V >&5"
12225case "(($ac_try" in
12226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227  *) ac_try_echo=$ac_try;;
12228esac
12229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230  (eval "$ac_compiler -V >&5") 2>&5
12231  ac_status=$?
12232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233  (exit $ac_status); }
12234
12235{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12236echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
12237if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12238  echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240  cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h.  */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h.  */
12246
12247int
12248main ()
12249{
12250#ifndef __GNUC__
12251       choke me
12252#endif
12253
12254  ;
12255  return 0;
12256}
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (ac_try="$ac_compile"
12260case "(($ac_try" in
12261  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262  *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265  (eval "$ac_compile") 2>conftest.er1
12266  ac_status=$?
12267  grep -v '^ *+' conftest.er1 >conftest.err
12268  rm -f conftest.er1
12269  cat conftest.err >&5
12270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271  (exit $ac_status); } && {
12272	 test -z "$ac_cxx_werror_flag" ||
12273	 test ! -s conftest.err
12274       } && test -s conftest.$ac_objext; then
12275  ac_compiler_gnu=yes
12276else
12277  echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
12280	ac_compiler_gnu=no
12281fi
12282
12283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12285
12286fi
12287{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12288echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
12289GXX=`test $ac_compiler_gnu = yes && echo yes`
12290ac_test_CXXFLAGS=${CXXFLAGS+set}
12291ac_save_CXXFLAGS=$CXXFLAGS
12292{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12293echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
12294if test "${ac_cv_prog_cxx_g+set}" = set; then
12295  echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12298   ac_cxx_werror_flag=yes
12299   ac_cv_prog_cxx_g=no
12300   CXXFLAGS="-g"
12301   cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h.  */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h.  */
12307
12308int
12309main ()
12310{
12311
12312  ;
12313  return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (ac_try="$ac_compile"
12318case "(($ac_try" in
12319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320  *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323  (eval "$ac_compile") 2>conftest.er1
12324  ac_status=$?
12325  grep -v '^ *+' conftest.er1 >conftest.err
12326  rm -f conftest.er1
12327  cat conftest.err >&5
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); } && {
12330	 test -z "$ac_cxx_werror_flag" ||
12331	 test ! -s conftest.err
12332       } && test -s conftest.$ac_objext; then
12333  ac_cv_prog_cxx_g=yes
12334else
12335  echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338	CXXFLAGS=""
12339      cat >conftest.$ac_ext <<_ACEOF
12340/* confdefs.h.  */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h.  */
12345
12346int
12347main ()
12348{
12349
12350  ;
12351  return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (ac_try="$ac_compile"
12356case "(($ac_try" in
12357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358  *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361  (eval "$ac_compile") 2>conftest.er1
12362  ac_status=$?
12363  grep -v '^ *+' conftest.er1 >conftest.err
12364  rm -f conftest.er1
12365  cat conftest.err >&5
12366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367  (exit $ac_status); } && {
12368	 test -z "$ac_cxx_werror_flag" ||
12369	 test ! -s conftest.err
12370       } && test -s conftest.$ac_objext; then
12371  :
12372else
12373  echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
12376	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12377	 CXXFLAGS="-g"
12378	 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h.  */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h.  */
12384
12385int
12386main ()
12387{
12388
12389  ;
12390  return 0;
12391}
12392_ACEOF
12393rm -f conftest.$ac_objext
12394if { (ac_try="$ac_compile"
12395case "(($ac_try" in
12396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397  *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400  (eval "$ac_compile") 2>conftest.er1
12401  ac_status=$?
12402  grep -v '^ *+' conftest.er1 >conftest.err
12403  rm -f conftest.er1
12404  cat conftest.err >&5
12405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406  (exit $ac_status); } && {
12407	 test -z "$ac_cxx_werror_flag" ||
12408	 test ! -s conftest.err
12409       } && test -s conftest.$ac_objext; then
12410  ac_cv_prog_cxx_g=yes
12411else
12412  echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415
12416fi
12417
12418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419fi
12420
12421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422fi
12423
12424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12425   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12426fi
12427{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12428echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12429if test "$ac_test_CXXFLAGS" = set; then
12430  CXXFLAGS=$ac_save_CXXFLAGS
12431elif test $ac_cv_prog_cxx_g = yes; then
12432  if test "$GXX" = yes; then
12433    CXXFLAGS="-g -O2"
12434  else
12435    CXXFLAGS="-g"
12436  fi
12437else
12438  if test "$GXX" = yes; then
12439    CXXFLAGS="-O2"
12440  else
12441    CXXFLAGS=
12442  fi
12443fi
12444ac_ext=c
12445ac_cpp='$CPP $CPPFLAGS'
12446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448ac_compiler_gnu=$ac_cv_c_compiler_gnu
12449
12450if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12451    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12452    (test "X$CXX" != "Xg++"))) ; then
12453  ac_ext=cpp
12454ac_cpp='$CXXCPP $CPPFLAGS'
12455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12458{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12459echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12460if test -z "$CXXCPP"; then
12461  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12462  echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464      # Double quotes because CXXCPP needs to be expanded
12465    for CXXCPP in "$CXX -E" "/lib/cpp"
12466    do
12467      ac_preproc_ok=false
12468for ac_cxx_preproc_warn_flag in '' yes
12469do
12470  # Use a header file that comes with gcc, so configuring glibc
12471  # with a fresh cross-compiler works.
12472  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473  # <limits.h> exists even on freestanding compilers.
12474  # On the NeXT, cc -E runs the code through the compiler's parser,
12475  # not just through cpp. "Syntax error" is here to catch this case.
12476  cat >conftest.$ac_ext <<_ACEOF
12477/* confdefs.h.  */
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h.  */
12482#ifdef __STDC__
12483# include <limits.h>
12484#else
12485# include <assert.h>
12486#endif
12487		     Syntax error
12488_ACEOF
12489if { (ac_try="$ac_cpp conftest.$ac_ext"
12490case "(($ac_try" in
12491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492  *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12496  ac_status=$?
12497  grep -v '^ *+' conftest.er1 >conftest.err
12498  rm -f conftest.er1
12499  cat conftest.err >&5
12500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501  (exit $ac_status); } >/dev/null && {
12502	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12503	 test ! -s conftest.err
12504       }; then
12505  :
12506else
12507  echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510  # Broken: fails on valid input.
12511continue
12512fi
12513
12514rm -f conftest.err conftest.$ac_ext
12515
12516  # OK, works on sane cases.  Now check whether nonexistent headers
12517  # can be detected and how.
12518  cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h.  */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h.  */
12524#include <ac_nonexistent.h>
12525_ACEOF
12526if { (ac_try="$ac_cpp conftest.$ac_ext"
12527case "(($ac_try" in
12528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529  *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12533  ac_status=$?
12534  grep -v '^ *+' conftest.er1 >conftest.err
12535  rm -f conftest.er1
12536  cat conftest.err >&5
12537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538  (exit $ac_status); } >/dev/null && {
12539	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12540	 test ! -s conftest.err
12541       }; then
12542  # Broken: success on invalid input.
12543continue
12544else
12545  echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548  # Passes both tests.
12549ac_preproc_ok=:
12550break
12551fi
12552
12553rm -f conftest.err conftest.$ac_ext
12554
12555done
12556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12557rm -f conftest.err conftest.$ac_ext
12558if $ac_preproc_ok; then
12559  break
12560fi
12561
12562    done
12563    ac_cv_prog_CXXCPP=$CXXCPP
12564
12565fi
12566  CXXCPP=$ac_cv_prog_CXXCPP
12567else
12568  ac_cv_prog_CXXCPP=$CXXCPP
12569fi
12570{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12571echo "${ECHO_T}$CXXCPP" >&6; }
12572ac_preproc_ok=false
12573for ac_cxx_preproc_warn_flag in '' yes
12574do
12575  # Use a header file that comes with gcc, so configuring glibc
12576  # with a fresh cross-compiler works.
12577  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12578  # <limits.h> exists even on freestanding compilers.
12579  # On the NeXT, cc -E runs the code through the compiler's parser,
12580  # not just through cpp. "Syntax error" is here to catch this case.
12581  cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h.  */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h.  */
12587#ifdef __STDC__
12588# include <limits.h>
12589#else
12590# include <assert.h>
12591#endif
12592		     Syntax error
12593_ACEOF
12594if { (ac_try="$ac_cpp conftest.$ac_ext"
12595case "(($ac_try" in
12596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597  *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12601  ac_status=$?
12602  grep -v '^ *+' conftest.er1 >conftest.err
12603  rm -f conftest.er1
12604  cat conftest.err >&5
12605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606  (exit $ac_status); } >/dev/null && {
12607	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12608	 test ! -s conftest.err
12609       }; then
12610  :
12611else
12612  echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615  # Broken: fails on valid input.
12616continue
12617fi
12618
12619rm -f conftest.err conftest.$ac_ext
12620
12621  # OK, works on sane cases.  Now check whether nonexistent headers
12622  # can be detected and how.
12623  cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h.  */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h.  */
12629#include <ac_nonexistent.h>
12630_ACEOF
12631if { (ac_try="$ac_cpp conftest.$ac_ext"
12632case "(($ac_try" in
12633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634  *) ac_try_echo=$ac_try;;
12635esac
12636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12638  ac_status=$?
12639  grep -v '^ *+' conftest.er1 >conftest.err
12640  rm -f conftest.er1
12641  cat conftest.err >&5
12642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643  (exit $ac_status); } >/dev/null && {
12644	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12645	 test ! -s conftest.err
12646       }; then
12647  # Broken: success on invalid input.
12648continue
12649else
12650  echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653  # Passes both tests.
12654ac_preproc_ok=:
12655break
12656fi
12657
12658rm -f conftest.err conftest.$ac_ext
12659
12660done
12661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12662rm -f conftest.err conftest.$ac_ext
12663if $ac_preproc_ok; then
12664  :
12665else
12666  _lt_caught_CXX_error=yes
12667fi
12668
12669ac_ext=c
12670ac_cpp='$CPP $CPPFLAGS'
12671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12673ac_compiler_gnu=$ac_cv_c_compiler_gnu
12674
12675else
12676  _lt_caught_CXX_error=yes
12677fi
12678
12679
12680
12681
12682ac_ext=cpp
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
12688archive_cmds_need_lc_CXX=no
12689allow_undefined_flag_CXX=
12690always_export_symbols_CXX=no
12691archive_expsym_cmds_CXX=
12692compiler_needs_object_CXX=no
12693export_dynamic_flag_spec_CXX=
12694hardcode_direct_CXX=no
12695hardcode_direct_absolute_CXX=no
12696hardcode_libdir_flag_spec_CXX=
12697hardcode_libdir_flag_spec_ld_CXX=
12698hardcode_libdir_separator_CXX=
12699hardcode_minus_L_CXX=no
12700hardcode_shlibpath_var_CXX=unsupported
12701hardcode_automatic_CXX=no
12702inherit_rpath_CXX=no
12703module_cmds_CXX=
12704module_expsym_cmds_CXX=
12705link_all_deplibs_CXX=unknown
12706old_archive_cmds_CXX=$old_archive_cmds
12707no_undefined_flag_CXX=
12708whole_archive_flag_spec_CXX=
12709enable_shared_with_static_runtimes_CXX=no
12710
12711# Source file extension for C++ test sources.
12712ac_ext=cpp
12713
12714# Object file extension for compiled C++ test sources.
12715objext=o
12716objext_CXX=$objext
12717
12718# No sense in running all these tests if we already determined that
12719# the CXX compiler isn't working.  Some variables (like enable_shared)
12720# are currently assumed to apply to all compilers on this platform,
12721# and will be corrupted by setting them based on a non-working compiler.
12722if test "$_lt_caught_CXX_error" != yes; then
12723  # Code to be used in simple compile tests
12724  lt_simple_compile_test_code="int some_variable = 0;"
12725
12726  # Code to be used in simple link tests
12727  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12728
12729  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12730
12731
12732
12733
12734
12735
12736# If no C compiler was specified, use CC.
12737LTCC=${LTCC-"$CC"}
12738
12739# If no C compiler flags were specified, use CFLAGS.
12740LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12741
12742# Allow CC to be a program name with arguments.
12743compiler=$CC
12744
12745
12746  # save warnings/boilerplate of simple test code
12747  ac_outfile=conftest.$ac_objext
12748echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12749eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12750_lt_compiler_boilerplate=`cat conftest.err`
12751$RM conftest*
12752
12753  ac_outfile=conftest.$ac_objext
12754echo "$lt_simple_link_test_code" >conftest.$ac_ext
12755eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12756_lt_linker_boilerplate=`cat conftest.err`
12757$RM -r conftest*
12758
12759
12760  # Allow CC to be a program name with arguments.
12761  lt_save_CC=$CC
12762  lt_save_LD=$LD
12763  lt_save_GCC=$GCC
12764  GCC=$GXX
12765  lt_save_with_gnu_ld=$with_gnu_ld
12766  lt_save_path_LD=$lt_cv_path_LD
12767  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12769  else
12770    $as_unset lt_cv_prog_gnu_ld
12771  fi
12772  if test -n "${lt_cv_path_LDCXX+set}"; then
12773    lt_cv_path_LD=$lt_cv_path_LDCXX
12774  else
12775    $as_unset lt_cv_path_LD
12776  fi
12777  test -z "${LDCXX+set}" || LD=$LDCXX
12778  CC=${CXX-"c++"}
12779  compiler=$CC
12780  compiler_CXX=$CC
12781  for cc_temp in $compiler""; do
12782  case $cc_temp in
12783    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12784    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12785    \-*) ;;
12786    *) break;;
12787  esac
12788done
12789cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12790
12791
12792  if test -n "$compiler"; then
12793    # We don't want -fno-exception when compiling C++ code, so set the
12794    # no_builtin_flag separately
12795    if test "$GXX" = yes; then
12796      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12797    else
12798      lt_prog_compiler_no_builtin_flag_CXX=
12799    fi
12800
12801    if test "$GXX" = yes; then
12802      # Set up default GNU C++ configuration
12803
12804
12805
12806# Check whether --with-gnu-ld was given.
12807if test "${with_gnu_ld+set}" = set; then
12808  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12809else
12810  with_gnu_ld=no
12811fi
12812
12813ac_prog=ld
12814if test "$GCC" = yes; then
12815  # Check if gcc -print-prog-name=ld gives a path.
12816  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12817echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12818  case $host in
12819  *-*-mingw*)
12820    # gcc leaves a trailing carriage return which upsets mingw
12821    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12822  *)
12823    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12824  esac
12825  case $ac_prog in
12826    # Accept absolute paths.
12827    [\\/]* | ?:[\\/]*)
12828      re_direlt='/[^/][^/]*/\.\./'
12829      # Canonicalize the pathname of ld
12830      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12831      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12832	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12833      done
12834      test -z "$LD" && LD="$ac_prog"
12835      ;;
12836  "")
12837    # If it fails, then pretend we aren't using GCC.
12838    ac_prog=ld
12839    ;;
12840  *)
12841    # If it is relative, then search for the first ld in PATH.
12842    with_gnu_ld=unknown
12843    ;;
12844  esac
12845elif test "$with_gnu_ld" = yes; then
12846  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12847echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12848else
12849  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12850echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12851fi
12852if test "${lt_cv_path_LD+set}" = set; then
12853  echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855  if test -z "$LD"; then
12856  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12857  for ac_dir in $PATH; do
12858    IFS="$lt_save_ifs"
12859    test -z "$ac_dir" && ac_dir=.
12860    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12861      lt_cv_path_LD="$ac_dir/$ac_prog"
12862      # Check to see if the program is GNU ld.  I'd rather use --version,
12863      # but apparently some variants of GNU ld only accept -v.
12864      # Break only if it was the GNU/non-GNU ld that we prefer.
12865      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12866      *GNU* | *'with BFD'*)
12867	test "$with_gnu_ld" != no && break
12868	;;
12869      *)
12870	test "$with_gnu_ld" != yes && break
12871	;;
12872      esac
12873    fi
12874  done
12875  IFS="$lt_save_ifs"
12876else
12877  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12878fi
12879fi
12880
12881LD="$lt_cv_path_LD"
12882if test -n "$LD"; then
12883  { echo "$as_me:$LINENO: result: $LD" >&5
12884echo "${ECHO_T}$LD" >&6; }
12885else
12886  { echo "$as_me:$LINENO: result: no" >&5
12887echo "${ECHO_T}no" >&6; }
12888fi
12889test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12890echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12891   { (exit 1); exit 1; }; }
12892{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12893echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12894if test "${lt_cv_prog_gnu_ld+set}" = set; then
12895  echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12898case `$LD -v 2>&1 </dev/null` in
12899*GNU* | *'with BFD'*)
12900  lt_cv_prog_gnu_ld=yes
12901  ;;
12902*)
12903  lt_cv_prog_gnu_ld=no
12904  ;;
12905esac
12906fi
12907{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12908echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12909with_gnu_ld=$lt_cv_prog_gnu_ld
12910
12911
12912
12913
12914
12915
12916
12917      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12918      # archiving commands below assume that GNU ld is being used.
12919      if test "$with_gnu_ld" = yes; then
12920        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12921        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'
12922
12923        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12924        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925
12926        # If archive_cmds runs LD, not CC, wlarc should be empty
12927        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12928        #     investigate it a little bit more. (MM)
12929        wlarc='${wl}'
12930
12931        # ancient GNU ld didn't support --whole-archive et. al.
12932        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12933	  $GREP 'no-whole-archive' > /dev/null; then
12934          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12935        else
12936          whole_archive_flag_spec_CXX=
12937        fi
12938      else
12939        with_gnu_ld=no
12940        wlarc=
12941
12942        # A generic and very simple default shared library creation
12943        # command for GNU C++ for the case where it uses the native
12944        # linker, instead of GNU ld.  If possible, this setting should
12945        # overridden to take advantage of the native linker features on
12946        # the platform it is being used on.
12947        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12948      fi
12949
12950      # Commands to make compiler produce verbose output that lists
12951      # what "hidden" libraries, object files and flags are used when
12952      # linking a shared library.
12953      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12954
12955    else
12956      GXX=no
12957      with_gnu_ld=no
12958      wlarc=
12959    fi
12960
12961    # PORTME: fill in a description of your system's C++ link characteristics
12962    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12963echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12964    ld_shlibs_CXX=yes
12965    case $host_os in
12966      aix3*)
12967        # FIXME: insert proper C++ library support
12968        ld_shlibs_CXX=no
12969        ;;
12970      aix[4-9]*)
12971        if test "$host_cpu" = ia64; then
12972          # On IA64, the linker does run time linking by default, so we don't
12973          # have to do anything special.
12974          aix_use_runtimelinking=no
12975          exp_sym_flag='-Bexport'
12976          no_entry_flag=""
12977        else
12978          aix_use_runtimelinking=no
12979
12980          # Test if we are trying to use run time linking or normal
12981          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12982          # need to do runtime linking.
12983          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12984	    for ld_flag in $LDFLAGS; do
12985	      case $ld_flag in
12986	      *-brtl*)
12987	        aix_use_runtimelinking=yes
12988	        break
12989	        ;;
12990	      esac
12991	    done
12992	    ;;
12993          esac
12994
12995          exp_sym_flag='-bexport'
12996          no_entry_flag='-bnoentry'
12997        fi
12998
12999        # When large executables or shared objects are built, AIX ld can
13000        # have problems creating the table of contents.  If linking a library
13001        # or program results in "error TOC overflow" add -mminimal-toc to
13002        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13003        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13004
13005        archive_cmds_CXX=''
13006        hardcode_direct_CXX=yes
13007        hardcode_direct_absolute_CXX=yes
13008        hardcode_libdir_separator_CXX=':'
13009        link_all_deplibs_CXX=yes
13010        file_list_spec_CXX='${wl}-f,'
13011
13012        if test "$GXX" = yes; then
13013          case $host_os in aix4.[012]|aix4.[012].*)
13014          # We only want to do this on AIX 4.2 and lower, the check
13015          # below for broken collect2 doesn't work under 4.3+
13016	  collect2name=`${CC} -print-prog-name=collect2`
13017	  if test -f "$collect2name" &&
13018	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13019	  then
13020	    # We have reworked collect2
13021	    :
13022	  else
13023	    # We have old collect2
13024	    hardcode_direct_CXX=unsupported
13025	    # It fails to find uninstalled libraries when the uninstalled
13026	    # path is not listed in the libpath.  Setting hardcode_minus_L
13027	    # to unsupported forces relinking
13028	    hardcode_minus_L_CXX=yes
13029	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13030	    hardcode_libdir_separator_CXX=
13031	  fi
13032          esac
13033          shared_flag='-shared'
13034	  if test "$aix_use_runtimelinking" = yes; then
13035	    shared_flag="$shared_flag "'${wl}-G'
13036	  fi
13037        else
13038          # not using gcc
13039          if test "$host_cpu" = ia64; then
13040	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13041	  # chokes on -Wl,-G. The following line is correct:
13042	  shared_flag='-G'
13043          else
13044	    if test "$aix_use_runtimelinking" = yes; then
13045	      shared_flag='${wl}-G'
13046	    else
13047	      shared_flag='${wl}-bM:SRE'
13048	    fi
13049          fi
13050        fi
13051
13052        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13053        # It seems that -bexpall does not export symbols beginning with
13054        # underscore (_), so it is better to generate a list of symbols to
13055	# export.
13056        always_export_symbols_CXX=yes
13057        if test "$aix_use_runtimelinking" = yes; then
13058          # Warning - without using the other runtime loading flags (-brtl),
13059          # -berok will link without error, but may produce a broken library.
13060          allow_undefined_flag_CXX='-berok'
13061          # Determine the default libpath from the value encoded in an empty
13062          # executable.
13063          cat >conftest.$ac_ext <<_ACEOF
13064/* confdefs.h.  */
13065_ACEOF
13066cat confdefs.h >>conftest.$ac_ext
13067cat >>conftest.$ac_ext <<_ACEOF
13068/* end confdefs.h.  */
13069
13070int
13071main ()
13072{
13073
13074  ;
13075  return 0;
13076}
13077_ACEOF
13078rm -f conftest.$ac_objext conftest$ac_exeext
13079if { (ac_try="$ac_link"
13080case "(($ac_try" in
13081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082  *) ac_try_echo=$ac_try;;
13083esac
13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085  (eval "$ac_link") 2>conftest.er1
13086  ac_status=$?
13087  grep -v '^ *+' conftest.er1 >conftest.err
13088  rm -f conftest.er1
13089  cat conftest.err >&5
13090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); } && {
13092	 test -z "$ac_cxx_werror_flag" ||
13093	 test ! -s conftest.err
13094       } && test -s conftest$ac_exeext &&
13095       $as_test_x conftest$ac_exeext; then
13096
13097lt_aix_libpath_sed='
13098    /Import File Strings/,/^$/ {
13099	/^0/ {
13100	    s/^0  *\(.*\)$/\1/
13101	    p
13102	}
13103    }'
13104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13105# Check for a 64-bit object if we didn't find anything.
13106if test -z "$aix_libpath"; then
13107  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13108fi
13109else
13110  echo "$as_me: failed program was:" >&5
13111sed 's/^/| /' conftest.$ac_ext >&5
13112
13113
13114fi
13115
13116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13117      conftest$ac_exeext conftest.$ac_ext
13118if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13119
13120          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13121
13122          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"
13123        else
13124          if test "$host_cpu" = ia64; then
13125	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13126	    allow_undefined_flag_CXX="-z nodefs"
13127	    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"
13128          else
13129	    # Determine the default libpath from the value encoded in an
13130	    # empty executable.
13131	    cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h.  */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h.  */
13137
13138int
13139main ()
13140{
13141
13142  ;
13143  return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext conftest$ac_exeext
13147if { (ac_try="$ac_link"
13148case "(($ac_try" in
13149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150  *) ac_try_echo=$ac_try;;
13151esac
13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153  (eval "$ac_link") 2>conftest.er1
13154  ac_status=$?
13155  grep -v '^ *+' conftest.er1 >conftest.err
13156  rm -f conftest.er1
13157  cat conftest.err >&5
13158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159  (exit $ac_status); } && {
13160	 test -z "$ac_cxx_werror_flag" ||
13161	 test ! -s conftest.err
13162       } && test -s conftest$ac_exeext &&
13163       $as_test_x conftest$ac_exeext; then
13164
13165lt_aix_libpath_sed='
13166    /Import File Strings/,/^$/ {
13167	/^0/ {
13168	    s/^0  *\(.*\)$/\1/
13169	    p
13170	}
13171    }'
13172aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13173# Check for a 64-bit object if we didn't find anything.
13174if test -z "$aix_libpath"; then
13175  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13176fi
13177else
13178  echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
13181
13182fi
13183
13184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185      conftest$ac_exeext conftest.$ac_ext
13186if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13187
13188	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13189	    # Warning - without using the other run time loading flags,
13190	    # -berok will link without error, but may produce a broken library.
13191	    no_undefined_flag_CXX=' ${wl}-bernotok'
13192	    allow_undefined_flag_CXX=' ${wl}-berok'
13193	    # Exported symbols can be pulled into shared objects from archives
13194	    whole_archive_flag_spec_CXX='$convenience'
13195	    archive_cmds_need_lc_CXX=yes
13196	    # This is similar to how AIX traditionally builds its shared
13197	    # libraries.
13198	    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'
13199          fi
13200        fi
13201        ;;
13202
13203      beos*)
13204	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13205	  allow_undefined_flag_CXX=unsupported
13206	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13207	  # support --undefined.  This deserves some investigation.  FIXME
13208	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209	else
13210	  ld_shlibs_CXX=no
13211	fi
13212	;;
13213
13214      chorus*)
13215        case $cc_basename in
13216          *)
13217	  # FIXME: insert proper C++ library support
13218	  ld_shlibs_CXX=no
13219	  ;;
13220        esac
13221        ;;
13222
13223      cygwin* | mingw* | pw32* | cegcc*)
13224        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13225        # as there is no search path for DLLs.
13226        hardcode_libdir_flag_spec_CXX='-L$libdir'
13227        allow_undefined_flag_CXX=unsupported
13228        always_export_symbols_CXX=no
13229        enable_shared_with_static_runtimes_CXX=yes
13230
13231        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13232          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'
13233          # If the export-symbols file already is a .def file (1st line
13234          # is EXPORTS), use it as is; otherwise, prepend...
13235          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13236	    cp $export_symbols $output_objdir/$soname.def;
13237          else
13238	    echo EXPORTS > $output_objdir/$soname.def;
13239	    cat $export_symbols >> $output_objdir/$soname.def;
13240          fi~
13241          $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'
13242        else
13243          ld_shlibs_CXX=no
13244        fi
13245        ;;
13246      darwin* | rhapsody*)
13247
13248
13249  archive_cmds_need_lc_CXX=no
13250  hardcode_direct_CXX=no
13251  hardcode_automatic_CXX=yes
13252  hardcode_shlibpath_var_CXX=unsupported
13253  whole_archive_flag_spec_CXX=''
13254  link_all_deplibs_CXX=yes
13255  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13256  case $cc_basename in
13257     ifort*) _lt_dar_can_shared=yes ;;
13258     *) _lt_dar_can_shared=$GCC ;;
13259  esac
13260  if test "$_lt_dar_can_shared" = "yes"; then
13261    output_verbose_link_cmd=echo
13262    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}"
13263    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13264    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}"
13265    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}"
13266       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13267      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}"
13268      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}"
13269    fi
13270
13271  else
13272  ld_shlibs_CXX=no
13273  fi
13274
13275	;;
13276
13277      dgux*)
13278        case $cc_basename in
13279          ec++*)
13280	    # FIXME: insert proper C++ library support
13281	    ld_shlibs_CXX=no
13282	    ;;
13283          ghcx*)
13284	    # Green Hills C++ Compiler
13285	    # FIXME: insert proper C++ library support
13286	    ld_shlibs_CXX=no
13287	    ;;
13288          *)
13289	    # FIXME: insert proper C++ library support
13290	    ld_shlibs_CXX=no
13291	    ;;
13292        esac
13293        ;;
13294
13295      freebsd[12]*)
13296        # C++ shared libraries reported to be fairly broken before
13297	# switch to ELF
13298        ld_shlibs_CXX=no
13299        ;;
13300
13301      freebsd-elf*)
13302        archive_cmds_need_lc_CXX=no
13303        ;;
13304
13305      freebsd* | dragonfly*)
13306        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13307        # conventions
13308        ld_shlibs_CXX=yes
13309        ;;
13310
13311      gnu*)
13312        ;;
13313
13314      hpux9*)
13315        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13316        hardcode_libdir_separator_CXX=:
13317        export_dynamic_flag_spec_CXX='${wl}-E'
13318        hardcode_direct_CXX=yes
13319        hardcode_minus_L_CXX=yes # Not in the search PATH,
13320				             # but as the default
13321				             # location of the library.
13322
13323        case $cc_basename in
13324          CC*)
13325            # FIXME: insert proper C++ library support
13326            ld_shlibs_CXX=no
13327            ;;
13328          aCC*)
13329            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'
13330            # Commands to make compiler produce verbose output that lists
13331            # what "hidden" libraries, object files and flags are used when
13332            # linking a shared library.
13333            #
13334            # There doesn't appear to be a way to prevent this compiler from
13335            # explicitly linking system object files so we need to strip them
13336            # from the output so that they don't get included in the library
13337            # dependencies.
13338            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'
13339            ;;
13340          *)
13341            if test "$GXX" = yes; then
13342              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'
13343            else
13344              # FIXME: insert proper C++ library support
13345              ld_shlibs_CXX=no
13346            fi
13347            ;;
13348        esac
13349        ;;
13350
13351      hpux10*|hpux11*)
13352        if test $with_gnu_ld = no; then
13353	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13354	  hardcode_libdir_separator_CXX=:
13355
13356          case $host_cpu in
13357            hppa*64*|ia64*)
13358              ;;
13359            *)
13360	      export_dynamic_flag_spec_CXX='${wl}-E'
13361              ;;
13362          esac
13363        fi
13364        case $host_cpu in
13365          hppa*64*|ia64*)
13366            hardcode_direct_CXX=no
13367            hardcode_shlibpath_var_CXX=no
13368            ;;
13369          *)
13370            hardcode_direct_CXX=yes
13371            hardcode_direct_absolute_CXX=yes
13372            hardcode_minus_L_CXX=yes # Not in the search PATH,
13373					         # but as the default
13374					         # location of the library.
13375            ;;
13376        esac
13377
13378        case $cc_basename in
13379          CC*)
13380	    # FIXME: insert proper C++ library support
13381	    ld_shlibs_CXX=no
13382	    ;;
13383          aCC*)
13384	    case $host_cpu in
13385	      hppa*64*)
13386	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13387	        ;;
13388	      ia64*)
13389	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13390	        ;;
13391	      *)
13392	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13393	        ;;
13394	    esac
13395	    # Commands to make compiler produce verbose output that lists
13396	    # what "hidden" libraries, object files and flags are used when
13397	    # linking a shared library.
13398	    #
13399	    # There doesn't appear to be a way to prevent this compiler from
13400	    # explicitly linking system object files so we need to strip them
13401	    # from the output so that they don't get included in the library
13402	    # dependencies.
13403	    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'
13404	    ;;
13405          *)
13406	    if test "$GXX" = yes; then
13407	      if test $with_gnu_ld = no; then
13408	        case $host_cpu in
13409	          hppa*64*)
13410	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13411	            ;;
13412	          ia64*)
13413	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13414	            ;;
13415	          *)
13416	            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'
13417	            ;;
13418	        esac
13419	      fi
13420	    else
13421	      # FIXME: insert proper C++ library support
13422	      ld_shlibs_CXX=no
13423	    fi
13424	    ;;
13425        esac
13426        ;;
13427
13428      interix[3-9]*)
13429	hardcode_direct_CXX=no
13430	hardcode_shlibpath_var_CXX=no
13431	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13432	export_dynamic_flag_spec_CXX='${wl}-E'
13433	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13434	# Instead, shared libraries are loaded at an image base (0x10000000 by
13435	# default) and relocated if they conflict, which is a slow very memory
13436	# consuming and fragmenting process.  To avoid this, we pick a random,
13437	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13438	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13439	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'
13440	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'
13441	;;
13442      irix5* | irix6*)
13443        case $cc_basename in
13444          CC*)
13445	    # SGI C++
13446	    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'
13447
13448	    # Archives containing C++ object files must be created using
13449	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13450	    # necessary to make sure instantiated templates are included
13451	    # in the archive.
13452	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13453	    ;;
13454          *)
13455	    if test "$GXX" = yes; then
13456	      if test "$with_gnu_ld" = no; then
13457	        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'
13458	      else
13459	        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'
13460	      fi
13461	    fi
13462	    link_all_deplibs_CXX=yes
13463	    ;;
13464        esac
13465        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13466        hardcode_libdir_separator_CXX=:
13467        inherit_rpath_CXX=yes
13468        ;;
13469
13470      linux* | k*bsd*-gnu)
13471        case $cc_basename in
13472          KCC*)
13473	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13474
13475	    # KCC will only create a shared library if the output file
13476	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13477	    # to its proper name (with version) after linking.
13478	    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'
13479	    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'
13480	    # Commands to make compiler produce verbose output that lists
13481	    # what "hidden" libraries, object files and flags are used when
13482	    # linking a shared library.
13483	    #
13484	    # There doesn't appear to be a way to prevent this compiler from
13485	    # explicitly linking system object files so we need to strip them
13486	    # from the output so that they don't get included in the library
13487	    # dependencies.
13488	    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'
13489
13490	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13491	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13492
13493	    # Archives containing C++ object files must be created using
13494	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13495	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13496	    ;;
13497	  icpc* | ecpc* )
13498	    # Intel C++
13499	    with_gnu_ld=yes
13500	    # version 8.0 and above of icpc choke on multiply defined symbols
13501	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13502	    # earlier do not add the objects themselves.
13503	    case `$CC -V 2>&1` in
13504	      *"Version 7."*)
13505	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13506		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'
13507		;;
13508	      *)  # Version 8.0 or newer
13509	        tmp_idyn=
13510	        case $host_cpu in
13511		  ia64*) tmp_idyn=' -i_dynamic';;
13512		esac
13513	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514		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'
13515		;;
13516	    esac
13517	    archive_cmds_need_lc_CXX=no
13518	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13519	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13520	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13521	    ;;
13522          pgCC* | pgcpp*)
13523            # Portland Group C++ compiler
13524	    case `$CC -V` in
13525	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13526	      prelink_cmds_CXX='tpldir=Template.dir~
13527		rm -rf $tpldir~
13528		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13529		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13530	      old_archive_cmds_CXX='tpldir=Template.dir~
13531		rm -rf $tpldir~
13532		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13533		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13534		$RANLIB $oldlib'
13535	      archive_cmds_CXX='tpldir=Template.dir~
13536		rm -rf $tpldir~
13537		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13538		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13539	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13540		rm -rf $tpldir~
13541		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13542		$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'
13543	      ;;
13544	    *) # Version 6 will use weak symbols
13545	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13546	      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'
13547	      ;;
13548	    esac
13549
13550	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13551	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13552	    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'
13553            ;;
13554	  cxx*)
13555	    # Compaq C++
13556	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13557	    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'
13558
13559	    runpath_var=LD_RUN_PATH
13560	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13561	    hardcode_libdir_separator_CXX=:
13562
13563	    # Commands to make compiler produce verbose output that lists
13564	    # what "hidden" libraries, object files and flags are used when
13565	    # linking a shared library.
13566	    #
13567	    # There doesn't appear to be a way to prevent this compiler from
13568	    # explicitly linking system object files so we need to strip them
13569	    # from the output so that they don't get included in the library
13570	    # dependencies.
13571	    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'
13572	    ;;
13573	  xl*)
13574	    # IBM XL 8.0 on PPC, with GNU ld
13575	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13576	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13577	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13578	    if test "x$supports_anon_versioning" = xyes; then
13579	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13580		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13581		echo "local: *; };" >> $output_objdir/$libname.ver~
13582		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13583	    fi
13584	    ;;
13585	  *)
13586	    case `$CC -V 2>&1 | sed 5q` in
13587	    *Sun\ C*)
13588	      # Sun C++ 5.9
13589	      no_undefined_flag_CXX=' -zdefs'
13590	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13591	      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'
13592	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13593	      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'
13594	      compiler_needs_object_CXX=yes
13595
13596	      # Not sure whether something based on
13597	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13598	      # would be better.
13599	      output_verbose_link_cmd='echo'
13600
13601	      # Archives containing C++ object files must be created using
13602	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13603	      # necessary to make sure instantiated templates are included
13604	      # in the archive.
13605	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13606	      ;;
13607	    esac
13608	    ;;
13609	esac
13610	;;
13611
13612      lynxos*)
13613        # FIXME: insert proper C++ library support
13614	ld_shlibs_CXX=no
13615	;;
13616
13617      m88k*)
13618        # FIXME: insert proper C++ library support
13619        ld_shlibs_CXX=no
13620	;;
13621
13622      mvs*)
13623        case $cc_basename in
13624          cxx*)
13625	    # FIXME: insert proper C++ library support
13626	    ld_shlibs_CXX=no
13627	    ;;
13628	  *)
13629	    # FIXME: insert proper C++ library support
13630	    ld_shlibs_CXX=no
13631	    ;;
13632	esac
13633	;;
13634
13635      netbsd*)
13636        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13637	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13638	  wlarc=
13639	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13640	  hardcode_direct_CXX=yes
13641	  hardcode_shlibpath_var_CXX=no
13642	fi
13643	# Workaround some broken pre-1.5 toolchains
13644	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13645	;;
13646
13647      *nto* | *qnx*)
13648        ld_shlibs_CXX=yes
13649	;;
13650
13651      openbsd2*)
13652        # C++ shared libraries are fairly broken
13653	ld_shlibs_CXX=no
13654	;;
13655
13656      openbsd*)
13657	if test -f /usr/libexec/ld.so; then
13658	  hardcode_direct_CXX=yes
13659	  hardcode_shlibpath_var_CXX=no
13660	  hardcode_direct_absolute_CXX=yes
13661	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13662	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13663	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13664	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13665	    export_dynamic_flag_spec_CXX='${wl}-E'
13666	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13667	  fi
13668	  output_verbose_link_cmd=echo
13669	else
13670	  ld_shlibs_CXX=no
13671	fi
13672	;;
13673
13674      osf3* | osf4* | osf5*)
13675        case $cc_basename in
13676          KCC*)
13677	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13678
13679	    # KCC will only create a shared library if the output file
13680	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13681	    # to its proper name (with version) after linking.
13682	    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'
13683
13684	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13685	    hardcode_libdir_separator_CXX=:
13686
13687	    # Archives containing C++ object files must be created using
13688	    # the KAI C++ compiler.
13689	    case $host in
13690	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13691	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13692	    esac
13693	    ;;
13694          RCC*)
13695	    # Rational C++ 2.4.1
13696	    # FIXME: insert proper C++ library support
13697	    ld_shlibs_CXX=no
13698	    ;;
13699          cxx*)
13700	    case $host in
13701	      osf3*)
13702	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13703	        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'
13704	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13705		;;
13706	      *)
13707	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13708	        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'
13709	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13710	          echo "-hidden">> $lib.exp~
13711	          $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~
13712	          $RM $lib.exp'
13713	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13714		;;
13715	    esac
13716
13717	    hardcode_libdir_separator_CXX=:
13718
13719	    # Commands to make compiler produce verbose output that lists
13720	    # what "hidden" libraries, object files and flags are used when
13721	    # linking a shared library.
13722	    #
13723	    # There doesn't appear to be a way to prevent this compiler from
13724	    # explicitly linking system object files so we need to strip them
13725	    # from the output so that they don't get included in the library
13726	    # dependencies.
13727	    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'
13728	    ;;
13729	  *)
13730	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13731	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13732	      case $host in
13733	        osf3*)
13734	          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'
13735		  ;;
13736	        *)
13737	          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'
13738		  ;;
13739	      esac
13740
13741	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13742	      hardcode_libdir_separator_CXX=:
13743
13744	      # Commands to make compiler produce verbose output that lists
13745	      # what "hidden" libraries, object files and flags are used when
13746	      # linking a shared library.
13747	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13748
13749	    else
13750	      # FIXME: insert proper C++ library support
13751	      ld_shlibs_CXX=no
13752	    fi
13753	    ;;
13754        esac
13755        ;;
13756
13757      psos*)
13758        # FIXME: insert proper C++ library support
13759        ld_shlibs_CXX=no
13760        ;;
13761
13762      sunos4*)
13763        case $cc_basename in
13764          CC*)
13765	    # Sun C++ 4.x
13766	    # FIXME: insert proper C++ library support
13767	    ld_shlibs_CXX=no
13768	    ;;
13769          lcc*)
13770	    # Lucid
13771	    # FIXME: insert proper C++ library support
13772	    ld_shlibs_CXX=no
13773	    ;;
13774          *)
13775	    # FIXME: insert proper C++ library support
13776	    ld_shlibs_CXX=no
13777	    ;;
13778        esac
13779        ;;
13780
13781      solaris*)
13782        case $cc_basename in
13783          CC*)
13784	    # Sun C++ 4.2, 5.x and Centerline C++
13785            archive_cmds_need_lc_CXX=yes
13786	    no_undefined_flag_CXX=' -zdefs'
13787	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13788	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13789	      $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'
13790
13791	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13792	    hardcode_shlibpath_var_CXX=no
13793	    case $host_os in
13794	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13795	      *)
13796		# The compiler driver will combine and reorder linker options,
13797		# but understands `-z linker_flag'.
13798	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13799		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13800	        ;;
13801	    esac
13802	    link_all_deplibs_CXX=yes
13803
13804	    output_verbose_link_cmd='echo'
13805
13806	    # Archives containing C++ object files must be created using
13807	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13808	    # necessary to make sure instantiated templates are included
13809	    # in the archive.
13810	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13811	    ;;
13812          gcx*)
13813	    # Green Hills C++ Compiler
13814	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13815
13816	    # The C++ compiler must be used to create the archive.
13817	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13818	    ;;
13819          *)
13820	    # GNU C++ compiler with Solaris linker
13821	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13822	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13823	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13824	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13825	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13826		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13827
13828	        # Commands to make compiler produce verbose output that lists
13829	        # what "hidden" libraries, object files and flags are used when
13830	        # linking a shared library.
13831	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13832	      else
13833	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13834	        # platform.
13835	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13836	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13837		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13838
13839	        # Commands to make compiler produce verbose output that lists
13840	        # what "hidden" libraries, object files and flags are used when
13841	        # linking a shared library.
13842	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13843	      fi
13844
13845	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13846	      case $host_os in
13847		solaris2.[0-5] | solaris2.[0-5].*) ;;
13848		*)
13849		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13850		  ;;
13851	      esac
13852	    fi
13853	    ;;
13854        esac
13855        ;;
13856
13857    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13858      no_undefined_flag_CXX='${wl}-z,text'
13859      archive_cmds_need_lc_CXX=no
13860      hardcode_shlibpath_var_CXX=no
13861      runpath_var='LD_RUN_PATH'
13862
13863      case $cc_basename in
13864        CC*)
13865	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867	  ;;
13868	*)
13869	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13871	  ;;
13872      esac
13873      ;;
13874
13875      sysv5* | sco3.2v5* | sco5v6*)
13876	# Note: We can NOT use -z defs as we might desire, because we do not
13877	# link with -lc, and that would cause any symbols used from libc to
13878	# always be unresolved, which means just about no library would
13879	# ever link correctly.  If we're not using GNU ld we use -z text
13880	# though, which does catch some bad symbols but isn't as heavy-handed
13881	# as -z defs.
13882	no_undefined_flag_CXX='${wl}-z,text'
13883	allow_undefined_flag_CXX='${wl}-z,nodefs'
13884	archive_cmds_need_lc_CXX=no
13885	hardcode_shlibpath_var_CXX=no
13886	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13887	hardcode_libdir_separator_CXX=':'
13888	link_all_deplibs_CXX=yes
13889	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13890	runpath_var='LD_RUN_PATH'
13891
13892	case $cc_basename in
13893          CC*)
13894	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13895	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896	    ;;
13897	  *)
13898	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13899	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900	    ;;
13901	esac
13902      ;;
13903
13904      tandem*)
13905        case $cc_basename in
13906          NCC*)
13907	    # NonStop-UX NCC 3.20
13908	    # FIXME: insert proper C++ library support
13909	    ld_shlibs_CXX=no
13910	    ;;
13911          *)
13912	    # FIXME: insert proper C++ library support
13913	    ld_shlibs_CXX=no
13914	    ;;
13915        esac
13916        ;;
13917
13918      vxworks*)
13919        # FIXME: insert proper C++ library support
13920        ld_shlibs_CXX=no
13921        ;;
13922
13923      *)
13924        # FIXME: insert proper C++ library support
13925        ld_shlibs_CXX=no
13926        ;;
13927    esac
13928
13929    { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13930echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13931    test "$ld_shlibs_CXX" = no && can_build_shared=no
13932
13933    GCC_CXX="$GXX"
13934    LD_CXX="$LD"
13935
13936    ## CAVEAT EMPTOR:
13937    ## There is no encapsulation within the following macros, do not change
13938    ## the running order or otherwise move them around unless you know exactly
13939    ## what you are doing...
13940    # Dependencies to place before and after the object being linked:
13941predep_objects_CXX=
13942postdep_objects_CXX=
13943predeps_CXX=
13944postdeps_CXX=
13945compiler_lib_search_path_CXX=
13946
13947cat > conftest.$ac_ext <<_LT_EOF
13948class Foo
13949{
13950public:
13951  Foo (void) { a = 0; }
13952private:
13953  int a;
13954};
13955_LT_EOF
13956
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958  (eval $ac_compile) 2>&5
13959  ac_status=$?
13960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961  (exit $ac_status); }; then
13962  # Parse the compiler output and extract the necessary
13963  # objects, libraries and library flags.
13964
13965  # Sentinel used to keep track of whether or not we are before
13966  # the conftest object file.
13967  pre_test_object_deps_done=no
13968
13969  for p in `eval "$output_verbose_link_cmd"`; do
13970    case $p in
13971
13972    -L* | -R* | -l*)
13973       # Some compilers place space between "-{L,R}" and the path.
13974       # Remove the space.
13975       if test $p = "-L" ||
13976          test $p = "-R"; then
13977	 prev=$p
13978	 continue
13979       else
13980	 prev=
13981       fi
13982
13983       if test "$pre_test_object_deps_done" = no; then
13984	 case $p in
13985	 -L* | -R*)
13986	   # Internal compiler library paths should come after those
13987	   # provided the user.  The postdeps already come after the
13988	   # user supplied libs so there is no need to process them.
13989	   if test -z "$compiler_lib_search_path_CXX"; then
13990	     compiler_lib_search_path_CXX="${prev}${p}"
13991	   else
13992	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13993	   fi
13994	   ;;
13995	 # The "-l" case would never come before the object being
13996	 # linked, so don't bother handling this case.
13997	 esac
13998       else
13999	 if test -z "$postdeps_CXX"; then
14000	   postdeps_CXX="${prev}${p}"
14001	 else
14002	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14003	 fi
14004       fi
14005       ;;
14006
14007    *.$objext)
14008       # This assumes that the test object file only shows up
14009       # once in the compiler output.
14010       if test "$p" = "conftest.$objext"; then
14011	 pre_test_object_deps_done=yes
14012	 continue
14013       fi
14014
14015       if test "$pre_test_object_deps_done" = no; then
14016	 if test -z "$predep_objects_CXX"; then
14017	   predep_objects_CXX="$p"
14018	 else
14019	   predep_objects_CXX="$predep_objects_CXX $p"
14020	 fi
14021       else
14022	 if test -z "$postdep_objects_CXX"; then
14023	   postdep_objects_CXX="$p"
14024	 else
14025	   postdep_objects_CXX="$postdep_objects_CXX $p"
14026	 fi
14027       fi
14028       ;;
14029
14030    *) ;; # Ignore the rest.
14031
14032    esac
14033  done
14034
14035  # Clean up.
14036  rm -f a.out a.exe
14037else
14038  echo "libtool.m4: error: problem compiling CXX test program"
14039fi
14040
14041$RM -f confest.$objext
14042
14043# PORTME: override above test on systems where it is broken
14044case $host_os in
14045interix[3-9]*)
14046  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14047  # hack all around it, let's just trust "g++" to DTRT.
14048  predep_objects_CXX=
14049  postdep_objects_CXX=
14050  postdeps_CXX=
14051  ;;
14052
14053linux*)
14054  case `$CC -V 2>&1 | sed 5q` in
14055  *Sun\ C*)
14056    # Sun C++ 5.9
14057
14058    # The more standards-conforming stlport4 library is
14059    # incompatible with the Cstd library. Avoid specifying
14060    # it if it's in CXXFLAGS. Ignore libCrun as
14061    # -library=stlport4 depends on it.
14062    case " $CXX $CXXFLAGS " in
14063    *" -library=stlport4 "*)
14064      solaris_use_stlport4=yes
14065      ;;
14066    esac
14067
14068    if test "$solaris_use_stlport4" != yes; then
14069      postdeps_CXX='-library=Cstd -library=Crun'
14070    fi
14071    ;;
14072  esac
14073  ;;
14074
14075solaris*)
14076  case $cc_basename in
14077  CC*)
14078    # The more standards-conforming stlport4 library is
14079    # incompatible with the Cstd library. Avoid specifying
14080    # it if it's in CXXFLAGS. Ignore libCrun as
14081    # -library=stlport4 depends on it.
14082    case " $CXX $CXXFLAGS " in
14083    *" -library=stlport4 "*)
14084      solaris_use_stlport4=yes
14085      ;;
14086    esac
14087
14088    # Adding this requires a known-good setup of shared libraries for
14089    # Sun compiler versions before 5.6, else PIC objects from an old
14090    # archive will be linked into the output, leading to subtle bugs.
14091    if test "$solaris_use_stlport4" != yes; then
14092      postdeps_CXX='-library=Cstd -library=Crun'
14093    fi
14094    ;;
14095  esac
14096  ;;
14097esac
14098
14099
14100case " $postdeps_CXX " in
14101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14102esac
14103 compiler_lib_search_dirs_CXX=
14104if test -n "${compiler_lib_search_path_CXX}"; then
14105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14106fi
14107
14108
14109
14110
14111
14112
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    lt_prog_compiler_wl_CXX=
14139lt_prog_compiler_pic_CXX=
14140lt_prog_compiler_static_CXX=
14141
14142{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14143echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14144
14145  # C++ specific cases for pic, static, wl, etc.
14146  if test "$GXX" = yes; then
14147    lt_prog_compiler_wl_CXX='-Wl,'
14148    lt_prog_compiler_static_CXX='-static'
14149
14150    case $host_os in
14151    aix*)
14152      # All AIX code is PIC.
14153      if test "$host_cpu" = ia64; then
14154	# AIX 5 now supports IA64 processor
14155	lt_prog_compiler_static_CXX='-Bstatic'
14156      fi
14157      ;;
14158
14159    amigaos*)
14160      case $host_cpu in
14161      powerpc)
14162            # see comment about AmigaOS4 .so support
14163            lt_prog_compiler_pic_CXX='-fPIC'
14164        ;;
14165      m68k)
14166            # FIXME: we need at least 68020 code to build shared libraries, but
14167            # adding the `-m68020' flag to GCC prevents building anything better,
14168            # like `-m68040'.
14169            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14170        ;;
14171      esac
14172      ;;
14173
14174    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14175      # PIC is the default for these OSes.
14176      ;;
14177    mingw* | cygwin* | os2* | pw32* | cegcc*)
14178      # This hack is so that the source file can tell whether it is being
14179      # built for inclusion in a dll (and should export symbols for example).
14180      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14181      # (--disable-auto-import) libraries
14182      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14183      ;;
14184    darwin* | rhapsody*)
14185      # PIC is the default on this platform
14186      # Common symbols not allowed in MH_DYLIB files
14187      lt_prog_compiler_pic_CXX='-fno-common'
14188      ;;
14189    *djgpp*)
14190      # DJGPP does not support shared libraries at all
14191      lt_prog_compiler_pic_CXX=
14192      ;;
14193    interix[3-9]*)
14194      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14195      # Instead, we relocate shared libraries at runtime.
14196      ;;
14197    sysv4*MP*)
14198      if test -d /usr/nec; then
14199	lt_prog_compiler_pic_CXX=-Kconform_pic
14200      fi
14201      ;;
14202    hpux*)
14203      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14204      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14205      # sets the default TLS model and affects inlining.
14206      case $host_cpu in
14207      hppa*64*)
14208	;;
14209      *)
14210	lt_prog_compiler_pic_CXX='-fPIC'
14211	;;
14212      esac
14213      ;;
14214    *qnx* | *nto*)
14215      # QNX uses GNU C++, but need to define -shared option too, otherwise
14216      # it will coredump.
14217      lt_prog_compiler_pic_CXX='-fPIC -shared'
14218      ;;
14219    *)
14220      lt_prog_compiler_pic_CXX='-fPIC'
14221      ;;
14222    esac
14223  else
14224    case $host_os in
14225      aix[4-9]*)
14226	# All AIX code is PIC.
14227	if test "$host_cpu" = ia64; then
14228	  # AIX 5 now supports IA64 processor
14229	  lt_prog_compiler_static_CXX='-Bstatic'
14230	else
14231	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14232	fi
14233	;;
14234      chorus*)
14235	case $cc_basename in
14236	cxch68*)
14237	  # Green Hills C++ Compiler
14238	  # _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"
14239	  ;;
14240	esac
14241	;;
14242      dgux*)
14243	case $cc_basename in
14244	  ec++*)
14245	    lt_prog_compiler_pic_CXX='-KPIC'
14246	    ;;
14247	  ghcx*)
14248	    # Green Hills C++ Compiler
14249	    lt_prog_compiler_pic_CXX='-pic'
14250	    ;;
14251	  *)
14252	    ;;
14253	esac
14254	;;
14255      freebsd* | dragonfly*)
14256	# FreeBSD uses GNU C++
14257	;;
14258      hpux9* | hpux10* | hpux11*)
14259	case $cc_basename in
14260	  CC*)
14261	    lt_prog_compiler_wl_CXX='-Wl,'
14262	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14263	    if test "$host_cpu" != ia64; then
14264	      lt_prog_compiler_pic_CXX='+Z'
14265	    fi
14266	    ;;
14267	  aCC*)
14268	    lt_prog_compiler_wl_CXX='-Wl,'
14269	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14270	    case $host_cpu in
14271	    hppa*64*|ia64*)
14272	      # +Z the default
14273	      ;;
14274	    *)
14275	      lt_prog_compiler_pic_CXX='+Z'
14276	      ;;
14277	    esac
14278	    ;;
14279	  *)
14280	    ;;
14281	esac
14282	;;
14283      interix*)
14284	# This is c89, which is MS Visual C++ (no shared libs)
14285	# Anyone wants to do a port?
14286	;;
14287      irix5* | irix6* | nonstopux*)
14288	case $cc_basename in
14289	  CC*)
14290	    lt_prog_compiler_wl_CXX='-Wl,'
14291	    lt_prog_compiler_static_CXX='-non_shared'
14292	    # CC pic flag -KPIC is the default.
14293	    ;;
14294	  *)
14295	    ;;
14296	esac
14297	;;
14298      linux* | k*bsd*-gnu)
14299	case $cc_basename in
14300	  KCC*)
14301	    # KAI C++ Compiler
14302	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14303	    lt_prog_compiler_pic_CXX='-fPIC'
14304	    ;;
14305	  ecpc* )
14306	    # old Intel C++ for x86_64 which still supported -KPIC.
14307	    lt_prog_compiler_wl_CXX='-Wl,'
14308	    lt_prog_compiler_pic_CXX='-KPIC'
14309	    lt_prog_compiler_static_CXX='-static'
14310	    ;;
14311	  icpc* )
14312	    # Intel C++, used to be incompatible with GCC.
14313	    # ICC 10 doesn't accept -KPIC any more.
14314	    lt_prog_compiler_wl_CXX='-Wl,'
14315	    lt_prog_compiler_pic_CXX='-fPIC'
14316	    lt_prog_compiler_static_CXX='-static'
14317	    ;;
14318	  pgCC* | pgcpp*)
14319	    # Portland Group C++ compiler
14320	    lt_prog_compiler_wl_CXX='-Wl,'
14321	    lt_prog_compiler_pic_CXX='-fpic'
14322	    lt_prog_compiler_static_CXX='-Bstatic'
14323	    ;;
14324	  cxx*)
14325	    # Compaq C++
14326	    # Make sure the PIC flag is empty.  It appears that all Alpha
14327	    # Linux and Compaq Tru64 Unix objects are PIC.
14328	    lt_prog_compiler_pic_CXX=
14329	    lt_prog_compiler_static_CXX='-non_shared'
14330	    ;;
14331	  xlc* | xlC*)
14332	    # IBM XL 8.0 on PPC
14333	    lt_prog_compiler_wl_CXX='-Wl,'
14334	    lt_prog_compiler_pic_CXX='-qpic'
14335	    lt_prog_compiler_static_CXX='-qstaticlink'
14336	    ;;
14337	  *)
14338	    case `$CC -V 2>&1 | sed 5q` in
14339	    *Sun\ C*)
14340	      # Sun C++ 5.9
14341	      lt_prog_compiler_pic_CXX='-KPIC'
14342	      lt_prog_compiler_static_CXX='-Bstatic'
14343	      lt_prog_compiler_wl_CXX='-Qoption ld '
14344	      ;;
14345	    esac
14346	    ;;
14347	esac
14348	;;
14349      lynxos*)
14350	;;
14351      m88k*)
14352	;;
14353      mvs*)
14354	case $cc_basename in
14355	  cxx*)
14356	    lt_prog_compiler_pic_CXX='-W c,exportall'
14357	    ;;
14358	  *)
14359	    ;;
14360	esac
14361	;;
14362      netbsd*)
14363	;;
14364      *qnx* | *nto*)
14365        # QNX uses GNU C++, but need to define -shared option too, otherwise
14366        # it will coredump.
14367        lt_prog_compiler_pic_CXX='-fPIC -shared'
14368        ;;
14369      osf3* | osf4* | osf5*)
14370	case $cc_basename in
14371	  KCC*)
14372	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14373	    ;;
14374	  RCC*)
14375	    # Rational C++ 2.4.1
14376	    lt_prog_compiler_pic_CXX='-pic'
14377	    ;;
14378	  cxx*)
14379	    # Digital/Compaq C++
14380	    lt_prog_compiler_wl_CXX='-Wl,'
14381	    # Make sure the PIC flag is empty.  It appears that all Alpha
14382	    # Linux and Compaq Tru64 Unix objects are PIC.
14383	    lt_prog_compiler_pic_CXX=
14384	    lt_prog_compiler_static_CXX='-non_shared'
14385	    ;;
14386	  *)
14387	    ;;
14388	esac
14389	;;
14390      psos*)
14391	;;
14392      solaris*)
14393	case $cc_basename in
14394	  CC*)
14395	    # Sun C++ 4.2, 5.x and Centerline C++
14396	    lt_prog_compiler_pic_CXX='-KPIC'
14397	    lt_prog_compiler_static_CXX='-Bstatic'
14398	    lt_prog_compiler_wl_CXX='-Qoption ld '
14399	    ;;
14400	  gcx*)
14401	    # Green Hills C++ Compiler
14402	    lt_prog_compiler_pic_CXX='-PIC'
14403	    ;;
14404	  *)
14405	    ;;
14406	esac
14407	;;
14408      sunos4*)
14409	case $cc_basename in
14410	  CC*)
14411	    # Sun C++ 4.x
14412	    lt_prog_compiler_pic_CXX='-pic'
14413	    lt_prog_compiler_static_CXX='-Bstatic'
14414	    ;;
14415	  lcc*)
14416	    # Lucid
14417	    lt_prog_compiler_pic_CXX='-pic'
14418	    ;;
14419	  *)
14420	    ;;
14421	esac
14422	;;
14423      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14424	case $cc_basename in
14425	  CC*)
14426	    lt_prog_compiler_wl_CXX='-Wl,'
14427	    lt_prog_compiler_pic_CXX='-KPIC'
14428	    lt_prog_compiler_static_CXX='-Bstatic'
14429	    ;;
14430	esac
14431	;;
14432      tandem*)
14433	case $cc_basename in
14434	  NCC*)
14435	    # NonStop-UX NCC 3.20
14436	    lt_prog_compiler_pic_CXX='-KPIC'
14437	    ;;
14438	  *)
14439	    ;;
14440	esac
14441	;;
14442      vxworks*)
14443	;;
14444      *)
14445	lt_prog_compiler_can_build_shared_CXX=no
14446	;;
14447    esac
14448  fi
14449
14450case $host_os in
14451  # For platforms which do not support PIC, -DPIC is meaningless:
14452  *djgpp*)
14453    lt_prog_compiler_pic_CXX=
14454    ;;
14455  *)
14456    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14457    ;;
14458esac
14459{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14460echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14461
14462
14463
14464#
14465# Check to make sure the PIC flag actually works.
14466#
14467if test -n "$lt_prog_compiler_pic_CXX"; then
14468  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14470if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14471  echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473  lt_cv_prog_compiler_pic_works_CXX=no
14474   ac_outfile=conftest.$ac_objext
14475   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14476   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14477   # Insert the option either (1) after the last *FLAGS variable, or
14478   # (2) before a word containing "conftest.", or (3) at the end.
14479   # Note that $ac_compile itself does not contain backslashes and begins
14480   # with a dollar sign (not a hyphen), so the echo should work correctly.
14481   # The option is referenced via a variable to avoid confusing sed.
14482   lt_compile=`echo "$ac_compile" | $SED \
14483   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14484   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14485   -e 's:$: $lt_compiler_flag:'`
14486   (eval echo "\"\$as_me:14492: $lt_compile\"" >&5)
14487   (eval "$lt_compile" 2>conftest.err)
14488   ac_status=$?
14489   cat conftest.err >&5
14490   echo "$as_me:14496: \$? = $ac_status" >&5
14491   if (exit $ac_status) && test -s "$ac_outfile"; then
14492     # The compiler can only warn and ignore the option if not recognized
14493     # So say no if there are warnings other than the usual output.
14494     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14495     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14496     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14497       lt_cv_prog_compiler_pic_works_CXX=yes
14498     fi
14499   fi
14500   $RM conftest*
14501
14502fi
14503{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14504echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14505
14506if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14507    case $lt_prog_compiler_pic_CXX in
14508     "" | " "*) ;;
14509     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14510     esac
14511else
14512    lt_prog_compiler_pic_CXX=
14513     lt_prog_compiler_can_build_shared_CXX=no
14514fi
14515
14516fi
14517
14518
14519
14520#
14521# Check to make sure the static flag actually works.
14522#
14523wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14524{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14525echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14526if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14527  echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529  lt_cv_prog_compiler_static_works_CXX=no
14530   save_LDFLAGS="$LDFLAGS"
14531   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14532   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14533   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14534     # The linker can only warn and ignore the option if not recognized
14535     # So say no if there are warnings
14536     if test -s conftest.err; then
14537       # Append any errors to the config.log.
14538       cat conftest.err 1>&5
14539       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14540       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14541       if diff conftest.exp conftest.er2 >/dev/null; then
14542         lt_cv_prog_compiler_static_works_CXX=yes
14543       fi
14544     else
14545       lt_cv_prog_compiler_static_works_CXX=yes
14546     fi
14547   fi
14548   $RM -r conftest*
14549   LDFLAGS="$save_LDFLAGS"
14550
14551fi
14552{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14553echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14554
14555if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14556    :
14557else
14558    lt_prog_compiler_static_CXX=
14559fi
14560
14561
14562
14563
14564    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14566if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14567  echo $ECHO_N "(cached) $ECHO_C" >&6
14568else
14569  lt_cv_prog_compiler_c_o_CXX=no
14570   $RM -r conftest 2>/dev/null
14571   mkdir conftest
14572   cd conftest
14573   mkdir out
14574   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14575
14576   lt_compiler_flag="-o out/conftest2.$ac_objext"
14577   # Insert the option either (1) after the last *FLAGS variable, or
14578   # (2) before a word containing "conftest.", or (3) at the end.
14579   # Note that $ac_compile itself does not contain backslashes and begins
14580   # with a dollar sign (not a hyphen), so the echo should work correctly.
14581   lt_compile=`echo "$ac_compile" | $SED \
14582   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14583   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14584   -e 's:$: $lt_compiler_flag:'`
14585   (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
14586   (eval "$lt_compile" 2>out/conftest.err)
14587   ac_status=$?
14588   cat out/conftest.err >&5
14589   echo "$as_me:14595: \$? = $ac_status" >&5
14590   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14591   then
14592     # The compiler can only warn and ignore the option if not recognized
14593     # So say no if there are warnings
14594     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14595     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14596     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14597       lt_cv_prog_compiler_c_o_CXX=yes
14598     fi
14599   fi
14600   chmod u+w . 2>&5
14601   $RM conftest*
14602   # SGI C++ compiler will create directory out/ii_files/ for
14603   # template instantiation
14604   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14605   $RM out/* && rmdir out
14606   cd ..
14607   $RM -r conftest
14608   $RM conftest*
14609
14610fi
14611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14612echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14613
14614
14615
14616    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14617echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14618if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14619  echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621  lt_cv_prog_compiler_c_o_CXX=no
14622   $RM -r conftest 2>/dev/null
14623   mkdir conftest
14624   cd conftest
14625   mkdir out
14626   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14627
14628   lt_compiler_flag="-o out/conftest2.$ac_objext"
14629   # Insert the option either (1) after the last *FLAGS variable, or
14630   # (2) before a word containing "conftest.", or (3) at the end.
14631   # Note that $ac_compile itself does not contain backslashes and begins
14632   # with a dollar sign (not a hyphen), so the echo should work correctly.
14633   lt_compile=`echo "$ac_compile" | $SED \
14634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14636   -e 's:$: $lt_compiler_flag:'`
14637   (eval echo "\"\$as_me:14643: $lt_compile\"" >&5)
14638   (eval "$lt_compile" 2>out/conftest.err)
14639   ac_status=$?
14640   cat out/conftest.err >&5
14641   echo "$as_me:14647: \$? = $ac_status" >&5
14642   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14643   then
14644     # The compiler can only warn and ignore the option if not recognized
14645     # So say no if there are warnings
14646     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14647     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14648     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14649       lt_cv_prog_compiler_c_o_CXX=yes
14650     fi
14651   fi
14652   chmod u+w . 2>&5
14653   $RM conftest*
14654   # SGI C++ compiler will create directory out/ii_files/ for
14655   # template instantiation
14656   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14657   $RM out/* && rmdir out
14658   cd ..
14659   $RM -r conftest
14660   $RM conftest*
14661
14662fi
14663{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14664echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14665
14666
14667
14668
14669hard_links="nottested"
14670if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14671  # do not overwrite the value of need_locks provided by the user
14672  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14673echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14674  hard_links=yes
14675  $RM conftest*
14676  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14677  touch conftest.a
14678  ln conftest.a conftest.b 2>&5 || hard_links=no
14679  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14680  { echo "$as_me:$LINENO: result: $hard_links" >&5
14681echo "${ECHO_T}$hard_links" >&6; }
14682  if test "$hard_links" = no; then
14683    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14684echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14685    need_locks=warn
14686  fi
14687else
14688  need_locks=no
14689fi
14690
14691
14692
14693    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14694echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14695
14696  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14697  case $host_os in
14698  aix[4-9]*)
14699    # If we're using GNU nm, then we don't want the "-C" option.
14700    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14701    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14702      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'
14703    else
14704      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'
14705    fi
14706    ;;
14707  pw32*)
14708    export_symbols_cmds_CXX="$ltdll_cmds"
14709  ;;
14710  cygwin* | mingw* | cegcc*)
14711    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'
14712  ;;
14713  *)
14714    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14715  ;;
14716  esac
14717  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14718
14719{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14720echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14721test "$ld_shlibs_CXX" = no && can_build_shared=no
14722
14723with_gnu_ld_CXX=$with_gnu_ld
14724
14725
14726
14727
14728
14729
14730#
14731# Do we need to explicitly link libc?
14732#
14733case "x$archive_cmds_need_lc_CXX" in
14734x|xyes)
14735  # Assume -lc should be added
14736  archive_cmds_need_lc_CXX=yes
14737
14738  if test "$enable_shared" = yes && test "$GCC" = yes; then
14739    case $archive_cmds_CXX in
14740    *'~'*)
14741      # FIXME: we may have to deal with multi-command sequences.
14742      ;;
14743    '$CC '*)
14744      # Test whether the compiler implicitly links with -lc since on some
14745      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14746      # to ld, don't add -lc before -lgcc.
14747      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14749      $RM conftest*
14750      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14751
14752      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753  (eval $ac_compile) 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); } 2>conftest.err; then
14757        soname=conftest
14758        lib=conftest
14759        libobjs=conftest.$ac_objext
14760        deplibs=
14761        wl=$lt_prog_compiler_wl_CXX
14762	pic_flag=$lt_prog_compiler_pic_CXX
14763        compiler_flags=-v
14764        linker_flags=-v
14765        verstring=
14766        output_objdir=.
14767        libname=conftest
14768        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14769        allow_undefined_flag_CXX=
14770        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14771  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14772  ac_status=$?
14773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774  (exit $ac_status); }
14775        then
14776	  archive_cmds_need_lc_CXX=no
14777        else
14778	  archive_cmds_need_lc_CXX=yes
14779        fi
14780        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14781      else
14782        cat conftest.err 1>&5
14783      fi
14784      $RM conftest*
14785      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14786echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14787      ;;
14788    esac
14789  fi
14790  ;;
14791esac
14792
14793
14794
14795
14796
14797
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    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14858
14859library_names_spec=
14860libname_spec='lib$name'
14861soname_spec=
14862shrext_cmds=".so"
14863postinstall_cmds=
14864postuninstall_cmds=
14865finish_cmds=
14866finish_eval=
14867shlibpath_var=
14868shlibpath_overrides_runpath=unknown
14869version_type=none
14870dynamic_linker="$host_os ld.so"
14871sys_lib_dlsearch_path_spec="/lib /usr/lib"
14872need_lib_prefix=unknown
14873hardcode_into_libs=no
14874
14875# when you set need_version to no, make sure it does not cause -set_version
14876# flags to be left without arguments
14877need_version=unknown
14878
14879case $host_os in
14880aix3*)
14881  version_type=linux
14882  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14883  shlibpath_var=LIBPATH
14884
14885  # AIX 3 has no versioning support, so we append a major version to the name.
14886  soname_spec='${libname}${release}${shared_ext}$major'
14887  ;;
14888
14889aix[4-9]*)
14890  version_type=linux
14891  need_lib_prefix=no
14892  need_version=no
14893  hardcode_into_libs=yes
14894  if test "$host_cpu" = ia64; then
14895    # AIX 5 supports IA64
14896    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14897    shlibpath_var=LD_LIBRARY_PATH
14898  else
14899    # With GCC up to 2.95.x, collect2 would create an import file
14900    # for dependence libraries.  The import file would start with
14901    # the line `#! .'.  This would cause the generated library to
14902    # depend on `.', always an invalid library.  This was fixed in
14903    # development snapshots of GCC prior to 3.0.
14904    case $host_os in
14905      aix4 | aix4.[01] | aix4.[01].*)
14906      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14907	   echo ' yes '
14908	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14909	:
14910      else
14911	can_build_shared=no
14912      fi
14913      ;;
14914    esac
14915    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14916    # soname into executable. Probably we can add versioning support to
14917    # collect2, so additional links can be useful in future.
14918    if test "$aix_use_runtimelinking" = yes; then
14919      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14920      # instead of lib<name>.a to let people know that these are not
14921      # typical AIX shared libraries.
14922      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14923    else
14924      # We preserve .a as extension for shared libraries through AIX4.2
14925      # and later when we are not doing run time linking.
14926      library_names_spec='${libname}${release}.a $libname.a'
14927      soname_spec='${libname}${release}${shared_ext}$major'
14928    fi
14929    shlibpath_var=LIBPATH
14930  fi
14931  ;;
14932
14933amigaos*)
14934  case $host_cpu in
14935  powerpc)
14936    # Since July 2007 AmigaOS4 officially supports .so libraries.
14937    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14938    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939    ;;
14940  m68k)
14941    library_names_spec='$libname.ixlibrary $libname.a'
14942    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14943    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'
14944    ;;
14945  esac
14946  ;;
14947
14948beos*)
14949  library_names_spec='${libname}${shared_ext}'
14950  dynamic_linker="$host_os ld.so"
14951  shlibpath_var=LIBRARY_PATH
14952  ;;
14953
14954bsdi[45]*)
14955  version_type=linux
14956  need_version=no
14957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958  soname_spec='${libname}${release}${shared_ext}$major'
14959  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14960  shlibpath_var=LD_LIBRARY_PATH
14961  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14962  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14963  # the default ld.so.conf also contains /usr/contrib/lib and
14964  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14965  # libtool to hard-code these into programs
14966  ;;
14967
14968cygwin* | mingw* | pw32* | cegcc*)
14969  version_type=windows
14970  shrext_cmds=".dll"
14971  need_version=no
14972  need_lib_prefix=no
14973
14974  case $GCC,$host_os in
14975  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14976    library_names_spec='$libname.dll.a'
14977    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14978    postinstall_cmds='base_file=`basename \${file}`~
14979      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14980      dldir=$destdir/`dirname \$dlpath`~
14981      test -d \$dldir || mkdir -p \$dldir~
14982      $install_prog $dir/$dlname \$dldir/$dlname~
14983      chmod a+x \$dldir/$dlname~
14984      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14985        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14986      fi'
14987    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14988      dlpath=$dir/\$dldll~
14989       $RM \$dlpath'
14990    shlibpath_overrides_runpath=yes
14991
14992    case $host_os in
14993    cygwin*)
14994      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14995      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14996      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
14997      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14998      ;;
14999    mingw* | cegcc*)
15000      # MinGW DLLs use traditional 'lib' prefix
15001      #soname_spec='${libname}`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=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15004      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15005        # It is most probably a Windows format PATH printed by
15006        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15007        # path with ; separators, and with drive letters. We can handle the
15008        # drive letters (cygwin fileutils understands them), so leave them,
15009        # especially as we might pass files found there to a mingw objdump,
15010        # which wouldn't understand a cygwinified path. Ahh.
15011        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15012      else
15013        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15014      fi
15015      ;;
15016    pw32*)
15017      # pw32 DLLs use 'pw' prefix rather than 'lib'
15018      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15019      ;;
15020    esac
15021    ;;
15022
15023  *)
15024    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15025    ;;
15026  esac
15027  dynamic_linker='Win32 ld.exe'
15028  # FIXME: first we should search . and the directory the executable is in
15029  shlibpath_var=PATH
15030  ;;
15031
15032darwin* | rhapsody*)
15033  dynamic_linker="$host_os dyld"
15034  version_type=darwin
15035  need_lib_prefix=no
15036  need_version=no
15037  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15038  soname_spec='${libname}${release}${major}$shared_ext'
15039  shlibpath_overrides_runpath=yes
15040  shlibpath_var=DYLD_LIBRARY_PATH
15041  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15042
15043  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15044  ;;
15045
15046dgux*)
15047  version_type=linux
15048  need_lib_prefix=no
15049  need_version=no
15050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15051  soname_spec='${libname}${release}${shared_ext}$major'
15052  shlibpath_var=LD_LIBRARY_PATH
15053  ;;
15054
15055freebsd1*)
15056  dynamic_linker=no
15057  ;;
15058
15059freebsd* | dragonfly*)
15060  # DragonFly does not have aout.  When/if they implement a new
15061  # versioning mechanism, adjust this.
15062  if test -x /usr/bin/objformat; then
15063    objformat=`/usr/bin/objformat`
15064  else
15065    case $host_os in
15066    freebsd[123]*) objformat=aout ;;
15067    *) objformat=elf ;;
15068    esac
15069  fi
15070  version_type=freebsd-$objformat
15071  case $version_type in
15072    freebsd-elf*)
15073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15074      need_version=no
15075      need_lib_prefix=no
15076      ;;
15077    freebsd-*)
15078      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15079      need_version=yes
15080      ;;
15081  esac
15082  shlibpath_var=LD_LIBRARY_PATH
15083  case $host_os in
15084  freebsd2*)
15085    shlibpath_overrides_runpath=yes
15086    ;;
15087  freebsd3.[01]* | freebsdelf3.[01]*)
15088    shlibpath_overrides_runpath=yes
15089    hardcode_into_libs=yes
15090    ;;
15091  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15092  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15093    shlibpath_overrides_runpath=no
15094    hardcode_into_libs=yes
15095    ;;
15096  *) # from 4.6 on, and DragonFly
15097    shlibpath_overrides_runpath=yes
15098    hardcode_into_libs=yes
15099    ;;
15100  esac
15101  ;;
15102
15103gnu*)
15104  version_type=linux
15105  need_lib_prefix=no
15106  need_version=no
15107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15108  soname_spec='${libname}${release}${shared_ext}$major'
15109  shlibpath_var=LD_LIBRARY_PATH
15110  hardcode_into_libs=yes
15111  ;;
15112
15113hpux9* | hpux10* | hpux11*)
15114  # Give a soname corresponding to the major version so that dld.sl refuses to
15115  # link against other versions.
15116  version_type=sunos
15117  need_lib_prefix=no
15118  need_version=no
15119  case $host_cpu in
15120  ia64*)
15121    shrext_cmds='.so'
15122    hardcode_into_libs=yes
15123    dynamic_linker="$host_os dld.so"
15124    shlibpath_var=LD_LIBRARY_PATH
15125    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15126    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15127    soname_spec='${libname}${release}${shared_ext}$major'
15128    if test "X$HPUX_IA64_MODE" = X32; then
15129      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15130    else
15131      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15132    fi
15133    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15134    ;;
15135  hppa*64*)
15136    shrext_cmds='.sl'
15137    hardcode_into_libs=yes
15138    dynamic_linker="$host_os dld.sl"
15139    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15140    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142    soname_spec='${libname}${release}${shared_ext}$major'
15143    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15144    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15145    ;;
15146  *)
15147    shrext_cmds='.sl'
15148    dynamic_linker="$host_os dld.sl"
15149    shlibpath_var=SHLIB_PATH
15150    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152    soname_spec='${libname}${release}${shared_ext}$major'
15153    ;;
15154  esac
15155  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15156  postinstall_cmds='chmod 555 $lib'
15157  ;;
15158
15159interix[3-9]*)
15160  version_type=linux
15161  need_lib_prefix=no
15162  need_version=no
15163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15164  soname_spec='${libname}${release}${shared_ext}$major'
15165  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15166  shlibpath_var=LD_LIBRARY_PATH
15167  shlibpath_overrides_runpath=no
15168  hardcode_into_libs=yes
15169  ;;
15170
15171irix5* | irix6* | nonstopux*)
15172  case $host_os in
15173    nonstopux*) version_type=nonstopux ;;
15174    *)
15175	if test "$lt_cv_prog_gnu_ld" = yes; then
15176		version_type=linux
15177	else
15178		version_type=irix
15179	fi ;;
15180  esac
15181  need_lib_prefix=no
15182  need_version=no
15183  soname_spec='${libname}${release}${shared_ext}$major'
15184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15185  case $host_os in
15186  irix5* | nonstopux*)
15187    libsuff= shlibsuff=
15188    ;;
15189  *)
15190    case $LD in # libtool.m4 will add one of these switches to LD
15191    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15192      libsuff= shlibsuff= libmagic=32-bit;;
15193    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15194      libsuff=32 shlibsuff=N32 libmagic=N32;;
15195    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15196      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15197    *) libsuff= shlibsuff= libmagic=never-match;;
15198    esac
15199    ;;
15200  esac
15201  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15202  shlibpath_overrides_runpath=no
15203  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15204  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15205  hardcode_into_libs=yes
15206  ;;
15207
15208# No shared lib support for Linux oldld, aout, or coff.
15209linux*oldld* | linux*aout* | linux*coff*)
15210  dynamic_linker=no
15211  ;;
15212
15213# This must be Linux ELF.
15214linux* | k*bsd*-gnu)
15215  version_type=linux
15216  need_lib_prefix=no
15217  need_version=no
15218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219  soname_spec='${libname}${release}${shared_ext}$major'
15220  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15221  shlibpath_var=LD_LIBRARY_PATH
15222  shlibpath_overrides_runpath=no
15223  # Some binutils ld are patched to set DT_RUNPATH
15224  save_LDFLAGS=$LDFLAGS
15225  save_libdir=$libdir
15226  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15227       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15228  cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h.  */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h.  */
15234
15235int
15236main ()
15237{
15238
15239  ;
15240  return 0;
15241}
15242_ACEOF
15243rm -f conftest.$ac_objext conftest$ac_exeext
15244if { (ac_try="$ac_link"
15245case "(($ac_try" in
15246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247  *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250  (eval "$ac_link") 2>conftest.er1
15251  ac_status=$?
15252  grep -v '^ *+' conftest.er1 >conftest.err
15253  rm -f conftest.er1
15254  cat conftest.err >&5
15255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256  (exit $ac_status); } && {
15257	 test -z "$ac_cxx_werror_flag" ||
15258	 test ! -s conftest.err
15259       } && test -s conftest$ac_exeext &&
15260       $as_test_x conftest$ac_exeext; then
15261  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15262  shlibpath_overrides_runpath=yes
15263fi
15264
15265else
15266  echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269
15270fi
15271
15272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15273      conftest$ac_exeext conftest.$ac_ext
15274  LDFLAGS=$save_LDFLAGS
15275  libdir=$save_libdir
15276
15277  # This implies no fast_install, which is unacceptable.
15278  # Some rework will be needed to allow for fast_install
15279  # before this can be enabled.
15280  hardcode_into_libs=yes
15281
15282  # Append ld.so.conf contents to the search path
15283  if test -f /etc/ld.so.conf; then
15284    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' ' '`
15285    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15286  fi
15287
15288  # We used to test for /lib/ld.so.1 and disable shared libraries on
15289  # powerpc, because MkLinux only supported shared libraries with the
15290  # GNU dynamic linker.  Since this was broken with cross compilers,
15291  # most powerpc-linux boxes support dynamic linking these days and
15292  # people can always --disable-shared, the test was removed, and we
15293  # assume the GNU/Linux dynamic linker is in use.
15294  dynamic_linker='GNU/Linux ld.so'
15295  ;;
15296
15297netbsd*)
15298  version_type=sunos
15299  need_lib_prefix=no
15300  need_version=no
15301  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15303    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15304    dynamic_linker='NetBSD (a.out) ld.so'
15305  else
15306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15307    soname_spec='${libname}${release}${shared_ext}$major'
15308    dynamic_linker='NetBSD ld.elf_so'
15309  fi
15310  shlibpath_var=LD_LIBRARY_PATH
15311  shlibpath_overrides_runpath=yes
15312  hardcode_into_libs=yes
15313  ;;
15314
15315newsos6)
15316  version_type=linux
15317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15318  shlibpath_var=LD_LIBRARY_PATH
15319  shlibpath_overrides_runpath=yes
15320  ;;
15321
15322*nto* | *qnx*)
15323  version_type=qnx
15324  need_lib_prefix=no
15325  need_version=no
15326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327  soname_spec='${libname}${release}${shared_ext}$major'
15328  shlibpath_var=LD_LIBRARY_PATH
15329  shlibpath_overrides_runpath=no
15330  hardcode_into_libs=yes
15331  dynamic_linker='ldqnx.so'
15332  ;;
15333
15334openbsd*)
15335  version_type=sunos
15336  sys_lib_dlsearch_path_spec="/usr/lib"
15337  need_lib_prefix=no
15338  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15339  case $host_os in
15340    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15341    *)				need_version=no  ;;
15342  esac
15343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15344  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15345  shlibpath_var=LD_LIBRARY_PATH
15346  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15347    case $host_os in
15348      openbsd2.[89] | openbsd2.[89].*)
15349	shlibpath_overrides_runpath=no
15350	;;
15351      *)
15352	shlibpath_overrides_runpath=yes
15353	;;
15354      esac
15355  else
15356    shlibpath_overrides_runpath=yes
15357  fi
15358  ;;
15359
15360os2*)
15361  libname_spec='$name'
15362  shrext_cmds=".dll"
15363  need_lib_prefix=no
15364  library_names_spec='$libname${shared_ext} $libname.a'
15365  dynamic_linker='OS/2 ld.exe'
15366  shlibpath_var=LIBPATH
15367  ;;
15368
15369osf3* | osf4* | osf5*)
15370  version_type=osf
15371  need_lib_prefix=no
15372  need_version=no
15373  soname_spec='${libname}${release}${shared_ext}$major'
15374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15375  shlibpath_var=LD_LIBRARY_PATH
15376  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15377  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15378  ;;
15379
15380rdos*)
15381  dynamic_linker=no
15382  ;;
15383
15384solaris*)
15385  version_type=linux
15386  need_lib_prefix=no
15387  need_version=no
15388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15389  soname_spec='${libname}${release}${shared_ext}$major'
15390  shlibpath_var=LD_LIBRARY_PATH
15391  shlibpath_overrides_runpath=yes
15392  hardcode_into_libs=yes
15393  # ldd complains unless libraries are executable
15394  postinstall_cmds='chmod +x $lib'
15395  ;;
15396
15397sunos4*)
15398  version_type=sunos
15399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15400  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15401  shlibpath_var=LD_LIBRARY_PATH
15402  shlibpath_overrides_runpath=yes
15403  if test "$with_gnu_ld" = yes; then
15404    need_lib_prefix=no
15405  fi
15406  need_version=yes
15407  ;;
15408
15409sysv4 | sysv4.3*)
15410  version_type=linux
15411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412  soname_spec='${libname}${release}${shared_ext}$major'
15413  shlibpath_var=LD_LIBRARY_PATH
15414  case $host_vendor in
15415    sni)
15416      shlibpath_overrides_runpath=no
15417      need_lib_prefix=no
15418      runpath_var=LD_RUN_PATH
15419      ;;
15420    siemens)
15421      need_lib_prefix=no
15422      ;;
15423    motorola)
15424      need_lib_prefix=no
15425      need_version=no
15426      shlibpath_overrides_runpath=no
15427      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15428      ;;
15429  esac
15430  ;;
15431
15432sysv4*MP*)
15433  if test -d /usr/nec ;then
15434    version_type=linux
15435    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15436    soname_spec='$libname${shared_ext}.$major'
15437    shlibpath_var=LD_LIBRARY_PATH
15438  fi
15439  ;;
15440
15441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15442  version_type=freebsd-elf
15443  need_lib_prefix=no
15444  need_version=no
15445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15446  soname_spec='${libname}${release}${shared_ext}$major'
15447  shlibpath_var=LD_LIBRARY_PATH
15448  shlibpath_overrides_runpath=yes
15449  hardcode_into_libs=yes
15450  if test "$with_gnu_ld" = yes; then
15451    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15452  else
15453    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15454    case $host_os in
15455      sco3.2v5*)
15456        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15457	;;
15458    esac
15459  fi
15460  sys_lib_dlsearch_path_spec='/usr/lib'
15461  ;;
15462
15463tpf*)
15464  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15465  version_type=linux
15466  need_lib_prefix=no
15467  need_version=no
15468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469  shlibpath_var=LD_LIBRARY_PATH
15470  shlibpath_overrides_runpath=no
15471  hardcode_into_libs=yes
15472  ;;
15473
15474uts4*)
15475  version_type=linux
15476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15477  soname_spec='${libname}${release}${shared_ext}$major'
15478  shlibpath_var=LD_LIBRARY_PATH
15479  ;;
15480
15481*)
15482  dynamic_linker=no
15483  ;;
15484esac
15485{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15486echo "${ECHO_T}$dynamic_linker" >&6; }
15487test "$dynamic_linker" = no && can_build_shared=no
15488
15489variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15490if test "$GCC" = yes; then
15491  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15492fi
15493
15494if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15495  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15496fi
15497if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15498  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15499fi
15500
15501
15502
15503
15504
15505
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    { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15537echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15538hardcode_action_CXX=
15539if test -n "$hardcode_libdir_flag_spec_CXX" ||
15540   test -n "$runpath_var_CXX" ||
15541   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15542
15543  # We can hardcode non-existent directories.
15544  if test "$hardcode_direct_CXX" != no &&
15545     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15546     # have to relink, otherwise we might link with an installed library
15547     # when we should be linking with a yet-to-be-installed one
15548     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15549     test "$hardcode_minus_L_CXX" != no; then
15550    # Linking always hardcodes the temporary library directory.
15551    hardcode_action_CXX=relink
15552  else
15553    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15554    hardcode_action_CXX=immediate
15555  fi
15556else
15557  # We cannot hardcode anything, or else we can only hardcode existing
15558  # directories.
15559  hardcode_action_CXX=unsupported
15560fi
15561{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15562echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15563
15564if test "$hardcode_action_CXX" = relink ||
15565   test "$inherit_rpath_CXX" = yes; then
15566  # Fast installation is not supported
15567  enable_fast_install=no
15568elif test "$shlibpath_overrides_runpath" = yes ||
15569     test "$enable_shared" = no; then
15570  # Fast installation is not necessary
15571  enable_fast_install=needless
15572fi
15573
15574
15575
15576
15577
15578
15579
15580  fi # test -n "$compiler"
15581
15582  CC=$lt_save_CC
15583  LDCXX=$LD
15584  LD=$lt_save_LD
15585  GCC=$lt_save_GCC
15586  with_gnu_ld=$lt_save_with_gnu_ld
15587  lt_cv_path_LDCXX=$lt_cv_path_LD
15588  lt_cv_path_LD=$lt_save_path_LD
15589  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15590  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15591fi # test "$_lt_caught_CXX_error" != yes
15592
15593ac_ext=c
15594ac_cpp='$CPP $CPPFLAGS'
15595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15597ac_compiler_gnu=$ac_cv_c_compiler_gnu
15598
15599
15600# Find a good install program.  We prefer a C program (faster),
15601# so one script is as good as another.  But avoid the broken or
15602# incompatible versions:
15603# SysV /etc/install, /usr/sbin/install
15604# SunOS /usr/etc/install
15605# IRIX /sbin/install
15606# AIX /bin/install
15607# AmigaOS /C/install, which installs bootblocks on floppy discs
15608# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15609# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15610# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15611# OS/2's system install, which has a completely different semantic
15612# ./install, which can be erroneously created by make from ./install.sh.
15613{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15614echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
15615if test -z "$INSTALL"; then
15616if test "${ac_cv_path_install+set}" = set; then
15617  echo $ECHO_N "(cached) $ECHO_C" >&6
15618else
15619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15620for as_dir in $PATH
15621do
15622  IFS=$as_save_IFS
15623  test -z "$as_dir" && as_dir=.
15624  # Account for people who put trailing slashes in PATH elements.
15625case $as_dir/ in
15626  ./ | .// | /cC/* | \
15627  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15628  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15629  /usr/ucb/* ) ;;
15630  *)
15631    # OSF1 and SCO ODT 3.0 have their own names for install.
15632    # Don't use installbsd from OSF since it installs stuff as root
15633    # by default.
15634    for ac_prog in ginstall scoinst install; do
15635      for ac_exec_ext in '' $ac_executable_extensions; do
15636	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15637	  if test $ac_prog = install &&
15638	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15639	    # AIX install.  It has an incompatible calling convention.
15640	    :
15641	  elif test $ac_prog = install &&
15642	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15643	    # program-specific install script used by HP pwplus--don't use.
15644	    :
15645	  else
15646	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15647	    break 3
15648	  fi
15649	fi
15650      done
15651    done
15652    ;;
15653esac
15654done
15655IFS=$as_save_IFS
15656
15657
15658fi
15659  if test "${ac_cv_path_install+set}" = set; then
15660    INSTALL=$ac_cv_path_install
15661  else
15662    # As a last resort, use the slow shell script.  Don't cache a
15663    # value for INSTALL within a source directory, because that will
15664    # break other packages using the cache if that directory is
15665    # removed, or if the value is a relative name.
15666    INSTALL=$ac_install_sh
15667  fi
15668fi
15669{ echo "$as_me:$LINENO: result: $INSTALL" >&5
15670echo "${ECHO_T}$INSTALL" >&6; }
15671
15672# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15673# It thinks the first close brace ends the variable substitution.
15674test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15675
15676test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15677
15678test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15679
15680{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15681echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
15682set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15683if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
15684  echo $ECHO_N "(cached) $ECHO_C" >&6
15685else
15686  cat >conftest.make <<\_ACEOF
15687SHELL = /bin/sh
15688all:
15689	@echo '@@@%%%=$(MAKE)=@@@%%%'
15690_ACEOF
15691# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15692case `${MAKE-make} -f conftest.make 2>/dev/null` in
15693  *@@@%%%=?*=@@@%%%*)
15694    eval ac_cv_prog_make_${ac_make}_set=yes;;
15695  *)
15696    eval ac_cv_prog_make_${ac_make}_set=no;;
15697esac
15698rm -f conftest.make
15699fi
15700if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15701  { echo "$as_me:$LINENO: result: yes" >&5
15702echo "${ECHO_T}yes" >&6; }
15703  SET_MAKE=
15704else
15705  { echo "$as_me:$LINENO: result: no" >&5
15706echo "${ECHO_T}no" >&6; }
15707  SET_MAKE="MAKE=${MAKE-make}"
15708fi
15709
15710if test -n "$ac_tool_prefix"; then
15711  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15712set dummy ${ac_tool_prefix}windres; ac_word=$2
15713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15715if test "${ac_cv_prog_WINDRES+set}" = set; then
15716  echo $ECHO_N "(cached) $ECHO_C" >&6
15717else
15718  if test -n "$WINDRES"; then
15719  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15720else
15721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722for as_dir in $PATH
15723do
15724  IFS=$as_save_IFS
15725  test -z "$as_dir" && as_dir=.
15726  for ac_exec_ext in '' $ac_executable_extensions; do
15727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15728    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15730    break 2
15731  fi
15732done
15733done
15734IFS=$as_save_IFS
15735
15736fi
15737fi
15738WINDRES=$ac_cv_prog_WINDRES
15739if test -n "$WINDRES"; then
15740  { echo "$as_me:$LINENO: result: $WINDRES" >&5
15741echo "${ECHO_T}$WINDRES" >&6; }
15742else
15743  { echo "$as_me:$LINENO: result: no" >&5
15744echo "${ECHO_T}no" >&6; }
15745fi
15746
15747
15748fi
15749if test -z "$ac_cv_prog_WINDRES"; then
15750  ac_ct_WINDRES=$WINDRES
15751  # Extract the first word of "windres", so it can be a program name with args.
15752set dummy windres; ac_word=$2
15753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15755if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15756  echo $ECHO_N "(cached) $ECHO_C" >&6
15757else
15758  if test -n "$ac_ct_WINDRES"; then
15759  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15760else
15761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762for as_dir in $PATH
15763do
15764  IFS=$as_save_IFS
15765  test -z "$as_dir" && as_dir=.
15766  for ac_exec_ext in '' $ac_executable_extensions; do
15767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15768    ac_cv_prog_ac_ct_WINDRES="windres"
15769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15770    break 2
15771  fi
15772done
15773done
15774IFS=$as_save_IFS
15775
15776fi
15777fi
15778ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15779if test -n "$ac_ct_WINDRES"; then
15780  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15781echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
15782else
15783  { echo "$as_me:$LINENO: result: no" >&5
15784echo "${ECHO_T}no" >&6; }
15785fi
15786
15787  if test "x$ac_ct_WINDRES" = x; then
15788    WINDRES=":"
15789  else
15790    case $cross_compiling:$ac_tool_warned in
15791yes:)
15792{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15793whose name does not start with the host triplet.  If you think this
15794configuration is useful to you, please write to autoconf@gnu.org." >&5
15795echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15796whose name does not start with the host triplet.  If you think this
15797configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15798ac_tool_warned=yes ;;
15799esac
15800    WINDRES=$ac_ct_WINDRES
15801  fi
15802else
15803  WINDRES="$ac_cv_prog_WINDRES"
15804fi
15805
15806
15807INCLUDE="-I$srcdir/include"
15808if test x$srcdir != x.; then
15809    # Remove SDL_config.h from the source directory, since it's the
15810    # default one, and we want to include the one that we generate.
15811    if test -f $srcdir/include/SDL_config.h; then
15812        rm $srcdir/include/SDL_config.h
15813    fi
15814    INCLUDE="-Iinclude $INCLUDE"
15815fi
15816case "$host" in
15817    *-*-cygwin*)
15818        # We build SDL on cygwin without the UNIX emulation layer
15819        BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
15820        BASE_LDFLAGS="-mno-cygwin"
15821        ;;
15822    *)
15823        BASE_CFLAGS=""
15824        BASE_LDFLAGS=""
15825        ;;
15826esac
15827BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
15828EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
15829BUILD_LDFLAGS="$LDFLAGS"
15830EXTRA_LDFLAGS="$BASE_LDFLAGS"
15831## These are common directories to find software packages
15832#for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
15833#    if test -d $path/include; then
15834#        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
15835#    fi
15836#    if test -d $path/lib; then
15837#        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
15838#    fi
15839#done
15840SDL_CFLAGS="$BASE_CFLAGS"
15841SDL_LIBS="-lSDL $BASE_LDFLAGS"
15842CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
15843CFLAGS="$CFLAGS $EXTRA_CFLAGS"
15844LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
15845
15846base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
15847
15848find_lib()
15849{
15850    gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15851    gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
15852    env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
15853    if test "$cross_compiling" = yes; then
15854        host_lib_path=""
15855    else
15856        host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
15857    fi
15858    for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
15859        lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
15860        if test x$lib != x; then
15861            echo $lib
15862            return
15863        fi
15864    done
15865}
15866
15867{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15868echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
15869if test "${ac_cv_c_const+set}" = set; then
15870  echo $ECHO_N "(cached) $ECHO_C" >&6
15871else
15872  cat >conftest.$ac_ext <<_ACEOF
15873/* confdefs.h.  */
15874_ACEOF
15875cat confdefs.h >>conftest.$ac_ext
15876cat >>conftest.$ac_ext <<_ACEOF
15877/* end confdefs.h.  */
15878
15879int
15880main ()
15881{
15882/* FIXME: Include the comments suggested by Paul. */
15883#ifndef __cplusplus
15884  /* Ultrix mips cc rejects this.  */
15885  typedef int charset[2];
15886  const charset cs;
15887  /* SunOS 4.1.1 cc rejects this.  */
15888  char const *const *pcpcc;
15889  char **ppc;
15890  /* NEC SVR4.0.2 mips cc rejects this.  */
15891  struct point {int x, y;};
15892  static struct point const zero = {0,0};
15893  /* AIX XL C 1.02.0.0 rejects this.
15894     It does not let you subtract one const X* pointer from another in
15895     an arm of an if-expression whose if-part is not a constant
15896     expression */
15897  const char *g = "string";
15898  pcpcc = &g + (g ? g-g : 0);
15899  /* HPUX 7.0 cc rejects these. */
15900  ++pcpcc;
15901  ppc = (char**) pcpcc;
15902  pcpcc = (char const *const *) ppc;
15903  { /* SCO 3.2v4 cc rejects this.  */
15904    char *t;
15905    char const *s = 0 ? (char *) 0 : (char const *) 0;
15906
15907    *t++ = 0;
15908    if (s) return 0;
15909  }
15910  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15911    int x[] = {25, 17};
15912    const int *foo = &x[0];
15913    ++foo;
15914  }
15915  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15916    typedef const int *iptr;
15917    iptr p = 0;
15918    ++p;
15919  }
15920  { /* AIX XL C 1.02.0.0 rejects this saying
15921       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15922    struct s { int j; const int *ap[3]; };
15923    struct s *b; b->j = 5;
15924  }
15925  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15926    const int foo = 10;
15927    if (!foo) return 0;
15928  }
15929  return !cs[0] && !zero.x;
15930#endif
15931
15932  ;
15933  return 0;
15934}
15935_ACEOF
15936rm -f conftest.$ac_objext
15937if { (ac_try="$ac_compile"
15938case "(($ac_try" in
15939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940  *) ac_try_echo=$ac_try;;
15941esac
15942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943  (eval "$ac_compile") 2>conftest.er1
15944  ac_status=$?
15945  grep -v '^ *+' conftest.er1 >conftest.err
15946  rm -f conftest.er1
15947  cat conftest.err >&5
15948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949  (exit $ac_status); } && {
15950	 test -z "$ac_c_werror_flag" ||
15951	 test ! -s conftest.err
15952       } && test -s conftest.$ac_objext; then
15953  ac_cv_c_const=yes
15954else
15955  echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958	ac_cv_c_const=no
15959fi
15960
15961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962fi
15963{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15964echo "${ECHO_T}$ac_cv_c_const" >&6; }
15965if test $ac_cv_c_const = no; then
15966
15967cat >>confdefs.h <<\_ACEOF
15968#define const
15969_ACEOF
15970
15971fi
15972
15973{ echo "$as_me:$LINENO: checking for inline" >&5
15974echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
15975if test "${ac_cv_c_inline+set}" = set; then
15976  echo $ECHO_N "(cached) $ECHO_C" >&6
15977else
15978  ac_cv_c_inline=no
15979for ac_kw in inline __inline__ __inline; do
15980  cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h.  */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h.  */
15986#ifndef __cplusplus
15987typedef int foo_t;
15988static $ac_kw foo_t static_foo () {return 0; }
15989$ac_kw foo_t foo () {return 0; }
15990#endif
15991
15992_ACEOF
15993rm -f conftest.$ac_objext
15994if { (ac_try="$ac_compile"
15995case "(($ac_try" in
15996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997  *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000  (eval "$ac_compile") 2>conftest.er1
16001  ac_status=$?
16002  grep -v '^ *+' conftest.er1 >conftest.err
16003  rm -f conftest.er1
16004  cat conftest.err >&5
16005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006  (exit $ac_status); } && {
16007	 test -z "$ac_c_werror_flag" ||
16008	 test ! -s conftest.err
16009       } && test -s conftest.$ac_objext; then
16010  ac_cv_c_inline=$ac_kw
16011else
16012  echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014
16015
16016fi
16017
16018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019  test "$ac_cv_c_inline" != no && break
16020done
16021
16022fi
16023{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16024echo "${ECHO_T}$ac_cv_c_inline" >&6; }
16025
16026
16027case $ac_cv_c_inline in
16028  inline | yes) ;;
16029  *)
16030    case $ac_cv_c_inline in
16031      no) ac_val=;;
16032      *) ac_val=$ac_cv_c_inline;;
16033    esac
16034    cat >>confdefs.h <<_ACEOF
16035#ifndef __cplusplus
16036#define inline $ac_val
16037#endif
16038_ACEOF
16039    ;;
16040esac
16041
16042{ echo "$as_me:$LINENO: checking for working volatile" >&5
16043echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
16044if test "${ac_cv_c_volatile+set}" = set; then
16045  echo $ECHO_N "(cached) $ECHO_C" >&6
16046else
16047  cat >conftest.$ac_ext <<_ACEOF
16048/* confdefs.h.  */
16049_ACEOF
16050cat confdefs.h >>conftest.$ac_ext
16051cat >>conftest.$ac_ext <<_ACEOF
16052/* end confdefs.h.  */
16053
16054int
16055main ()
16056{
16057
16058volatile int x;
16059int * volatile y = (int *) 0;
16060return !x && !y;
16061  ;
16062  return 0;
16063}
16064_ACEOF
16065rm -f conftest.$ac_objext
16066if { (ac_try="$ac_compile"
16067case "(($ac_try" in
16068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069  *) ac_try_echo=$ac_try;;
16070esac
16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072  (eval "$ac_compile") 2>conftest.er1
16073  ac_status=$?
16074  grep -v '^ *+' conftest.er1 >conftest.err
16075  rm -f conftest.er1
16076  cat conftest.err >&5
16077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078  (exit $ac_status); } && {
16079	 test -z "$ac_c_werror_flag" ||
16080	 test ! -s conftest.err
16081       } && test -s conftest.$ac_objext; then
16082  ac_cv_c_volatile=yes
16083else
16084  echo "$as_me: failed program was:" >&5
16085sed 's/^/| /' conftest.$ac_ext >&5
16086
16087	ac_cv_c_volatile=no
16088fi
16089
16090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091fi
16092{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
16093echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
16094if test $ac_cv_c_volatile = no; then
16095
16096cat >>confdefs.h <<\_ACEOF
16097#define volatile
16098_ACEOF
16099
16100fi
16101
16102
16103# Check whether --enable-libc was given.
16104if test "${enable_libc+set}" = set; then
16105  enableval=$enable_libc;
16106else
16107  enable_libc=yes
16108fi
16109
16110if test x$enable_libc = xyes; then
16111    cat >>confdefs.h <<\_ACEOF
16112#define HAVE_LIBC 1
16113_ACEOF
16114
16115
16116        { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
16118if test "${ac_cv_header_stdc+set}" = set; then
16119  echo $ECHO_N "(cached) $ECHO_C" >&6
16120else
16121  cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h.  */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h.  */
16127#include <stdlib.h>
16128#include <stdarg.h>
16129#include <string.h>
16130#include <float.h>
16131
16132int
16133main ()
16134{
16135
16136  ;
16137  return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (ac_try="$ac_compile"
16142case "(($ac_try" in
16143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144  *) ac_try_echo=$ac_try;;
16145esac
16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147  (eval "$ac_compile") 2>conftest.er1
16148  ac_status=$?
16149  grep -v '^ *+' conftest.er1 >conftest.err
16150  rm -f conftest.er1
16151  cat conftest.err >&5
16152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153  (exit $ac_status); } && {
16154	 test -z "$ac_c_werror_flag" ||
16155	 test ! -s conftest.err
16156       } && test -s conftest.$ac_objext; then
16157  ac_cv_header_stdc=yes
16158else
16159  echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162	ac_cv_header_stdc=no
16163fi
16164
16165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166
16167if test $ac_cv_header_stdc = yes; then
16168  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16169  cat >conftest.$ac_ext <<_ACEOF
16170/* confdefs.h.  */
16171_ACEOF
16172cat confdefs.h >>conftest.$ac_ext
16173cat >>conftest.$ac_ext <<_ACEOF
16174/* end confdefs.h.  */
16175#include <string.h>
16176
16177_ACEOF
16178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16179  $EGREP "memchr" >/dev/null 2>&1; then
16180  :
16181else
16182  ac_cv_header_stdc=no
16183fi
16184rm -f -r conftest*
16185
16186fi
16187
16188if test $ac_cv_header_stdc = yes; then
16189  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16190  cat >conftest.$ac_ext <<_ACEOF
16191/* confdefs.h.  */
16192_ACEOF
16193cat confdefs.h >>conftest.$ac_ext
16194cat >>conftest.$ac_ext <<_ACEOF
16195/* end confdefs.h.  */
16196#include <stdlib.h>
16197
16198_ACEOF
16199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16200  $EGREP "free" >/dev/null 2>&1; then
16201  :
16202else
16203  ac_cv_header_stdc=no
16204fi
16205rm -f -r conftest*
16206
16207fi
16208
16209if test $ac_cv_header_stdc = yes; then
16210  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16211  if test "$cross_compiling" = yes; then
16212  :
16213else
16214  cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h.  */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h.  */
16220#include <ctype.h>
16221#include <stdlib.h>
16222#if ((' ' & 0x0FF) == 0x020)
16223# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16224# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16225#else
16226# define ISLOWER(c) \
16227		   (('a' <= (c) && (c) <= 'i') \
16228		     || ('j' <= (c) && (c) <= 'r') \
16229		     || ('s' <= (c) && (c) <= 'z'))
16230# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16231#endif
16232
16233#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16234int
16235main ()
16236{
16237  int i;
16238  for (i = 0; i < 256; i++)
16239    if (XOR (islower (i), ISLOWER (i))
16240	|| toupper (i) != TOUPPER (i))
16241      return 2;
16242  return 0;
16243}
16244_ACEOF
16245rm -f conftest$ac_exeext
16246if { (ac_try="$ac_link"
16247case "(($ac_try" in
16248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249  *) ac_try_echo=$ac_try;;
16250esac
16251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252  (eval "$ac_link") 2>&5
16253  ac_status=$?
16254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16256  { (case "(($ac_try" in
16257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258  *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261  (eval "$ac_try") 2>&5
16262  ac_status=$?
16263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264  (exit $ac_status); }; }; then
16265  :
16266else
16267  echo "$as_me: program exited with status $ac_status" >&5
16268echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
16271( exit $ac_status )
16272ac_cv_header_stdc=no
16273fi
16274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16275fi
16276
16277
16278fi
16279fi
16280{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16281echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
16282if test $ac_cv_header_stdc = yes; then
16283
16284cat >>confdefs.h <<\_ACEOF
16285#define STDC_HEADERS 1
16286_ACEOF
16287
16288fi
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305for 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
16306do
16307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16309  { echo "$as_me:$LINENO: checking for $ac_header" >&5
16310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16312  echo $ECHO_N "(cached) $ECHO_C" >&6
16313fi
16314ac_res=`eval echo '${'$as_ac_Header'}'`
16315	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16316echo "${ECHO_T}$ac_res" >&6; }
16317else
16318  # Is the header compilable?
16319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16321cat >conftest.$ac_ext <<_ACEOF
16322/* confdefs.h.  */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h.  */
16327$ac_includes_default
16328#include <$ac_header>
16329_ACEOF
16330rm -f conftest.$ac_objext
16331if { (ac_try="$ac_compile"
16332case "(($ac_try" in
16333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334  *) ac_try_echo=$ac_try;;
16335esac
16336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337  (eval "$ac_compile") 2>conftest.er1
16338  ac_status=$?
16339  grep -v '^ *+' conftest.er1 >conftest.err
16340  rm -f conftest.er1
16341  cat conftest.err >&5
16342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343  (exit $ac_status); } && {
16344	 test -z "$ac_c_werror_flag" ||
16345	 test ! -s conftest.err
16346       } && test -s conftest.$ac_objext; then
16347  ac_header_compiler=yes
16348else
16349  echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352	ac_header_compiler=no
16353fi
16354
16355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16357echo "${ECHO_T}$ac_header_compiler" >&6; }
16358
16359# Is the header present?
16360{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16362cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h.  */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h.  */
16368#include <$ac_header>
16369_ACEOF
16370if { (ac_try="$ac_cpp conftest.$ac_ext"
16371case "(($ac_try" in
16372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373  *) ac_try_echo=$ac_try;;
16374esac
16375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16377  ac_status=$?
16378  grep -v '^ *+' conftest.er1 >conftest.err
16379  rm -f conftest.er1
16380  cat conftest.err >&5
16381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382  (exit $ac_status); } >/dev/null && {
16383	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16384	 test ! -s conftest.err
16385       }; then
16386  ac_header_preproc=yes
16387else
16388  echo "$as_me: failed program was:" >&5
16389sed 's/^/| /' conftest.$ac_ext >&5
16390
16391  ac_header_preproc=no
16392fi
16393
16394rm -f conftest.err conftest.$ac_ext
16395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16396echo "${ECHO_T}$ac_header_preproc" >&6; }
16397
16398# So?  What about this header?
16399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16400  yes:no: )
16401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16405    ac_header_preproc=yes
16406    ;;
16407  no:yes:* )
16408    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16410    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16411echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16412    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16414    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16415echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16416    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16418    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16420
16421    ;;
16422esac
16423{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426  echo $ECHO_N "(cached) $ECHO_C" >&6
16427else
16428  eval "$as_ac_Header=\$ac_header_preproc"
16429fi
16430ac_res=`eval echo '${'$as_ac_Header'}'`
16431	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16432echo "${ECHO_T}$ac_res" >&6; }
16433
16434fi
16435if test `eval echo '${'$as_ac_Header'}'` = yes; then
16436  cat >>confdefs.h <<_ACEOF
16437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16438_ACEOF
16439
16440fi
16441
16442done
16443
16444
16445        { echo "$as_me:$LINENO: checking for size_t" >&5
16446echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16447if test "${ac_cv_type_size_t+set}" = set; then
16448  echo $ECHO_N "(cached) $ECHO_C" >&6
16449else
16450  cat >conftest.$ac_ext <<_ACEOF
16451/* confdefs.h.  */
16452_ACEOF
16453cat confdefs.h >>conftest.$ac_ext
16454cat >>conftest.$ac_ext <<_ACEOF
16455/* end confdefs.h.  */
16456$ac_includes_default
16457typedef size_t ac__type_new_;
16458int
16459main ()
16460{
16461if ((ac__type_new_ *) 0)
16462  return 0;
16463if (sizeof (ac__type_new_))
16464  return 0;
16465  ;
16466  return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (ac_try="$ac_compile"
16471case "(($ac_try" in
16472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473  *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476  (eval "$ac_compile") 2>conftest.er1
16477  ac_status=$?
16478  grep -v '^ *+' conftest.er1 >conftest.err
16479  rm -f conftest.er1
16480  cat conftest.err >&5
16481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482  (exit $ac_status); } && {
16483	 test -z "$ac_c_werror_flag" ||
16484	 test ! -s conftest.err
16485       } && test -s conftest.$ac_objext; then
16486  ac_cv_type_size_t=yes
16487else
16488  echo "$as_me: failed program was:" >&5
16489sed 's/^/| /' conftest.$ac_ext >&5
16490
16491	ac_cv_type_size_t=no
16492fi
16493
16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495fi
16496{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16497echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16498if test $ac_cv_type_size_t = yes; then
16499  :
16500else
16501
16502cat >>confdefs.h <<_ACEOF
16503#define size_t unsigned int
16504_ACEOF
16505
16506fi
16507
16508    if test x$ac_cv_header_inttypes_h = xyes -o x$ac_cv_header_stdint_h = xyes; then
16509        { echo "$as_me:$LINENO: checking for int64_t" >&5
16510echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16511if test "${ac_cv_type_int64_t+set}" = set; then
16512  echo $ECHO_N "(cached) $ECHO_C" >&6
16513else
16514  cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h.  */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h.  */
16520$ac_includes_default
16521typedef int64_t ac__type_new_;
16522int
16523main ()
16524{
16525if ((ac__type_new_ *) 0)
16526  return 0;
16527if (sizeof (ac__type_new_))
16528  return 0;
16529  ;
16530  return 0;
16531}
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (ac_try="$ac_compile"
16535case "(($ac_try" in
16536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537  *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540  (eval "$ac_compile") 2>conftest.er1
16541  ac_status=$?
16542  grep -v '^ *+' conftest.er1 >conftest.err
16543  rm -f conftest.er1
16544  cat conftest.err >&5
16545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546  (exit $ac_status); } && {
16547	 test -z "$ac_c_werror_flag" ||
16548	 test ! -s conftest.err
16549       } && test -s conftest.$ac_objext; then
16550  ac_cv_type_int64_t=yes
16551else
16552  echo "$as_me: failed program was:" >&5
16553sed 's/^/| /' conftest.$ac_ext >&5
16554
16555	ac_cv_type_int64_t=no
16556fi
16557
16558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559fi
16560{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16561echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16562
16563        if test x$ac_cv_type_int64_t = xyes; then
16564            cat >>confdefs.h <<\_ACEOF
16565#define SDL_HAS_64BIT_TYPE 1
16566_ACEOF
16567
16568        fi
16569        have_inttypes=yes
16570    fi
16571
16572        case "$host" in
16573    *-*-cygwin* | *-*-mingw32*)
16574        ;;
16575    *)
16576        # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16577# for constant arguments.  Useless!
16578{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
16579echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
16580if test "${ac_cv_working_alloca_h+set}" = set; then
16581  echo $ECHO_N "(cached) $ECHO_C" >&6
16582else
16583  cat >conftest.$ac_ext <<_ACEOF
16584/* confdefs.h.  */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h.  */
16589#include <alloca.h>
16590int
16591main ()
16592{
16593char *p = (char *) alloca (2 * sizeof (int));
16594			  if (p) return 0;
16595  ;
16596  return 0;
16597}
16598_ACEOF
16599rm -f conftest.$ac_objext conftest$ac_exeext
16600if { (ac_try="$ac_link"
16601case "(($ac_try" in
16602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603  *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606  (eval "$ac_link") 2>conftest.er1
16607  ac_status=$?
16608  grep -v '^ *+' conftest.er1 >conftest.err
16609  rm -f conftest.er1
16610  cat conftest.err >&5
16611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612  (exit $ac_status); } && {
16613	 test -z "$ac_c_werror_flag" ||
16614	 test ! -s conftest.err
16615       } && test -s conftest$ac_exeext &&
16616       $as_test_x conftest$ac_exeext; then
16617  ac_cv_working_alloca_h=yes
16618else
16619  echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622	ac_cv_working_alloca_h=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16626      conftest$ac_exeext conftest.$ac_ext
16627fi
16628{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16629echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
16630if test $ac_cv_working_alloca_h = yes; then
16631
16632cat >>confdefs.h <<\_ACEOF
16633#define HAVE_ALLOCA_H 1
16634_ACEOF
16635
16636fi
16637
16638{ echo "$as_me:$LINENO: checking for alloca" >&5
16639echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
16640if test "${ac_cv_func_alloca_works+set}" = set; then
16641  echo $ECHO_N "(cached) $ECHO_C" >&6
16642else
16643  cat >conftest.$ac_ext <<_ACEOF
16644/* confdefs.h.  */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h.  */
16649#ifdef __GNUC__
16650# define alloca __builtin_alloca
16651#else
16652# ifdef _MSC_VER
16653#  include <malloc.h>
16654#  define alloca _alloca
16655# else
16656#  ifdef HAVE_ALLOCA_H
16657#   include <alloca.h>
16658#  else
16659#   ifdef _AIX
16660 #pragma alloca
16661#   else
16662#    ifndef alloca /* predefined by HP cc +Olibcalls */
16663char *alloca ();
16664#    endif
16665#   endif
16666#  endif
16667# endif
16668#endif
16669
16670int
16671main ()
16672{
16673char *p = (char *) alloca (1);
16674				    if (p) return 0;
16675  ;
16676  return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext conftest$ac_exeext
16680if { (ac_try="$ac_link"
16681case "(($ac_try" in
16682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683  *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686  (eval "$ac_link") 2>conftest.er1
16687  ac_status=$?
16688  grep -v '^ *+' conftest.er1 >conftest.err
16689  rm -f conftest.er1
16690  cat conftest.err >&5
16691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692  (exit $ac_status); } && {
16693	 test -z "$ac_c_werror_flag" ||
16694	 test ! -s conftest.err
16695       } && test -s conftest$ac_exeext &&
16696       $as_test_x conftest$ac_exeext; then
16697  ac_cv_func_alloca_works=yes
16698else
16699  echo "$as_me: failed program was:" >&5
16700sed 's/^/| /' conftest.$ac_ext >&5
16701
16702	ac_cv_func_alloca_works=no
16703fi
16704
16705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706      conftest$ac_exeext conftest.$ac_ext
16707fi
16708{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16709echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
16710
16711if test $ac_cv_func_alloca_works = yes; then
16712
16713cat >>confdefs.h <<\_ACEOF
16714#define HAVE_ALLOCA 1
16715_ACEOF
16716
16717else
16718  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16719# that cause trouble.  Some versions do not even contain alloca or
16720# contain a buggy version.  If you still want to use their alloca,
16721# use ar to extract alloca.o from them instead of compiling alloca.c.
16722
16723ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16724
16725cat >>confdefs.h <<\_ACEOF
16726#define C_ALLOCA 1
16727_ACEOF
16728
16729
16730{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16731echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
16732if test "${ac_cv_os_cray+set}" = set; then
16733  echo $ECHO_N "(cached) $ECHO_C" >&6
16734else
16735  cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h.  */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h.  */
16741#if defined CRAY && ! defined CRAY2
16742webecray
16743#else
16744wenotbecray
16745#endif
16746
16747_ACEOF
16748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16749  $EGREP "webecray" >/dev/null 2>&1; then
16750  ac_cv_os_cray=yes
16751else
16752  ac_cv_os_cray=no
16753fi
16754rm -f -r conftest*
16755
16756fi
16757{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16758echo "${ECHO_T}$ac_cv_os_cray" >&6; }
16759if test $ac_cv_os_cray = yes; then
16760  for ac_func in _getb67 GETB67 getb67; do
16761    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16762{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16764if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16765  echo $ECHO_N "(cached) $ECHO_C" >&6
16766else
16767  cat >conftest.$ac_ext <<_ACEOF
16768/* confdefs.h.  */
16769_ACEOF
16770cat confdefs.h >>conftest.$ac_ext
16771cat >>conftest.$ac_ext <<_ACEOF
16772/* end confdefs.h.  */
16773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16774   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16775#define $ac_func innocuous_$ac_func
16776
16777/* System header to define __stub macros and hopefully few prototypes,
16778    which can conflict with char $ac_func (); below.
16779    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16780    <limits.h> exists even on freestanding compilers.  */
16781
16782#ifdef __STDC__
16783# include <limits.h>
16784#else
16785# include <assert.h>
16786#endif
16787
16788#undef $ac_func
16789
16790/* Override any GCC internal prototype to avoid an error.
16791   Use char because int might match the return type of a GCC
16792   builtin and then its argument prototype would still apply.  */
16793#ifdef __cplusplus
16794extern "C"
16795#endif
16796char $ac_func ();
16797/* The GNU C library defines this for functions which it implements
16798    to always fail with ENOSYS.  Some functions are actually named
16799    something starting with __ and the normal name is an alias.  */
16800#if defined __stub_$ac_func || defined __stub___$ac_func
16801choke me
16802#endif
16803
16804int
16805main ()
16806{
16807return $ac_func ();
16808  ;
16809  return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext conftest$ac_exeext
16813if { (ac_try="$ac_link"
16814case "(($ac_try" in
16815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816  *) ac_try_echo=$ac_try;;
16817esac
16818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819  (eval "$ac_link") 2>conftest.er1
16820  ac_status=$?
16821  grep -v '^ *+' conftest.er1 >conftest.err
16822  rm -f conftest.er1
16823  cat conftest.err >&5
16824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825  (exit $ac_status); } && {
16826	 test -z "$ac_c_werror_flag" ||
16827	 test ! -s conftest.err
16828       } && test -s conftest$ac_exeext &&
16829       $as_test_x conftest$ac_exeext; then
16830  eval "$as_ac_var=yes"
16831else
16832  echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835	eval "$as_ac_var=no"
16836fi
16837
16838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16839      conftest$ac_exeext conftest.$ac_ext
16840fi
16841ac_res=`eval echo '${'$as_ac_var'}'`
16842	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16843echo "${ECHO_T}$ac_res" >&6; }
16844if test `eval echo '${'$as_ac_var'}'` = yes; then
16845
16846cat >>confdefs.h <<_ACEOF
16847#define CRAY_STACKSEG_END $ac_func
16848_ACEOF
16849
16850    break
16851fi
16852
16853  done
16854fi
16855
16856{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16857echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16858if test "${ac_cv_c_stack_direction+set}" = set; then
16859  echo $ECHO_N "(cached) $ECHO_C" >&6
16860else
16861  if test "$cross_compiling" = yes; then
16862  ac_cv_c_stack_direction=0
16863else
16864  cat >conftest.$ac_ext <<_ACEOF
16865/* confdefs.h.  */
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h.  */
16870$ac_includes_default
16871int
16872find_stack_direction ()
16873{
16874  static char *addr = 0;
16875  auto char dummy;
16876  if (addr == 0)
16877    {
16878      addr = &dummy;
16879      return find_stack_direction ();
16880    }
16881  else
16882    return (&dummy > addr) ? 1 : -1;
16883}
16884
16885int
16886main ()
16887{
16888  return find_stack_direction () < 0;
16889}
16890_ACEOF
16891rm -f conftest$ac_exeext
16892if { (ac_try="$ac_link"
16893case "(($ac_try" in
16894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895  *) ac_try_echo=$ac_try;;
16896esac
16897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898  (eval "$ac_link") 2>&5
16899  ac_status=$?
16900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16902  { (case "(($ac_try" in
16903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904  *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907  (eval "$ac_try") 2>&5
16908  ac_status=$?
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); }; }; then
16911  ac_cv_c_stack_direction=1
16912else
16913  echo "$as_me: program exited with status $ac_status" >&5
16914echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917( exit $ac_status )
16918ac_cv_c_stack_direction=-1
16919fi
16920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16921fi
16922
16923
16924fi
16925{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16926echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16927
16928cat >>confdefs.h <<_ACEOF
16929#define STACK_DIRECTION $ac_cv_c_stack_direction
16930_ACEOF
16931
16932
16933fi
16934
16935        ;;
16936    esac
16937
16938    { echo "$as_me:$LINENO: checking for working memcmp" >&5
16939echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
16940if test "${ac_cv_func_memcmp_working+set}" = set; then
16941  echo $ECHO_N "(cached) $ECHO_C" >&6
16942else
16943  if test "$cross_compiling" = yes; then
16944  ac_cv_func_memcmp_working=no
16945else
16946  cat >conftest.$ac_ext <<_ACEOF
16947/* confdefs.h.  */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h.  */
16952$ac_includes_default
16953int
16954main ()
16955{
16956
16957  /* Some versions of memcmp are not 8-bit clean.  */
16958  char c0 = '\100', c1 = '\200', c2 = '\201';
16959  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16960    return 1;
16961
16962  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16963     or more and with at least one buffer not starting on a 4-byte boundary.
16964     William Lewis provided this test program.   */
16965  {
16966    char foo[21];
16967    char bar[21];
16968    int i;
16969    for (i = 0; i < 4; i++)
16970      {
16971	char *a = foo + i;
16972	char *b = bar + i;
16973	strcpy (a, "--------01111111");
16974	strcpy (b, "--------10000000");
16975	if (memcmp (a, b, 16) >= 0)
16976	  return 1;
16977      }
16978    return 0;
16979  }
16980
16981  ;
16982  return 0;
16983}
16984_ACEOF
16985rm -f conftest$ac_exeext
16986if { (ac_try="$ac_link"
16987case "(($ac_try" in
16988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989  *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992  (eval "$ac_link") 2>&5
16993  ac_status=$?
16994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16996  { (case "(($ac_try" in
16997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998  *) ac_try_echo=$ac_try;;
16999esac
17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001  (eval "$ac_try") 2>&5
17002  ac_status=$?
17003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004  (exit $ac_status); }; }; then
17005  ac_cv_func_memcmp_working=yes
17006else
17007  echo "$as_me: program exited with status $ac_status" >&5
17008echo "$as_me: failed program was:" >&5
17009sed 's/^/| /' conftest.$ac_ext >&5
17010
17011( exit $ac_status )
17012ac_cv_func_memcmp_working=no
17013fi
17014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17015fi
17016
17017
17018fi
17019{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
17020echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
17021test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
17022  *" memcmp.$ac_objext "* ) ;;
17023  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
17024 ;;
17025esac
17026
17027
17028    if test x$ac_cv_func_memcmp_working = xyes; then
17029        cat >>confdefs.h <<\_ACEOF
17030#define HAVE_MEMCMP 1
17031_ACEOF
17032
17033    fi
17034    { echo "$as_me:$LINENO: checking for working strtod" >&5
17035echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
17036if test "${ac_cv_func_strtod+set}" = set; then
17037  echo $ECHO_N "(cached) $ECHO_C" >&6
17038else
17039  if test "$cross_compiling" = yes; then
17040  ac_cv_func_strtod=no
17041else
17042  cat >conftest.$ac_ext <<_ACEOF
17043/* confdefs.h.  */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h.  */
17048
17049$ac_includes_default
17050#ifndef strtod
17051double strtod ();
17052#endif
17053int
17054main()
17055{
17056  {
17057    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
17058    char *string = " +69";
17059    char *term;
17060    double value;
17061    value = strtod (string, &term);
17062    if (value != 69 || term != (string + 4))
17063      return 1;
17064  }
17065
17066  {
17067    /* Under Solaris 2.4, strtod returns the wrong value for the
17068       terminating character under some conditions.  */
17069    char *string = "NaN";
17070    char *term;
17071    strtod (string, &term);
17072    if (term != string && *(term - 1) == 0)
17073      return 1;
17074  }
17075  return 0;
17076}
17077
17078_ACEOF
17079rm -f conftest$ac_exeext
17080if { (ac_try="$ac_link"
17081case "(($ac_try" in
17082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083  *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086  (eval "$ac_link") 2>&5
17087  ac_status=$?
17088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17090  { (case "(($ac_try" in
17091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092  *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095  (eval "$ac_try") 2>&5
17096  ac_status=$?
17097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098  (exit $ac_status); }; }; then
17099  ac_cv_func_strtod=yes
17100else
17101  echo "$as_me: program exited with status $ac_status" >&5
17102echo "$as_me: failed program was:" >&5
17103sed 's/^/| /' conftest.$ac_ext >&5
17104
17105( exit $ac_status )
17106ac_cv_func_strtod=no
17107fi
17108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17109fi
17110
17111
17112fi
17113{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
17114echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
17115if test $ac_cv_func_strtod = no; then
17116  case " $LIBOBJS " in
17117  *" strtod.$ac_objext "* ) ;;
17118  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
17119 ;;
17120esac
17121
17122{ echo "$as_me:$LINENO: checking for pow" >&5
17123echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
17124if test "${ac_cv_func_pow+set}" = set; then
17125  echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127  cat >conftest.$ac_ext <<_ACEOF
17128/* confdefs.h.  */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h.  */
17133/* Define pow to an innocuous variant, in case <limits.h> declares pow.
17134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17135#define pow innocuous_pow
17136
17137/* System header to define __stub macros and hopefully few prototypes,
17138    which can conflict with char pow (); below.
17139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17140    <limits.h> exists even on freestanding compilers.  */
17141
17142#ifdef __STDC__
17143# include <limits.h>
17144#else
17145# include <assert.h>
17146#endif
17147
17148#undef pow
17149
17150/* Override any GCC internal prototype to avoid an error.
17151   Use char because int might match the return type of a GCC
17152   builtin and then its argument prototype would still apply.  */
17153#ifdef __cplusplus
17154extern "C"
17155#endif
17156char pow ();
17157/* The GNU C library defines this for functions which it implements
17158    to always fail with ENOSYS.  Some functions are actually named
17159    something starting with __ and the normal name is an alias.  */
17160#if defined __stub_pow || defined __stub___pow
17161choke me
17162#endif
17163
17164int
17165main ()
17166{
17167return pow ();
17168  ;
17169  return 0;
17170}
17171_ACEOF
17172rm -f conftest.$ac_objext conftest$ac_exeext
17173if { (ac_try="$ac_link"
17174case "(($ac_try" in
17175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176  *) ac_try_echo=$ac_try;;
17177esac
17178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179  (eval "$ac_link") 2>conftest.er1
17180  ac_status=$?
17181  grep -v '^ *+' conftest.er1 >conftest.err
17182  rm -f conftest.er1
17183  cat conftest.err >&5
17184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185  (exit $ac_status); } && {
17186	 test -z "$ac_c_werror_flag" ||
17187	 test ! -s conftest.err
17188       } && test -s conftest$ac_exeext &&
17189       $as_test_x conftest$ac_exeext; then
17190  ac_cv_func_pow=yes
17191else
17192  echo "$as_me: failed program was:" >&5
17193sed 's/^/| /' conftest.$ac_ext >&5
17194
17195	ac_cv_func_pow=no
17196fi
17197
17198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17199      conftest$ac_exeext conftest.$ac_ext
17200fi
17201{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
17202echo "${ECHO_T}$ac_cv_func_pow" >&6; }
17203
17204if test $ac_cv_func_pow = no; then
17205  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17206echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17207if test "${ac_cv_lib_m_pow+set}" = set; then
17208  echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210  ac_check_lib_save_LIBS=$LIBS
17211LIBS="-lm  $LIBS"
17212cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h.  */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h.  */
17218
17219/* Override any GCC internal prototype to avoid an error.
17220   Use char because int might match the return type of a GCC
17221   builtin and then its argument prototype would still apply.  */
17222#ifdef __cplusplus
17223extern "C"
17224#endif
17225char pow ();
17226int
17227main ()
17228{
17229return pow ();
17230  ;
17231  return 0;
17232}
17233_ACEOF
17234rm -f conftest.$ac_objext conftest$ac_exeext
17235if { (ac_try="$ac_link"
17236case "(($ac_try" in
17237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238  *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241  (eval "$ac_link") 2>conftest.er1
17242  ac_status=$?
17243  grep -v '^ *+' conftest.er1 >conftest.err
17244  rm -f conftest.er1
17245  cat conftest.err >&5
17246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247  (exit $ac_status); } && {
17248	 test -z "$ac_c_werror_flag" ||
17249	 test ! -s conftest.err
17250       } && test -s conftest$ac_exeext &&
17251       $as_test_x conftest$ac_exeext; then
17252  ac_cv_lib_m_pow=yes
17253else
17254  echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
17257	ac_cv_lib_m_pow=no
17258fi
17259
17260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17261      conftest$ac_exeext conftest.$ac_ext
17262LIBS=$ac_check_lib_save_LIBS
17263fi
17264{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17265echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17266if test $ac_cv_lib_m_pow = yes; then
17267  POW_LIB=-lm
17268else
17269  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
17270echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
17271fi
17272
17273fi
17274
17275fi
17276
17277    if test x$ac_cv_func_strtod = xyes; then
17278        cat >>confdefs.h <<\_ACEOF
17279#define HAVE_STRTOD 1
17280_ACEOF
17281
17282    fi
17283    { echo "$as_me:$LINENO: checking for mprotect" >&5
17284echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
17285if test "${ac_cv_func_mprotect+set}" = set; then
17286  echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288  cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h.  */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h.  */
17294/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
17295   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17296#define mprotect innocuous_mprotect
17297
17298/* System header to define __stub macros and hopefully few prototypes,
17299    which can conflict with char mprotect (); below.
17300    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17301    <limits.h> exists even on freestanding compilers.  */
17302
17303#ifdef __STDC__
17304# include <limits.h>
17305#else
17306# include <assert.h>
17307#endif
17308
17309#undef mprotect
17310
17311/* Override any GCC internal prototype to avoid an error.
17312   Use char because int might match the return type of a GCC
17313   builtin and then its argument prototype would still apply.  */
17314#ifdef __cplusplus
17315extern "C"
17316#endif
17317char mprotect ();
17318/* The GNU C library defines this for functions which it implements
17319    to always fail with ENOSYS.  Some functions are actually named
17320    something starting with __ and the normal name is an alias.  */
17321#if defined __stub_mprotect || defined __stub___mprotect
17322choke me
17323#endif
17324
17325int
17326main ()
17327{
17328return mprotect ();
17329  ;
17330  return 0;
17331}
17332_ACEOF
17333rm -f conftest.$ac_objext conftest$ac_exeext
17334if { (ac_try="$ac_link"
17335case "(($ac_try" in
17336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337  *) ac_try_echo=$ac_try;;
17338esac
17339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340  (eval "$ac_link") 2>conftest.er1
17341  ac_status=$?
17342  grep -v '^ *+' conftest.er1 >conftest.err
17343  rm -f conftest.er1
17344  cat conftest.err >&5
17345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346  (exit $ac_status); } && {
17347	 test -z "$ac_c_werror_flag" ||
17348	 test ! -s conftest.err
17349       } && test -s conftest$ac_exeext &&
17350       $as_test_x conftest$ac_exeext; then
17351  ac_cv_func_mprotect=yes
17352else
17353  echo "$as_me: failed program was:" >&5
17354sed 's/^/| /' conftest.$ac_ext >&5
17355
17356	ac_cv_func_mprotect=no
17357fi
17358
17359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17360      conftest$ac_exeext conftest.$ac_ext
17361fi
17362{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
17363echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
17364if test $ac_cv_func_mprotect = yes; then
17365  cat >conftest.$ac_ext <<_ACEOF
17366/* confdefs.h.  */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
17370/* end confdefs.h.  */
17371
17372          #include <sys/types.h>
17373          #include <sys/mman.h>
17374
17375int
17376main ()
17377{
17378
17379
17380  ;
17381  return 0;
17382}
17383_ACEOF
17384rm -f conftest.$ac_objext
17385if { (ac_try="$ac_compile"
17386case "(($ac_try" in
17387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388  *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391  (eval "$ac_compile") 2>conftest.er1
17392  ac_status=$?
17393  grep -v '^ *+' conftest.er1 >conftest.err
17394  rm -f conftest.er1
17395  cat conftest.err >&5
17396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397  (exit $ac_status); } && {
17398	 test -z "$ac_c_werror_flag" ||
17399	 test ! -s conftest.err
17400       } && test -s conftest.$ac_objext; then
17401
17402        cat >>confdefs.h <<\_ACEOF
17403#define HAVE_MPROTECT 1
17404_ACEOF
17405
17406
17407else
17408  echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
17411
17412fi
17413
17414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17415fi
17416
17417
17418
17419
17420
17421
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
17465for 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
17466do
17467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17471  echo $ECHO_N "(cached) $ECHO_C" >&6
17472else
17473  cat >conftest.$ac_ext <<_ACEOF
17474/* confdefs.h.  */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h.  */
17479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17480   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17481#define $ac_func innocuous_$ac_func
17482
17483/* System header to define __stub macros and hopefully few prototypes,
17484    which can conflict with char $ac_func (); below.
17485    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17486    <limits.h> exists even on freestanding compilers.  */
17487
17488#ifdef __STDC__
17489# include <limits.h>
17490#else
17491# include <assert.h>
17492#endif
17493
17494#undef $ac_func
17495
17496/* Override any GCC internal prototype to avoid an error.
17497   Use char because int might match the return type of a GCC
17498   builtin and then its argument prototype would still apply.  */
17499#ifdef __cplusplus
17500extern "C"
17501#endif
17502char $ac_func ();
17503/* The GNU C library defines this for functions which it implements
17504    to always fail with ENOSYS.  Some functions are actually named
17505    something starting with __ and the normal name is an alias.  */
17506#if defined __stub_$ac_func || defined __stub___$ac_func
17507choke me
17508#endif
17509
17510int
17511main ()
17512{
17513return $ac_func ();
17514  ;
17515  return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext conftest$ac_exeext
17519if { (ac_try="$ac_link"
17520case "(($ac_try" in
17521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522  *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525  (eval "$ac_link") 2>conftest.er1
17526  ac_status=$?
17527  grep -v '^ *+' conftest.er1 >conftest.err
17528  rm -f conftest.er1
17529  cat conftest.err >&5
17530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531  (exit $ac_status); } && {
17532	 test -z "$ac_c_werror_flag" ||
17533	 test ! -s conftest.err
17534       } && test -s conftest$ac_exeext &&
17535       $as_test_x conftest$ac_exeext; then
17536  eval "$as_ac_var=yes"
17537else
17538  echo "$as_me: failed program was:" >&5
17539sed 's/^/| /' conftest.$ac_ext >&5
17540
17541	eval "$as_ac_var=no"
17542fi
17543
17544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17545      conftest$ac_exeext conftest.$ac_ext
17546fi
17547ac_res=`eval echo '${'$as_ac_var'}'`
17548	       { echo "$as_me:$LINENO: result: $ac_res" >&5
17549echo "${ECHO_T}$ac_res" >&6; }
17550if test `eval echo '${'$as_ac_var'}'` = yes; then
17551  cat >>confdefs.h <<_ACEOF
17552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17553_ACEOF
17554
17555fi
17556done
17557
17558
17559    { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
17560echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
17561if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
17562  echo $ECHO_N "(cached) $ECHO_C" >&6
17563else
17564  ac_check_lib_save_LIBS=$LIBS
17565LIBS="-liconv  $LIBS"
17566cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h.  */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h.  */
17572
17573/* Override any GCC internal prototype to avoid an error.
17574   Use char because int might match the return type of a GCC
17575   builtin and then its argument prototype would still apply.  */
17576#ifdef __cplusplus
17577extern "C"
17578#endif
17579char libiconv_open ();
17580int
17581main ()
17582{
17583return libiconv_open ();
17584  ;
17585  return 0;
17586}
17587_ACEOF
17588rm -f conftest.$ac_objext conftest$ac_exeext
17589if { (ac_try="$ac_link"
17590case "(($ac_try" in
17591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592  *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595  (eval "$ac_link") 2>conftest.er1
17596  ac_status=$?
17597  grep -v '^ *+' conftest.er1 >conftest.err
17598  rm -f conftest.er1
17599  cat conftest.err >&5
17600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601  (exit $ac_status); } && {
17602	 test -z "$ac_c_werror_flag" ||
17603	 test ! -s conftest.err
17604       } && test -s conftest$ac_exeext &&
17605       $as_test_x conftest$ac_exeext; then
17606  ac_cv_lib_iconv_libiconv_open=yes
17607else
17608  echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611	ac_cv_lib_iconv_libiconv_open=no
17612fi
17613
17614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17615      conftest$ac_exeext conftest.$ac_ext
17616LIBS=$ac_check_lib_save_LIBS
17617fi
17618{ echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
17619echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
17620if test $ac_cv_lib_iconv_libiconv_open = yes; then
17621  EXTRA_LDFLAGS="$EXTRA_LDFLAGS "
17622fi
17623
17624    { echo "$as_me:$LINENO: checking for pow in -lm" >&5
17625echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
17626if test "${ac_cv_lib_m_pow+set}" = set; then
17627  echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629  ac_check_lib_save_LIBS=$LIBS
17630LIBS="-lm  $LIBS"
17631cat >conftest.$ac_ext <<_ACEOF
17632/* confdefs.h.  */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h.  */
17637
17638/* Override any GCC internal prototype to avoid an error.
17639   Use char because int might match the return type of a GCC
17640   builtin and then its argument prototype would still apply.  */
17641#ifdef __cplusplus
17642extern "C"
17643#endif
17644char pow ();
17645int
17646main ()
17647{
17648return pow ();
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext conftest$ac_exeext
17654if { (ac_try="$ac_link"
17655case "(($ac_try" in
17656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657  *) ac_try_echo=$ac_try;;
17658esac
17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660  (eval "$ac_link") 2>conftest.er1
17661  ac_status=$?
17662  grep -v '^ *+' conftest.er1 >conftest.err
17663  rm -f conftest.er1
17664  cat conftest.err >&5
17665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666  (exit $ac_status); } && {
17667	 test -z "$ac_c_werror_flag" ||
17668	 test ! -s conftest.err
17669       } && test -s conftest$ac_exeext &&
17670       $as_test_x conftest$ac_exeext; then
17671  ac_cv_lib_m_pow=yes
17672else
17673  echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676	ac_cv_lib_m_pow=no
17677fi
17678
17679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17680      conftest$ac_exeext conftest.$ac_ext
17681LIBS=$ac_check_lib_save_LIBS
17682fi
17683{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
17684echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
17685if test $ac_cv_lib_m_pow = yes; then
17686  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
17687fi
17688
17689
17690    { echo "$as_me:$LINENO: checking for struct sigaction.sa_sigaction" >&5
17691echo $ECHO_N "checking for struct sigaction.sa_sigaction... $ECHO_C" >&6; }
17692if test "${ac_cv_member_struct_sigaction_sa_sigaction+set}" = set; then
17693  echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695  cat >conftest.$ac_ext <<_ACEOF
17696/* confdefs.h.  */
17697_ACEOF
17698cat confdefs.h >>conftest.$ac_ext
17699cat >>conftest.$ac_ext <<_ACEOF
17700/* end confdefs.h.  */
17701#include <signal.h>
17702
17703int
17704main ()
17705{
17706static struct sigaction ac_aggr;
17707if (ac_aggr.sa_sigaction)
17708return 0;
17709  ;
17710  return 0;
17711}
17712_ACEOF
17713rm -f conftest.$ac_objext
17714if { (ac_try="$ac_compile"
17715case "(($ac_try" in
17716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717  *) ac_try_echo=$ac_try;;
17718esac
17719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720  (eval "$ac_compile") 2>conftest.er1
17721  ac_status=$?
17722  grep -v '^ *+' conftest.er1 >conftest.err
17723  rm -f conftest.er1
17724  cat conftest.err >&5
17725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726  (exit $ac_status); } && {
17727	 test -z "$ac_c_werror_flag" ||
17728	 test ! -s conftest.err
17729       } && test -s conftest.$ac_objext; then
17730  ac_cv_member_struct_sigaction_sa_sigaction=yes
17731else
17732  echo "$as_me: failed program was:" >&5
17733sed 's/^/| /' conftest.$ac_ext >&5
17734
17735	cat >conftest.$ac_ext <<_ACEOF
17736/* confdefs.h.  */
17737_ACEOF
17738cat confdefs.h >>conftest.$ac_ext
17739cat >>conftest.$ac_ext <<_ACEOF
17740/* end confdefs.h.  */
17741#include <signal.h>
17742
17743int
17744main ()
17745{
17746static struct sigaction ac_aggr;
17747if (sizeof ac_aggr.sa_sigaction)
17748return 0;
17749  ;
17750  return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (ac_try="$ac_compile"
17755case "(($ac_try" in
17756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757  *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760  (eval "$ac_compile") 2>conftest.er1
17761  ac_status=$?
17762  grep -v '^ *+' conftest.er1 >conftest.err
17763  rm -f conftest.er1
17764  cat conftest.err >&5
17765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766  (exit $ac_status); } && {
17767	 test -z "$ac_c_werror_flag" ||
17768	 test ! -s conftest.err
17769       } && test -s conftest.$ac_objext; then
17770  ac_cv_member_struct_sigaction_sa_sigaction=yes
17771else
17772  echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775	ac_cv_member_struct_sigaction_sa_sigaction=no
17776fi
17777
17778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779fi
17780
17781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782fi
17783{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sigaction_sa_sigaction" >&5
17784echo "${ECHO_T}$ac_cv_member_struct_sigaction_sa_sigaction" >&6; }
17785if test $ac_cv_member_struct_sigaction_sa_sigaction = yes; then
17786  cat >>confdefs.h <<\_ACEOF
17787#define HAVE_SA_SIGACTION 1
17788_ACEOF
17789
17790fi
17791
17792fi
17793
17794if test x$have_inttypes != xyes; then
17795    { echo "$as_me:$LINENO: checking for char" >&5
17796echo $ECHO_N "checking for char... $ECHO_C" >&6; }
17797if test "${ac_cv_type_char+set}" = set; then
17798  echo $ECHO_N "(cached) $ECHO_C" >&6
17799else
17800  cat >conftest.$ac_ext <<_ACEOF
17801/* confdefs.h.  */
17802_ACEOF
17803cat confdefs.h >>conftest.$ac_ext
17804cat >>conftest.$ac_ext <<_ACEOF
17805/* end confdefs.h.  */
17806$ac_includes_default
17807typedef char ac__type_new_;
17808int
17809main ()
17810{
17811if ((ac__type_new_ *) 0)
17812  return 0;
17813if (sizeof (ac__type_new_))
17814  return 0;
17815  ;
17816  return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext
17820if { (ac_try="$ac_compile"
17821case "(($ac_try" in
17822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823  *) ac_try_echo=$ac_try;;
17824esac
17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826  (eval "$ac_compile") 2>conftest.er1
17827  ac_status=$?
17828  grep -v '^ *+' conftest.er1 >conftest.err
17829  rm -f conftest.er1
17830  cat conftest.err >&5
17831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832  (exit $ac_status); } && {
17833	 test -z "$ac_c_werror_flag" ||
17834	 test ! -s conftest.err
17835       } && test -s conftest.$ac_objext; then
17836  ac_cv_type_char=yes
17837else
17838  echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841	ac_cv_type_char=no
17842fi
17843
17844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845fi
17846{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17847echo "${ECHO_T}$ac_cv_type_char" >&6; }
17848
17849# The cast to long int works around a bug in the HP C Compiler
17850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17852# This bug is HP SR number 8606223364.
17853{ echo "$as_me:$LINENO: checking size of char" >&5
17854echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
17855if test "${ac_cv_sizeof_char+set}" = set; then
17856  echo $ECHO_N "(cached) $ECHO_C" >&6
17857else
17858  if test "$cross_compiling" = yes; then
17859  # Depending upon the size, compute the lo and hi bounds.
17860cat >conftest.$ac_ext <<_ACEOF
17861/* confdefs.h.  */
17862_ACEOF
17863cat confdefs.h >>conftest.$ac_ext
17864cat >>conftest.$ac_ext <<_ACEOF
17865/* end confdefs.h.  */
17866$ac_includes_default
17867   typedef char ac__type_sizeof_;
17868int
17869main ()
17870{
17871static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17872test_array [0] = 0
17873
17874  ;
17875  return 0;
17876}
17877_ACEOF
17878rm -f conftest.$ac_objext
17879if { (ac_try="$ac_compile"
17880case "(($ac_try" in
17881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882  *) ac_try_echo=$ac_try;;
17883esac
17884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17885  (eval "$ac_compile") 2>conftest.er1
17886  ac_status=$?
17887  grep -v '^ *+' conftest.er1 >conftest.err
17888  rm -f conftest.er1
17889  cat conftest.err >&5
17890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891  (exit $ac_status); } && {
17892	 test -z "$ac_c_werror_flag" ||
17893	 test ! -s conftest.err
17894       } && test -s conftest.$ac_objext; then
17895  ac_lo=0 ac_mid=0
17896  while :; do
17897    cat >conftest.$ac_ext <<_ACEOF
17898/* confdefs.h.  */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h.  */
17903$ac_includes_default
17904   typedef char ac__type_sizeof_;
17905int
17906main ()
17907{
17908static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17909test_array [0] = 0
17910
17911  ;
17912  return 0;
17913}
17914_ACEOF
17915rm -f conftest.$ac_objext
17916if { (ac_try="$ac_compile"
17917case "(($ac_try" in
17918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17919  *) ac_try_echo=$ac_try;;
17920esac
17921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17922  (eval "$ac_compile") 2>conftest.er1
17923  ac_status=$?
17924  grep -v '^ *+' conftest.er1 >conftest.err
17925  rm -f conftest.er1
17926  cat conftest.err >&5
17927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928  (exit $ac_status); } && {
17929	 test -z "$ac_c_werror_flag" ||
17930	 test ! -s conftest.err
17931       } && test -s conftest.$ac_objext; then
17932  ac_hi=$ac_mid; break
17933else
17934  echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937	ac_lo=`expr $ac_mid + 1`
17938			if test $ac_lo -le $ac_mid; then
17939			  ac_lo= ac_hi=
17940			  break
17941			fi
17942			ac_mid=`expr 2 '*' $ac_mid + 1`
17943fi
17944
17945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946  done
17947else
17948  echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951	cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h.  */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h.  */
17957$ac_includes_default
17958   typedef char ac__type_sizeof_;
17959int
17960main ()
17961{
17962static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17963test_array [0] = 0
17964
17965  ;
17966  return 0;
17967}
17968_ACEOF
17969rm -f conftest.$ac_objext
17970if { (ac_try="$ac_compile"
17971case "(($ac_try" in
17972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973  *) ac_try_echo=$ac_try;;
17974esac
17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976  (eval "$ac_compile") 2>conftest.er1
17977  ac_status=$?
17978  grep -v '^ *+' conftest.er1 >conftest.err
17979  rm -f conftest.er1
17980  cat conftest.err >&5
17981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982  (exit $ac_status); } && {
17983	 test -z "$ac_c_werror_flag" ||
17984	 test ! -s conftest.err
17985       } && test -s conftest.$ac_objext; then
17986  ac_hi=-1 ac_mid=-1
17987  while :; do
17988    cat >conftest.$ac_ext <<_ACEOF
17989/* confdefs.h.  */
17990_ACEOF
17991cat confdefs.h >>conftest.$ac_ext
17992cat >>conftest.$ac_ext <<_ACEOF
17993/* end confdefs.h.  */
17994$ac_includes_default
17995   typedef char ac__type_sizeof_;
17996int
17997main ()
17998{
17999static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18000test_array [0] = 0
18001
18002  ;
18003  return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext
18007if { (ac_try="$ac_compile"
18008case "(($ac_try" in
18009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010  *) ac_try_echo=$ac_try;;
18011esac
18012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013  (eval "$ac_compile") 2>conftest.er1
18014  ac_status=$?
18015  grep -v '^ *+' conftest.er1 >conftest.err
18016  rm -f conftest.er1
18017  cat conftest.err >&5
18018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019  (exit $ac_status); } && {
18020	 test -z "$ac_c_werror_flag" ||
18021	 test ! -s conftest.err
18022       } && test -s conftest.$ac_objext; then
18023  ac_lo=$ac_mid; break
18024else
18025  echo "$as_me: failed program was:" >&5
18026sed 's/^/| /' conftest.$ac_ext >&5
18027
18028	ac_hi=`expr '(' $ac_mid ')' - 1`
18029			if test $ac_mid -le $ac_hi; then
18030			  ac_lo= ac_hi=
18031			  break
18032			fi
18033			ac_mid=`expr 2 '*' $ac_mid`
18034fi
18035
18036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037  done
18038else
18039  echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
18042	ac_lo= ac_hi=
18043fi
18044
18045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046fi
18047
18048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049# Binary search between lo and hi bounds.
18050while test "x$ac_lo" != "x$ac_hi"; do
18051  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18052  cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h.  */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h.  */
18058$ac_includes_default
18059   typedef char ac__type_sizeof_;
18060int
18061main ()
18062{
18063static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18064test_array [0] = 0
18065
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070rm -f conftest.$ac_objext
18071if { (ac_try="$ac_compile"
18072case "(($ac_try" in
18073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074  *) ac_try_echo=$ac_try;;
18075esac
18076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077  (eval "$ac_compile") 2>conftest.er1
18078  ac_status=$?
18079  grep -v '^ *+' conftest.er1 >conftest.err
18080  rm -f conftest.er1
18081  cat conftest.err >&5
18082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083  (exit $ac_status); } && {
18084	 test -z "$ac_c_werror_flag" ||
18085	 test ! -s conftest.err
18086       } && test -s conftest.$ac_objext; then
18087  ac_hi=$ac_mid
18088else
18089  echo "$as_me: failed program was:" >&5
18090sed 's/^/| /' conftest.$ac_ext >&5
18091
18092	ac_lo=`expr '(' $ac_mid ')' + 1`
18093fi
18094
18095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096done
18097case $ac_lo in
18098?*) ac_cv_sizeof_char=$ac_lo;;
18099'') if test "$ac_cv_type_char" = yes; then
18100     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18101See \`config.log' for more details." >&5
18102echo "$as_me: error: cannot compute sizeof (char)
18103See \`config.log' for more details." >&2;}
18104   { (exit 77); exit 77; }; }
18105   else
18106     ac_cv_sizeof_char=0
18107   fi ;;
18108esac
18109else
18110  cat >conftest.$ac_ext <<_ACEOF
18111/* confdefs.h.  */
18112_ACEOF
18113cat confdefs.h >>conftest.$ac_ext
18114cat >>conftest.$ac_ext <<_ACEOF
18115/* end confdefs.h.  */
18116$ac_includes_default
18117   typedef char ac__type_sizeof_;
18118static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18119static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18120#include <stdio.h>
18121#include <stdlib.h>
18122int
18123main ()
18124{
18125
18126  FILE *f = fopen ("conftest.val", "w");
18127  if (! f)
18128    return 1;
18129  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18130    {
18131      long int i = longval ();
18132      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18133	return 1;
18134      fprintf (f, "%ld\n", i);
18135    }
18136  else
18137    {
18138      unsigned long int i = ulongval ();
18139      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18140	return 1;
18141      fprintf (f, "%lu\n", i);
18142    }
18143  return ferror (f) || fclose (f) != 0;
18144
18145  ;
18146  return 0;
18147}
18148_ACEOF
18149rm -f conftest$ac_exeext
18150if { (ac_try="$ac_link"
18151case "(($ac_try" in
18152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153  *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156  (eval "$ac_link") 2>&5
18157  ac_status=$?
18158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18160  { (case "(($ac_try" in
18161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162  *) ac_try_echo=$ac_try;;
18163esac
18164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165  (eval "$ac_try") 2>&5
18166  ac_status=$?
18167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168  (exit $ac_status); }; }; then
18169  ac_cv_sizeof_char=`cat conftest.val`
18170else
18171  echo "$as_me: program exited with status $ac_status" >&5
18172echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
18175( exit $ac_status )
18176if test "$ac_cv_type_char" = yes; then
18177     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
18178See \`config.log' for more details." >&5
18179echo "$as_me: error: cannot compute sizeof (char)
18180See \`config.log' for more details." >&2;}
18181   { (exit 77); exit 77; }; }
18182   else
18183     ac_cv_sizeof_char=0
18184   fi
18185fi
18186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18187fi
18188rm -f conftest.val
18189fi
18190{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18191echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
18192
18193
18194
18195cat >>confdefs.h <<_ACEOF
18196#define SIZEOF_CHAR $ac_cv_sizeof_char
18197_ACEOF
18198
18199
18200    { echo "$as_me:$LINENO: checking for short" >&5
18201echo $ECHO_N "checking for short... $ECHO_C" >&6; }
18202if test "${ac_cv_type_short+set}" = set; then
18203  echo $ECHO_N "(cached) $ECHO_C" >&6
18204else
18205  cat >conftest.$ac_ext <<_ACEOF
18206/* confdefs.h.  */
18207_ACEOF
18208cat confdefs.h >>conftest.$ac_ext
18209cat >>conftest.$ac_ext <<_ACEOF
18210/* end confdefs.h.  */
18211$ac_includes_default
18212typedef short ac__type_new_;
18213int
18214main ()
18215{
18216if ((ac__type_new_ *) 0)
18217  return 0;
18218if (sizeof (ac__type_new_))
18219  return 0;
18220  ;
18221  return 0;
18222}
18223_ACEOF
18224rm -f conftest.$ac_objext
18225if { (ac_try="$ac_compile"
18226case "(($ac_try" in
18227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228  *) ac_try_echo=$ac_try;;
18229esac
18230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231  (eval "$ac_compile") 2>conftest.er1
18232  ac_status=$?
18233  grep -v '^ *+' conftest.er1 >conftest.err
18234  rm -f conftest.er1
18235  cat conftest.err >&5
18236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237  (exit $ac_status); } && {
18238	 test -z "$ac_c_werror_flag" ||
18239	 test ! -s conftest.err
18240       } && test -s conftest.$ac_objext; then
18241  ac_cv_type_short=yes
18242else
18243  echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
18246	ac_cv_type_short=no
18247fi
18248
18249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18250fi
18251{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18252echo "${ECHO_T}$ac_cv_type_short" >&6; }
18253
18254# The cast to long int works around a bug in the HP C Compiler
18255# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18256# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18257# This bug is HP SR number 8606223364.
18258{ echo "$as_me:$LINENO: checking size of short" >&5
18259echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
18260if test "${ac_cv_sizeof_short+set}" = set; then
18261  echo $ECHO_N "(cached) $ECHO_C" >&6
18262else
18263  if test "$cross_compiling" = yes; then
18264  # Depending upon the size, compute the lo and hi bounds.
18265cat >conftest.$ac_ext <<_ACEOF
18266/* confdefs.h.  */
18267_ACEOF
18268cat confdefs.h >>conftest.$ac_ext
18269cat >>conftest.$ac_ext <<_ACEOF
18270/* end confdefs.h.  */
18271$ac_includes_default
18272   typedef short ac__type_sizeof_;
18273int
18274main ()
18275{
18276static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18277test_array [0] = 0
18278
18279  ;
18280  return 0;
18281}
18282_ACEOF
18283rm -f conftest.$ac_objext
18284if { (ac_try="$ac_compile"
18285case "(($ac_try" in
18286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287  *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290  (eval "$ac_compile") 2>conftest.er1
18291  ac_status=$?
18292  grep -v '^ *+' conftest.er1 >conftest.err
18293  rm -f conftest.er1
18294  cat conftest.err >&5
18295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296  (exit $ac_status); } && {
18297	 test -z "$ac_c_werror_flag" ||
18298	 test ! -s conftest.err
18299       } && test -s conftest.$ac_objext; then
18300  ac_lo=0 ac_mid=0
18301  while :; do
18302    cat >conftest.$ac_ext <<_ACEOF
18303/* confdefs.h.  */
18304_ACEOF
18305cat confdefs.h >>conftest.$ac_ext
18306cat >>conftest.$ac_ext <<_ACEOF
18307/* end confdefs.h.  */
18308$ac_includes_default
18309   typedef short ac__type_sizeof_;
18310int
18311main ()
18312{
18313static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18314test_array [0] = 0
18315
18316  ;
18317  return 0;
18318}
18319_ACEOF
18320rm -f conftest.$ac_objext
18321if { (ac_try="$ac_compile"
18322case "(($ac_try" in
18323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324  *) ac_try_echo=$ac_try;;
18325esac
18326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327  (eval "$ac_compile") 2>conftest.er1
18328  ac_status=$?
18329  grep -v '^ *+' conftest.er1 >conftest.err
18330  rm -f conftest.er1
18331  cat conftest.err >&5
18332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333  (exit $ac_status); } && {
18334	 test -z "$ac_c_werror_flag" ||
18335	 test ! -s conftest.err
18336       } && test -s conftest.$ac_objext; then
18337  ac_hi=$ac_mid; break
18338else
18339  echo "$as_me: failed program was:" >&5
18340sed 's/^/| /' conftest.$ac_ext >&5
18341
18342	ac_lo=`expr $ac_mid + 1`
18343			if test $ac_lo -le $ac_mid; then
18344			  ac_lo= ac_hi=
18345			  break
18346			fi
18347			ac_mid=`expr 2 '*' $ac_mid + 1`
18348fi
18349
18350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351  done
18352else
18353  echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
18356	cat >conftest.$ac_ext <<_ACEOF
18357/* confdefs.h.  */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h.  */
18362$ac_includes_default
18363   typedef short ac__type_sizeof_;
18364int
18365main ()
18366{
18367static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18368test_array [0] = 0
18369
18370  ;
18371  return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (ac_try="$ac_compile"
18376case "(($ac_try" in
18377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378  *) ac_try_echo=$ac_try;;
18379esac
18380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381  (eval "$ac_compile") 2>conftest.er1
18382  ac_status=$?
18383  grep -v '^ *+' conftest.er1 >conftest.err
18384  rm -f conftest.er1
18385  cat conftest.err >&5
18386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387  (exit $ac_status); } && {
18388	 test -z "$ac_c_werror_flag" ||
18389	 test ! -s conftest.err
18390       } && test -s conftest.$ac_objext; then
18391  ac_hi=-1 ac_mid=-1
18392  while :; do
18393    cat >conftest.$ac_ext <<_ACEOF
18394/* confdefs.h.  */
18395_ACEOF
18396cat confdefs.h >>conftest.$ac_ext
18397cat >>conftest.$ac_ext <<_ACEOF
18398/* end confdefs.h.  */
18399$ac_includes_default
18400   typedef short ac__type_sizeof_;
18401int
18402main ()
18403{
18404static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18405test_array [0] = 0
18406
18407  ;
18408  return 0;
18409}
18410_ACEOF
18411rm -f conftest.$ac_objext
18412if { (ac_try="$ac_compile"
18413case "(($ac_try" in
18414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415  *) ac_try_echo=$ac_try;;
18416esac
18417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418  (eval "$ac_compile") 2>conftest.er1
18419  ac_status=$?
18420  grep -v '^ *+' conftest.er1 >conftest.err
18421  rm -f conftest.er1
18422  cat conftest.err >&5
18423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424  (exit $ac_status); } && {
18425	 test -z "$ac_c_werror_flag" ||
18426	 test ! -s conftest.err
18427       } && test -s conftest.$ac_objext; then
18428  ac_lo=$ac_mid; break
18429else
18430  echo "$as_me: failed program was:" >&5
18431sed 's/^/| /' conftest.$ac_ext >&5
18432
18433	ac_hi=`expr '(' $ac_mid ')' - 1`
18434			if test $ac_mid -le $ac_hi; then
18435			  ac_lo= ac_hi=
18436			  break
18437			fi
18438			ac_mid=`expr 2 '*' $ac_mid`
18439fi
18440
18441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442  done
18443else
18444  echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447	ac_lo= ac_hi=
18448fi
18449
18450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451fi
18452
18453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454# Binary search between lo and hi bounds.
18455while test "x$ac_lo" != "x$ac_hi"; do
18456  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18457  cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h.  */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h.  */
18463$ac_includes_default
18464   typedef short ac__type_sizeof_;
18465int
18466main ()
18467{
18468static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18469test_array [0] = 0
18470
18471  ;
18472  return 0;
18473}
18474_ACEOF
18475rm -f conftest.$ac_objext
18476if { (ac_try="$ac_compile"
18477case "(($ac_try" in
18478  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479  *) ac_try_echo=$ac_try;;
18480esac
18481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482  (eval "$ac_compile") 2>conftest.er1
18483  ac_status=$?
18484  grep -v '^ *+' conftest.er1 >conftest.err
18485  rm -f conftest.er1
18486  cat conftest.err >&5
18487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488  (exit $ac_status); } && {
18489	 test -z "$ac_c_werror_flag" ||
18490	 test ! -s conftest.err
18491       } && test -s conftest.$ac_objext; then
18492  ac_hi=$ac_mid
18493else
18494  echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497	ac_lo=`expr '(' $ac_mid ')' + 1`
18498fi
18499
18500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18501done
18502case $ac_lo in
18503?*) ac_cv_sizeof_short=$ac_lo;;
18504'') if test "$ac_cv_type_short" = yes; then
18505     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18506See \`config.log' for more details." >&5
18507echo "$as_me: error: cannot compute sizeof (short)
18508See \`config.log' for more details." >&2;}
18509   { (exit 77); exit 77; }; }
18510   else
18511     ac_cv_sizeof_short=0
18512   fi ;;
18513esac
18514else
18515  cat >conftest.$ac_ext <<_ACEOF
18516/* confdefs.h.  */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h.  */
18521$ac_includes_default
18522   typedef short ac__type_sizeof_;
18523static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18524static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18525#include <stdio.h>
18526#include <stdlib.h>
18527int
18528main ()
18529{
18530
18531  FILE *f = fopen ("conftest.val", "w");
18532  if (! f)
18533    return 1;
18534  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18535    {
18536      long int i = longval ();
18537      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18538	return 1;
18539      fprintf (f, "%ld\n", i);
18540    }
18541  else
18542    {
18543      unsigned long int i = ulongval ();
18544      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18545	return 1;
18546      fprintf (f, "%lu\n", i);
18547    }
18548  return ferror (f) || fclose (f) != 0;
18549
18550  ;
18551  return 0;
18552}
18553_ACEOF
18554rm -f conftest$ac_exeext
18555if { (ac_try="$ac_link"
18556case "(($ac_try" in
18557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558  *) ac_try_echo=$ac_try;;
18559esac
18560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561  (eval "$ac_link") 2>&5
18562  ac_status=$?
18563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18565  { (case "(($ac_try" in
18566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567  *) ac_try_echo=$ac_try;;
18568esac
18569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18570  (eval "$ac_try") 2>&5
18571  ac_status=$?
18572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573  (exit $ac_status); }; }; then
18574  ac_cv_sizeof_short=`cat conftest.val`
18575else
18576  echo "$as_me: program exited with status $ac_status" >&5
18577echo "$as_me: failed program was:" >&5
18578sed 's/^/| /' conftest.$ac_ext >&5
18579
18580( exit $ac_status )
18581if test "$ac_cv_type_short" = yes; then
18582     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
18583See \`config.log' for more details." >&5
18584echo "$as_me: error: cannot compute sizeof (short)
18585See \`config.log' for more details." >&2;}
18586   { (exit 77); exit 77; }; }
18587   else
18588     ac_cv_sizeof_short=0
18589   fi
18590fi
18591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18592fi
18593rm -f conftest.val
18594fi
18595{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18596echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
18597
18598
18599
18600cat >>confdefs.h <<_ACEOF
18601#define SIZEOF_SHORT $ac_cv_sizeof_short
18602_ACEOF
18603
18604
18605    { echo "$as_me:$LINENO: checking for int" >&5
18606echo $ECHO_N "checking for int... $ECHO_C" >&6; }
18607if test "${ac_cv_type_int+set}" = set; then
18608  echo $ECHO_N "(cached) $ECHO_C" >&6
18609else
18610  cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h.  */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h.  */
18616$ac_includes_default
18617typedef int ac__type_new_;
18618int
18619main ()
18620{
18621if ((ac__type_new_ *) 0)
18622  return 0;
18623if (sizeof (ac__type_new_))
18624  return 0;
18625  ;
18626  return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (ac_try="$ac_compile"
18631case "(($ac_try" in
18632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633  *) ac_try_echo=$ac_try;;
18634esac
18635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636  (eval "$ac_compile") 2>conftest.er1
18637  ac_status=$?
18638  grep -v '^ *+' conftest.er1 >conftest.err
18639  rm -f conftest.er1
18640  cat conftest.err >&5
18641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642  (exit $ac_status); } && {
18643	 test -z "$ac_c_werror_flag" ||
18644	 test ! -s conftest.err
18645       } && test -s conftest.$ac_objext; then
18646  ac_cv_type_int=yes
18647else
18648  echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651	ac_cv_type_int=no
18652fi
18653
18654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18655fi
18656{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18657echo "${ECHO_T}$ac_cv_type_int" >&6; }
18658
18659# The cast to long int works around a bug in the HP C Compiler
18660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18662# This bug is HP SR number 8606223364.
18663{ echo "$as_me:$LINENO: checking size of int" >&5
18664echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
18665if test "${ac_cv_sizeof_int+set}" = set; then
18666  echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668  if test "$cross_compiling" = yes; then
18669  # Depending upon the size, compute the lo and hi bounds.
18670cat >conftest.$ac_ext <<_ACEOF
18671/* confdefs.h.  */
18672_ACEOF
18673cat confdefs.h >>conftest.$ac_ext
18674cat >>conftest.$ac_ext <<_ACEOF
18675/* end confdefs.h.  */
18676$ac_includes_default
18677   typedef int ac__type_sizeof_;
18678int
18679main ()
18680{
18681static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
18682test_array [0] = 0
18683
18684  ;
18685  return 0;
18686}
18687_ACEOF
18688rm -f conftest.$ac_objext
18689if { (ac_try="$ac_compile"
18690case "(($ac_try" in
18691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692  *) ac_try_echo=$ac_try;;
18693esac
18694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695  (eval "$ac_compile") 2>conftest.er1
18696  ac_status=$?
18697  grep -v '^ *+' conftest.er1 >conftest.err
18698  rm -f conftest.er1
18699  cat conftest.err >&5
18700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701  (exit $ac_status); } && {
18702	 test -z "$ac_c_werror_flag" ||
18703	 test ! -s conftest.err
18704       } && test -s conftest.$ac_objext; then
18705  ac_lo=0 ac_mid=0
18706  while :; do
18707    cat >conftest.$ac_ext <<_ACEOF
18708/* confdefs.h.  */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h.  */
18713$ac_includes_default
18714   typedef int ac__type_sizeof_;
18715int
18716main ()
18717{
18718static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18719test_array [0] = 0
18720
18721  ;
18722  return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext
18726if { (ac_try="$ac_compile"
18727case "(($ac_try" in
18728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729  *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732  (eval "$ac_compile") 2>conftest.er1
18733  ac_status=$?
18734  grep -v '^ *+' conftest.er1 >conftest.err
18735  rm -f conftest.er1
18736  cat conftest.err >&5
18737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738  (exit $ac_status); } && {
18739	 test -z "$ac_c_werror_flag" ||
18740	 test ! -s conftest.err
18741       } && test -s conftest.$ac_objext; then
18742  ac_hi=$ac_mid; break
18743else
18744  echo "$as_me: failed program was:" >&5
18745sed 's/^/| /' conftest.$ac_ext >&5
18746
18747	ac_lo=`expr $ac_mid + 1`
18748			if test $ac_lo -le $ac_mid; then
18749			  ac_lo= ac_hi=
18750			  break
18751			fi
18752			ac_mid=`expr 2 '*' $ac_mid + 1`
18753fi
18754
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756  done
18757else
18758  echo "$as_me: failed program was:" >&5
18759sed 's/^/| /' conftest.$ac_ext >&5
18760
18761	cat >conftest.$ac_ext <<_ACEOF
18762/* confdefs.h.  */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h.  */
18767$ac_includes_default
18768   typedef int ac__type_sizeof_;
18769int
18770main ()
18771{
18772static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18773test_array [0] = 0
18774
18775  ;
18776  return 0;
18777}
18778_ACEOF
18779rm -f conftest.$ac_objext
18780if { (ac_try="$ac_compile"
18781case "(($ac_try" in
18782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783  *) ac_try_echo=$ac_try;;
18784esac
18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786  (eval "$ac_compile") 2>conftest.er1
18787  ac_status=$?
18788  grep -v '^ *+' conftest.er1 >conftest.err
18789  rm -f conftest.er1
18790  cat conftest.err >&5
18791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792  (exit $ac_status); } && {
18793	 test -z "$ac_c_werror_flag" ||
18794	 test ! -s conftest.err
18795       } && test -s conftest.$ac_objext; then
18796  ac_hi=-1 ac_mid=-1
18797  while :; do
18798    cat >conftest.$ac_ext <<_ACEOF
18799/* confdefs.h.  */
18800_ACEOF
18801cat confdefs.h >>conftest.$ac_ext
18802cat >>conftest.$ac_ext <<_ACEOF
18803/* end confdefs.h.  */
18804$ac_includes_default
18805   typedef int ac__type_sizeof_;
18806int
18807main ()
18808{
18809static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18810test_array [0] = 0
18811
18812  ;
18813  return 0;
18814}
18815_ACEOF
18816rm -f conftest.$ac_objext
18817if { (ac_try="$ac_compile"
18818case "(($ac_try" in
18819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820  *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823  (eval "$ac_compile") 2>conftest.er1
18824  ac_status=$?
18825  grep -v '^ *+' conftest.er1 >conftest.err
18826  rm -f conftest.er1
18827  cat conftest.err >&5
18828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829  (exit $ac_status); } && {
18830	 test -z "$ac_c_werror_flag" ||
18831	 test ! -s conftest.err
18832       } && test -s conftest.$ac_objext; then
18833  ac_lo=$ac_mid; break
18834else
18835  echo "$as_me: failed program was:" >&5
18836sed 's/^/| /' conftest.$ac_ext >&5
18837
18838	ac_hi=`expr '(' $ac_mid ')' - 1`
18839			if test $ac_mid -le $ac_hi; then
18840			  ac_lo= ac_hi=
18841			  break
18842			fi
18843			ac_mid=`expr 2 '*' $ac_mid`
18844fi
18845
18846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847  done
18848else
18849  echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852	ac_lo= ac_hi=
18853fi
18854
18855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18856fi
18857
18858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18859# Binary search between lo and hi bounds.
18860while test "x$ac_lo" != "x$ac_hi"; do
18861  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18862  cat >conftest.$ac_ext <<_ACEOF
18863/* confdefs.h.  */
18864_ACEOF
18865cat confdefs.h >>conftest.$ac_ext
18866cat >>conftest.$ac_ext <<_ACEOF
18867/* end confdefs.h.  */
18868$ac_includes_default
18869   typedef int ac__type_sizeof_;
18870int
18871main ()
18872{
18873static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18874test_array [0] = 0
18875
18876  ;
18877  return 0;
18878}
18879_ACEOF
18880rm -f conftest.$ac_objext
18881if { (ac_try="$ac_compile"
18882case "(($ac_try" in
18883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884  *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887  (eval "$ac_compile") 2>conftest.er1
18888  ac_status=$?
18889  grep -v '^ *+' conftest.er1 >conftest.err
18890  rm -f conftest.er1
18891  cat conftest.err >&5
18892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893  (exit $ac_status); } && {
18894	 test -z "$ac_c_werror_flag" ||
18895	 test ! -s conftest.err
18896       } && test -s conftest.$ac_objext; then
18897  ac_hi=$ac_mid
18898else
18899  echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902	ac_lo=`expr '(' $ac_mid ')' + 1`
18903fi
18904
18905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906done
18907case $ac_lo in
18908?*) ac_cv_sizeof_int=$ac_lo;;
18909'') if test "$ac_cv_type_int" = yes; then
18910     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18911See \`config.log' for more details." >&5
18912echo "$as_me: error: cannot compute sizeof (int)
18913See \`config.log' for more details." >&2;}
18914   { (exit 77); exit 77; }; }
18915   else
18916     ac_cv_sizeof_int=0
18917   fi ;;
18918esac
18919else
18920  cat >conftest.$ac_ext <<_ACEOF
18921/* confdefs.h.  */
18922_ACEOF
18923cat confdefs.h >>conftest.$ac_ext
18924cat >>conftest.$ac_ext <<_ACEOF
18925/* end confdefs.h.  */
18926$ac_includes_default
18927   typedef int ac__type_sizeof_;
18928static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18929static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18930#include <stdio.h>
18931#include <stdlib.h>
18932int
18933main ()
18934{
18935
18936  FILE *f = fopen ("conftest.val", "w");
18937  if (! f)
18938    return 1;
18939  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18940    {
18941      long int i = longval ();
18942      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18943	return 1;
18944      fprintf (f, "%ld\n", i);
18945    }
18946  else
18947    {
18948      unsigned long int i = ulongval ();
18949      if (i != ((long int) (sizeof (ac__type_sizeof_))))
18950	return 1;
18951      fprintf (f, "%lu\n", i);
18952    }
18953  return ferror (f) || fclose (f) != 0;
18954
18955  ;
18956  return 0;
18957}
18958_ACEOF
18959rm -f conftest$ac_exeext
18960if { (ac_try="$ac_link"
18961case "(($ac_try" in
18962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963  *) ac_try_echo=$ac_try;;
18964esac
18965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18966  (eval "$ac_link") 2>&5
18967  ac_status=$?
18968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18970  { (case "(($ac_try" in
18971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972  *) ac_try_echo=$ac_try;;
18973esac
18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975  (eval "$ac_try") 2>&5
18976  ac_status=$?
18977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978  (exit $ac_status); }; }; then
18979  ac_cv_sizeof_int=`cat conftest.val`
18980else
18981  echo "$as_me: program exited with status $ac_status" >&5
18982echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985( exit $ac_status )
18986if test "$ac_cv_type_int" = yes; then
18987     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
18988See \`config.log' for more details." >&5
18989echo "$as_me: error: cannot compute sizeof (int)
18990See \`config.log' for more details." >&2;}
18991   { (exit 77); exit 77; }; }
18992   else
18993     ac_cv_sizeof_int=0
18994   fi
18995fi
18996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18997fi
18998rm -f conftest.val
18999fi
19000{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19001echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
19002
19003
19004
19005cat >>confdefs.h <<_ACEOF
19006#define SIZEOF_INT $ac_cv_sizeof_int
19007_ACEOF
19008
19009
19010    { echo "$as_me:$LINENO: checking for long" >&5
19011echo $ECHO_N "checking for long... $ECHO_C" >&6; }
19012if test "${ac_cv_type_long+set}" = set; then
19013  echo $ECHO_N "(cached) $ECHO_C" >&6
19014else
19015  cat >conftest.$ac_ext <<_ACEOF
19016/* confdefs.h.  */
19017_ACEOF
19018cat confdefs.h >>conftest.$ac_ext
19019cat >>conftest.$ac_ext <<_ACEOF
19020/* end confdefs.h.  */
19021$ac_includes_default
19022typedef long ac__type_new_;
19023int
19024main ()
19025{
19026if ((ac__type_new_ *) 0)
19027  return 0;
19028if (sizeof (ac__type_new_))
19029  return 0;
19030  ;
19031  return 0;
19032}
19033_ACEOF
19034rm -f conftest.$ac_objext
19035if { (ac_try="$ac_compile"
19036case "(($ac_try" in
19037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19038  *) ac_try_echo=$ac_try;;
19039esac
19040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19041  (eval "$ac_compile") 2>conftest.er1
19042  ac_status=$?
19043  grep -v '^ *+' conftest.er1 >conftest.err
19044  rm -f conftest.er1
19045  cat conftest.err >&5
19046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047  (exit $ac_status); } && {
19048	 test -z "$ac_c_werror_flag" ||
19049	 test ! -s conftest.err
19050       } && test -s conftest.$ac_objext; then
19051  ac_cv_type_long=yes
19052else
19053  echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056	ac_cv_type_long=no
19057fi
19058
19059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060fi
19061{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19062echo "${ECHO_T}$ac_cv_type_long" >&6; }
19063
19064# The cast to long int works around a bug in the HP C Compiler
19065# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19066# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19067# This bug is HP SR number 8606223364.
19068{ echo "$as_me:$LINENO: checking size of long" >&5
19069echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
19070if test "${ac_cv_sizeof_long+set}" = set; then
19071  echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073  if test "$cross_compiling" = yes; then
19074  # Depending upon the size, compute the lo and hi bounds.
19075cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h.  */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h.  */
19081$ac_includes_default
19082   typedef long ac__type_sizeof_;
19083int
19084main ()
19085{
19086static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19087test_array [0] = 0
19088
19089  ;
19090  return 0;
19091}
19092_ACEOF
19093rm -f conftest.$ac_objext
19094if { (ac_try="$ac_compile"
19095case "(($ac_try" in
19096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097  *) ac_try_echo=$ac_try;;
19098esac
19099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19100  (eval "$ac_compile") 2>conftest.er1
19101  ac_status=$?
19102  grep -v '^ *+' conftest.er1 >conftest.err
19103  rm -f conftest.er1
19104  cat conftest.err >&5
19105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106  (exit $ac_status); } && {
19107	 test -z "$ac_c_werror_flag" ||
19108	 test ! -s conftest.err
19109       } && test -s conftest.$ac_objext; then
19110  ac_lo=0 ac_mid=0
19111  while :; do
19112    cat >conftest.$ac_ext <<_ACEOF
19113/* confdefs.h.  */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h.  */
19118$ac_includes_default
19119   typedef long ac__type_sizeof_;
19120int
19121main ()
19122{
19123static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19124test_array [0] = 0
19125
19126  ;
19127  return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext
19131if { (ac_try="$ac_compile"
19132case "(($ac_try" in
19133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134  *) ac_try_echo=$ac_try;;
19135esac
19136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137  (eval "$ac_compile") 2>conftest.er1
19138  ac_status=$?
19139  grep -v '^ *+' conftest.er1 >conftest.err
19140  rm -f conftest.er1
19141  cat conftest.err >&5
19142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143  (exit $ac_status); } && {
19144	 test -z "$ac_c_werror_flag" ||
19145	 test ! -s conftest.err
19146       } && test -s conftest.$ac_objext; then
19147  ac_hi=$ac_mid; break
19148else
19149  echo "$as_me: failed program was:" >&5
19150sed 's/^/| /' conftest.$ac_ext >&5
19151
19152	ac_lo=`expr $ac_mid + 1`
19153			if test $ac_lo -le $ac_mid; then
19154			  ac_lo= ac_hi=
19155			  break
19156			fi
19157			ac_mid=`expr 2 '*' $ac_mid + 1`
19158fi
19159
19160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161  done
19162else
19163  echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166	cat >conftest.$ac_ext <<_ACEOF
19167/* confdefs.h.  */
19168_ACEOF
19169cat confdefs.h >>conftest.$ac_ext
19170cat >>conftest.$ac_ext <<_ACEOF
19171/* end confdefs.h.  */
19172$ac_includes_default
19173   typedef long ac__type_sizeof_;
19174int
19175main ()
19176{
19177static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19178test_array [0] = 0
19179
19180  ;
19181  return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext
19185if { (ac_try="$ac_compile"
19186case "(($ac_try" in
19187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188  *) ac_try_echo=$ac_try;;
19189esac
19190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191  (eval "$ac_compile") 2>conftest.er1
19192  ac_status=$?
19193  grep -v '^ *+' conftest.er1 >conftest.err
19194  rm -f conftest.er1
19195  cat conftest.err >&5
19196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197  (exit $ac_status); } && {
19198	 test -z "$ac_c_werror_flag" ||
19199	 test ! -s conftest.err
19200       } && test -s conftest.$ac_objext; then
19201  ac_hi=-1 ac_mid=-1
19202  while :; do
19203    cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h.  */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h.  */
19209$ac_includes_default
19210   typedef long ac__type_sizeof_;
19211int
19212main ()
19213{
19214static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19215test_array [0] = 0
19216
19217  ;
19218  return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext
19222if { (ac_try="$ac_compile"
19223case "(($ac_try" in
19224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225  *) ac_try_echo=$ac_try;;
19226esac
19227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228  (eval "$ac_compile") 2>conftest.er1
19229  ac_status=$?
19230  grep -v '^ *+' conftest.er1 >conftest.err
19231  rm -f conftest.er1
19232  cat conftest.err >&5
19233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234  (exit $ac_status); } && {
19235	 test -z "$ac_c_werror_flag" ||
19236	 test ! -s conftest.err
19237       } && test -s conftest.$ac_objext; then
19238  ac_lo=$ac_mid; break
19239else
19240  echo "$as_me: failed program was:" >&5
19241sed 's/^/| /' conftest.$ac_ext >&5
19242
19243	ac_hi=`expr '(' $ac_mid ')' - 1`
19244			if test $ac_mid -le $ac_hi; then
19245			  ac_lo= ac_hi=
19246			  break
19247			fi
19248			ac_mid=`expr 2 '*' $ac_mid`
19249fi
19250
19251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252  done
19253else
19254  echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
19257	ac_lo= ac_hi=
19258fi
19259
19260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19261fi
19262
19263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264# Binary search between lo and hi bounds.
19265while test "x$ac_lo" != "x$ac_hi"; do
19266  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19267  cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h.  */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
19272/* end confdefs.h.  */
19273$ac_includes_default
19274   typedef long ac__type_sizeof_;
19275int
19276main ()
19277{
19278static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19279test_array [0] = 0
19280
19281  ;
19282  return 0;
19283}
19284_ACEOF
19285rm -f conftest.$ac_objext
19286if { (ac_try="$ac_compile"
19287case "(($ac_try" in
19288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289  *) ac_try_echo=$ac_try;;
19290esac
19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292  (eval "$ac_compile") 2>conftest.er1
19293  ac_status=$?
19294  grep -v '^ *+' conftest.er1 >conftest.err
19295  rm -f conftest.er1
19296  cat conftest.err >&5
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); } && {
19299	 test -z "$ac_c_werror_flag" ||
19300	 test ! -s conftest.err
19301       } && test -s conftest.$ac_objext; then
19302  ac_hi=$ac_mid
19303else
19304  echo "$as_me: failed program was:" >&5
19305sed 's/^/| /' conftest.$ac_ext >&5
19306
19307	ac_lo=`expr '(' $ac_mid ')' + 1`
19308fi
19309
19310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311done
19312case $ac_lo in
19313?*) ac_cv_sizeof_long=$ac_lo;;
19314'') if test "$ac_cv_type_long" = yes; then
19315     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19316See \`config.log' for more details." >&5
19317echo "$as_me: error: cannot compute sizeof (long)
19318See \`config.log' for more details." >&2;}
19319   { (exit 77); exit 77; }; }
19320   else
19321     ac_cv_sizeof_long=0
19322   fi ;;
19323esac
19324else
19325  cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h.  */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h.  */
19331$ac_includes_default
19332   typedef long ac__type_sizeof_;
19333static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19334static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19335#include <stdio.h>
19336#include <stdlib.h>
19337int
19338main ()
19339{
19340
19341  FILE *f = fopen ("conftest.val", "w");
19342  if (! f)
19343    return 1;
19344  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19345    {
19346      long int i = longval ();
19347      if (i != ((long int) (sizeof (ac__type_sizeof_))))
19348	return 1;
19349      fprintf (f, "%ld\n", i);
19350    }
19351  else
19352    {
19353      unsigned long int i = ulongval ();
19354      if (i != ((long int) (sizeof (ac__type_sizeof_))))
19355	return 1;
19356      fprintf (f, "%lu\n", i);
19357    }
19358  return ferror (f) || fclose (f) != 0;
19359
19360  ;
19361  return 0;
19362}
19363_ACEOF
19364rm -f conftest$ac_exeext
19365if { (ac_try="$ac_link"
19366case "(($ac_try" in
19367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368  *) ac_try_echo=$ac_try;;
19369esac
19370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371  (eval "$ac_link") 2>&5
19372  ac_status=$?
19373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19375  { (case "(($ac_try" in
19376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377  *) ac_try_echo=$ac_try;;
19378esac
19379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380  (eval "$ac_try") 2>&5
19381  ac_status=$?
19382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383  (exit $ac_status); }; }; then
19384  ac_cv_sizeof_long=`cat conftest.val`
19385else
19386  echo "$as_me: program exited with status $ac_status" >&5
19387echo "$as_me: failed program was:" >&5
19388sed 's/^/| /' conftest.$ac_ext >&5
19389
19390( exit $ac_status )
19391if test "$ac_cv_type_long" = yes; then
19392     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
19393See \`config.log' for more details." >&5
19394echo "$as_me: error: cannot compute sizeof (long)
19395See \`config.log' for more details." >&2;}
19396   { (exit 77); exit 77; }; }
19397   else
19398     ac_cv_sizeof_long=0
19399   fi
19400fi
19401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19402fi
19403rm -f conftest.val
19404fi
19405{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19406echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
19407
19408
19409
19410cat >>confdefs.h <<_ACEOF
19411#define SIZEOF_LONG $ac_cv_sizeof_long
19412_ACEOF
19413
19414
19415    { echo "$as_me:$LINENO: checking for long long" >&5
19416echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19417if test "${ac_cv_type_long_long+set}" = set; then
19418  echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420  cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h.  */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h.  */
19426$ac_includes_default
19427typedef long long ac__type_new_;
19428int
19429main ()
19430{
19431if ((ac__type_new_ *) 0)
19432  return 0;
19433if (sizeof (ac__type_new_))
19434  return 0;
19435  ;
19436  return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (ac_try="$ac_compile"
19441case "(($ac_try" in
19442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443  *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446  (eval "$ac_compile") 2>conftest.er1
19447  ac_status=$?
19448  grep -v '^ *+' conftest.er1 >conftest.err
19449  rm -f conftest.er1
19450  cat conftest.err >&5
19451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452  (exit $ac_status); } && {
19453	 test -z "$ac_c_werror_flag" ||
19454	 test ! -s conftest.err
19455       } && test -s conftest.$ac_objext; then
19456  ac_cv_type_long_long=yes
19457else
19458  echo "$as_me: failed program was:" >&5
19459sed 's/^/| /' conftest.$ac_ext >&5
19460
19461	ac_cv_type_long_long=no
19462fi
19463
19464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19465fi
19466{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19467echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19468
19469# The cast to long int works around a bug in the HP C Compiler
19470# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19471# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19472# This bug is HP SR number 8606223364.
19473{ echo "$as_me:$LINENO: checking size of long long" >&5
19474echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
19475if test "${ac_cv_sizeof_long_long+set}" = set; then
19476  echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478  if test "$cross_compiling" = yes; then
19479  # Depending upon the size, compute the lo and hi bounds.
19480cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h.  */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h.  */
19486$ac_includes_default
19487   typedef long long ac__type_sizeof_;
19488int
19489main ()
19490{
19491static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19492test_array [0] = 0
19493
19494  ;
19495  return 0;
19496}
19497_ACEOF
19498rm -f conftest.$ac_objext
19499if { (ac_try="$ac_compile"
19500case "(($ac_try" in
19501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502  *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505  (eval "$ac_compile") 2>conftest.er1
19506  ac_status=$?
19507  grep -v '^ *+' conftest.er1 >conftest.err
19508  rm -f conftest.er1
19509  cat conftest.err >&5
19510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511  (exit $ac_status); } && {
19512	 test -z "$ac_c_werror_flag" ||
19513	 test ! -s conftest.err
19514       } && test -s conftest.$ac_objext; then
19515  ac_lo=0 ac_mid=0
19516  while :; do
19517    cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h.  */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h.  */
19523$ac_includes_default
19524   typedef long long ac__type_sizeof_;
19525int
19526main ()
19527{
19528static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19529test_array [0] = 0
19530
19531  ;
19532  return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext
19536if { (ac_try="$ac_compile"
19537case "(($ac_try" in
19538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539  *) ac_try_echo=$ac_try;;
19540esac
19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542  (eval "$ac_compile") 2>conftest.er1
19543  ac_status=$?
19544  grep -v '^ *+' conftest.er1 >conftest.err
19545  rm -f conftest.er1
19546  cat conftest.err >&5
19547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548  (exit $ac_status); } && {
19549	 test -z "$ac_c_werror_flag" ||
19550	 test ! -s conftest.err
19551       } && test -s conftest.$ac_objext; then
19552  ac_hi=$ac_mid; break
19553else
19554  echo "$as_me: failed program was:" >&5
19555sed 's/^/| /' conftest.$ac_ext >&5
19556
19557	ac_lo=`expr $ac_mid + 1`
19558			if test $ac_lo -le $ac_mid; then
19559			  ac_lo= ac_hi=
19560			  break
19561			fi
19562			ac_mid=`expr 2 '*' $ac_mid + 1`
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566  done
19567else
19568  echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571	cat >conftest.$ac_ext <<_ACEOF
19572/* confdefs.h.  */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h.  */
19577$ac_includes_default
19578   typedef long long ac__type_sizeof_;
19579int
19580main ()
19581{
19582static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19583test_array [0] = 0
19584
19585  ;
19586  return 0;
19587}
19588_ACEOF
19589rm -f conftest.$ac_objext
19590if { (ac_try="$ac_compile"
19591case "(($ac_try" in
19592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593  *) ac_try_echo=$ac_try;;
19594esac
19595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596  (eval "$ac_compile") 2>conftest.er1
19597  ac_status=$?
19598  grep -v '^ *+' conftest.er1 >conftest.err
19599  rm -f conftest.er1
19600  cat conftest.err >&5
19601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602  (exit $ac_status); } && {
19603	 test -z "$ac_c_werror_flag" ||
19604	 test ! -s conftest.err
19605       } && test -s conftest.$ac_objext; then
19606  ac_hi=-1 ac_mid=-1
19607  while :; do
19608    cat >conftest.$ac_ext <<_ACEOF
19609/* confdefs.h.  */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h.  */
19614$ac_includes_default
19615   typedef long long ac__type_sizeof_;
19616int
19617main ()
19618{
19619static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19620test_array [0] = 0
19621
19622  ;
19623  return 0;
19624}
19625_ACEOF
19626rm -f conftest.$ac_objext
19627if { (ac_try="$ac_compile"
19628case "(($ac_try" in
19629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630  *) ac_try_echo=$ac_try;;
19631esac
19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633  (eval "$ac_compile") 2>conftest.er1
19634  ac_status=$?
19635  grep -v '^ *+' conftest.er1 >conftest.err
19636  rm -f conftest.er1
19637  cat conftest.err >&5
19638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639  (exit $ac_status); } && {
19640	 test -z "$ac_c_werror_flag" ||
19641	 test ! -s conftest.err
19642       } && test -s conftest.$ac_objext; then
19643  ac_lo=$ac_mid; break
19644else
19645  echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648	ac_hi=`expr '(' $ac_mid ')' - 1`
19649			if test $ac_mid -le $ac_hi; then
19650			  ac_lo= ac_hi=
19651			  break
19652			fi
19653			ac_mid=`expr 2 '*' $ac_mid`
19654fi
19655
19656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657  done
19658else
19659  echo "$as_me: failed program was:" >&5
19660sed 's/^/| /' conftest.$ac_ext >&5
19661
19662	ac_lo= ac_hi=
19663fi
19664
19665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19666fi
19667
19668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19669# Binary search between lo and hi bounds.
19670while test "x$ac_lo" != "x$ac_hi"; do
19671  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19672  cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h.  */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h.  */
19678$ac_includes_default
19679   typedef long long ac__type_sizeof_;
19680int
19681main ()
19682{
19683static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19684test_array [0] = 0
19685
19686  ;
19687  return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (ac_try="$ac_compile"
19692case "(($ac_try" in
19693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694  *) ac_try_echo=$ac_try;;
19695esac
19696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19697  (eval "$ac_compile") 2>conftest.er1
19698  ac_status=$?
19699  grep -v '^ *+' conftest.er1 >conftest.err
19700  rm -f conftest.er1
19701  cat conftest.err >&5
19702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703  (exit $ac_status); } && {
19704	 test -z "$ac_c_werror_flag" ||
19705	 test ! -s conftest.err
19706       } && test -s conftest.$ac_objext; then
19707  ac_hi=$ac_mid
19708else
19709  echo "$as_me: failed program was:" >&5
19710sed 's/^/| /' conftest.$ac_ext >&5
19711
19712	ac_lo=`expr '(' $ac_mid ')' + 1`
19713fi
19714
19715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19716done
19717case $ac_lo in
19718?*) ac_cv_sizeof_long_long=$ac_lo;;
19719'') if test "$ac_cv_type_long_long" = yes; then
19720     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19721See \`config.log' for more details." >&5
19722echo "$as_me: error: cannot compute sizeof (long long)
19723See \`config.log' for more details." >&2;}
19724   { (exit 77); exit 77; }; }
19725   else
19726     ac_cv_sizeof_long_long=0
19727   fi ;;
19728esac
19729else
19730  cat >conftest.$ac_ext <<_ACEOF
19731/* confdefs.h.  */
19732_ACEOF
19733cat confdefs.h >>conftest.$ac_ext
19734cat >>conftest.$ac_ext <<_ACEOF
19735/* end confdefs.h.  */
19736$ac_includes_default
19737   typedef long long ac__type_sizeof_;
19738static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19739static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19740#include <stdio.h>
19741#include <stdlib.h>
19742int
19743main ()
19744{
19745
19746  FILE *f = fopen ("conftest.val", "w");
19747  if (! f)
19748    return 1;
19749  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19750    {
19751      long int i = longval ();
19752      if (i != ((long int) (sizeof (ac__type_sizeof_))))
19753	return 1;
19754      fprintf (f, "%ld\n", i);
19755    }
19756  else
19757    {
19758      unsigned long int i = ulongval ();
19759      if (i != ((long int) (sizeof (ac__type_sizeof_))))
19760	return 1;
19761      fprintf (f, "%lu\n", i);
19762    }
19763  return ferror (f) || fclose (f) != 0;
19764
19765  ;
19766  return 0;
19767}
19768_ACEOF
19769rm -f conftest$ac_exeext
19770if { (ac_try="$ac_link"
19771case "(($ac_try" in
19772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773  *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776  (eval "$ac_link") 2>&5
19777  ac_status=$?
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19780  { (case "(($ac_try" in
19781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782  *) ac_try_echo=$ac_try;;
19783esac
19784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785  (eval "$ac_try") 2>&5
19786  ac_status=$?
19787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788  (exit $ac_status); }; }; then
19789  ac_cv_sizeof_long_long=`cat conftest.val`
19790else
19791  echo "$as_me: program exited with status $ac_status" >&5
19792echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795( exit $ac_status )
19796if test "$ac_cv_type_long_long" = yes; then
19797     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
19798See \`config.log' for more details." >&5
19799echo "$as_me: error: cannot compute sizeof (long long)
19800See \`config.log' for more details." >&2;}
19801   { (exit 77); exit 77; }; }
19802   else
19803     ac_cv_sizeof_long_long=0
19804   fi
19805fi
19806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19807fi
19808rm -f conftest.val
19809fi
19810{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19811echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
19812
19813
19814
19815cat >>confdefs.h <<_ACEOF
19816#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19817_ACEOF
19818
19819
19820    if test x$ac_cv_sizeof_char = x1; then
19821        cat >>confdefs.h <<\_ACEOF
19822#define int8_t signed char
19823_ACEOF
19824
19825        cat >>confdefs.h <<\_ACEOF
19826#define uint8_t unsigned char
19827_ACEOF
19828
19829    fi
19830    if test x$ac_cv_sizeof_short = x2; then
19831        cat >>confdefs.h <<\_ACEOF
19832#define int16_t signed short
19833_ACEOF
19834
19835        cat >>confdefs.h <<\_ACEOF
19836#define uint16_t unsigned short
19837_ACEOF
19838
19839    else
19840        if test x$ac_cv_sizeof_int = x2; then
19841            cat >>confdefs.h <<\_ACEOF
19842#define int16_t signed int
19843_ACEOF
19844
19845            cat >>confdefs.h <<\_ACEOF
19846#define uint16_t unsigned int
19847_ACEOF
19848
19849        fi
19850    fi
19851    if test x$ac_cv_sizeof_int = x4; then
19852        cat >>confdefs.h <<\_ACEOF
19853#define int32_t signed int
19854_ACEOF
19855
19856        cat >>confdefs.h <<\_ACEOF
19857#define uint32_t unsigned int
19858_ACEOF
19859
19860    else
19861        if test x$ac_cv_sizeof_long = x4; then
19862            cat >>confdefs.h <<\_ACEOF
19863#define int32_t signed long
19864_ACEOF
19865
19866            cat >>confdefs.h <<\_ACEOF
19867#define uint32_t unsigned long
19868_ACEOF
19869
19870        fi
19871    fi
19872    if test x$ac_cv_sizeof_long = x8; then
19873        cat >>confdefs.h <<\_ACEOF
19874#define int64_t signed long
19875_ACEOF
19876
19877        cat >>confdefs.h <<\_ACEOF
19878#define uint64_t unsigned long
19879_ACEOF
19880
19881        cat >>confdefs.h <<\_ACEOF
19882#define SDL_HAS_64BIT_TYPE 1
19883_ACEOF
19884
19885    else
19886        if test x$ac_cv_sizeof_long_long = x8; then
19887            cat >>confdefs.h <<\_ACEOF
19888#define int64_t signed long long
19889_ACEOF
19890
19891            cat >>confdefs.h <<\_ACEOF
19892#define uint64_t unsigned long long
19893_ACEOF
19894
19895            cat >>confdefs.h <<\_ACEOF
19896#define SDL_HAS_64BIT_TYPE 1
19897_ACEOF
19898
19899        fi
19900    fi
19901    cat >>confdefs.h <<\_ACEOF
19902#define size_t unsigned int
19903_ACEOF
19904
19905    cat >>confdefs.h <<\_ACEOF
19906#define uintptr_t unsigned long
19907_ACEOF
19908
19909fi
19910
19911# Standard C sources
19912SOURCES="$SOURCES $srcdir/src/*.c"
19913SOURCES="$SOURCES $srcdir/src/audio/*.c"
19914SOURCES="$SOURCES $srcdir/src/cdrom/*.c"
19915SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
19916SOURCES="$SOURCES $srcdir/src/events/*.c"
19917SOURCES="$SOURCES $srcdir/src/file/*.c"
19918SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
19919SOURCES="$SOURCES $srcdir/src/thread/*.c"
19920SOURCES="$SOURCES $srcdir/src/timer/*.c"
19921SOURCES="$SOURCES $srcdir/src/video/*.c"
19922
19923
19924# Check whether --enable-audio was given.
19925if test "${enable_audio+set}" = set; then
19926  enableval=$enable_audio;
19927else
19928  enable_audio=yes
19929fi
19930
19931if test x$enable_audio != xyes; then
19932    cat >>confdefs.h <<\_ACEOF
19933#define SDL_AUDIO_DISABLED 1
19934_ACEOF
19935
19936fi
19937# Check whether --enable-video was given.
19938if test "${enable_video+set}" = set; then
19939  enableval=$enable_video;
19940else
19941  enable_video=yes
19942fi
19943
19944if test x$enable_video != xyes; then
19945    cat >>confdefs.h <<\_ACEOF
19946#define SDL_VIDEO_DISABLED 1
19947_ACEOF
19948
19949fi
19950# Check whether --enable-events was given.
19951if test "${enable_events+set}" = set; then
19952  enableval=$enable_events;
19953else
19954  enable_events=yes
19955fi
19956
19957if test x$enable_events != xyes; then
19958    cat >>confdefs.h <<\_ACEOF
19959#define SDL_EVENTS_DISABLED 1
19960_ACEOF
19961
19962fi
19963# Check whether --enable-joystick was given.
19964if test "${enable_joystick+set}" = set; then
19965  enableval=$enable_joystick;
19966else
19967  enable_joystick=yes
19968fi
19969
19970if test x$enable_joystick != xyes; then
19971    cat >>confdefs.h <<\_ACEOF
19972#define SDL_JOYSTICK_DISABLED 1
19973_ACEOF
19974
19975else
19976    SOURCES="$SOURCES $srcdir/src/joystick/*.c"
19977fi
19978# Check whether --enable-cdrom was given.
19979if test "${enable_cdrom+set}" = set; then
19980  enableval=$enable_cdrom;
19981else
19982  enable_cdrom=yes
19983fi
19984
19985if test x$enable_cdrom != xyes; then
19986    cat >>confdefs.h <<\_ACEOF
19987#define SDL_CDROM_DISABLED 1
19988_ACEOF
19989
19990fi
19991# Check whether --enable-threads was given.
19992if test "${enable_threads+set}" = set; then
19993  enableval=$enable_threads;
19994else
19995  enable_threads=yes
19996fi
19997
19998if test x$enable_threads != xyes; then
19999    cat >>confdefs.h <<\_ACEOF
20000#define SDL_THREADS_DISABLED 1
20001_ACEOF
20002
20003fi
20004# Check whether --enable-timers was given.
20005if test "${enable_timers+set}" = set; then
20006  enableval=$enable_timers;
20007else
20008  enable_timers=yes
20009fi
20010
20011if test x$enable_timers != xyes; then
20012    cat >>confdefs.h <<\_ACEOF
20013#define SDL_TIMERS_DISABLED 1
20014_ACEOF
20015
20016fi
20017# Check whether --enable-file was given.
20018if test "${enable_file+set}" = set; then
20019  enableval=$enable_file;
20020else
20021  enable_file=yes
20022fi
20023
20024if test x$enable_file != xyes; then
20025    cat >>confdefs.h <<\_ACEOF
20026#define SDL_FILE_DISABLED 1
20027_ACEOF
20028
20029fi
20030# Check whether --enable-loadso was given.
20031if test "${enable_loadso+set}" = set; then
20032  enableval=$enable_loadso;
20033else
20034  enable_loadso=yes
20035fi
20036
20037if test x$enable_loadso != xyes; then
20038    cat >>confdefs.h <<\_ACEOF
20039#define SDL_LOADSO_DISABLED 1
20040_ACEOF
20041
20042fi
20043# Check whether --enable-cpuinfo was given.
20044if test "${enable_cpuinfo+set}" = set; then
20045  enableval=$enable_cpuinfo;
20046else
20047  enable_cpuinfo=yes
20048fi
20049
20050if test x$enable_cpuinfo != xyes; then
20051    cat >>confdefs.h <<\_ACEOF
20052#define SDL_CPUINFO_DISABLED 1
20053_ACEOF
20054
20055fi
20056# Check whether --enable-assembly was given.
20057if test "${enable_assembly+set}" = set; then
20058  enableval=$enable_assembly;
20059else
20060  enable_assembly=yes
20061fi
20062
20063if test x$enable_assembly = xyes; then
20064    cat >>confdefs.h <<\_ACEOF
20065#define SDL_ASSEMBLY_ROUTINES 1
20066_ACEOF
20067
20068fi
20069
20070CheckOSS()
20071{
20072    # Check whether --enable-oss was given.
20073if test "${enable_oss+set}" = set; then
20074  enableval=$enable_oss;
20075else
20076  enable_oss=yes
20077fi
20078
20079    if test x$enable_audio = xyes -a x$enable_oss = xyes; then
20080        { echo "$as_me:$LINENO: checking for OSS audio support" >&5
20081echo $ECHO_N "checking for OSS audio support... $ECHO_C" >&6; }
20082        have_oss=no
20083        if test x$have_oss != xyes; then
20084            cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h.  */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h.  */
20090
20091              #include <sys/soundcard.h>
20092
20093int
20094main ()
20095{
20096
20097              int arg = SNDCTL_DSP_SETFRAGMENT;
20098
20099  ;
20100  return 0;
20101}
20102_ACEOF
20103rm -f conftest.$ac_objext
20104if { (ac_try="$ac_compile"
20105case "(($ac_try" in
20106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107  *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110  (eval "$ac_compile") 2>conftest.er1
20111  ac_status=$?
20112  grep -v '^ *+' conftest.er1 >conftest.err
20113  rm -f conftest.er1
20114  cat conftest.err >&5
20115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116  (exit $ac_status); } && {
20117	 test -z "$ac_c_werror_flag" ||
20118	 test ! -s conftest.err
20119       } && test -s conftest.$ac_objext; then
20120
20121            have_oss=yes
20122
20123else
20124  echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127
20128fi
20129
20130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131        fi
20132        if test x$have_oss != xyes; then
20133            cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h.  */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h.  */
20139
20140              #include <soundcard.h>
20141
20142int
20143main ()
20144{
20145
20146              int arg = SNDCTL_DSP_SETFRAGMENT;
20147
20148  ;
20149  return 0;
20150}
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (ac_try="$ac_compile"
20154case "(($ac_try" in
20155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156  *) ac_try_echo=$ac_try;;
20157esac
20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159  (eval "$ac_compile") 2>conftest.er1
20160  ac_status=$?
20161  grep -v '^ *+' conftest.er1 >conftest.err
20162  rm -f conftest.er1
20163  cat conftest.err >&5
20164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165  (exit $ac_status); } && {
20166	 test -z "$ac_c_werror_flag" ||
20167	 test ! -s conftest.err
20168       } && test -s conftest.$ac_objext; then
20169
20170            have_oss=yes
20171            cat >>confdefs.h <<\_ACEOF
20172#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1
20173_ACEOF
20174
20175
20176else
20177  echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180
20181fi
20182
20183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184        fi
20185        { echo "$as_me:$LINENO: result: $have_oss" >&5
20186echo "${ECHO_T}$have_oss" >&6; }
20187        if test x$have_oss = xyes; then
20188            cat >>confdefs.h <<\_ACEOF
20189#define SDL_AUDIO_DRIVER_OSS 1
20190_ACEOF
20191
20192            SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
20193            SOURCES="$SOURCES $srcdir/src/audio/dma/*.c"
20194            have_audio=yes
20195
20196            # We may need to link with ossaudio emulation library
20197            case "$host" in
20198                *-*-openbsd*|*-*-netbsd*)
20199                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
20200            esac
20201        fi
20202    fi
20203}
20204
20205CheckALSA()
20206{
20207    # Check whether --enable-alsa was given.
20208if test "${enable_alsa+set}" = set; then
20209  enableval=$enable_alsa;
20210else
20211  enable_alsa=yes
20212fi
20213
20214    if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
20215        alsa_save_CFLAGS="$CFLAGS"
20216alsa_save_LDFLAGS="$LDFLAGS"
20217alsa_save_LIBS="$LIBS"
20218alsa_found=yes
20219
20220
20221# Check whether --with-alsa-prefix was given.
20222if test "${with_alsa_prefix+set}" = set; then
20223  withval=$with_alsa_prefix; alsa_prefix="$withval"
20224else
20225  alsa_prefix=""
20226fi
20227
20228
20229
20230# Check whether --with-alsa-inc-prefix was given.
20231if test "${with_alsa_inc_prefix+set}" = set; then
20232  withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
20233else
20234  alsa_inc_prefix=""
20235fi
20236
20237
20238# Check whether --enable-alsatest was given.
20239if test "${enable_alsatest+set}" = set; then
20240  enableval=$enable_alsatest; enable_alsatest="$enableval"
20241else
20242  enable_alsatest=yes
20243fi
20244
20245
20246{ echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
20247echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6; }
20248if test "$alsa_inc_prefix" != "" ; then
20249	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
20250	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
20251fi
20252{ echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
20253echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
20254
20255{ echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
20256echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6; }
20257if test "$alsa_prefix" != "" ; then
20258	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
20259	LDFLAGS="$LDFLAGS $ALSA_LIBS"
20260fi
20261
20262ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
20263LIBS=`echo $LIBS | sed 's/-lm//'`
20264LIBS=`echo $LIBS | sed 's/-ldl//'`
20265LIBS=`echo $LIBS | sed 's/-lpthread//'`
20266LIBS=`echo $LIBS | sed 's/  //'`
20267LIBS="$ALSA_LIBS $LIBS"
20268{ echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
20269echo "${ECHO_T}$ALSA_LIBS" >&6; }
20270
20271min_alsa_version=0.9.0
20272{ echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
20273echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6; }
20274no_alsa=""
20275    alsa_min_major_version=`echo $min_alsa_version | \
20276           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20277    alsa_min_minor_version=`echo $min_alsa_version | \
20278           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20279    alsa_min_micro_version=`echo $min_alsa_version | \
20280           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20281
20282
20283ac_ext=c
20284ac_cpp='$CPP $CPPFLAGS'
20285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20287ac_compiler_gnu=$ac_cv_c_compiler_gnu
20288
20289cat >conftest.$ac_ext <<_ACEOF
20290/* confdefs.h.  */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h.  */
20295
20296#include <alsa/asoundlib.h>
20297
20298int
20299main ()
20300{
20301
20302/* ensure backward compatibility */
20303#if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
20304#define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
20305#endif
20306#if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
20307#define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
20308#endif
20309#if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
20310#define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
20311#endif
20312
20313#  if(SND_LIB_MAJOR > $alsa_min_major_version)
20314  exit(0);
20315#  else
20316#    if(SND_LIB_MAJOR < $alsa_min_major_version)
20317#       error not present
20318#    endif
20319
20320#   if(SND_LIB_MINOR > $alsa_min_minor_version)
20321  exit(0);
20322#   else
20323#     if(SND_LIB_MINOR < $alsa_min_minor_version)
20324#          error not present
20325#      endif
20326
20327#      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
20328#        error not present
20329#      endif
20330#    endif
20331#  endif
20332exit(0);
20333
20334  ;
20335  return 0;
20336}
20337_ACEOF
20338rm -f conftest.$ac_objext
20339if { (ac_try="$ac_compile"
20340case "(($ac_try" in
20341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342  *) ac_try_echo=$ac_try;;
20343esac
20344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345  (eval "$ac_compile") 2>conftest.er1
20346  ac_status=$?
20347  grep -v '^ *+' conftest.er1 >conftest.err
20348  rm -f conftest.er1
20349  cat conftest.err >&5
20350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351  (exit $ac_status); } && {
20352	 test -z "$ac_c_werror_flag" ||
20353	 test ! -s conftest.err
20354       } && test -s conftest.$ac_objext; then
20355  { echo "$as_me:$LINENO: result: found." >&5
20356echo "${ECHO_T}found." >&6; }
20357else
20358  echo "$as_me: failed program was:" >&5
20359sed 's/^/| /' conftest.$ac_ext >&5
20360
20361	{ echo "$as_me:$LINENO: result: not present." >&5
20362echo "${ECHO_T}not present." >&6; }
20363
20364   alsa_found=no
20365
20366fi
20367
20368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369ac_ext=c
20370ac_cpp='$CPP $CPPFLAGS'
20371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20373ac_compiler_gnu=$ac_cv_c_compiler_gnu
20374
20375
20376if test "x$enable_alsatest" = "xyes"; then
20377
20378{ echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
20379echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6; }
20380if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
20381  echo $ECHO_N "(cached) $ECHO_C" >&6
20382else
20383  ac_check_lib_save_LIBS=$LIBS
20384LIBS="-lasound  $LIBS"
20385cat >conftest.$ac_ext <<_ACEOF
20386/* confdefs.h.  */
20387_ACEOF
20388cat confdefs.h >>conftest.$ac_ext
20389cat >>conftest.$ac_ext <<_ACEOF
20390/* end confdefs.h.  */
20391
20392/* Override any GCC internal prototype to avoid an error.
20393   Use char because int might match the return type of a GCC
20394   builtin and then its argument prototype would still apply.  */
20395#ifdef __cplusplus
20396extern "C"
20397#endif
20398char snd_ctl_open ();
20399int
20400main ()
20401{
20402return snd_ctl_open ();
20403  ;
20404  return 0;
20405}
20406_ACEOF
20407rm -f conftest.$ac_objext conftest$ac_exeext
20408if { (ac_try="$ac_link"
20409case "(($ac_try" in
20410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411  *) ac_try_echo=$ac_try;;
20412esac
20413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414  (eval "$ac_link") 2>conftest.er1
20415  ac_status=$?
20416  grep -v '^ *+' conftest.er1 >conftest.err
20417  rm -f conftest.er1
20418  cat conftest.err >&5
20419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420  (exit $ac_status); } && {
20421	 test -z "$ac_c_werror_flag" ||
20422	 test ! -s conftest.err
20423       } && test -s conftest$ac_exeext &&
20424       $as_test_x conftest$ac_exeext; then
20425  ac_cv_lib_asound_snd_ctl_open=yes
20426else
20427  echo "$as_me: failed program was:" >&5
20428sed 's/^/| /' conftest.$ac_ext >&5
20429
20430	ac_cv_lib_asound_snd_ctl_open=no
20431fi
20432
20433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434      conftest$ac_exeext conftest.$ac_ext
20435LIBS=$ac_check_lib_save_LIBS
20436fi
20437{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
20438echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6; }
20439if test $ac_cv_lib_asound_snd_ctl_open = yes; then
20440  cat >>confdefs.h <<_ACEOF
20441#define HAVE_LIBASOUND 1
20442_ACEOF
20443
20444  LIBS="-lasound $LIBS"
20445
20446else
20447
20448	 alsa_found=no
20449
20450fi
20451
20452fi
20453
20454if test "x$alsa_found" = "xyes" ; then
20455   have_alsa=yes
20456   LIBS=`echo $LIBS | sed 's/-lasound//g'`
20457   LIBS=`echo $LIBS | sed 's/  //'`
20458   LIBS="-lasound $LIBS"
20459fi
20460if test "x$alsa_found" = "xno" ; then
20461   have_alsa=no
20462   CFLAGS="$alsa_save_CFLAGS"
20463   LDFLAGS="$alsa_save_LDFLAGS"
20464   LIBS="$alsa_save_LIBS"
20465   ALSA_CFLAGS=""
20466   ALSA_LIBS=""
20467fi
20468
20469
20470
20471
20472        # Restore all flags from before the ALSA detection runs
20473        CFLAGS="$alsa_save_CFLAGS"
20474        LDFLAGS="$alsa_save_LDFLAGS"
20475        LIBS="$alsa_save_LIBS"
20476        if test x$have_alsa = xyes; then
20477            # Check whether --enable-alsa-shared was given.
20478if test "${enable_alsa_shared+set}" = set; then
20479  enableval=$enable_alsa_shared;
20480else
20481  enable_alsa_shared=yes
20482fi
20483
20484            alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20485
20486            cat >>confdefs.h <<\_ACEOF
20487#define SDL_AUDIO_DRIVER_ALSA 1
20488_ACEOF
20489
20490            SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
20491            EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
20492            if test x$have_loadso != xyes && \
20493               test x$enable_alsa_shared = xyes; then
20494                { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
20495echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
20496            fi
20497            if test x$have_loadso = xyes && \
20498               test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
20499                echo "-- dynamic libasound -> $alsa_lib"
20500                cat >>confdefs.h <<_ACEOF
20501#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
20502_ACEOF
20503
20504            else
20505                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
20506            fi
20507            have_audio=yes
20508        fi
20509    fi
20510}
20511
20512CheckDMEDIA()
20513{
20514    if test x$enable_audio = xyes; then
20515        { echo "$as_me:$LINENO: checking for dmedia audio support" >&5
20516echo $ECHO_N "checking for dmedia audio support... $ECHO_C" >&6; }
20517        have_dmedia=no
20518        cat >conftest.$ac_ext <<_ACEOF
20519/* confdefs.h.  */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h.  */
20524
20525          #include <dmedia/audio.h>
20526
20527int
20528main ()
20529{
20530
20531          ALport audio_port;
20532
20533  ;
20534  return 0;
20535}
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (ac_try="$ac_compile"
20539case "(($ac_try" in
20540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541  *) ac_try_echo=$ac_try;;
20542esac
20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544  (eval "$ac_compile") 2>conftest.er1
20545  ac_status=$?
20546  grep -v '^ *+' conftest.er1 >conftest.err
20547  rm -f conftest.er1
20548  cat conftest.err >&5
20549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550  (exit $ac_status); } && {
20551	 test -z "$ac_c_werror_flag" ||
20552	 test ! -s conftest.err
20553       } && test -s conftest.$ac_objext; then
20554
20555        have_dmedia=yes
20556
20557else
20558  echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561
20562fi
20563
20564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565        { echo "$as_me:$LINENO: result: $have_dmedia" >&5
20566echo "${ECHO_T}$have_dmedia" >&6; }
20567        # Set up files for the audio library
20568        if test x$have_dmedia = xyes; then
20569            cat >>confdefs.h <<\_ACEOF
20570#define SDL_AUDIO_DRIVER_DMEDIA 1
20571_ACEOF
20572
20573            SOURCES="$SOURCES $srcdir/src/audio/dmedia/*.c"
20574            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laudio"
20575            have_audio=yes
20576        fi
20577    fi
20578}
20579
20580CheckMME()
20581{
20582        case $ARCH in
20583        osf)
20584            ;;
20585        *)
20586            return
20587            ;;
20588    esac
20589    if test x$enable_audio = xyes; then
20590        { echo "$as_me:$LINENO: checking for MME audio support" >&5
20591echo $ECHO_N "checking for MME audio support... $ECHO_C" >&6; }
20592        MME_CFLAGS="-I/usr/include/mme"
20593        MME_LIBS="-lmme"
20594        have_mme=no
20595        save_CFLAGS="$CFLAGS"
20596        CFLAGS="$CFLAGS $MME_CFLAGS"
20597        cat >conftest.$ac_ext <<_ACEOF
20598/* confdefs.h.  */
20599_ACEOF
20600cat confdefs.h >>conftest.$ac_ext
20601cat >>conftest.$ac_ext <<_ACEOF
20602/* end confdefs.h.  */
20603
20604          #include <mme_api.h>
20605
20606int
20607main ()
20608{
20609
20610          HWAVEOUT sound;
20611
20612  ;
20613  return 0;
20614}
20615_ACEOF
20616rm -f conftest.$ac_objext
20617if { (ac_try="$ac_compile"
20618case "(($ac_try" in
20619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20620  *) ac_try_echo=$ac_try;;
20621esac
20622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20623  (eval "$ac_compile") 2>conftest.er1
20624  ac_status=$?
20625  grep -v '^ *+' conftest.er1 >conftest.err
20626  rm -f conftest.er1
20627  cat conftest.err >&5
20628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629  (exit $ac_status); } && {
20630	 test -z "$ac_c_werror_flag" ||
20631	 test ! -s conftest.err
20632       } && test -s conftest.$ac_objext; then
20633
20634        have_mme=yes
20635
20636else
20637  echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644        CFLAGS="$save_CFLAGS"
20645        { echo "$as_me:$LINENO: result: $have_mme" >&5
20646echo "${ECHO_T}$have_mme" >&6; }
20647        # Set up files for the audio library
20648        if test x$have_mme = xyes; then
20649            cat >>confdefs.h <<\_ACEOF
20650#define SDL_AUDIO_DRIVER_MMEAUDIO 1
20651_ACEOF
20652
20653            SOURCES="$SOURCES $srcdir/src/audio/mme/*.c"
20654            EXTRA_CFLAGS="$EXTRA_CFLAGS $MME_CFLAGS"
20655            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MME_LIBS"
20656            have_audio=yes
20657        fi
20658    fi
20659}
20660
20661CheckESD()
20662{
20663    # Check whether --enable-esd was given.
20664if test "${enable_esd+set}" = set; then
20665  enableval=$enable_esd;
20666else
20667  enable_esd=yes
20668fi
20669
20670    if test x$enable_audio = xyes -a x$enable_esd = xyes; then
20671
20672# Check whether --with-esd-prefix was given.
20673if test "${with_esd_prefix+set}" = set; then
20674  withval=$with_esd_prefix; esd_prefix="$withval"
20675else
20676  esd_prefix=""
20677fi
20678
20679
20680# Check whether --with-esd-exec-prefix was given.
20681if test "${with_esd_exec_prefix+set}" = set; then
20682  withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
20683else
20684  esd_exec_prefix=""
20685fi
20686
20687# Check whether --enable-esdtest was given.
20688if test "${enable_esdtest+set}" = set; then
20689  enableval=$enable_esdtest;
20690else
20691  enable_esdtest=yes
20692fi
20693
20694
20695  if test x$esd_exec_prefix != x ; then
20696     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
20697     if test x${ESD_CONFIG+set} != xset ; then
20698        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
20699     fi
20700  fi
20701  if test x$esd_prefix != x ; then
20702     esd_args="$esd_args --prefix=$esd_prefix"
20703     if test x${ESD_CONFIG+set} != xset ; then
20704        ESD_CONFIG=$esd_prefix/bin/esd-config
20705     fi
20706  fi
20707
20708  # Extract the first word of "esd-config", so it can be a program name with args.
20709set dummy esd-config; ac_word=$2
20710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20712if test "${ac_cv_path_ESD_CONFIG+set}" = set; then
20713  echo $ECHO_N "(cached) $ECHO_C" >&6
20714else
20715  case $ESD_CONFIG in
20716  [\\/]* | ?:[\\/]*)
20717  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
20718  ;;
20719  *)
20720  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20721for as_dir in $PATH
20722do
20723  IFS=$as_save_IFS
20724  test -z "$as_dir" && as_dir=.
20725  for ac_exec_ext in '' $ac_executable_extensions; do
20726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20727    ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20729    break 2
20730  fi
20731done
20732done
20733IFS=$as_save_IFS
20734
20735  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
20736  ;;
20737esac
20738fi
20739ESD_CONFIG=$ac_cv_path_ESD_CONFIG
20740if test -n "$ESD_CONFIG"; then
20741  { echo "$as_me:$LINENO: result: $ESD_CONFIG" >&5
20742echo "${ECHO_T}$ESD_CONFIG" >&6; }
20743else
20744  { echo "$as_me:$LINENO: result: no" >&5
20745echo "${ECHO_T}no" >&6; }
20746fi
20747
20748
20749  min_esd_version=0.2.8
20750  { echo "$as_me:$LINENO: checking for ESD - version >= $min_esd_version" >&5
20751echo $ECHO_N "checking for ESD - version >= $min_esd_version... $ECHO_C" >&6; }
20752  no_esd=""
20753  if test "$ESD_CONFIG" = "no" ; then
20754    no_esd=yes
20755  else
20756    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
20757    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
20758
20759    esd_major_version=`$ESD_CONFIG $esd_args --version | \
20760           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20761    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
20762           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20763    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
20764           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20765    if test "x$enable_esdtest" = "xyes" ; then
20766      ac_save_CFLAGS="$CFLAGS"
20767      ac_save_LIBS="$LIBS"
20768      CFLAGS="$CFLAGS $ESD_CFLAGS"
20769      LIBS="$LIBS $ESD_LIBS"
20770      rm -f conf.esdtest
20771      if test "$cross_compiling" = yes; then
20772  echo $ac_n "cross compiling; assumed OK... $ac_c"
20773else
20774  cat >conftest.$ac_ext <<_ACEOF
20775/* confdefs.h.  */
20776_ACEOF
20777cat confdefs.h >>conftest.$ac_ext
20778cat >>conftest.$ac_ext <<_ACEOF
20779/* end confdefs.h.  */
20780
20781#include <stdio.h>
20782#include <stdlib.h>
20783#include <string.h>
20784#include <esd.h>
20785
20786char*
20787my_strdup (char *str)
20788{
20789  char *new_str;
20790
20791  if (str)
20792    {
20793      new_str = malloc ((strlen (str) + 1) * sizeof(char));
20794      strcpy (new_str, str);
20795    }
20796  else
20797    new_str = NULL;
20798
20799  return new_str;
20800}
20801
20802int main ()
20803{
20804  int major, minor, micro;
20805  char *tmp_version;
20806
20807  system ("touch conf.esdtest");
20808
20809  /* HP/UX 9 (%@#!) writes to sscanf strings */
20810  tmp_version = my_strdup("$min_esd_version");
20811  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20812     printf("%s, bad version string\n", "$min_esd_version");
20813     exit(1);
20814   }
20815
20816   if (($esd_major_version > major) ||
20817      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
20818      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
20819    {
20820      return 0;
20821    }
20822  else
20823    {
20824      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
20825      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
20826      printf("*** best to upgrade to the required version.\n");
20827      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
20828      printf("*** to point to the correct copy of esd-config, and remove the file\n");
20829      printf("*** config.cache before re-running configure\n");
20830      return 1;
20831    }
20832}
20833
20834
20835_ACEOF
20836rm -f conftest$ac_exeext
20837if { (ac_try="$ac_link"
20838case "(($ac_try" in
20839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840  *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843  (eval "$ac_link") 2>&5
20844  ac_status=$?
20845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20847  { (case "(($ac_try" in
20848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849  *) ac_try_echo=$ac_try;;
20850esac
20851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852  (eval "$ac_try") 2>&5
20853  ac_status=$?
20854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855  (exit $ac_status); }; }; then
20856  :
20857else
20858  echo "$as_me: program exited with status $ac_status" >&5
20859echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862( exit $ac_status )
20863no_esd=yes
20864fi
20865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20866fi
20867
20868
20869       CFLAGS="$ac_save_CFLAGS"
20870       LIBS="$ac_save_LIBS"
20871     fi
20872  fi
20873  if test "x$no_esd" = x ; then
20874     { echo "$as_me:$LINENO: result: yes" >&5
20875echo "${ECHO_T}yes" >&6; }
20876     have_esd=yes
20877  else
20878     { echo "$as_me:$LINENO: result: no" >&5
20879echo "${ECHO_T}no" >&6; }
20880     if test "$ESD_CONFIG" = "no" ; then
20881       echo "*** The esd-config script installed by ESD could not be found"
20882       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
20883       echo "*** your path, or set the ESD_CONFIG environment variable to the"
20884       echo "*** full path to esd-config."
20885     else
20886       if test -f conf.esdtest ; then
20887        :
20888       else
20889          echo "*** Could not run ESD test program, checking why..."
20890          CFLAGS="$CFLAGS $ESD_CFLAGS"
20891          LIBS="$LIBS $ESD_LIBS"
20892          cat >conftest.$ac_ext <<_ACEOF
20893/* confdefs.h.  */
20894_ACEOF
20895cat confdefs.h >>conftest.$ac_ext
20896cat >>conftest.$ac_ext <<_ACEOF
20897/* end confdefs.h.  */
20898
20899#include <stdio.h>
20900#include <esd.h>
20901
20902int
20903main ()
20904{
20905 return 0;
20906  ;
20907  return 0;
20908}
20909_ACEOF
20910rm -f conftest.$ac_objext conftest$ac_exeext
20911if { (ac_try="$ac_link"
20912case "(($ac_try" in
20913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914  *) ac_try_echo=$ac_try;;
20915esac
20916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917  (eval "$ac_link") 2>conftest.er1
20918  ac_status=$?
20919  grep -v '^ *+' conftest.er1 >conftest.err
20920  rm -f conftest.er1
20921  cat conftest.err >&5
20922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923  (exit $ac_status); } && {
20924	 test -z "$ac_c_werror_flag" ||
20925	 test ! -s conftest.err
20926       } && test -s conftest$ac_exeext &&
20927       $as_test_x conftest$ac_exeext; then
20928   echo "*** The test program compiled, but did not run. This usually means"
20929          echo "*** that the run-time linker is not finding ESD or finding the wrong"
20930          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
20931          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20932          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20933          echo "*** is required on your system"
20934	  echo "***"
20935          echo "*** If you have an old version installed, it is best to remove it, although"
20936          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20937else
20938  echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941	 echo "*** The test program failed to compile or link. See the file config.log for the"
20942          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
20943          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
20944          echo "*** may want to edit the esd-config script: $ESD_CONFIG"
20945fi
20946
20947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948      conftest$ac_exeext conftest.$ac_ext
20949          CFLAGS="$ac_save_CFLAGS"
20950          LIBS="$ac_save_LIBS"
20951       fi
20952     fi
20953     ESD_CFLAGS=""
20954     ESD_LIBS=""
20955     have_esd=no
20956  fi
20957
20958
20959  rm -f conf.esdtest
20960
20961        if test x$have_esd = xyes; then
20962            # Check whether --enable-esd-shared was given.
20963if test "${enable_esd_shared+set}" = set; then
20964  enableval=$enable_esd_shared;
20965else
20966  enable_esd_shared=yes
20967fi
20968
20969            esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
20970
20971            cat >>confdefs.h <<\_ACEOF
20972#define SDL_AUDIO_DRIVER_ESD 1
20973_ACEOF
20974
20975            SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
20976            EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
20977            if test x$have_loadso != xyes && \
20978               test x$enable_esd_shared = xyes; then
20979                { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
20980echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
20981            fi
20982            if test x$have_loadso = xyes && \
20983               test x$enable_esd_shared = xyes && test x$esd_lib != x; then
20984                echo "-- dynamic libesd -> $esd_lib"
20985                cat >>confdefs.h <<_ACEOF
20986#define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
20987_ACEOF
20988
20989            else
20990                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
20991            fi
20992            have_audio=yes
20993        fi
20994    fi
20995}
20996
20997CheckSndio()
20998{
20999if test "x${enable_sndio}" = "xyes"; then :
21000  SOURCES="$SOURCES $srcdir/src/audio/sndio/SDL_sndioaudio.c"
21001  EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_AUDIO_DRIVER_SNDIO=1"
21002  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsndio"
21003  have_audio=yes
21004fi
21005}
21006
21007CheckPulseAudio()
21008{
21009    # Check whether --enable-pulseaudio was given.
21010if test "${enable_pulseaudio+set}" = set; then
21011  enableval=$enable_pulseaudio;
21012else
21013  enable_pulseaudio=yes
21014fi
21015
21016    if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
21017        audio_pulse=no
21018
21019        PULSE_REQUIRED_VERSION=0.9
21020
21021        # Extract the first word of "pkg-config", so it can be a program name with args.
21022set dummy pkg-config; ac_word=$2
21023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21025if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21026  echo $ECHO_N "(cached) $ECHO_C" >&6
21027else
21028  case $PKG_CONFIG in
21029  [\\/]* | ?:[\\/]*)
21030  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21031  ;;
21032  *)
21033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21034for as_dir in $PATH
21035do
21036  IFS=$as_save_IFS
21037  test -z "$as_dir" && as_dir=.
21038  for ac_exec_ext in '' $ac_executable_extensions; do
21039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21040    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21042    break 2
21043  fi
21044done
21045done
21046IFS=$as_save_IFS
21047
21048  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21049  ;;
21050esac
21051fi
21052PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21053if test -n "$PKG_CONFIG"; then
21054  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21055echo "${ECHO_T}$PKG_CONFIG" >&6; }
21056else
21057  { echo "$as_me:$LINENO: result: no" >&5
21058echo "${ECHO_T}no" >&6; }
21059fi
21060
21061
21062        { echo "$as_me:$LINENO: checking for PulseAudio $PULSE_REQUIRED_VERSION support" >&5
21063echo $ECHO_N "checking for PulseAudio $PULSE_REQUIRED_VERSION support... $ECHO_C" >&6; }
21064        if test x$PKG_CONFIG != xno; then
21065            if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSE_REQUIRED_VERSION libpulse-simple; then
21066                PULSE_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
21067                PULSE_LIBS=`$PKG_CONFIG --libs libpulse-simple`
21068                audio_pulse=yes
21069            fi
21070        fi
21071        { echo "$as_me:$LINENO: result: $audio_pulse" >&5
21072echo "${ECHO_T}$audio_pulse" >&6; }
21073
21074        if test x$audio_pulse = xyes; then
21075            # Check whether --enable-pulseaudio-shared was given.
21076if test "${enable_pulseaudio_shared+set}" = set; then
21077  enableval=$enable_pulseaudio_shared;
21078else
21079  enable_pulseaudio_shared=yes
21080fi
21081
21082            pulse_lib=`find_lib "libpulse-simple.so.*" "$PULSE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21083
21084            cat >>confdefs.h <<\_ACEOF
21085#define SDL_AUDIO_DRIVER_PULSE 1
21086_ACEOF
21087
21088            SOURCES="$SOURCES $srcdir/src/audio/pulse/*.c"
21089            EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSE_CFLAGS"
21090            if test x$have_loadso != xyes && \
21091               test x$enable_pulseaudio_shared = xyes; then
21092                { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
21093echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
21094            fi
21095            if test x$have_loadso = xyes && \
21096               test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
21097                echo "-- dynamic libpulse-simple -> $pulse_lib"
21098                cat >>confdefs.h <<_ACEOF
21099#define SDL_AUDIO_DRIVER_PULSE_DYNAMIC "$pulse_lib"
21100_ACEOF
21101
21102            else
21103                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
21104            fi
21105            have_audio=yes
21106        fi
21107    fi
21108}
21109
21110CheckARTSC()
21111{
21112    # Check whether --enable-arts was given.
21113if test "${enable_arts+set}" = set; then
21114  enableval=$enable_arts;
21115else
21116  enable_arts=yes
21117fi
21118
21119    if test x$enable_audio = xyes -a x$enable_arts = xyes; then
21120        # Extract the first word of "artsc-config", so it can be a program name with args.
21121set dummy artsc-config; ac_word=$2
21122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21124if test "${ac_cv_path_ARTSCONFIG+set}" = set; then
21125  echo $ECHO_N "(cached) $ECHO_C" >&6
21126else
21127  case $ARTSCONFIG in
21128  [\\/]* | ?:[\\/]*)
21129  ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
21130  ;;
21131  *)
21132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21133for as_dir in $PATH
21134do
21135  IFS=$as_save_IFS
21136  test -z "$as_dir" && as_dir=.
21137  for ac_exec_ext in '' $ac_executable_extensions; do
21138  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21139    ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
21140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21141    break 2
21142  fi
21143done
21144done
21145IFS=$as_save_IFS
21146
21147  ;;
21148esac
21149fi
21150ARTSCONFIG=$ac_cv_path_ARTSCONFIG
21151if test -n "$ARTSCONFIG"; then
21152  { echo "$as_me:$LINENO: result: $ARTSCONFIG" >&5
21153echo "${ECHO_T}$ARTSCONFIG" >&6; }
21154else
21155  { echo "$as_me:$LINENO: result: no" >&5
21156echo "${ECHO_T}no" >&6; }
21157fi
21158
21159
21160        if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
21161            : # arts isn't installed
21162        else
21163            ARTS_CFLAGS=`$ARTSCONFIG --cflags`
21164            ARTS_LIBS=`$ARTSCONFIG --libs`
21165            { echo "$as_me:$LINENO: checking for aRts development environment" >&5
21166echo $ECHO_N "checking for aRts development environment... $ECHO_C" >&6; }
21167            audio_arts=no
21168            save_CFLAGS="$CFLAGS"
21169            CFLAGS="$CFLAGS $ARTS_CFLAGS"
21170            cat >conftest.$ac_ext <<_ACEOF
21171/* confdefs.h.  */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h.  */
21176
21177             #include <artsc.h>
21178
21179int
21180main ()
21181{
21182
21183             arts_stream_t stream;
21184
21185  ;
21186  return 0;
21187}
21188_ACEOF
21189rm -f conftest.$ac_objext
21190if { (ac_try="$ac_compile"
21191case "(($ac_try" in
21192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193  *) ac_try_echo=$ac_try;;
21194esac
21195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196  (eval "$ac_compile") 2>conftest.er1
21197  ac_status=$?
21198  grep -v '^ *+' conftest.er1 >conftest.err
21199  rm -f conftest.er1
21200  cat conftest.err >&5
21201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202  (exit $ac_status); } && {
21203	 test -z "$ac_c_werror_flag" ||
21204	 test ! -s conftest.err
21205       } && test -s conftest.$ac_objext; then
21206
21207            audio_arts=yes
21208
21209else
21210  echo "$as_me: failed program was:" >&5
21211sed 's/^/| /' conftest.$ac_ext >&5
21212
21213
21214fi
21215
21216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217            CFLAGS="$save_CFLAGS"
21218            { echo "$as_me:$LINENO: result: $audio_arts" >&5
21219echo "${ECHO_T}$audio_arts" >&6; }
21220            if test x$audio_arts = xyes; then
21221                # Check whether --enable-arts-shared was given.
21222if test "${enable_arts_shared+set}" = set; then
21223  enableval=$enable_arts_shared;
21224else
21225  enable_arts_shared=yes
21226fi
21227
21228                arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21229
21230                cat >>confdefs.h <<\_ACEOF
21231#define SDL_AUDIO_DRIVER_ARTS 1
21232_ACEOF
21233
21234                SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
21235                EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
21236                if test x$have_loadso != xyes && \
21237                   test x$enable_arts_shared = xyes; then
21238                    { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
21239echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
21240                fi
21241                if test x$have_loadso = xyes && \
21242                   test x$enable_arts_shared = xyes && test x$arts_lib != x; then
21243                    echo "-- dynamic libartsc -> $arts_lib"
21244                    cat >>confdefs.h <<_ACEOF
21245#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
21246_ACEOF
21247
21248                else
21249                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
21250                fi
21251                have_audio=yes
21252            fi
21253        fi
21254    fi
21255}
21256
21257CheckNAS()
21258{
21259    # Check whether --enable-nas was given.
21260if test "${enable_nas+set}" = set; then
21261  enableval=$enable_nas;
21262else
21263  enable_nas=yes
21264fi
21265
21266    if test x$enable_audio = xyes -a x$enable_nas = xyes; then
21267        if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21268  { echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21269echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21270if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21271  echo $ECHO_N "(cached) $ECHO_C" >&6
21272fi
21273{ echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21274echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21275else
21276  # Is the header compilable?
21277{ echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
21278echo $ECHO_N "checking audio/audiolib.h usability... $ECHO_C" >&6; }
21279cat >conftest.$ac_ext <<_ACEOF
21280/* confdefs.h.  */
21281_ACEOF
21282cat confdefs.h >>conftest.$ac_ext
21283cat >>conftest.$ac_ext <<_ACEOF
21284/* end confdefs.h.  */
21285$ac_includes_default
21286#include <audio/audiolib.h>
21287_ACEOF
21288rm -f conftest.$ac_objext
21289if { (ac_try="$ac_compile"
21290case "(($ac_try" in
21291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292  *) ac_try_echo=$ac_try;;
21293esac
21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295  (eval "$ac_compile") 2>conftest.er1
21296  ac_status=$?
21297  grep -v '^ *+' conftest.er1 >conftest.err
21298  rm -f conftest.er1
21299  cat conftest.err >&5
21300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301  (exit $ac_status); } && {
21302	 test -z "$ac_c_werror_flag" ||
21303	 test ! -s conftest.err
21304       } && test -s conftest.$ac_objext; then
21305  ac_header_compiler=yes
21306else
21307  echo "$as_me: failed program was:" >&5
21308sed 's/^/| /' conftest.$ac_ext >&5
21309
21310	ac_header_compiler=no
21311fi
21312
21313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21315echo "${ECHO_T}$ac_header_compiler" >&6; }
21316
21317# Is the header present?
21318{ echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
21319echo $ECHO_N "checking audio/audiolib.h presence... $ECHO_C" >&6; }
21320cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h.  */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h.  */
21326#include <audio/audiolib.h>
21327_ACEOF
21328if { (ac_try="$ac_cpp conftest.$ac_ext"
21329case "(($ac_try" in
21330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331  *) ac_try_echo=$ac_try;;
21332esac
21333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21335  ac_status=$?
21336  grep -v '^ *+' conftest.er1 >conftest.err
21337  rm -f conftest.er1
21338  cat conftest.err >&5
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); } >/dev/null && {
21341	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342	 test ! -s conftest.err
21343       }; then
21344  ac_header_preproc=yes
21345else
21346  echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349  ac_header_preproc=no
21350fi
21351
21352rm -f conftest.err conftest.$ac_ext
21353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354echo "${ECHO_T}$ac_header_preproc" >&6; }
21355
21356# So?  What about this header?
21357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21358  yes:no: )
21359    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21360echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
21362echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
21363    ac_header_preproc=yes
21364    ;;
21365  no:yes:* )
21366    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
21367echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
21368    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&5
21369echo "$as_me: WARNING: audio/audiolib.h:     check for missing prerequisite headers?" >&2;}
21370    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
21371echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
21372    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&5
21373echo "$as_me: WARNING: audio/audiolib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21374    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
21375echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
21376    { echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
21377echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
21378
21379    ;;
21380esac
21381{ echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
21382echo $ECHO_N "checking for audio/audiolib.h... $ECHO_C" >&6; }
21383if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
21384  echo $ECHO_N "(cached) $ECHO_C" >&6
21385else
21386  ac_cv_header_audio_audiolib_h=$ac_header_preproc
21387fi
21388{ echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
21389echo "${ECHO_T}$ac_cv_header_audio_audiolib_h" >&6; }
21390
21391fi
21392if test $ac_cv_header_audio_audiolib_h = yes; then
21393  have_nas_hdr=yes
21394fi
21395
21396
21397        { echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
21398echo $ECHO_N "checking for AuOpenServer in -laudio... $ECHO_C" >&6; }
21399if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
21400  echo $ECHO_N "(cached) $ECHO_C" >&6
21401else
21402  ac_check_lib_save_LIBS=$LIBS
21403LIBS="-laudio  $LIBS"
21404cat >conftest.$ac_ext <<_ACEOF
21405/* confdefs.h.  */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h.  */
21410
21411/* Override any GCC internal prototype to avoid an error.
21412   Use char because int might match the return type of a GCC
21413   builtin and then its argument prototype would still apply.  */
21414#ifdef __cplusplus
21415extern "C"
21416#endif
21417char AuOpenServer ();
21418int
21419main ()
21420{
21421return AuOpenServer ();
21422  ;
21423  return 0;
21424}
21425_ACEOF
21426rm -f conftest.$ac_objext conftest$ac_exeext
21427if { (ac_try="$ac_link"
21428case "(($ac_try" in
21429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430  *) ac_try_echo=$ac_try;;
21431esac
21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433  (eval "$ac_link") 2>conftest.er1
21434  ac_status=$?
21435  grep -v '^ *+' conftest.er1 >conftest.err
21436  rm -f conftest.er1
21437  cat conftest.err >&5
21438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439  (exit $ac_status); } && {
21440	 test -z "$ac_c_werror_flag" ||
21441	 test ! -s conftest.err
21442       } && test -s conftest$ac_exeext &&
21443       $as_test_x conftest$ac_exeext; then
21444  ac_cv_lib_audio_AuOpenServer=yes
21445else
21446  echo "$as_me: failed program was:" >&5
21447sed 's/^/| /' conftest.$ac_ext >&5
21448
21449	ac_cv_lib_audio_AuOpenServer=no
21450fi
21451
21452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21453      conftest$ac_exeext conftest.$ac_ext
21454LIBS=$ac_check_lib_save_LIBS
21455fi
21456{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
21457echo "${ECHO_T}$ac_cv_lib_audio_AuOpenServer" >&6; }
21458if test $ac_cv_lib_audio_AuOpenServer = yes; then
21459  have_nas_lib=yes
21460fi
21461
21462
21463        { echo "$as_me:$LINENO: checking for NAS audio support" >&5
21464echo $ECHO_N "checking for NAS audio support... $ECHO_C" >&6; }
21465        have_nas=no
21466
21467        if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
21468            have_nas=yes
21469            NAS_LIBS="-laudio"
21470
21471        elif test -r /usr/X11R6/include/audio/audiolib.h; then
21472            have_nas=yes
21473            NAS_CFLAGS="-I/usr/X11R6/include/"
21474            NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
21475
21476
21477        elif test -r /usr/freeware/include/nas/audiolib.h; then
21478            have_nas=yes
21479            NAS_LIBS="-lnas -lXt"
21480        fi
21481
21482        { echo "$as_me:$LINENO: result: $have_nas" >&5
21483echo "${ECHO_T}$have_nas" >&6; }
21484
21485        if test x$have_nas = xyes; then
21486            # Check whether --enable-nas-shared was given.
21487if test "${enable_nas_shared+set}" = set; then
21488  enableval=$enable_nas_shared;
21489else
21490  enable_nas_shared=yes
21491fi
21492
21493            nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
21494
21495            if test x$have_loadso != xyes && \
21496               test x$enable_nas_shared = xyes; then
21497                { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
21498echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
21499            fi
21500            if test x$have_loadso = xyes && \
21501               test x$enable_nas_shared = xyes && test x$nas_lib != x; then
21502                echo "-- dynamic libaudio -> $nas_lib"
21503                cat >>confdefs.h <<_ACEOF
21504#define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
21505_ACEOF
21506
21507            else
21508                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
21509            fi
21510
21511            cat >>confdefs.h <<\_ACEOF
21512#define SDL_AUDIO_DRIVER_NAS 1
21513_ACEOF
21514
21515            SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
21516            EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
21517            have_audio=yes
21518        fi
21519    fi
21520}
21521
21522CheckDiskAudio()
21523{
21524    # Check whether --enable-diskaudio was given.
21525if test "${enable_diskaudio+set}" = set; then
21526  enableval=$enable_diskaudio;
21527else
21528  enable_diskaudio=yes
21529fi
21530
21531    if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
21532        cat >>confdefs.h <<\_ACEOF
21533#define SDL_AUDIO_DRIVER_DISK 1
21534_ACEOF
21535
21536        SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
21537    fi
21538}
21539
21540CheckDummyAudio()
21541{
21542    # Check whether --enable-dummyaudio was given.
21543if test "${enable_dummyaudio+set}" = set; then
21544  enableval=$enable_dummyaudio;
21545else
21546  enable_dummyaudio=yes
21547fi
21548
21549    if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
21550        cat >>confdefs.h <<\_ACEOF
21551#define SDL_AUDIO_DRIVER_DUMMY 1
21552_ACEOF
21553
21554        SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
21555    fi
21556}
21557
21558CheckAtariAudio()
21559{
21560    # Check whether --enable-mintaudio was given.
21561if test "${enable_mintaudio+set}" = set; then
21562  enableval=$enable_mintaudio;
21563else
21564  enable_mintaudio=yes
21565fi
21566
21567    if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
21568        mintaudio=no
21569        if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21570  { echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21571echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21572if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21573  echo $ECHO_N "(cached) $ECHO_C" >&6
21574fi
21575{ echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21576echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21577else
21578  # Is the header compilable?
21579{ echo "$as_me:$LINENO: checking mint/falcon.h usability" >&5
21580echo $ECHO_N "checking mint/falcon.h usability... $ECHO_C" >&6; }
21581cat >conftest.$ac_ext <<_ACEOF
21582/* confdefs.h.  */
21583_ACEOF
21584cat confdefs.h >>conftest.$ac_ext
21585cat >>conftest.$ac_ext <<_ACEOF
21586/* end confdefs.h.  */
21587$ac_includes_default
21588#include <mint/falcon.h>
21589_ACEOF
21590rm -f conftest.$ac_objext
21591if { (ac_try="$ac_compile"
21592case "(($ac_try" in
21593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594  *) ac_try_echo=$ac_try;;
21595esac
21596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597  (eval "$ac_compile") 2>conftest.er1
21598  ac_status=$?
21599  grep -v '^ *+' conftest.er1 >conftest.err
21600  rm -f conftest.er1
21601  cat conftest.err >&5
21602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603  (exit $ac_status); } && {
21604	 test -z "$ac_c_werror_flag" ||
21605	 test ! -s conftest.err
21606       } && test -s conftest.$ac_objext; then
21607  ac_header_compiler=yes
21608else
21609  echo "$as_me: failed program was:" >&5
21610sed 's/^/| /' conftest.$ac_ext >&5
21611
21612	ac_header_compiler=no
21613fi
21614
21615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21617echo "${ECHO_T}$ac_header_compiler" >&6; }
21618
21619# Is the header present?
21620{ echo "$as_me:$LINENO: checking mint/falcon.h presence" >&5
21621echo $ECHO_N "checking mint/falcon.h presence... $ECHO_C" >&6; }
21622cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h.  */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h.  */
21628#include <mint/falcon.h>
21629_ACEOF
21630if { (ac_try="$ac_cpp conftest.$ac_ext"
21631case "(($ac_try" in
21632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633  *) ac_try_echo=$ac_try;;
21634esac
21635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21637  ac_status=$?
21638  grep -v '^ *+' conftest.er1 >conftest.err
21639  rm -f conftest.er1
21640  cat conftest.err >&5
21641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642  (exit $ac_status); } >/dev/null && {
21643	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21644	 test ! -s conftest.err
21645       }; then
21646  ac_header_preproc=yes
21647else
21648  echo "$as_me: failed program was:" >&5
21649sed 's/^/| /' conftest.$ac_ext >&5
21650
21651  ac_header_preproc=no
21652fi
21653
21654rm -f conftest.err conftest.$ac_ext
21655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21656echo "${ECHO_T}$ac_header_preproc" >&6; }
21657
21658# So?  What about this header?
21659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21660  yes:no: )
21661    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&5
21662echo "$as_me: WARNING: mint/falcon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21663    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the compiler's result" >&5
21664echo "$as_me: WARNING: mint/falcon.h: proceeding with the compiler's result" >&2;}
21665    ac_header_preproc=yes
21666    ;;
21667  no:yes:* )
21668    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: present but cannot be compiled" >&5
21669echo "$as_me: WARNING: mint/falcon.h: present but cannot be compiled" >&2;}
21670    { echo "$as_me:$LINENO: WARNING: mint/falcon.h:     check for missing prerequisite headers?" >&5
21671echo "$as_me: WARNING: mint/falcon.h:     check for missing prerequisite headers?" >&2;}
21672    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: see the Autoconf documentation" >&5
21673echo "$as_me: WARNING: mint/falcon.h: see the Autoconf documentation" >&2;}
21674    { echo "$as_me:$LINENO: WARNING: mint/falcon.h:     section \"Present But Cannot Be Compiled\"" >&5
21675echo "$as_me: WARNING: mint/falcon.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21676    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&5
21677echo "$as_me: WARNING: mint/falcon.h: proceeding with the preprocessor's result" >&2;}
21678    { echo "$as_me:$LINENO: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&5
21679echo "$as_me: WARNING: mint/falcon.h: in the future, the compiler will take precedence" >&2;}
21680
21681    ;;
21682esac
21683{ echo "$as_me:$LINENO: checking for mint/falcon.h" >&5
21684echo $ECHO_N "checking for mint/falcon.h... $ECHO_C" >&6; }
21685if test "${ac_cv_header_mint_falcon_h+set}" = set; then
21686  echo $ECHO_N "(cached) $ECHO_C" >&6
21687else
21688  ac_cv_header_mint_falcon_h=$ac_header_preproc
21689fi
21690{ echo "$as_me:$LINENO: result: $ac_cv_header_mint_falcon_h" >&5
21691echo "${ECHO_T}$ac_cv_header_mint_falcon_h" >&6; }
21692
21693fi
21694if test $ac_cv_header_mint_falcon_h = yes; then
21695  have_mint_falcon_hdr=yes
21696fi
21697
21698
21699        if test x$have_mint_falcon_hdr = xyes; then
21700            mintaudio=yes
21701            cat >>confdefs.h <<\_ACEOF
21702#define SDL_AUDIO_DRIVER_MINT 1
21703_ACEOF
21704
21705            SOURCES="$SOURCES $srcdir/src/audio/mint/*.c"
21706            SOURCES="$SOURCES $srcdir/src/audio/mint/*.S"
21707            have_audio=yes
21708        fi
21709    fi
21710}
21711
21712# NASM is available from: http://nasm.sourceforge.net
21713CheckNASM()
21714{
21715        case $host in
21716        i?86*)
21717            ;;
21718        *)
21719        # Nope, bail early.
21720            return
21721            ;;
21722    esac
21723
21724            { echo "$as_me:$LINENO: checking for void *" >&5
21725echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21726if test "${ac_cv_type_void_p+set}" = set; then
21727  echo $ECHO_N "(cached) $ECHO_C" >&6
21728else
21729  cat >conftest.$ac_ext <<_ACEOF
21730/* confdefs.h.  */
21731_ACEOF
21732cat confdefs.h >>conftest.$ac_ext
21733cat >>conftest.$ac_ext <<_ACEOF
21734/* end confdefs.h.  */
21735$ac_includes_default
21736typedef void * ac__type_new_;
21737int
21738main ()
21739{
21740if ((ac__type_new_ *) 0)
21741  return 0;
21742if (sizeof (ac__type_new_))
21743  return 0;
21744  ;
21745  return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext
21749if { (ac_try="$ac_compile"
21750case "(($ac_try" in
21751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752  *) ac_try_echo=$ac_try;;
21753esac
21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755  (eval "$ac_compile") 2>conftest.er1
21756  ac_status=$?
21757  grep -v '^ *+' conftest.er1 >conftest.err
21758  rm -f conftest.er1
21759  cat conftest.err >&5
21760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761  (exit $ac_status); } && {
21762	 test -z "$ac_c_werror_flag" ||
21763	 test ! -s conftest.err
21764       } && test -s conftest.$ac_objext; then
21765  ac_cv_type_void_p=yes
21766else
21767  echo "$as_me: failed program was:" >&5
21768sed 's/^/| /' conftest.$ac_ext >&5
21769
21770	ac_cv_type_void_p=no
21771fi
21772
21773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774fi
21775{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21776echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21777
21778# The cast to long int works around a bug in the HP C Compiler
21779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781# This bug is HP SR number 8606223364.
21782{ echo "$as_me:$LINENO: checking size of void *" >&5
21783echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21784if test "${ac_cv_sizeof_void_p+set}" = set; then
21785  echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787  if test "$cross_compiling" = yes; then
21788  # Depending upon the size, compute the lo and hi bounds.
21789cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h.  */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h.  */
21795$ac_includes_default
21796   typedef void * ac__type_sizeof_;
21797int
21798main ()
21799{
21800static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21801test_array [0] = 0
21802
21803  ;
21804  return 0;
21805}
21806_ACEOF
21807rm -f conftest.$ac_objext
21808if { (ac_try="$ac_compile"
21809case "(($ac_try" in
21810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811  *) ac_try_echo=$ac_try;;
21812esac
21813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814  (eval "$ac_compile") 2>conftest.er1
21815  ac_status=$?
21816  grep -v '^ *+' conftest.er1 >conftest.err
21817  rm -f conftest.er1
21818  cat conftest.err >&5
21819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820  (exit $ac_status); } && {
21821	 test -z "$ac_c_werror_flag" ||
21822	 test ! -s conftest.err
21823       } && test -s conftest.$ac_objext; then
21824  ac_lo=0 ac_mid=0
21825  while :; do
21826    cat >conftest.$ac_ext <<_ACEOF
21827/* confdefs.h.  */
21828_ACEOF
21829cat confdefs.h >>conftest.$ac_ext
21830cat >>conftest.$ac_ext <<_ACEOF
21831/* end confdefs.h.  */
21832$ac_includes_default
21833   typedef void * ac__type_sizeof_;
21834int
21835main ()
21836{
21837static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21838test_array [0] = 0
21839
21840  ;
21841  return 0;
21842}
21843_ACEOF
21844rm -f conftest.$ac_objext
21845if { (ac_try="$ac_compile"
21846case "(($ac_try" in
21847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848  *) ac_try_echo=$ac_try;;
21849esac
21850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851  (eval "$ac_compile") 2>conftest.er1
21852  ac_status=$?
21853  grep -v '^ *+' conftest.er1 >conftest.err
21854  rm -f conftest.er1
21855  cat conftest.err >&5
21856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857  (exit $ac_status); } && {
21858	 test -z "$ac_c_werror_flag" ||
21859	 test ! -s conftest.err
21860       } && test -s conftest.$ac_objext; then
21861  ac_hi=$ac_mid; break
21862else
21863  echo "$as_me: failed program was:" >&5
21864sed 's/^/| /' conftest.$ac_ext >&5
21865
21866	ac_lo=`expr $ac_mid + 1`
21867			if test $ac_lo -le $ac_mid; then
21868			  ac_lo= ac_hi=
21869			  break
21870			fi
21871			ac_mid=`expr 2 '*' $ac_mid + 1`
21872fi
21873
21874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875  done
21876else
21877  echo "$as_me: failed program was:" >&5
21878sed 's/^/| /' conftest.$ac_ext >&5
21879
21880	cat >conftest.$ac_ext <<_ACEOF
21881/* confdefs.h.  */
21882_ACEOF
21883cat confdefs.h >>conftest.$ac_ext
21884cat >>conftest.$ac_ext <<_ACEOF
21885/* end confdefs.h.  */
21886$ac_includes_default
21887   typedef void * ac__type_sizeof_;
21888int
21889main ()
21890{
21891static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21892test_array [0] = 0
21893
21894  ;
21895  return 0;
21896}
21897_ACEOF
21898rm -f conftest.$ac_objext
21899if { (ac_try="$ac_compile"
21900case "(($ac_try" in
21901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902  *) ac_try_echo=$ac_try;;
21903esac
21904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905  (eval "$ac_compile") 2>conftest.er1
21906  ac_status=$?
21907  grep -v '^ *+' conftest.er1 >conftest.err
21908  rm -f conftest.er1
21909  cat conftest.err >&5
21910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911  (exit $ac_status); } && {
21912	 test -z "$ac_c_werror_flag" ||
21913	 test ! -s conftest.err
21914       } && test -s conftest.$ac_objext; then
21915  ac_hi=-1 ac_mid=-1
21916  while :; do
21917    cat >conftest.$ac_ext <<_ACEOF
21918/* confdefs.h.  */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h.  */
21923$ac_includes_default
21924   typedef void * ac__type_sizeof_;
21925int
21926main ()
21927{
21928static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21929test_array [0] = 0
21930
21931  ;
21932  return 0;
21933}
21934_ACEOF
21935rm -f conftest.$ac_objext
21936if { (ac_try="$ac_compile"
21937case "(($ac_try" in
21938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21939  *) ac_try_echo=$ac_try;;
21940esac
21941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21942  (eval "$ac_compile") 2>conftest.er1
21943  ac_status=$?
21944  grep -v '^ *+' conftest.er1 >conftest.err
21945  rm -f conftest.er1
21946  cat conftest.err >&5
21947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948  (exit $ac_status); } && {
21949	 test -z "$ac_c_werror_flag" ||
21950	 test ! -s conftest.err
21951       } && test -s conftest.$ac_objext; then
21952  ac_lo=$ac_mid; break
21953else
21954  echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
21957	ac_hi=`expr '(' $ac_mid ')' - 1`
21958			if test $ac_mid -le $ac_hi; then
21959			  ac_lo= ac_hi=
21960			  break
21961			fi
21962			ac_mid=`expr 2 '*' $ac_mid`
21963fi
21964
21965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966  done
21967else
21968  echo "$as_me: failed program was:" >&5
21969sed 's/^/| /' conftest.$ac_ext >&5
21970
21971	ac_lo= ac_hi=
21972fi
21973
21974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21975fi
21976
21977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978# Binary search between lo and hi bounds.
21979while test "x$ac_lo" != "x$ac_hi"; do
21980  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21981  cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h.  */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h.  */
21987$ac_includes_default
21988   typedef void * ac__type_sizeof_;
21989int
21990main ()
21991{
21992static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21993test_array [0] = 0
21994
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (ac_try="$ac_compile"
22001case "(($ac_try" in
22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003  *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006  (eval "$ac_compile") 2>conftest.er1
22007  ac_status=$?
22008  grep -v '^ *+' conftest.er1 >conftest.err
22009  rm -f conftest.er1
22010  cat conftest.err >&5
22011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012  (exit $ac_status); } && {
22013	 test -z "$ac_c_werror_flag" ||
22014	 test ! -s conftest.err
22015       } && test -s conftest.$ac_objext; then
22016  ac_hi=$ac_mid
22017else
22018  echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021	ac_lo=`expr '(' $ac_mid ')' + 1`
22022fi
22023
22024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025done
22026case $ac_lo in
22027?*) ac_cv_sizeof_void_p=$ac_lo;;
22028'') if test "$ac_cv_type_void_p" = yes; then
22029     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22030See \`config.log' for more details." >&5
22031echo "$as_me: error: cannot compute sizeof (void *)
22032See \`config.log' for more details." >&2;}
22033   { (exit 77); exit 77; }; }
22034   else
22035     ac_cv_sizeof_void_p=0
22036   fi ;;
22037esac
22038else
22039  cat >conftest.$ac_ext <<_ACEOF
22040/* confdefs.h.  */
22041_ACEOF
22042cat confdefs.h >>conftest.$ac_ext
22043cat >>conftest.$ac_ext <<_ACEOF
22044/* end confdefs.h.  */
22045$ac_includes_default
22046   typedef void * ac__type_sizeof_;
22047static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22048static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22049#include <stdio.h>
22050#include <stdlib.h>
22051int
22052main ()
22053{
22054
22055  FILE *f = fopen ("conftest.val", "w");
22056  if (! f)
22057    return 1;
22058  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22059    {
22060      long int i = longval ();
22061      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22062	return 1;
22063      fprintf (f, "%ld\n", i);
22064    }
22065  else
22066    {
22067      unsigned long int i = ulongval ();
22068      if (i != ((long int) (sizeof (ac__type_sizeof_))))
22069	return 1;
22070      fprintf (f, "%lu\n", i);
22071    }
22072  return ferror (f) || fclose (f) != 0;
22073
22074  ;
22075  return 0;
22076}
22077_ACEOF
22078rm -f conftest$ac_exeext
22079if { (ac_try="$ac_link"
22080case "(($ac_try" in
22081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082  *) ac_try_echo=$ac_try;;
22083esac
22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085  (eval "$ac_link") 2>&5
22086  ac_status=$?
22087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089  { (case "(($ac_try" in
22090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091  *) ac_try_echo=$ac_try;;
22092esac
22093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094  (eval "$ac_try") 2>&5
22095  ac_status=$?
22096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); }; }; then
22098  ac_cv_sizeof_void_p=`cat conftest.val`
22099else
22100  echo "$as_me: program exited with status $ac_status" >&5
22101echo "$as_me: failed program was:" >&5
22102sed 's/^/| /' conftest.$ac_ext >&5
22103
22104( exit $ac_status )
22105if test "$ac_cv_type_void_p" = yes; then
22106     { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22107See \`config.log' for more details." >&5
22108echo "$as_me: error: cannot compute sizeof (void *)
22109See \`config.log' for more details." >&2;}
22110   { (exit 77); exit 77; }; }
22111   else
22112     ac_cv_sizeof_void_p=0
22113   fi
22114fi
22115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22116fi
22117rm -f conftest.val
22118fi
22119{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22120echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22121
22122
22123
22124cat >>confdefs.h <<_ACEOF
22125#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22126_ACEOF
22127
22128
22129    if test x$ac_cv_sizeof_void_p != x4; then
22130        return
22131    fi
22132
22133        # Check whether --enable-nasm was given.
22134if test "${enable_nasm+set}" = set; then
22135  enableval=$enable_nasm;
22136else
22137  enable_nasm=yes
22138fi
22139
22140    if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_nasm = xyes; then
22141        CompileNASM()
22142        {
22143            # Usage: CompileNASM <filename>
22144            { echo "$as_me:$LINENO: checking to see if $NASM supports $1" >&5
22145echo $ECHO_N "checking to see if $NASM supports $1... $ECHO_C" >&6; }
22146            if $NASM $NASMFLAGS $1 -o $1.o >&5 2>&1; then
22147                CompileNASM_ret="yes"
22148            else
22149                CompileNASM_ret="no"
22150            fi
22151            rm -f $1 $1.o
22152            { echo "$as_me:$LINENO: result: $CompileNASM_ret" >&5
22153echo "${ECHO_T}$CompileNASM_ret" >&6; }
22154            test "$CompileNASM_ret" = "yes"
22155        }
22156
22157        if test x"$NASMFLAGS" = x; then
22158            case $ARCH in
22159              win32)
22160                  NASMFLAGS="-f win32"
22161                  ;;
22162              macosx)
22163                  NASMFLAGS="-f macho"
22164                  ;;
22165              *)
22166                  NASMFLAGS="-f elf32"
22167                  ;;
22168            esac
22169        fi
22170
22171        # Extract the first word of "nasm", so it can be a program name with args.
22172set dummy nasm; ac_word=$2
22173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22175if test "${ac_cv_path_NASM+set}" = set; then
22176  echo $ECHO_N "(cached) $ECHO_C" >&6
22177else
22178  case $NASM in
22179  [\\/]* | ?:[\\/]*)
22180  ac_cv_path_NASM="$NASM" # Let the user override the test with a path.
22181  ;;
22182  *)
22183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22184for as_dir in $PATH
22185do
22186  IFS=$as_save_IFS
22187  test -z "$as_dir" && as_dir=.
22188  for ac_exec_ext in '' $ac_executable_extensions; do
22189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22190    ac_cv_path_NASM="$as_dir/$ac_word$ac_exec_ext"
22191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22192    break 2
22193  fi
22194done
22195done
22196IFS=$as_save_IFS
22197
22198  ;;
22199esac
22200fi
22201NASM=$ac_cv_path_NASM
22202if test -n "$NASM"; then
22203  { echo "$as_me:$LINENO: result: $NASM" >&5
22204echo "${ECHO_T}$NASM" >&6; }
22205else
22206  { echo "$as_me:$LINENO: result: no" >&5
22207echo "${ECHO_T}no" >&6; }
22208fi
22209
22210
22211        echo "%ifidn __OUTPUT_FORMAT__,elf32" > unquoted-sections
22212        echo "section .note.GNU-stack noalloc noexec nowrite progbits" >> unquoted-sections
22213        echo "%endif" >> unquoted-sections
22214        CompileNASM unquoted-sections || NASM=""
22215
22216        if test "x$NASM" != x -a "x$NASM" != x'"$NASM"'; then
22217            cat >>confdefs.h <<\_ACEOF
22218#define SDL_HERMES_BLITTERS 1
22219_ACEOF
22220
22221            SOURCES="$SOURCES $srcdir/src/hermes/*.asm"
22222            NASMFLAGS="$NASMFLAGS -I $srcdir/src/hermes/"
22223
22224                        echo "GLOBAL _bar:function hidden" > symbol-visibility
22225            echo "_bar:" >> symbol-visibility
22226            CompileNASM symbol-visibility && NASMFLAGS="$NASMFLAGS -DHIDDEN_VISIBILITY"
22227
22228
22229
22230
22231            case "$host" in
22232                # this line is needed for QNX, because it's not defined the __ELF__
22233                *-*-qnx*)
22234                     EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22235                *-*-solaris*)
22236                     EXTRA_CFLAGS="$EXTRA_CFLAGS -D__ELF__";;
22237            esac
22238        fi
22239    fi
22240}
22241
22242CheckAltivec()
22243{
22244    # Check whether --enable-altivec was given.
22245if test "${enable_altivec+set}" = set; then
22246  enableval=$enable_altivec;
22247else
22248  enable_altivec=yes
22249fi
22250
22251    if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_altivec = xyes; then
22252        save_CFLAGS="$CFLAGS"
22253        have_gcc_altivec=no
22254        have_altivec_h_hdr=no
22255        altivec_CFLAGS="-maltivec"
22256        CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22257
22258        { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -maltivec option" >&5
22259echo $ECHO_N "checking for Altivec with GCC altivec.h and -maltivec option... $ECHO_C" >&6; }
22260        cat >conftest.$ac_ext <<_ACEOF
22261/* confdefs.h.  */
22262_ACEOF
22263cat confdefs.h >>conftest.$ac_ext
22264cat >>conftest.$ac_ext <<_ACEOF
22265/* end confdefs.h.  */
22266
22267        #include <altivec.h>
22268        vector unsigned int vzero() {
22269            return vec_splat_u32(0);
22270        }
22271
22272int
22273main ()
22274{
22275
22276
22277  ;
22278  return 0;
22279}
22280_ACEOF
22281rm -f conftest.$ac_objext
22282if { (ac_try="$ac_compile"
22283case "(($ac_try" in
22284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22285  *) ac_try_echo=$ac_try;;
22286esac
22287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22288  (eval "$ac_compile") 2>conftest.er1
22289  ac_status=$?
22290  grep -v '^ *+' conftest.er1 >conftest.err
22291  rm -f conftest.er1
22292  cat conftest.err >&5
22293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294  (exit $ac_status); } && {
22295	 test -z "$ac_c_werror_flag" ||
22296	 test ! -s conftest.err
22297       } && test -s conftest.$ac_objext; then
22298
22299        have_gcc_altivec=yes
22300        have_altivec_h_hdr=yes
22301
22302else
22303  echo "$as_me: failed program was:" >&5
22304sed 's/^/| /' conftest.$ac_ext >&5
22305
22306
22307fi
22308
22309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310        { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22311echo "${ECHO_T}$have_gcc_altivec" >&6; }
22312
22313        if test x$have_gcc_altivec = xno; then
22314            { echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
22315echo $ECHO_N "checking for Altivec with GCC -maltivec option... $ECHO_C" >&6; }
22316            cat >conftest.$ac_ext <<_ACEOF
22317/* confdefs.h.  */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h.  */
22322
22323            vector unsigned int vzero() {
22324                return vec_splat_u32(0);
22325            }
22326
22327int
22328main ()
22329{
22330
22331
22332  ;
22333  return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext
22337if { (ac_try="$ac_compile"
22338case "(($ac_try" in
22339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340  *) ac_try_echo=$ac_try;;
22341esac
22342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343  (eval "$ac_compile") 2>conftest.er1
22344  ac_status=$?
22345  grep -v '^ *+' conftest.er1 >conftest.err
22346  rm -f conftest.er1
22347  cat conftest.err >&5
22348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349  (exit $ac_status); } && {
22350	 test -z "$ac_c_werror_flag" ||
22351	 test ! -s conftest.err
22352       } && test -s conftest.$ac_objext; then
22353
22354            have_gcc_altivec=yes
22355
22356else
22357  echo "$as_me: failed program was:" >&5
22358sed 's/^/| /' conftest.$ac_ext >&5
22359
22360
22361fi
22362
22363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364            { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22365echo "${ECHO_T}$have_gcc_altivec" >&6; }
22366        fi
22367
22368        if test x$have_gcc_altivec = xno; then
22369            { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -faltivec option" >&5
22370echo $ECHO_N "checking for Altivec with GCC altivec.h and -faltivec option... $ECHO_C" >&6; }
22371            altivec_CFLAGS="-faltivec"
22372            CFLAGS="$save_CFLAGS $altivec_CFLAGS"
22373            cat >conftest.$ac_ext <<_ACEOF
22374/* confdefs.h.  */
22375_ACEOF
22376cat confdefs.h >>conftest.$ac_ext
22377cat >>conftest.$ac_ext <<_ACEOF
22378/* end confdefs.h.  */
22379
22380            #include <altivec.h>
22381            vector unsigned int vzero() {
22382                return vec_splat_u32(0);
22383            }
22384
22385int
22386main ()
22387{
22388
22389
22390  ;
22391  return 0;
22392}
22393_ACEOF
22394rm -f conftest.$ac_objext
22395if { (ac_try="$ac_compile"
22396case "(($ac_try" in
22397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398  *) ac_try_echo=$ac_try;;
22399esac
22400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401  (eval "$ac_compile") 2>conftest.er1
22402  ac_status=$?
22403  grep -v '^ *+' conftest.er1 >conftest.err
22404  rm -f conftest.er1
22405  cat conftest.err >&5
22406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407  (exit $ac_status); } && {
22408	 test -z "$ac_c_werror_flag" ||
22409	 test ! -s conftest.err
22410       } && test -s conftest.$ac_objext; then
22411
22412            have_gcc_altivec=yes
22413            have_altivec_h_hdr=yes
22414
22415else
22416  echo "$as_me: failed program was:" >&5
22417sed 's/^/| /' conftest.$ac_ext >&5
22418
22419
22420fi
22421
22422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423            { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22424echo "${ECHO_T}$have_gcc_altivec" >&6; }
22425	fi
22426
22427        if test x$have_gcc_altivec = xno; then
22428            { echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
22429echo $ECHO_N "checking for Altivec with GCC -faltivec option... $ECHO_C" >&6; }
22430            cat >conftest.$ac_ext <<_ACEOF
22431/* confdefs.h.  */
22432_ACEOF
22433cat confdefs.h >>conftest.$ac_ext
22434cat >>conftest.$ac_ext <<_ACEOF
22435/* end confdefs.h.  */
22436
22437            vector unsigned int vzero() {
22438                return vec_splat_u32(0);
22439            }
22440
22441int
22442main ()
22443{
22444
22445
22446  ;
22447  return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext
22451if { (ac_try="$ac_compile"
22452case "(($ac_try" in
22453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454  *) ac_try_echo=$ac_try;;
22455esac
22456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457  (eval "$ac_compile") 2>conftest.er1
22458  ac_status=$?
22459  grep -v '^ *+' conftest.er1 >conftest.err
22460  rm -f conftest.er1
22461  cat conftest.err >&5
22462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463  (exit $ac_status); } && {
22464	 test -z "$ac_c_werror_flag" ||
22465	 test ! -s conftest.err
22466       } && test -s conftest.$ac_objext; then
22467
22468            have_gcc_altivec=yes
22469
22470else
22471  echo "$as_me: failed program was:" >&5
22472sed 's/^/| /' conftest.$ac_ext >&5
22473
22474
22475fi
22476
22477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478            { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
22479echo "${ECHO_T}$have_gcc_altivec" >&6; }
22480        fi
22481        CFLAGS="$save_CFLAGS"
22482
22483        if test x$have_gcc_altivec = xyes; then
22484            cat >>confdefs.h <<\_ACEOF
22485#define SDL_ALTIVEC_BLITTERS 1
22486_ACEOF
22487
22488            if test x$have_altivec_h_hdr = xyes; then
22489              cat >>confdefs.h <<\_ACEOF
22490#define HAVE_ALTIVEC_H 1
22491_ACEOF
22492
22493            fi
22494            EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
22495        fi
22496    fi
22497}
22498
22499CheckVisibilityHidden()
22500{
22501    { echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
22502echo $ECHO_N "checking for GCC -fvisibility=hidden option... $ECHO_C" >&6; }
22503    have_gcc_fvisibility=no
22504
22505    visibility_CFLAGS="-fvisibility=hidden"
22506    save_CFLAGS="$CFLAGS"
22507    CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
22508    cat >conftest.$ac_ext <<_ACEOF
22509/* confdefs.h.  */
22510_ACEOF
22511cat confdefs.h >>conftest.$ac_ext
22512cat >>conftest.$ac_ext <<_ACEOF
22513/* end confdefs.h.  */
22514
22515    #if !defined(__GNUC__) || __GNUC__ < 4
22516    #error SDL only uses visibility attributes in GCC 4 or newer
22517    #endif
22518
22519int
22520main ()
22521{
22522
22523
22524  ;
22525  return 0;
22526}
22527_ACEOF
22528rm -f conftest.$ac_objext
22529if { (ac_try="$ac_compile"
22530case "(($ac_try" in
22531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532  *) ac_try_echo=$ac_try;;
22533esac
22534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535  (eval "$ac_compile") 2>conftest.er1
22536  ac_status=$?
22537  grep -v '^ *+' conftest.er1 >conftest.err
22538  rm -f conftest.er1
22539  cat conftest.err >&5
22540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541  (exit $ac_status); } && {
22542	 test -z "$ac_c_werror_flag" ||
22543	 test ! -s conftest.err
22544       } && test -s conftest.$ac_objext; then
22545
22546    have_gcc_fvisibility=yes
22547
22548else
22549  echo "$as_me: failed program was:" >&5
22550sed 's/^/| /' conftest.$ac_ext >&5
22551
22552
22553fi
22554
22555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22556    { echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
22557echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
22558    CFLAGS="$save_CFLAGS"
22559
22560    if test x$have_gcc_fvisibility = xyes; then
22561        EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
22562    fi
22563}
22564
22565CheckWarnAll()
22566{
22567    { echo "$as_me:$LINENO: checking for GCC -Wall option" >&5
22568echo $ECHO_N "checking for GCC -Wall option... $ECHO_C" >&6; }
22569    have_gcc_Wall=no
22570
22571    save_CFLAGS="$CFLAGS"
22572    CFLAGS="$save_CFLAGS -Wall"
22573    cat >conftest.$ac_ext <<_ACEOF
22574/* confdefs.h.  */
22575_ACEOF
22576cat confdefs.h >>conftest.$ac_ext
22577cat >>conftest.$ac_ext <<_ACEOF
22578/* end confdefs.h.  */
22579
22580    int x = 0;
22581
22582int
22583main ()
22584{
22585
22586
22587  ;
22588  return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext
22592if { (ac_try="$ac_compile"
22593case "(($ac_try" in
22594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595  *) ac_try_echo=$ac_try;;
22596esac
22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598  (eval "$ac_compile") 2>conftest.er1
22599  ac_status=$?
22600  grep -v '^ *+' conftest.er1 >conftest.err
22601  rm -f conftest.er1
22602  cat conftest.err >&5
22603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604  (exit $ac_status); } && {
22605	 test -z "$ac_c_werror_flag" ||
22606	 test ! -s conftest.err
22607       } && test -s conftest.$ac_objext; then
22608
22609    have_gcc_Wall=yes
22610
22611else
22612  echo "$as_me: failed program was:" >&5
22613sed 's/^/| /' conftest.$ac_ext >&5
22614
22615
22616fi
22617
22618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619    { echo "$as_me:$LINENO: result: $have_gcc_Wall" >&5
22620echo "${ECHO_T}$have_gcc_Wall" >&6; }
22621    CFLAGS="$save_CFLAGS"
22622
22623    if test x$have_gcc_Wall = xyes; then
22624        EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
22625
22626                { echo "$as_me:$LINENO: checking for necessary GCC -Wno-multichar option" >&5
22627echo $ECHO_N "checking for necessary GCC -Wno-multichar option... $ECHO_C" >&6; }
22628        need_gcc_Wno_multichar=no
22629        case "$host" in
22630            *-*-beos* | *-*-haiku*)
22631                need_gcc_Wno_multichar=yes
22632                ;;
22633        esac
22634        { echo "$as_me:$LINENO: result: $need_gcc_Wno_multichar" >&5
22635echo "${ECHO_T}$need_gcc_Wno_multichar" >&6; }
22636        if test x$need_gcc_Wno_multichar = xyes; then
22637            EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
22638        fi
22639    fi
22640}
22641
22642
22643CheckIPod()
22644{
22645    # Check whether --enable-ipod was given.
22646if test "${enable_ipod+set}" = set; then
22647  enableval=$enable_ipod;
22648else
22649  enable_ipod=no
22650fi
22651
22652
22653    if test x$enable_ipod = xyes; then
22654        EXTRA_CFLAGS="$EXTRA_CFLAGS -DIPOD"
22655        cat >>confdefs.h <<\_ACEOF
22656#define SDL_VIDEO_DRIVER_IPOD 1
22657_ACEOF
22658
22659        SOURCES="$SOURCES $srcdir/src/video/ipod/*.c"
22660    fi
22661}
22662
22663CheckNANOX()
22664{
22665    # Check whether --enable-video-nanox was given.
22666if test "${enable_video_nanox+set}" = set; then
22667  enableval=$enable_video_nanox;
22668else
22669  enable_video_nanox=no
22670fi
22671
22672
22673    if test x$enable_video = xyes -a x$enable_video_nanox = xyes; then
22674        # Check whether --enable-nanox-debug was given.
22675if test "${enable_nanox_debug+set}" = set; then
22676  enableval=$enable_nanox_debug;
22677else
22678  enable_nanox_debug=no
22679fi
22680
22681        if test x$enable_nanox_debug = xyes; then
22682            EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DEBUG"
22683        fi
22684
22685        # Check whether --enable-nanox-share-memory was given.
22686if test "${enable_nanox_share_memory+set}" = set; then
22687  enableval=$enable_nanox_share_memory;
22688else
22689  enable_nanox_share_memory=no
22690fi
22691
22692        if test x$enable_nanox_share_memory = xyes; then
22693            EXTRA_CFLAGS="$EXTRA_CFLAGS -DNANOX_SHARE_MEMORY"
22694        fi
22695
22696        # Check whether --enable-nanox_direct_fb was given.
22697if test "${enable_nanox_direct_fb+set}" = set; then
22698  enableval=$enable_nanox_direct_fb;
22699else
22700  enable_nanox_direct_fb=no
22701fi
22702
22703        if test x$enable_nanox_direct_fb = xyes; then
22704            EXTRA_CFLAGS="$EXTRA_CFLAGS -DENABLE_NANOX_DIRECT_FB"
22705        fi
22706
22707        cat >>confdefs.h <<\_ACEOF
22708#define SDL_VIDEO_DRIVER_NANOX 1
22709_ACEOF
22710
22711        SOURCES="$SOURCES $srcdir/src/video/nanox/*.c"
22712        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lnano-X"
22713        have_video=yes
22714    fi
22715}
22716
22717CheckX11()
22718{
22719    # Check whether --enable-video-x11 was given.
22720if test "${enable_video_x11+set}" = set; then
22721  enableval=$enable_video_x11;
22722else
22723  enable_video_x11=yes
22724fi
22725
22726    if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
22727        case "$host" in
22728            *-*-darwin*)
22729                # This isn't necessary for X11, but fixes GLX detection
22730                if test "x$x_includes" = xNONE && test "x$x_libraries" = xNONE; then
22731                    x_includes="/usr/X11R6/include"
22732                    x_libraries="/usr/X11R6/lib"
22733                fi
22734                ;;
22735        esac
22736        { echo "$as_me:$LINENO: checking for X" >&5
22737echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22738
22739
22740# Check whether --with-x was given.
22741if test "${with_x+set}" = set; then
22742  withval=$with_x;
22743fi
22744
22745# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22746if test "x$with_x" = xno; then
22747  # The user explicitly disabled X.
22748  have_x=disabled
22749else
22750  case $x_includes,$x_libraries in #(
22751    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22752echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22753   { (exit 1); exit 1; }; };; #(
22754    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22755  echo $ECHO_N "(cached) $ECHO_C" >&6
22756else
22757  # One or both of the vars are not set, and there is no cached value.
22758ac_x_includes=no ac_x_libraries=no
22759rm -f -r conftest.dir
22760if mkdir conftest.dir; then
22761  cd conftest.dir
22762  cat >Imakefile <<'_ACEOF'
22763incroot:
22764	@echo incroot='${INCROOT}'
22765usrlibdir:
22766	@echo usrlibdir='${USRLIBDIR}'
22767libdir:
22768	@echo libdir='${LIBDIR}'
22769_ACEOF
22770  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22771    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22772    for ac_var in incroot usrlibdir libdir; do
22773      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22774    done
22775    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22776    for ac_extension in a so sl dylib la dll; do
22777      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22778	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
22779	ac_im_usrlibdir=$ac_im_libdir; break
22780      fi
22781    done
22782    # Screen out bogus values from the imake configuration.  They are
22783    # bogus both because they are the default anyway, and because
22784    # using them would break gcc on systems where it needs fixed includes.
22785    case $ac_im_incroot in
22786	/usr/include) ac_x_includes= ;;
22787	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22788    esac
22789    case $ac_im_usrlibdir in
22790	/usr/lib | /lib) ;;
22791	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22792    esac
22793  fi
22794  cd ..
22795  rm -f -r conftest.dir
22796fi
22797
22798# Standard set of common directories for X headers.
22799# Check X11 before X11Rn because it is often a symlink to the current release.
22800ac_x_header_dirs='
22801/usr/X11/include
22802/usr/X11R6/include
22803/usr/X11R5/include
22804/usr/X11R4/include
22805
22806/usr/include/X11
22807/usr/include/X11R6
22808/usr/include/X11R5
22809/usr/include/X11R4
22810
22811/usr/local/X11/include
22812/usr/local/X11R6/include
22813/usr/local/X11R5/include
22814/usr/local/X11R4/include
22815
22816/usr/local/include/X11
22817/usr/local/include/X11R6
22818/usr/local/include/X11R5
22819/usr/local/include/X11R4
22820
22821/usr/X386/include
22822/usr/x386/include
22823/usr/XFree86/include/X11
22824
22825/usr/include
22826/usr/local/include
22827/usr/unsupported/include
22828/usr/athena/include
22829/usr/local/x11r5/include
22830/usr/lpp/Xamples/include
22831
22832/usr/openwin/include
22833/usr/openwin/share/include'
22834
22835if test "$ac_x_includes" = no; then
22836  # Guess where to find include files, by looking for Xlib.h.
22837  # First, try using that file with no special directory specified.
22838  cat >conftest.$ac_ext <<_ACEOF
22839/* confdefs.h.  */
22840_ACEOF
22841cat confdefs.h >>conftest.$ac_ext
22842cat >>conftest.$ac_ext <<_ACEOF
22843/* end confdefs.h.  */
22844#include <X11/Xlib.h>
22845_ACEOF
22846if { (ac_try="$ac_cpp conftest.$ac_ext"
22847case "(($ac_try" in
22848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849  *) ac_try_echo=$ac_try;;
22850esac
22851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22853  ac_status=$?
22854  grep -v '^ *+' conftest.er1 >conftest.err
22855  rm -f conftest.er1
22856  cat conftest.err >&5
22857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858  (exit $ac_status); } >/dev/null && {
22859	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22860	 test ! -s conftest.err
22861       }; then
22862  # We can compile using X headers with no special include directory.
22863ac_x_includes=
22864else
22865  echo "$as_me: failed program was:" >&5
22866sed 's/^/| /' conftest.$ac_ext >&5
22867
22868  for ac_dir in $ac_x_header_dirs; do
22869  if test -r "$ac_dir/X11/Xlib.h"; then
22870    ac_x_includes=$ac_dir
22871    break
22872  fi
22873done
22874fi
22875
22876rm -f conftest.err conftest.$ac_ext
22877fi # $ac_x_includes = no
22878
22879if test "$ac_x_libraries" = no; then
22880  # Check for the libraries.
22881  # See if we find them without any special options.
22882  # Don't add to $LIBS permanently.
22883  ac_save_LIBS=$LIBS
22884  LIBS="-lX11 $LIBS"
22885  cat >conftest.$ac_ext <<_ACEOF
22886/* confdefs.h.  */
22887_ACEOF
22888cat confdefs.h >>conftest.$ac_ext
22889cat >>conftest.$ac_ext <<_ACEOF
22890/* end confdefs.h.  */
22891#include <X11/Xlib.h>
22892int
22893main ()
22894{
22895XrmInitialize ()
22896  ;
22897  return 0;
22898}
22899_ACEOF
22900rm -f conftest.$ac_objext conftest$ac_exeext
22901if { (ac_try="$ac_link"
22902case "(($ac_try" in
22903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904  *) ac_try_echo=$ac_try;;
22905esac
22906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22907  (eval "$ac_link") 2>conftest.er1
22908  ac_status=$?
22909  grep -v '^ *+' conftest.er1 >conftest.err
22910  rm -f conftest.er1
22911  cat conftest.err >&5
22912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913  (exit $ac_status); } && {
22914	 test -z "$ac_c_werror_flag" ||
22915	 test ! -s conftest.err
22916       } && test -s conftest$ac_exeext &&
22917       $as_test_x conftest$ac_exeext; then
22918  LIBS=$ac_save_LIBS
22919# We can link X programs with no special library path.
22920ac_x_libraries=
22921else
22922  echo "$as_me: failed program was:" >&5
22923sed 's/^/| /' conftest.$ac_ext >&5
22924
22925	LIBS=$ac_save_LIBS
22926for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22927do
22928  # Don't even attempt the hair of trying to link an X program!
22929  for ac_extension in a so sl dylib la dll; do
22930    if test -r "$ac_dir/libX11.$ac_extension"; then
22931      ac_x_libraries=$ac_dir
22932      break 2
22933    fi
22934  done
22935done
22936fi
22937
22938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22939      conftest$ac_exeext conftest.$ac_ext
22940fi # $ac_x_libraries = no
22941
22942case $ac_x_includes,$ac_x_libraries in #(
22943  no,* | *,no | *\'*)
22944    # Didn't find X, or a directory has "'" in its name.
22945    ac_cv_have_x="have_x=no";; #(
22946  *)
22947    # Record where we found X for the cache.
22948    ac_cv_have_x="have_x=yes\
22949	ac_x_includes='$ac_x_includes'\
22950	ac_x_libraries='$ac_x_libraries'"
22951esac
22952fi
22953;; #(
22954    *) have_x=yes;;
22955  esac
22956  eval "$ac_cv_have_x"
22957fi # $with_x != no
22958
22959if test "$have_x" != yes; then
22960  { echo "$as_me:$LINENO: result: $have_x" >&5
22961echo "${ECHO_T}$have_x" >&6; }
22962  no_x=yes
22963else
22964  # If each of the values was on the command line, it overrides each guess.
22965  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22966  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22967  # Update the cache value to reflect the command line values.
22968  ac_cv_have_x="have_x=yes\
22969	ac_x_includes='$x_includes'\
22970	ac_x_libraries='$x_libraries'"
22971  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22972echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22973fi
22974
22975        if test "$no_x" = yes; then
22976  # Not all programs may use this symbol, but it does not hurt to define it.
22977
22978cat >>confdefs.h <<\_ACEOF
22979#define X_DISPLAY_MISSING 1
22980_ACEOF
22981
22982  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22983else
22984  if test -n "$x_includes"; then
22985    X_CFLAGS="$X_CFLAGS -I$x_includes"
22986  fi
22987
22988  # It would also be nice to do this for all -L options, not just this one.
22989  if test -n "$x_libraries"; then
22990    X_LIBS="$X_LIBS -L$x_libraries"
22991    # For Solaris; some versions of Sun CC require a space after -R and
22992    # others require no space.  Words are not sufficient . . . .
22993    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22994echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22995    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22996    ac_xsave_c_werror_flag=$ac_c_werror_flag
22997    ac_c_werror_flag=yes
22998    cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h.  */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h.  */
23004
23005int
23006main ()
23007{
23008
23009  ;
23010  return 0;
23011}
23012_ACEOF
23013rm -f conftest.$ac_objext conftest$ac_exeext
23014if { (ac_try="$ac_link"
23015case "(($ac_try" in
23016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017  *) ac_try_echo=$ac_try;;
23018esac
23019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020  (eval "$ac_link") 2>conftest.er1
23021  ac_status=$?
23022  grep -v '^ *+' conftest.er1 >conftest.err
23023  rm -f conftest.er1
23024  cat conftest.err >&5
23025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026  (exit $ac_status); } && {
23027	 test -z "$ac_c_werror_flag" ||
23028	 test ! -s conftest.err
23029       } && test -s conftest$ac_exeext &&
23030       $as_test_x conftest$ac_exeext; then
23031  { echo "$as_me:$LINENO: result: no" >&5
23032echo "${ECHO_T}no" >&6; }
23033       X_LIBS="$X_LIBS -R$x_libraries"
23034else
23035  echo "$as_me: failed program was:" >&5
23036sed 's/^/| /' conftest.$ac_ext >&5
23037
23038	LIBS="$ac_xsave_LIBS -R $x_libraries"
23039       cat >conftest.$ac_ext <<_ACEOF
23040/* confdefs.h.  */
23041_ACEOF
23042cat confdefs.h >>conftest.$ac_ext
23043cat >>conftest.$ac_ext <<_ACEOF
23044/* end confdefs.h.  */
23045
23046int
23047main ()
23048{
23049
23050  ;
23051  return 0;
23052}
23053_ACEOF
23054rm -f conftest.$ac_objext conftest$ac_exeext
23055if { (ac_try="$ac_link"
23056case "(($ac_try" in
23057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058  *) ac_try_echo=$ac_try;;
23059esac
23060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061  (eval "$ac_link") 2>conftest.er1
23062  ac_status=$?
23063  grep -v '^ *+' conftest.er1 >conftest.err
23064  rm -f conftest.er1
23065  cat conftest.err >&5
23066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067  (exit $ac_status); } && {
23068	 test -z "$ac_c_werror_flag" ||
23069	 test ! -s conftest.err
23070       } && test -s conftest$ac_exeext &&
23071       $as_test_x conftest$ac_exeext; then
23072  { echo "$as_me:$LINENO: result: yes" >&5
23073echo "${ECHO_T}yes" >&6; }
23074	  X_LIBS="$X_LIBS -R $x_libraries"
23075else
23076  echo "$as_me: failed program was:" >&5
23077sed 's/^/| /' conftest.$ac_ext >&5
23078
23079	{ echo "$as_me:$LINENO: result: neither works" >&5
23080echo "${ECHO_T}neither works" >&6; }
23081fi
23082
23083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23084      conftest$ac_exeext conftest.$ac_ext
23085fi
23086
23087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23088      conftest$ac_exeext conftest.$ac_ext
23089    ac_c_werror_flag=$ac_xsave_c_werror_flag
23090    LIBS=$ac_xsave_LIBS
23091  fi
23092
23093  # Check for system-dependent libraries X programs must link with.
23094  # Do this before checking for the system-independent R6 libraries
23095  # (-lICE), since we may need -lsocket or whatever for X linking.
23096
23097  if test "$ISC" = yes; then
23098    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23099  else
23100    # Martyn Johnson says this is needed for Ultrix, if the X
23101    # libraries were built with DECnet support.  And Karl Berry says
23102    # the Alpha needs dnet_stub (dnet does not exist).
23103    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23104    cat >conftest.$ac_ext <<_ACEOF
23105/* confdefs.h.  */
23106_ACEOF
23107cat confdefs.h >>conftest.$ac_ext
23108cat >>conftest.$ac_ext <<_ACEOF
23109/* end confdefs.h.  */
23110
23111/* Override any GCC internal prototype to avoid an error.
23112   Use char because int might match the return type of a GCC
23113   builtin and then its argument prototype would still apply.  */
23114#ifdef __cplusplus
23115extern "C"
23116#endif
23117char XOpenDisplay ();
23118int
23119main ()
23120{
23121return XOpenDisplay ();
23122  ;
23123  return 0;
23124}
23125_ACEOF
23126rm -f conftest.$ac_objext conftest$ac_exeext
23127if { (ac_try="$ac_link"
23128case "(($ac_try" in
23129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130  *) ac_try_echo=$ac_try;;
23131esac
23132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133  (eval "$ac_link") 2>conftest.er1
23134  ac_status=$?
23135  grep -v '^ *+' conftest.er1 >conftest.err
23136  rm -f conftest.er1
23137  cat conftest.err >&5
23138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139  (exit $ac_status); } && {
23140	 test -z "$ac_c_werror_flag" ||
23141	 test ! -s conftest.err
23142       } && test -s conftest$ac_exeext &&
23143       $as_test_x conftest$ac_exeext; then
23144  :
23145else
23146  echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
23149	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23150echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23151if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23152  echo $ECHO_N "(cached) $ECHO_C" >&6
23153else
23154  ac_check_lib_save_LIBS=$LIBS
23155LIBS="-ldnet  $LIBS"
23156cat >conftest.$ac_ext <<_ACEOF
23157/* confdefs.h.  */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h.  */
23162
23163/* Override any GCC internal prototype to avoid an error.
23164   Use char because int might match the return type of a GCC
23165   builtin and then its argument prototype would still apply.  */
23166#ifdef __cplusplus
23167extern "C"
23168#endif
23169char dnet_ntoa ();
23170int
23171main ()
23172{
23173return dnet_ntoa ();
23174  ;
23175  return 0;
23176}
23177_ACEOF
23178rm -f conftest.$ac_objext conftest$ac_exeext
23179if { (ac_try="$ac_link"
23180case "(($ac_try" in
23181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182  *) ac_try_echo=$ac_try;;
23183esac
23184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185  (eval "$ac_link") 2>conftest.er1
23186  ac_status=$?
23187  grep -v '^ *+' conftest.er1 >conftest.err
23188  rm -f conftest.er1
23189  cat conftest.err >&5
23190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191  (exit $ac_status); } && {
23192	 test -z "$ac_c_werror_flag" ||
23193	 test ! -s conftest.err
23194       } && test -s conftest$ac_exeext &&
23195       $as_test_x conftest$ac_exeext; then
23196  ac_cv_lib_dnet_dnet_ntoa=yes
23197else
23198  echo "$as_me: failed program was:" >&5
23199sed 's/^/| /' conftest.$ac_ext >&5
23200
23201	ac_cv_lib_dnet_dnet_ntoa=no
23202fi
23203
23204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23205      conftest$ac_exeext conftest.$ac_ext
23206LIBS=$ac_check_lib_save_LIBS
23207fi
23208{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23209echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23210if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23211  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23212fi
23213
23214    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23215      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23216echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23217if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23218  echo $ECHO_N "(cached) $ECHO_C" >&6
23219else
23220  ac_check_lib_save_LIBS=$LIBS
23221LIBS="-ldnet_stub  $LIBS"
23222cat >conftest.$ac_ext <<_ACEOF
23223/* confdefs.h.  */
23224_ACEOF
23225cat confdefs.h >>conftest.$ac_ext
23226cat >>conftest.$ac_ext <<_ACEOF
23227/* end confdefs.h.  */
23228
23229/* Override any GCC internal prototype to avoid an error.
23230   Use char because int might match the return type of a GCC
23231   builtin and then its argument prototype would still apply.  */
23232#ifdef __cplusplus
23233extern "C"
23234#endif
23235char dnet_ntoa ();
23236int
23237main ()
23238{
23239return dnet_ntoa ();
23240  ;
23241  return 0;
23242}
23243_ACEOF
23244rm -f conftest.$ac_objext conftest$ac_exeext
23245if { (ac_try="$ac_link"
23246case "(($ac_try" in
23247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248  *) ac_try_echo=$ac_try;;
23249esac
23250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251  (eval "$ac_link") 2>conftest.er1
23252  ac_status=$?
23253  grep -v '^ *+' conftest.er1 >conftest.err
23254  rm -f conftest.er1
23255  cat conftest.err >&5
23256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257  (exit $ac_status); } && {
23258	 test -z "$ac_c_werror_flag" ||
23259	 test ! -s conftest.err
23260       } && test -s conftest$ac_exeext &&
23261       $as_test_x conftest$ac_exeext; then
23262  ac_cv_lib_dnet_stub_dnet_ntoa=yes
23263else
23264  echo "$as_me: failed program was:" >&5
23265sed 's/^/| /' conftest.$ac_ext >&5
23266
23267	ac_cv_lib_dnet_stub_dnet_ntoa=no
23268fi
23269
23270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23271      conftest$ac_exeext conftest.$ac_ext
23272LIBS=$ac_check_lib_save_LIBS
23273fi
23274{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23275echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23276if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23277  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23278fi
23279
23280    fi
23281fi
23282
23283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23284      conftest$ac_exeext conftest.$ac_ext
23285    LIBS="$ac_xsave_LIBS"
23286
23287    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23288    # to get the SysV transport functions.
23289    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23290    # needs -lnsl.
23291    # The nsl library prevents programs from opening the X display
23292    # on Irix 5.2, according to T.E. Dickey.
23293    # The functions gethostbyname, getservbyname, and inet_addr are
23294    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23295    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23296echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23297if test "${ac_cv_func_gethostbyname+set}" = set; then
23298  echo $ECHO_N "(cached) $ECHO_C" >&6
23299else
23300  cat >conftest.$ac_ext <<_ACEOF
23301/* confdefs.h.  */
23302_ACEOF
23303cat confdefs.h >>conftest.$ac_ext
23304cat >>conftest.$ac_ext <<_ACEOF
23305/* end confdefs.h.  */
23306/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23307   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23308#define gethostbyname innocuous_gethostbyname
23309
23310/* System header to define __stub macros and hopefully few prototypes,
23311    which can conflict with char gethostbyname (); below.
23312    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23313    <limits.h> exists even on freestanding compilers.  */
23314
23315#ifdef __STDC__
23316# include <limits.h>
23317#else
23318# include <assert.h>
23319#endif
23320
23321#undef gethostbyname
23322
23323/* Override any GCC internal prototype to avoid an error.
23324   Use char because int might match the return type of a GCC
23325   builtin and then its argument prototype would still apply.  */
23326#ifdef __cplusplus
23327extern "C"
23328#endif
23329char gethostbyname ();
23330/* The GNU C library defines this for functions which it implements
23331    to always fail with ENOSYS.  Some functions are actually named
23332    something starting with __ and the normal name is an alias.  */
23333#if defined __stub_gethostbyname || defined __stub___gethostbyname
23334choke me
23335#endif
23336
23337int
23338main ()
23339{
23340return gethostbyname ();
23341  ;
23342  return 0;
23343}
23344_ACEOF
23345rm -f conftest.$ac_objext conftest$ac_exeext
23346if { (ac_try="$ac_link"
23347case "(($ac_try" in
23348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349  *) ac_try_echo=$ac_try;;
23350esac
23351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352  (eval "$ac_link") 2>conftest.er1
23353  ac_status=$?
23354  grep -v '^ *+' conftest.er1 >conftest.err
23355  rm -f conftest.er1
23356  cat conftest.err >&5
23357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358  (exit $ac_status); } && {
23359	 test -z "$ac_c_werror_flag" ||
23360	 test ! -s conftest.err
23361       } && test -s conftest$ac_exeext &&
23362       $as_test_x conftest$ac_exeext; then
23363  ac_cv_func_gethostbyname=yes
23364else
23365  echo "$as_me: failed program was:" >&5
23366sed 's/^/| /' conftest.$ac_ext >&5
23367
23368	ac_cv_func_gethostbyname=no
23369fi
23370
23371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23372      conftest$ac_exeext conftest.$ac_ext
23373fi
23374{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23375echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23376
23377    if test $ac_cv_func_gethostbyname = no; then
23378      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23379echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23380if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23381  echo $ECHO_N "(cached) $ECHO_C" >&6
23382else
23383  ac_check_lib_save_LIBS=$LIBS
23384LIBS="-lnsl  $LIBS"
23385cat >conftest.$ac_ext <<_ACEOF
23386/* confdefs.h.  */
23387_ACEOF
23388cat confdefs.h >>conftest.$ac_ext
23389cat >>conftest.$ac_ext <<_ACEOF
23390/* end confdefs.h.  */
23391
23392/* Override any GCC internal prototype to avoid an error.
23393   Use char because int might match the return type of a GCC
23394   builtin and then its argument prototype would still apply.  */
23395#ifdef __cplusplus
23396extern "C"
23397#endif
23398char gethostbyname ();
23399int
23400main ()
23401{
23402return gethostbyname ();
23403  ;
23404  return 0;
23405}
23406_ACEOF
23407rm -f conftest.$ac_objext conftest$ac_exeext
23408if { (ac_try="$ac_link"
23409case "(($ac_try" in
23410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411  *) ac_try_echo=$ac_try;;
23412esac
23413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414  (eval "$ac_link") 2>conftest.er1
23415  ac_status=$?
23416  grep -v '^ *+' conftest.er1 >conftest.err
23417  rm -f conftest.er1
23418  cat conftest.err >&5
23419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420  (exit $ac_status); } && {
23421	 test -z "$ac_c_werror_flag" ||
23422	 test ! -s conftest.err
23423       } && test -s conftest$ac_exeext &&
23424       $as_test_x conftest$ac_exeext; then
23425  ac_cv_lib_nsl_gethostbyname=yes
23426else
23427  echo "$as_me: failed program was:" >&5
23428sed 's/^/| /' conftest.$ac_ext >&5
23429
23430	ac_cv_lib_nsl_gethostbyname=no
23431fi
23432
23433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23434      conftest$ac_exeext conftest.$ac_ext
23435LIBS=$ac_check_lib_save_LIBS
23436fi
23437{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23438echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23439if test $ac_cv_lib_nsl_gethostbyname = yes; then
23440  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23441fi
23442
23443      if test $ac_cv_lib_nsl_gethostbyname = no; then
23444	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23445echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23446if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23447  echo $ECHO_N "(cached) $ECHO_C" >&6
23448else
23449  ac_check_lib_save_LIBS=$LIBS
23450LIBS="-lbsd  $LIBS"
23451cat >conftest.$ac_ext <<_ACEOF
23452/* confdefs.h.  */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h.  */
23457
23458/* Override any GCC internal prototype to avoid an error.
23459   Use char because int might match the return type of a GCC
23460   builtin and then its argument prototype would still apply.  */
23461#ifdef __cplusplus
23462extern "C"
23463#endif
23464char gethostbyname ();
23465int
23466main ()
23467{
23468return gethostbyname ();
23469  ;
23470  return 0;
23471}
23472_ACEOF
23473rm -f conftest.$ac_objext conftest$ac_exeext
23474if { (ac_try="$ac_link"
23475case "(($ac_try" in
23476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477  *) ac_try_echo=$ac_try;;
23478esac
23479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480  (eval "$ac_link") 2>conftest.er1
23481  ac_status=$?
23482  grep -v '^ *+' conftest.er1 >conftest.err
23483  rm -f conftest.er1
23484  cat conftest.err >&5
23485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486  (exit $ac_status); } && {
23487	 test -z "$ac_c_werror_flag" ||
23488	 test ! -s conftest.err
23489       } && test -s conftest$ac_exeext &&
23490       $as_test_x conftest$ac_exeext; then
23491  ac_cv_lib_bsd_gethostbyname=yes
23492else
23493  echo "$as_me: failed program was:" >&5
23494sed 's/^/| /' conftest.$ac_ext >&5
23495
23496	ac_cv_lib_bsd_gethostbyname=no
23497fi
23498
23499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500      conftest$ac_exeext conftest.$ac_ext
23501LIBS=$ac_check_lib_save_LIBS
23502fi
23503{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23504echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23505if test $ac_cv_lib_bsd_gethostbyname = yes; then
23506  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23507fi
23508
23509      fi
23510    fi
23511
23512    # lieder@skyler.mavd.honeywell.com says without -lsocket,
23513    # socket/setsockopt and other routines are undefined under SCO ODT
23514    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23515    # on later versions), says Simon Leinen: it contains gethostby*
23516    # variants that don't use the name server (or something).  -lsocket
23517    # must be given before -lnsl if both are needed.  We assume that
23518    # if connect needs -lnsl, so does gethostbyname.
23519    { echo "$as_me:$LINENO: checking for connect" >&5
23520echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23521if test "${ac_cv_func_connect+set}" = set; then
23522  echo $ECHO_N "(cached) $ECHO_C" >&6
23523else
23524  cat >conftest.$ac_ext <<_ACEOF
23525/* confdefs.h.  */
23526_ACEOF
23527cat confdefs.h >>conftest.$ac_ext
23528cat >>conftest.$ac_ext <<_ACEOF
23529/* end confdefs.h.  */
23530/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23531   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23532#define connect innocuous_connect
23533
23534/* System header to define __stub macros and hopefully few prototypes,
23535    which can conflict with char connect (); below.
23536    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23537    <limits.h> exists even on freestanding compilers.  */
23538
23539#ifdef __STDC__
23540# include <limits.h>
23541#else
23542# include <assert.h>
23543#endif
23544
23545#undef connect
23546
23547/* Override any GCC internal prototype to avoid an error.
23548   Use char because int might match the return type of a GCC
23549   builtin and then its argument prototype would still apply.  */
23550#ifdef __cplusplus
23551extern "C"
23552#endif
23553char connect ();
23554/* The GNU C library defines this for functions which it implements
23555    to always fail with ENOSYS.  Some functions are actually named
23556    something starting with __ and the normal name is an alias.  */
23557#if defined __stub_connect || defined __stub___connect
23558choke me
23559#endif
23560
23561int
23562main ()
23563{
23564return connect ();
23565  ;
23566  return 0;
23567}
23568_ACEOF
23569rm -f conftest.$ac_objext conftest$ac_exeext
23570if { (ac_try="$ac_link"
23571case "(($ac_try" in
23572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573  *) ac_try_echo=$ac_try;;
23574esac
23575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576  (eval "$ac_link") 2>conftest.er1
23577  ac_status=$?
23578  grep -v '^ *+' conftest.er1 >conftest.err
23579  rm -f conftest.er1
23580  cat conftest.err >&5
23581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582  (exit $ac_status); } && {
23583	 test -z "$ac_c_werror_flag" ||
23584	 test ! -s conftest.err
23585       } && test -s conftest$ac_exeext &&
23586       $as_test_x conftest$ac_exeext; then
23587  ac_cv_func_connect=yes
23588else
23589  echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592	ac_cv_func_connect=no
23593fi
23594
23595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23596      conftest$ac_exeext conftest.$ac_ext
23597fi
23598{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23599echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23600
23601    if test $ac_cv_func_connect = no; then
23602      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23603echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23604if test "${ac_cv_lib_socket_connect+set}" = set; then
23605  echo $ECHO_N "(cached) $ECHO_C" >&6
23606else
23607  ac_check_lib_save_LIBS=$LIBS
23608LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23609cat >conftest.$ac_ext <<_ACEOF
23610/* confdefs.h.  */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h.  */
23615
23616/* Override any GCC internal prototype to avoid an error.
23617   Use char because int might match the return type of a GCC
23618   builtin and then its argument prototype would still apply.  */
23619#ifdef __cplusplus
23620extern "C"
23621#endif
23622char connect ();
23623int
23624main ()
23625{
23626return connect ();
23627  ;
23628  return 0;
23629}
23630_ACEOF
23631rm -f conftest.$ac_objext conftest$ac_exeext
23632if { (ac_try="$ac_link"
23633case "(($ac_try" in
23634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635  *) ac_try_echo=$ac_try;;
23636esac
23637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638  (eval "$ac_link") 2>conftest.er1
23639  ac_status=$?
23640  grep -v '^ *+' conftest.er1 >conftest.err
23641  rm -f conftest.er1
23642  cat conftest.err >&5
23643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644  (exit $ac_status); } && {
23645	 test -z "$ac_c_werror_flag" ||
23646	 test ! -s conftest.err
23647       } && test -s conftest$ac_exeext &&
23648       $as_test_x conftest$ac_exeext; then
23649  ac_cv_lib_socket_connect=yes
23650else
23651  echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654	ac_cv_lib_socket_connect=no
23655fi
23656
23657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23658      conftest$ac_exeext conftest.$ac_ext
23659LIBS=$ac_check_lib_save_LIBS
23660fi
23661{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23662echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23663if test $ac_cv_lib_socket_connect = yes; then
23664  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23665fi
23666
23667    fi
23668
23669    # Guillermo Gomez says -lposix is necessary on A/UX.
23670    { echo "$as_me:$LINENO: checking for remove" >&5
23671echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23672if test "${ac_cv_func_remove+set}" = set; then
23673  echo $ECHO_N "(cached) $ECHO_C" >&6
23674else
23675  cat >conftest.$ac_ext <<_ACEOF
23676/* confdefs.h.  */
23677_ACEOF
23678cat confdefs.h >>conftest.$ac_ext
23679cat >>conftest.$ac_ext <<_ACEOF
23680/* end confdefs.h.  */
23681/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23682   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23683#define remove innocuous_remove
23684
23685/* System header to define __stub macros and hopefully few prototypes,
23686    which can conflict with char remove (); below.
23687    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23688    <limits.h> exists even on freestanding compilers.  */
23689
23690#ifdef __STDC__
23691# include <limits.h>
23692#else
23693# include <assert.h>
23694#endif
23695
23696#undef remove
23697
23698/* Override any GCC internal prototype to avoid an error.
23699   Use char because int might match the return type of a GCC
23700   builtin and then its argument prototype would still apply.  */
23701#ifdef __cplusplus
23702extern "C"
23703#endif
23704char remove ();
23705/* The GNU C library defines this for functions which it implements
23706    to always fail with ENOSYS.  Some functions are actually named
23707    something starting with __ and the normal name is an alias.  */
23708#if defined __stub_remove || defined __stub___remove
23709choke me
23710#endif
23711
23712int
23713main ()
23714{
23715return remove ();
23716  ;
23717  return 0;
23718}
23719_ACEOF
23720rm -f conftest.$ac_objext conftest$ac_exeext
23721if { (ac_try="$ac_link"
23722case "(($ac_try" in
23723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724  *) ac_try_echo=$ac_try;;
23725esac
23726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727  (eval "$ac_link") 2>conftest.er1
23728  ac_status=$?
23729  grep -v '^ *+' conftest.er1 >conftest.err
23730  rm -f conftest.er1
23731  cat conftest.err >&5
23732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733  (exit $ac_status); } && {
23734	 test -z "$ac_c_werror_flag" ||
23735	 test ! -s conftest.err
23736       } && test -s conftest$ac_exeext &&
23737       $as_test_x conftest$ac_exeext; then
23738  ac_cv_func_remove=yes
23739else
23740  echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743	ac_cv_func_remove=no
23744fi
23745
23746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747      conftest$ac_exeext conftest.$ac_ext
23748fi
23749{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23750echo "${ECHO_T}$ac_cv_func_remove" >&6; }
23751
23752    if test $ac_cv_func_remove = no; then
23753      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23754echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
23755if test "${ac_cv_lib_posix_remove+set}" = set; then
23756  echo $ECHO_N "(cached) $ECHO_C" >&6
23757else
23758  ac_check_lib_save_LIBS=$LIBS
23759LIBS="-lposix  $LIBS"
23760cat >conftest.$ac_ext <<_ACEOF
23761/* confdefs.h.  */
23762_ACEOF
23763cat confdefs.h >>conftest.$ac_ext
23764cat >>conftest.$ac_ext <<_ACEOF
23765/* end confdefs.h.  */
23766
23767/* Override any GCC internal prototype to avoid an error.
23768   Use char because int might match the return type of a GCC
23769   builtin and then its argument prototype would still apply.  */
23770#ifdef __cplusplus
23771extern "C"
23772#endif
23773char remove ();
23774int
23775main ()
23776{
23777return remove ();
23778  ;
23779  return 0;
23780}
23781_ACEOF
23782rm -f conftest.$ac_objext conftest$ac_exeext
23783if { (ac_try="$ac_link"
23784case "(($ac_try" in
23785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786  *) ac_try_echo=$ac_try;;
23787esac
23788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789  (eval "$ac_link") 2>conftest.er1
23790  ac_status=$?
23791  grep -v '^ *+' conftest.er1 >conftest.err
23792  rm -f conftest.er1
23793  cat conftest.err >&5
23794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795  (exit $ac_status); } && {
23796	 test -z "$ac_c_werror_flag" ||
23797	 test ! -s conftest.err
23798       } && test -s conftest$ac_exeext &&
23799       $as_test_x conftest$ac_exeext; then
23800  ac_cv_lib_posix_remove=yes
23801else
23802  echo "$as_me: failed program was:" >&5
23803sed 's/^/| /' conftest.$ac_ext >&5
23804
23805	ac_cv_lib_posix_remove=no
23806fi
23807
23808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23809      conftest$ac_exeext conftest.$ac_ext
23810LIBS=$ac_check_lib_save_LIBS
23811fi
23812{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23813echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
23814if test $ac_cv_lib_posix_remove = yes; then
23815  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23816fi
23817
23818    fi
23819
23820    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23821    { echo "$as_me:$LINENO: checking for shmat" >&5
23822echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
23823if test "${ac_cv_func_shmat+set}" = set; then
23824  echo $ECHO_N "(cached) $ECHO_C" >&6
23825else
23826  cat >conftest.$ac_ext <<_ACEOF
23827/* confdefs.h.  */
23828_ACEOF
23829cat confdefs.h >>conftest.$ac_ext
23830cat >>conftest.$ac_ext <<_ACEOF
23831/* end confdefs.h.  */
23832/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23834#define shmat innocuous_shmat
23835
23836/* System header to define __stub macros and hopefully few prototypes,
23837    which can conflict with char shmat (); below.
23838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23839    <limits.h> exists even on freestanding compilers.  */
23840
23841#ifdef __STDC__
23842# include <limits.h>
23843#else
23844# include <assert.h>
23845#endif
23846
23847#undef shmat
23848
23849/* Override any GCC internal prototype to avoid an error.
23850   Use char because int might match the return type of a GCC
23851   builtin and then its argument prototype would still apply.  */
23852#ifdef __cplusplus
23853extern "C"
23854#endif
23855char shmat ();
23856/* The GNU C library defines this for functions which it implements
23857    to always fail with ENOSYS.  Some functions are actually named
23858    something starting with __ and the normal name is an alias.  */
23859#if defined __stub_shmat || defined __stub___shmat
23860choke me
23861#endif
23862
23863int
23864main ()
23865{
23866return shmat ();
23867  ;
23868  return 0;
23869}
23870_ACEOF
23871rm -f conftest.$ac_objext conftest$ac_exeext
23872if { (ac_try="$ac_link"
23873case "(($ac_try" in
23874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875  *) ac_try_echo=$ac_try;;
23876esac
23877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878  (eval "$ac_link") 2>conftest.er1
23879  ac_status=$?
23880  grep -v '^ *+' conftest.er1 >conftest.err
23881  rm -f conftest.er1
23882  cat conftest.err >&5
23883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884  (exit $ac_status); } && {
23885	 test -z "$ac_c_werror_flag" ||
23886	 test ! -s conftest.err
23887       } && test -s conftest$ac_exeext &&
23888       $as_test_x conftest$ac_exeext; then
23889  ac_cv_func_shmat=yes
23890else
23891  echo "$as_me: failed program was:" >&5
23892sed 's/^/| /' conftest.$ac_ext >&5
23893
23894	ac_cv_func_shmat=no
23895fi
23896
23897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23898      conftest$ac_exeext conftest.$ac_ext
23899fi
23900{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23901echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
23902
23903    if test $ac_cv_func_shmat = no; then
23904      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23905echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
23906if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23907  echo $ECHO_N "(cached) $ECHO_C" >&6
23908else
23909  ac_check_lib_save_LIBS=$LIBS
23910LIBS="-lipc  $LIBS"
23911cat >conftest.$ac_ext <<_ACEOF
23912/* confdefs.h.  */
23913_ACEOF
23914cat confdefs.h >>conftest.$ac_ext
23915cat >>conftest.$ac_ext <<_ACEOF
23916/* end confdefs.h.  */
23917
23918/* Override any GCC internal prototype to avoid an error.
23919   Use char because int might match the return type of a GCC
23920   builtin and then its argument prototype would still apply.  */
23921#ifdef __cplusplus
23922extern "C"
23923#endif
23924char shmat ();
23925int
23926main ()
23927{
23928return shmat ();
23929  ;
23930  return 0;
23931}
23932_ACEOF
23933rm -f conftest.$ac_objext conftest$ac_exeext
23934if { (ac_try="$ac_link"
23935case "(($ac_try" in
23936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937  *) ac_try_echo=$ac_try;;
23938esac
23939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940  (eval "$ac_link") 2>conftest.er1
23941  ac_status=$?
23942  grep -v '^ *+' conftest.er1 >conftest.err
23943  rm -f conftest.er1
23944  cat conftest.err >&5
23945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946  (exit $ac_status); } && {
23947	 test -z "$ac_c_werror_flag" ||
23948	 test ! -s conftest.err
23949       } && test -s conftest$ac_exeext &&
23950       $as_test_x conftest$ac_exeext; then
23951  ac_cv_lib_ipc_shmat=yes
23952else
23953  echo "$as_me: failed program was:" >&5
23954sed 's/^/| /' conftest.$ac_ext >&5
23955
23956	ac_cv_lib_ipc_shmat=no
23957fi
23958
23959rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23960      conftest$ac_exeext conftest.$ac_ext
23961LIBS=$ac_check_lib_save_LIBS
23962fi
23963{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23964echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23965if test $ac_cv_lib_ipc_shmat = yes; then
23966  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23967fi
23968
23969    fi
23970  fi
23971
23972  # Check for libraries that X11R6 Xt/Xaw programs need.
23973  ac_save_LDFLAGS=$LDFLAGS
23974  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23975  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23976  # check for ICE first), but we must link in the order -lSM -lICE or
23977  # we get undefined symbols.  So assume we have SM if we have ICE.
23978  # These have to be linked with before -lX11, unlike the other
23979  # libraries we check for below, so use a different variable.
23980  # John Interrante, Karl Berry
23981  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23982echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23983if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23984  echo $ECHO_N "(cached) $ECHO_C" >&6
23985else
23986  ac_check_lib_save_LIBS=$LIBS
23987LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23988cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h.  */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h.  */
23994
23995/* Override any GCC internal prototype to avoid an error.
23996   Use char because int might match the return type of a GCC
23997   builtin and then its argument prototype would still apply.  */
23998#ifdef __cplusplus
23999extern "C"
24000#endif
24001char IceConnectionNumber ();
24002int
24003main ()
24004{
24005return IceConnectionNumber ();
24006  ;
24007  return 0;
24008}
24009_ACEOF
24010rm -f conftest.$ac_objext conftest$ac_exeext
24011if { (ac_try="$ac_link"
24012case "(($ac_try" in
24013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014  *) ac_try_echo=$ac_try;;
24015esac
24016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017  (eval "$ac_link") 2>conftest.er1
24018  ac_status=$?
24019  grep -v '^ *+' conftest.er1 >conftest.err
24020  rm -f conftest.er1
24021  cat conftest.err >&5
24022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023  (exit $ac_status); } && {
24024	 test -z "$ac_c_werror_flag" ||
24025	 test ! -s conftest.err
24026       } && test -s conftest$ac_exeext &&
24027       $as_test_x conftest$ac_exeext; then
24028  ac_cv_lib_ICE_IceConnectionNumber=yes
24029else
24030  echo "$as_me: failed program was:" >&5
24031sed 's/^/| /' conftest.$ac_ext >&5
24032
24033	ac_cv_lib_ICE_IceConnectionNumber=no
24034fi
24035
24036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24037      conftest$ac_exeext conftest.$ac_ext
24038LIBS=$ac_check_lib_save_LIBS
24039fi
24040{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24041echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24042if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24043  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24044fi
24045
24046  LDFLAGS=$ac_save_LDFLAGS
24047
24048fi
24049
24050        if test x$have_x = xyes; then
24051            # Only allow dynamically loaded X11 if the X11 function pointers
24052            # will not end up in the global namespace, which causes problems
24053            # with other libraries calling X11 functions.
24054            x11_symbols_private=$have_gcc_fvisibility
24055
24056            # Check whether --enable-x11-shared was given.
24057if test "${enable_x11_shared+set}" = set; then
24058  enableval=$enable_x11_shared;
24059else
24060  enable_x11_shared=maybe
24061fi
24062
24063
24064            case "$host" in
24065                *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
24066                    x11_symbols_private=yes
24067                    x11_lib='/usr/X11R6/lib/libX11.6.dylib'
24068                    x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
24069                    xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
24070                    xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
24071                    ;;
24072                *-*-osf*)
24073                    x11_lib='libX11.so'
24074                    x11ext_lib='libXext.so'
24075                    ;;
24076                *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32
24077                    x11_lib='libX11.so'
24078                    x11ext_lib='libXext.so'
24079                    ;;
24080                *)
24081                    x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24082                    x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24083                    xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24084                    xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
24085                    ;;
24086            esac
24087
24088            X_CFLAGS="$X_CFLAGS -DXTHREADS"
24089            if test x$ac_cv_func_shmat != xyes; then
24090                X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
24091            fi
24092            CFLAGS="$CFLAGS $X_CFLAGS"
24093            LDFLAGS="$LDFLAGS $X_LIBS"
24094
24095            cat >>confdefs.h <<\_ACEOF
24096#define SDL_VIDEO_DRIVER_X11 1
24097_ACEOF
24098
24099            SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
24100            EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
24101
24102            if test x$enable_x11_shared = xmaybe; then
24103                enable_x11_shared=$x11_symbols_private
24104            fi
24105            if test x$have_loadso != xyes && \
24106               test x$enable_x11_shared = xyes; then
24107                { echo "$as_me:$LINENO: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
24108echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
24109                enable_x11_shared=no
24110            fi
24111            if test x$x11_symbols_private != xyes && \
24112               test x$enable_x11_shared = xyes; then
24113                { echo "$as_me:$LINENO: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&5
24114echo "$as_me: WARNING: You must have gcc4 (-fvisibility=hidden) for dynamic X11 loading" >&2;}
24115                enable_x11_shared=no
24116            fi
24117
24118            if test x$have_loadso = xyes && \
24119               test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
24120                echo "-- dynamic libX11 -> $x11_lib"
24121                echo "-- dynamic libX11ext -> $x11ext_lib"
24122                cat >>confdefs.h <<_ACEOF
24123#define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
24124_ACEOF
24125
24126                cat >>confdefs.h <<_ACEOF
24127#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
24128_ACEOF
24129
24130            else
24131                enable_x11_shared=no
24132                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
24133            fi
24134            have_video=yes
24135
24136            # Check whether --enable-dga was given.
24137if test "${enable_dga+set}" = set; then
24138  enableval=$enable_dga;
24139else
24140  enable_dga=yes
24141fi
24142
24143            if test x$enable_dga = xyes; then
24144                SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86dga/*.c"
24145            fi
24146            # Check whether --enable-video-dga was given.
24147if test "${enable_video_dga+set}" = set; then
24148  enableval=$enable_video_dga;
24149else
24150  enable_video_dga=yes
24151fi
24152
24153            if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
24154                cat >>confdefs.h <<\_ACEOF
24155#define SDL_VIDEO_DRIVER_DGA 1
24156_ACEOF
24157
24158                SOURCES="$SOURCES $srcdir/src/video/dga/*.c"
24159            fi
24160            # Check whether --enable-video-x11-dgamouse was given.
24161if test "${enable_video_x11_dgamouse+set}" = set; then
24162  enableval=$enable_video_x11_dgamouse;
24163else
24164  enable_video_x11_dgamouse=yes
24165fi
24166
24167            if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
24168                cat >>confdefs.h <<\_ACEOF
24169#define SDL_VIDEO_DRIVER_X11_DGAMOUSE 1
24170_ACEOF
24171
24172            fi
24173            # Check whether --enable-video-x11-vm was given.
24174if test "${enable_video_x11_vm+set}" = set; then
24175  enableval=$enable_video_x11_vm;
24176else
24177  enable_video_x11_vm=yes
24178fi
24179
24180            if test x$enable_video_x11_vm = xyes; then
24181                cat >>confdefs.h <<\_ACEOF
24182#define SDL_VIDEO_DRIVER_X11_VIDMODE 1
24183_ACEOF
24184
24185                SOURCES="$SOURCES $srcdir/src/video/Xext/Xxf86vm/*.c"
24186            fi
24187            # Check whether --enable-video-x11-xv was given.
24188if test "${enable_video_x11_xv+set}" = set; then
24189  enableval=$enable_video_x11_xv;
24190else
24191  enable_video_x11_xv=yes
24192fi
24193
24194            if test x$enable_video_x11_xv = xyes; then
24195                cat >>confdefs.h <<\_ACEOF
24196#define SDL_VIDEO_DRIVER_X11_XV 1
24197_ACEOF
24198
24199                SOURCES="$SOURCES $srcdir/src/video/Xext/Xv/*.c"
24200            fi
24201            # Check whether --enable-video-x11-xinerama was given.
24202if test "${enable_video_x11_xinerama+set}" = set; then
24203  enableval=$enable_video_x11_xinerama;
24204else
24205  enable_video_x11_xinerama=yes
24206fi
24207
24208            if test x$enable_video_x11_xinerama = xyes; then
24209                cat >>confdefs.h <<\_ACEOF
24210#define SDL_VIDEO_DRIVER_X11_XINERAMA 1
24211_ACEOF
24212
24213                SOURCES="$SOURCES $srcdir/src/video/Xext/Xinerama/*.c"
24214            fi
24215            # Check whether --enable-video-x11-xme was given.
24216if test "${enable_video_x11_xme+set}" = set; then
24217  enableval=$enable_video_x11_xme;
24218else
24219  enable_video_x11_xme=yes
24220fi
24221
24222            if test x$enable_video_x11_xme = xyes; then
24223                cat >>confdefs.h <<\_ACEOF
24224#define SDL_VIDEO_DRIVER_X11_XME 1
24225_ACEOF
24226
24227                SOURCES="$SOURCES $srcdir/src/video/Xext/XME/*.c"
24228            fi
24229            # Check whether --enable-video-x11-xrandr was given.
24230if test "${enable_video_x11_xrandr+set}" = set; then
24231  enableval=$enable_video_x11_xrandr;
24232else
24233  enable_video_x11_xrandr=yes
24234fi
24235
24236            if test x$enable_video_x11_xrandr = xyes; then
24237                definitely_enable_video_x11_xrandr=no
24238                { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
24239echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
24240if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
24241  echo $ECHO_N "(cached) $ECHO_C" >&6
24242else
24243  cat >conftest.$ac_ext <<_ACEOF
24244/* confdefs.h.  */
24245_ACEOF
24246cat confdefs.h >>conftest.$ac_ext
24247cat >>conftest.$ac_ext <<_ACEOF
24248/* end confdefs.h.  */
24249#include <X11/Xlib.h>
24250
24251
24252#include <X11/extensions/Xrandr.h>
24253_ACEOF
24254rm -f conftest.$ac_objext
24255if { (ac_try="$ac_compile"
24256case "(($ac_try" in
24257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258  *) ac_try_echo=$ac_try;;
24259esac
24260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261  (eval "$ac_compile") 2>conftest.er1
24262  ac_status=$?
24263  grep -v '^ *+' conftest.er1 >conftest.err
24264  rm -f conftest.er1
24265  cat conftest.err >&5
24266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267  (exit $ac_status); } && {
24268	 test -z "$ac_c_werror_flag" ||
24269	 test ! -s conftest.err
24270       } && test -s conftest.$ac_objext; then
24271  ac_cv_header_X11_extensions_Xrandr_h=yes
24272else
24273  echo "$as_me: failed program was:" >&5
24274sed 's/^/| /' conftest.$ac_ext >&5
24275
24276	ac_cv_header_X11_extensions_Xrandr_h=no
24277fi
24278
24279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280fi
24281{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
24282echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
24283if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
24284  have_xrandr_h_hdr=yes
24285else
24286  have_xrandr_h_hdr=no
24287fi
24288
24289
24290                if test x$have_xrandr_h_hdr = xyes; then
24291                    if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
24292                        echo "-- dynamic libXrender -> $xrender_lib"
24293                        echo "-- dynamic libXrandr -> $xrandr_lib"
24294                        cat >>confdefs.h <<_ACEOF
24295#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRENDER "$xrender_lib"
24296_ACEOF
24297
24298                        cat >>confdefs.h <<_ACEOF
24299#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
24300_ACEOF
24301
24302                        definitely_enable_video_x11_xrandr=yes
24303                    else
24304                        { echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
24305echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6; }
24306if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
24307  echo $ECHO_N "(cached) $ECHO_C" >&6
24308else
24309  ac_check_lib_save_LIBS=$LIBS
24310LIBS="-lXrender  $LIBS"
24311cat >conftest.$ac_ext <<_ACEOF
24312/* confdefs.h.  */
24313_ACEOF
24314cat confdefs.h >>conftest.$ac_ext
24315cat >>conftest.$ac_ext <<_ACEOF
24316/* end confdefs.h.  */
24317
24318/* Override any GCC internal prototype to avoid an error.
24319   Use char because int might match the return type of a GCC
24320   builtin and then its argument prototype would still apply.  */
24321#ifdef __cplusplus
24322extern "C"
24323#endif
24324char XRenderQueryExtension ();
24325int
24326main ()
24327{
24328return XRenderQueryExtension ();
24329  ;
24330  return 0;
24331}
24332_ACEOF
24333rm -f conftest.$ac_objext conftest$ac_exeext
24334if { (ac_try="$ac_link"
24335case "(($ac_try" in
24336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337  *) ac_try_echo=$ac_try;;
24338esac
24339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340  (eval "$ac_link") 2>conftest.er1
24341  ac_status=$?
24342  grep -v '^ *+' conftest.er1 >conftest.err
24343  rm -f conftest.er1
24344  cat conftest.err >&5
24345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346  (exit $ac_status); } && {
24347	 test -z "$ac_c_werror_flag" ||
24348	 test ! -s conftest.err
24349       } && test -s conftest$ac_exeext &&
24350       $as_test_x conftest$ac_exeext; then
24351  ac_cv_lib_Xrender_XRenderQueryExtension=yes
24352else
24353  echo "$as_me: failed program was:" >&5
24354sed 's/^/| /' conftest.$ac_ext >&5
24355
24356	ac_cv_lib_Xrender_XRenderQueryExtension=no
24357fi
24358
24359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24360      conftest$ac_exeext conftest.$ac_ext
24361LIBS=$ac_check_lib_save_LIBS
24362fi
24363{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
24364echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
24365if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
24366  have_xrender_lib=yes
24367fi
24368
24369                        { echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
24370echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6; }
24371if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
24372  echo $ECHO_N "(cached) $ECHO_C" >&6
24373else
24374  ac_check_lib_save_LIBS=$LIBS
24375LIBS="-lXrandr  $LIBS"
24376cat >conftest.$ac_ext <<_ACEOF
24377/* confdefs.h.  */
24378_ACEOF
24379cat confdefs.h >>conftest.$ac_ext
24380cat >>conftest.$ac_ext <<_ACEOF
24381/* end confdefs.h.  */
24382
24383/* Override any GCC internal prototype to avoid an error.
24384   Use char because int might match the return type of a GCC
24385   builtin and then its argument prototype would still apply.  */
24386#ifdef __cplusplus
24387extern "C"
24388#endif
24389char XRRQueryExtension ();
24390int
24391main ()
24392{
24393return XRRQueryExtension ();
24394  ;
24395  return 0;
24396}
24397_ACEOF
24398rm -f conftest.$ac_objext conftest$ac_exeext
24399if { (ac_try="$ac_link"
24400case "(($ac_try" in
24401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402  *) ac_try_echo=$ac_try;;
24403esac
24404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405  (eval "$ac_link") 2>conftest.er1
24406  ac_status=$?
24407  grep -v '^ *+' conftest.er1 >conftest.err
24408  rm -f conftest.er1
24409  cat conftest.err >&5
24410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411  (exit $ac_status); } && {
24412	 test -z "$ac_c_werror_flag" ||
24413	 test ! -s conftest.err
24414       } && test -s conftest$ac_exeext &&
24415       $as_test_x conftest$ac_exeext; then
24416  ac_cv_lib_Xrandr_XRRQueryExtension=yes
24417else
24418  echo "$as_me: failed program was:" >&5
24419sed 's/^/| /' conftest.$ac_ext >&5
24420
24421	ac_cv_lib_Xrandr_XRRQueryExtension=no
24422fi
24423
24424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24425      conftest$ac_exeext conftest.$ac_ext
24426LIBS=$ac_check_lib_save_LIBS
24427fi
24428{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
24429echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
24430if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
24431  have_xrandr_lib=yes
24432fi
24433
24434                        if test x$have_xrender_lib = xyes && test x$have_xrandr_lib = xyes ; then
24435                            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr -lXrender"
24436                            definitely_enable_video_x11_xrandr=yes
24437                        fi
24438                    fi
24439                fi
24440            fi
24441            if test x$definitely_enable_video_x11_xrandr = xyes; then
24442                cat >>confdefs.h <<\_ACEOF
24443#define SDL_VIDEO_DRIVER_X11_XRANDR 1
24444_ACEOF
24445
24446            fi
24447        fi
24448    fi
24449}
24450
24451CheckPHOTON()
24452{
24453    # Check whether --enable-video-photon was given.
24454if test "${enable_video_photon+set}" = set; then
24455  enableval=$enable_video_photon;
24456else
24457  enable_video_photon=yes
24458fi
24459
24460    if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
24461        { echo "$as_me:$LINENO: checking for QNX Photon support" >&5
24462echo $ECHO_N "checking for QNX Photon support... $ECHO_C" >&6; }
24463        video_photon=no
24464        cat >conftest.$ac_ext <<_ACEOF
24465/* confdefs.h.  */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
24469/* end confdefs.h.  */
24470
24471          #include <Ph.h>
24472          #include <Pt.h>
24473          #include <photon/Pg.h>
24474          #include <photon/PdDirect.h>
24475
24476int
24477main ()
24478{
24479
24480         PgDisplaySettings_t *visual;
24481
24482  ;
24483  return 0;
24484}
24485_ACEOF
24486rm -f conftest.$ac_objext
24487if { (ac_try="$ac_compile"
24488case "(($ac_try" in
24489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490  *) ac_try_echo=$ac_try;;
24491esac
24492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24493  (eval "$ac_compile") 2>conftest.er1
24494  ac_status=$?
24495  grep -v '^ *+' conftest.er1 >conftest.err
24496  rm -f conftest.er1
24497  cat conftest.err >&5
24498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499  (exit $ac_status); } && {
24500	 test -z "$ac_c_werror_flag" ||
24501	 test ! -s conftest.err
24502       } && test -s conftest.$ac_objext; then
24503
24504        video_photon=yes
24505
24506else
24507  echo "$as_me: failed program was:" >&5
24508sed 's/^/| /' conftest.$ac_ext >&5
24509
24510
24511fi
24512
24513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24514        { echo "$as_me:$LINENO: result: $video_photon" >&5
24515echo "${ECHO_T}$video_photon" >&6; }
24516        if test x$video_photon = xyes; then
24517            cat >>confdefs.h <<\_ACEOF
24518#define SDL_VIDEO_DRIVER_PHOTON 1
24519_ACEOF
24520
24521            SOURCES="$SOURCES $srcdir/src/video/photon/*.c"
24522            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lph"
24523            have_video=yes
24524
24525            CheckOpenGLQNX
24526        fi
24527    fi
24528}
24529
24530CheckBWINDOW()
24531{
24532    if test x$enable_video = xyes; then
24533        cat >>confdefs.h <<\_ACEOF
24534#define SDL_VIDEO_DRIVER_BWINDOW 1
24535_ACEOF
24536
24537        SOURCES="$SOURCES $srcdir/src/video/bwindow/*.cc"
24538        have_video=yes
24539    fi
24540}
24541
24542CheckCARBON()
24543{
24544    # Check whether --enable-video-carbon was given.
24545if test "${enable_video_carbon+set}" = set; then
24546  enableval=$enable_video_carbon;
24547else
24548  enable_video_carbon=no
24549fi
24550
24551    if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
24552        { echo "$as_me:$LINENO: checking for Carbon framework" >&5
24553echo $ECHO_N "checking for Carbon framework... $ECHO_C" >&6; }
24554        have_carbon=no
24555        cat >conftest.$ac_ext <<_ACEOF
24556/* confdefs.h.  */
24557_ACEOF
24558cat confdefs.h >>conftest.$ac_ext
24559cat >>conftest.$ac_ext <<_ACEOF
24560/* end confdefs.h.  */
24561
24562          #include <Carbon/Carbon.h>
24563
24564int
24565main ()
24566{
24567
24568
24569  ;
24570  return 0;
24571}
24572_ACEOF
24573rm -f conftest.$ac_objext
24574if { (ac_try="$ac_compile"
24575case "(($ac_try" in
24576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577  *) ac_try_echo=$ac_try;;
24578esac
24579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580  (eval "$ac_compile") 2>conftest.er1
24581  ac_status=$?
24582  grep -v '^ *+' conftest.er1 >conftest.err
24583  rm -f conftest.er1
24584  cat conftest.err >&5
24585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586  (exit $ac_status); } && {
24587	 test -z "$ac_c_werror_flag" ||
24588	 test ! -s conftest.err
24589       } && test -s conftest.$ac_objext; then
24590
24591        have_carbon=yes
24592
24593else
24594  echo "$as_me: failed program was:" >&5
24595sed 's/^/| /' conftest.$ac_ext >&5
24596
24597
24598fi
24599
24600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24601        { echo "$as_me:$LINENO: result: $have_carbon" >&5
24602echo "${ECHO_T}$have_carbon" >&6; }
24603        if test x$have_carbon = xyes; then
24604            cat >>confdefs.h <<\_ACEOF
24605#define SDL_VIDEO_DRIVER_TOOLBOX 1
24606_ACEOF
24607
24608            SOURCES="$SOURCES $srcdir/src/video/maccommon/*.c"
24609            SOURCES="$SOURCES $srcdir/src/video/macrom/*.c"
24610            have_video=yes
24611        fi
24612    fi
24613}
24614
24615CheckCOCOA()
24616{
24617    # Check whether --enable-video-cocoa was given.
24618if test "${enable_video_cocoa+set}" = set; then
24619  enableval=$enable_video_cocoa;
24620else
24621  enable_video_cocoa=yes
24622fi
24623
24624    if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
24625        save_CFLAGS="$CFLAGS"
24626                CFLAGS="$CFLAGS -x objective-c"
24627        { echo "$as_me:$LINENO: checking for Cocoa framework" >&5
24628echo $ECHO_N "checking for Cocoa framework... $ECHO_C" >&6; }
24629        have_cocoa=no
24630        cat >conftest.$ac_ext <<_ACEOF
24631/* confdefs.h.  */
24632_ACEOF
24633cat confdefs.h >>conftest.$ac_ext
24634cat >>conftest.$ac_ext <<_ACEOF
24635/* end confdefs.h.  */
24636
24637          #import <Cocoa/Cocoa.h>
24638
24639int
24640main ()
24641{
24642
24643
24644  ;
24645  return 0;
24646}
24647_ACEOF
24648rm -f conftest.$ac_objext
24649if { (ac_try="$ac_compile"
24650case "(($ac_try" in
24651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24652  *) ac_try_echo=$ac_try;;
24653esac
24654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24655  (eval "$ac_compile") 2>conftest.er1
24656  ac_status=$?
24657  grep -v '^ *+' conftest.er1 >conftest.err
24658  rm -f conftest.er1
24659  cat conftest.err >&5
24660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661  (exit $ac_status); } && {
24662	 test -z "$ac_c_werror_flag" ||
24663	 test ! -s conftest.err
24664       } && test -s conftest.$ac_objext; then
24665
24666        have_cocoa=yes
24667
24668else
24669  echo "$as_me: failed program was:" >&5
24670sed 's/^/| /' conftest.$ac_ext >&5
24671
24672
24673fi
24674
24675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676        { echo "$as_me:$LINENO: result: $have_cocoa" >&5
24677echo "${ECHO_T}$have_cocoa" >&6; }
24678        CFLAGS="$save_CFLAGS"
24679        if test x$have_cocoa = xyes; then
24680            cat >>confdefs.h <<\_ACEOF
24681#define SDL_VIDEO_DRIVER_QUARTZ 1
24682_ACEOF
24683
24684            SOURCES="$SOURCES $srcdir/src/video/quartz/*.m"
24685            have_video=yes
24686        fi
24687    fi
24688}
24689
24690CheckFBCON()
24691{
24692    # Check whether --enable-video-fbcon was given.
24693if test "${enable_video_fbcon+set}" = set; then
24694  enableval=$enable_video_fbcon;
24695else
24696  enable_video_fbcon=yes
24697fi
24698
24699    if test x$enable_video = xyes -a x$enable_video_fbcon = xyes; then
24700        { echo "$as_me:$LINENO: checking for framebuffer console support" >&5
24701echo $ECHO_N "checking for framebuffer console support... $ECHO_C" >&6; }
24702        video_fbcon=no
24703        cat >conftest.$ac_ext <<_ACEOF
24704/* confdefs.h.  */
24705_ACEOF
24706cat confdefs.h >>conftest.$ac_ext
24707cat >>conftest.$ac_ext <<_ACEOF
24708/* end confdefs.h.  */
24709
24710         #include <linux/fb.h>
24711         #include <linux/kd.h>
24712         #include <linux/keyboard.h>
24713
24714int
24715main ()
24716{
24717
24718
24719  ;
24720  return 0;
24721}
24722_ACEOF
24723rm -f conftest.$ac_objext
24724if { (ac_try="$ac_compile"
24725case "(($ac_try" in
24726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727  *) ac_try_echo=$ac_try;;
24728esac
24729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730  (eval "$ac_compile") 2>conftest.er1
24731  ac_status=$?
24732  grep -v '^ *+' conftest.er1 >conftest.err
24733  rm -f conftest.er1
24734  cat conftest.err >&5
24735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736  (exit $ac_status); } && {
24737	 test -z "$ac_c_werror_flag" ||
24738	 test ! -s conftest.err
24739       } && test -s conftest.$ac_objext; then
24740
24741        video_fbcon=yes
24742
24743else
24744  echo "$as_me: failed program was:" >&5
24745sed 's/^/| /' conftest.$ac_ext >&5
24746
24747
24748fi
24749
24750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24751        { echo "$as_me:$LINENO: result: $video_fbcon" >&5
24752echo "${ECHO_T}$video_fbcon" >&6; }
24753        if test x$video_fbcon = xyes; then
24754
24755for ac_func in getpagesize
24756do
24757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24761  echo $ECHO_N "(cached) $ECHO_C" >&6
24762else
24763  cat >conftest.$ac_ext <<_ACEOF
24764/* confdefs.h.  */
24765_ACEOF
24766cat confdefs.h >>conftest.$ac_ext
24767cat >>conftest.$ac_ext <<_ACEOF
24768/* end confdefs.h.  */
24769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24771#define $ac_func innocuous_$ac_func
24772
24773/* System header to define __stub macros and hopefully few prototypes,
24774    which can conflict with char $ac_func (); below.
24775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24776    <limits.h> exists even on freestanding compilers.  */
24777
24778#ifdef __STDC__
24779# include <limits.h>
24780#else
24781# include <assert.h>
24782#endif
24783
24784#undef $ac_func
24785
24786/* Override any GCC internal prototype to avoid an error.
24787   Use char because int might match the return type of a GCC
24788   builtin and then its argument prototype would still apply.  */
24789#ifdef __cplusplus
24790extern "C"
24791#endif
24792char $ac_func ();
24793/* The GNU C library defines this for functions which it implements
24794    to always fail with ENOSYS.  Some functions are actually named
24795    something starting with __ and the normal name is an alias.  */
24796#if defined __stub_$ac_func || defined __stub___$ac_func
24797choke me
24798#endif
24799
24800int
24801main ()
24802{
24803return $ac_func ();
24804  ;
24805  return 0;
24806}
24807_ACEOF
24808rm -f conftest.$ac_objext conftest$ac_exeext
24809if { (ac_try="$ac_link"
24810case "(($ac_try" in
24811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812  *) ac_try_echo=$ac_try;;
24813esac
24814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815  (eval "$ac_link") 2>conftest.er1
24816  ac_status=$?
24817  grep -v '^ *+' conftest.er1 >conftest.err
24818  rm -f conftest.er1
24819  cat conftest.err >&5
24820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821  (exit $ac_status); } && {
24822	 test -z "$ac_c_werror_flag" ||
24823	 test ! -s conftest.err
24824       } && test -s conftest$ac_exeext &&
24825       $as_test_x conftest$ac_exeext; then
24826  eval "$as_ac_var=yes"
24827else
24828  echo "$as_me: failed program was:" >&5
24829sed 's/^/| /' conftest.$ac_ext >&5
24830
24831	eval "$as_ac_var=no"
24832fi
24833
24834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24835      conftest$ac_exeext conftest.$ac_ext
24836fi
24837ac_res=`eval echo '${'$as_ac_var'}'`
24838	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24839echo "${ECHO_T}$ac_res" >&6; }
24840if test `eval echo '${'$as_ac_var'}'` = yes; then
24841  cat >>confdefs.h <<_ACEOF
24842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24843_ACEOF
24844
24845fi
24846done
24847
24848            cat >>confdefs.h <<\_ACEOF
24849#define SDL_VIDEO_DRIVER_FBCON 1
24850_ACEOF
24851
24852            SOURCES="$SOURCES $srcdir/src/video/fbcon/*.c"
24853            have_video=yes
24854        fi
24855    fi
24856}
24857
24858CheckDirectFB()
24859{
24860    # Check whether --enable-video-directfb was given.
24861if test "${enable_video_directfb+set}" = set; then
24862  enableval=$enable_video_directfb;
24863else
24864  enable_video_directfb=yes
24865fi
24866
24867    if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
24868        video_directfb=no
24869
24870        DIRECTFB_REQUIRED_VERSION=0.9.15
24871
24872        # Extract the first word of "directfb-config", so it can be a program name with args.
24873set dummy directfb-config; ac_word=$2
24874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24876if test "${ac_cv_path_DIRECTFBCONFIG+set}" = set; then
24877  echo $ECHO_N "(cached) $ECHO_C" >&6
24878else
24879  case $DIRECTFBCONFIG in
24880  [\\/]* | ?:[\\/]*)
24881  ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
24882  ;;
24883  *)
24884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885for as_dir in $PATH
24886do
24887  IFS=$as_save_IFS
24888  test -z "$as_dir" && as_dir=.
24889  for ac_exec_ext in '' $ac_executable_extensions; do
24890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24891    ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
24892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24893    break 2
24894  fi
24895done
24896done
24897IFS=$as_save_IFS
24898
24899  test -z "$ac_cv_path_DIRECTFBCONFIG" && ac_cv_path_DIRECTFBCONFIG="no"
24900  ;;
24901esac
24902fi
24903DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
24904if test -n "$DIRECTFBCONFIG"; then
24905  { echo "$as_me:$LINENO: result: $DIRECTFBCONFIG" >&5
24906echo "${ECHO_T}$DIRECTFBCONFIG" >&6; }
24907else
24908  { echo "$as_me:$LINENO: result: no" >&5
24909echo "${ECHO_T}no" >&6; }
24910fi
24911
24912
24913        if test x$DIRECTFBCONFIG = xno; then
24914            # Extract the first word of "pkg-config", so it can be a program name with args.
24915set dummy pkg-config; ac_word=$2
24916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24918if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24919  echo $ECHO_N "(cached) $ECHO_C" >&6
24920else
24921  case $PKG_CONFIG in
24922  [\\/]* | ?:[\\/]*)
24923  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24924  ;;
24925  *)
24926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24927for as_dir in $PATH
24928do
24929  IFS=$as_save_IFS
24930  test -z "$as_dir" && as_dir=.
24931  for ac_exec_ext in '' $ac_executable_extensions; do
24932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24933    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24934    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24935    break 2
24936  fi
24937done
24938done
24939IFS=$as_save_IFS
24940
24941  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24942  ;;
24943esac
24944fi
24945PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24946if test -n "$PKG_CONFIG"; then
24947  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24948echo "${ECHO_T}$PKG_CONFIG" >&6; }
24949else
24950  { echo "$as_me:$LINENO: result: no" >&5
24951echo "${ECHO_T}no" >&6; }
24952fi
24953
24954
24955            if test x$PKG_CONFIG != xno; then
24956                if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
24957                    DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
24958                    DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
24959                    video_directfb=yes
24960                fi
24961            fi
24962        else
24963            set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
24964            NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24965            set -- `directfb-config --version | sed 's/\./ /g'`
24966            HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
24967            if test $HAVE_VERSION -ge $NEED_VERSION; then
24968                DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
24969                DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
24970                video_directfb=yes
24971            fi
24972        fi
24973        if test x$video_directfb = xyes; then
24974            # SuSE 11.1 installs directfb-config without directfb-devel
24975            save_CFLAGS="$CFLAGS"
24976            CFLAGS="$CFLAGS $DIRECTFB_CFLAGS"
24977            if test "${ac_cv_header_directfb_h+set}" = set; then
24978  { echo "$as_me:$LINENO: checking for directfb.h" >&5
24979echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
24980if test "${ac_cv_header_directfb_h+set}" = set; then
24981  echo $ECHO_N "(cached) $ECHO_C" >&6
24982fi
24983{ echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
24984echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
24985else
24986  # Is the header compilable?
24987{ echo "$as_me:$LINENO: checking directfb.h usability" >&5
24988echo $ECHO_N "checking directfb.h usability... $ECHO_C" >&6; }
24989cat >conftest.$ac_ext <<_ACEOF
24990/* confdefs.h.  */
24991_ACEOF
24992cat confdefs.h >>conftest.$ac_ext
24993cat >>conftest.$ac_ext <<_ACEOF
24994/* end confdefs.h.  */
24995$ac_includes_default
24996#include <directfb.h>
24997_ACEOF
24998rm -f conftest.$ac_objext
24999if { (ac_try="$ac_compile"
25000case "(($ac_try" in
25001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002  *) ac_try_echo=$ac_try;;
25003esac
25004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005  (eval "$ac_compile") 2>conftest.er1
25006  ac_status=$?
25007  grep -v '^ *+' conftest.er1 >conftest.err
25008  rm -f conftest.er1
25009  cat conftest.err >&5
25010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011  (exit $ac_status); } && {
25012	 test -z "$ac_c_werror_flag" ||
25013	 test ! -s conftest.err
25014       } && test -s conftest.$ac_objext; then
25015  ac_header_compiler=yes
25016else
25017  echo "$as_me: failed program was:" >&5
25018sed 's/^/| /' conftest.$ac_ext >&5
25019
25020	ac_header_compiler=no
25021fi
25022
25023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25025echo "${ECHO_T}$ac_header_compiler" >&6; }
25026
25027# Is the header present?
25028{ echo "$as_me:$LINENO: checking directfb.h presence" >&5
25029echo $ECHO_N "checking directfb.h presence... $ECHO_C" >&6; }
25030cat >conftest.$ac_ext <<_ACEOF
25031/* confdefs.h.  */
25032_ACEOF
25033cat confdefs.h >>conftest.$ac_ext
25034cat >>conftest.$ac_ext <<_ACEOF
25035/* end confdefs.h.  */
25036#include <directfb.h>
25037_ACEOF
25038if { (ac_try="$ac_cpp conftest.$ac_ext"
25039case "(($ac_try" in
25040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041  *) ac_try_echo=$ac_try;;
25042esac
25043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25045  ac_status=$?
25046  grep -v '^ *+' conftest.er1 >conftest.err
25047  rm -f conftest.er1
25048  cat conftest.err >&5
25049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050  (exit $ac_status); } >/dev/null && {
25051	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25052	 test ! -s conftest.err
25053       }; then
25054  ac_header_preproc=yes
25055else
25056  echo "$as_me: failed program was:" >&5
25057sed 's/^/| /' conftest.$ac_ext >&5
25058
25059  ac_header_preproc=no
25060fi
25061
25062rm -f conftest.err conftest.$ac_ext
25063{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25064echo "${ECHO_T}$ac_header_preproc" >&6; }
25065
25066# So?  What about this header?
25067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25068  yes:no: )
25069    { echo "$as_me:$LINENO: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&5
25070echo "$as_me: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25071    { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the compiler's result" >&5
25072echo "$as_me: WARNING: directfb.h: proceeding with the compiler's result" >&2;}
25073    ac_header_preproc=yes
25074    ;;
25075  no:yes:* )
25076    { echo "$as_me:$LINENO: WARNING: directfb.h: present but cannot be compiled" >&5
25077echo "$as_me: WARNING: directfb.h: present but cannot be compiled" >&2;}
25078    { echo "$as_me:$LINENO: WARNING: directfb.h:     check for missing prerequisite headers?" >&5
25079echo "$as_me: WARNING: directfb.h:     check for missing prerequisite headers?" >&2;}
25080    { echo "$as_me:$LINENO: WARNING: directfb.h: see the Autoconf documentation" >&5
25081echo "$as_me: WARNING: directfb.h: see the Autoconf documentation" >&2;}
25082    { echo "$as_me:$LINENO: WARNING: directfb.h:     section \"Present But Cannot Be Compiled\"" >&5
25083echo "$as_me: WARNING: directfb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25084    { echo "$as_me:$LINENO: WARNING: directfb.h: proceeding with the preprocessor's result" >&5
25085echo "$as_me: WARNING: directfb.h: proceeding with the preprocessor's result" >&2;}
25086    { echo "$as_me:$LINENO: WARNING: directfb.h: in the future, the compiler will take precedence" >&5
25087echo "$as_me: WARNING: directfb.h: in the future, the compiler will take precedence" >&2;}
25088
25089    ;;
25090esac
25091{ echo "$as_me:$LINENO: checking for directfb.h" >&5
25092echo $ECHO_N "checking for directfb.h... $ECHO_C" >&6; }
25093if test "${ac_cv_header_directfb_h+set}" = set; then
25094  echo $ECHO_N "(cached) $ECHO_C" >&6
25095else
25096  ac_cv_header_directfb_h=$ac_header_preproc
25097fi
25098{ echo "$as_me:$LINENO: result: $ac_cv_header_directfb_h" >&5
25099echo "${ECHO_T}$ac_cv_header_directfb_h" >&6; }
25100
25101fi
25102if test $ac_cv_header_directfb_h = yes; then
25103  have_directfb_hdr=yes
25104else
25105  have_directfb_hdr=no
25106fi
25107
25108
25109            CFLAGS="$save_CFLAGS"
25110            video_directfb=$have_directfb_hdr
25111        fi
25112        { echo "$as_me:$LINENO: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
25113echo $ECHO_N "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... $ECHO_C" >&6; }
25114        { echo "$as_me:$LINENO: result: $video_directfb" >&5
25115echo "${ECHO_T}$video_directfb" >&6; }
25116
25117        if test x$video_directfb = xyes; then
25118            cat >>confdefs.h <<\_ACEOF
25119#define SDL_VIDEO_DRIVER_DIRECTFB 1
25120_ACEOF
25121
25122            SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
25123            EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
25124            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
25125            have_video=yes
25126        fi
25127    fi
25128}
25129
25130CheckPS2GS()
25131{
25132    # Check whether --enable-video-ps2gs was given.
25133if test "${enable_video_ps2gs+set}" = set; then
25134  enableval=$enable_video_ps2gs;
25135else
25136  enable_video_ps2gs=yes
25137fi
25138
25139    if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
25140        { echo "$as_me:$LINENO: checking for PlayStation 2 GS support" >&5
25141echo $ECHO_N "checking for PlayStation 2 GS support... $ECHO_C" >&6; }
25142        video_ps2gs=no
25143        cat >conftest.$ac_ext <<_ACEOF
25144/* confdefs.h.  */
25145_ACEOF
25146cat confdefs.h >>conftest.$ac_ext
25147cat >>conftest.$ac_ext <<_ACEOF
25148/* end confdefs.h.  */
25149
25150         #include <linux/ps2/dev.h>
25151         #include <linux/ps2/gs.h>
25152
25153int
25154main ()
25155{
25156
25157
25158  ;
25159  return 0;
25160}
25161_ACEOF
25162rm -f conftest.$ac_objext
25163if { (ac_try="$ac_compile"
25164case "(($ac_try" in
25165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25166  *) ac_try_echo=$ac_try;;
25167esac
25168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25169  (eval "$ac_compile") 2>conftest.er1
25170  ac_status=$?
25171  grep -v '^ *+' conftest.er1 >conftest.err
25172  rm -f conftest.er1
25173  cat conftest.err >&5
25174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175  (exit $ac_status); } && {
25176	 test -z "$ac_c_werror_flag" ||
25177	 test ! -s conftest.err
25178       } && test -s conftest.$ac_objext; then
25179
25180        video_ps2gs=yes
25181
25182else
25183  echo "$as_me: failed program was:" >&5
25184sed 's/^/| /' conftest.$ac_ext >&5
25185
25186
25187fi
25188
25189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190        { echo "$as_me:$LINENO: result: $video_ps2gs" >&5
25191echo "${ECHO_T}$video_ps2gs" >&6; }
25192        if test x$video_ps2gs = xyes; then
25193            cat >>confdefs.h <<\_ACEOF
25194#define SDL_VIDEO_DRIVER_PS2GS 1
25195_ACEOF
25196
25197            SOURCES="$SOURCES $srcdir/src/video/ps2gs/*.c"
25198            have_video=yes
25199        fi
25200    fi
25201}
25202
25203CheckPS3()
25204{
25205  # Check whether --enable-video-ps3 was given.
25206if test "${enable_video_ps3+set}" = set; then
25207  enableval=$enable_video_ps3;
25208else
25209  enable_video_ps3=yes
25210fi
25211
25212  if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then
25213    { echo "$as_me:$LINENO: checking for PlayStation 3 Cell support" >&5
25214echo $ECHO_N "checking for PlayStation 3 Cell support... $ECHO_C" >&6; }
25215    video_ps3=no
25216    cat >conftest.$ac_ext <<_ACEOF
25217/* confdefs.h.  */
25218_ACEOF
25219cat confdefs.h >>conftest.$ac_ext
25220cat >>conftest.$ac_ext <<_ACEOF
25221/* end confdefs.h.  */
25222
25223      #include <linux/fb.h>
25224      #include <asm/ps3fb.h>
25225      #include <libspe2.h>
25226
25227int
25228main ()
25229{
25230
25231
25232  ;
25233  return 0;
25234}
25235_ACEOF
25236rm -f conftest.$ac_objext
25237if { (ac_try="$ac_compile"
25238case "(($ac_try" in
25239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240  *) ac_try_echo=$ac_try;;
25241esac
25242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243  (eval "$ac_compile") 2>conftest.er1
25244  ac_status=$?
25245  grep -v '^ *+' conftest.er1 >conftest.err
25246  rm -f conftest.er1
25247  cat conftest.err >&5
25248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249  (exit $ac_status); } && {
25250	 test -z "$ac_c_werror_flag" ||
25251	 test ! -s conftest.err
25252       } && test -s conftest.$ac_objext; then
25253
25254      video_ps3=yes
25255
25256else
25257  echo "$as_me: failed program was:" >&5
25258sed 's/^/| /' conftest.$ac_ext >&5
25259
25260
25261fi
25262
25263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25264    { echo "$as_me:$LINENO: result: $video_ps3" >&5
25265echo "${ECHO_T}$video_ps3" >&6; }
25266    if test x$video_ps3 = xyes; then
25267      cat >>confdefs.h <<\_ACEOF
25268#define SDL_VIDEO_DRIVER_PS3 1
25269_ACEOF
25270
25271      SOURCES="$SOURCES $srcdir/src/video/ps3/*.c"
25272      EXTRA_CFLAGS="$EXTRA_CFLAGS -I/opt/cell/sdk/usr/include"
25273      EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lbilin_scaler_spu -lfb_writer_spu -lyuv2rgb_spu -L/opt/cell/sdk/usr/lib -lspe2"
25274      have_video=yes
25275    fi
25276  fi
25277}
25278
25279CheckGGI()
25280{
25281    # Check whether --enable-video-ggi was given.
25282if test "${enable_video_ggi+set}" = set; then
25283  enableval=$enable_video_ggi;
25284else
25285  enable_video_ggi=no
25286fi
25287
25288    if test x$enable_video = xyes -a x$enable_video_ggi = xyes; then
25289        { echo "$as_me:$LINENO: checking for GGI support" >&5
25290echo $ECHO_N "checking for GGI support... $ECHO_C" >&6; }
25291        video_ggi=no
25292        cat >conftest.$ac_ext <<_ACEOF
25293/* confdefs.h.  */
25294_ACEOF
25295cat confdefs.h >>conftest.$ac_ext
25296cat >>conftest.$ac_ext <<_ACEOF
25297/* end confdefs.h.  */
25298
25299         #include <ggi/ggi.h>
25300         #include <ggi/gii.h>
25301
25302int
25303main ()
25304{
25305
25306
25307  ;
25308  return 0;
25309}
25310_ACEOF
25311rm -f conftest.$ac_objext
25312if { (ac_try="$ac_compile"
25313case "(($ac_try" in
25314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315  *) ac_try_echo=$ac_try;;
25316esac
25317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318  (eval "$ac_compile") 2>conftest.er1
25319  ac_status=$?
25320  grep -v '^ *+' conftest.er1 >conftest.err
25321  rm -f conftest.er1
25322  cat conftest.err >&5
25323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324  (exit $ac_status); } && {
25325	 test -z "$ac_c_werror_flag" ||
25326	 test ! -s conftest.err
25327       } && test -s conftest.$ac_objext; then
25328
25329        video_ggi=yes
25330
25331else
25332  echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335
25336fi
25337
25338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25339        { echo "$as_me:$LINENO: result: $video_ggi" >&5
25340echo "${ECHO_T}$video_ggi" >&6; }
25341        if test x$video_ggi = xyes; then
25342            cat >>confdefs.h <<\_ACEOF
25343#define SDL_VIDEO_DRIVER_GGI 1
25344_ACEOF
25345
25346            SOURCES="$SOURCES $srcdir/src/video/ggi/*.c"
25347            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lggi -lgii -lgg"
25348            have_video=yes
25349        fi
25350    fi
25351}
25352
25353CheckSVGA()
25354{
25355    # Check whether --enable-video-svga was given.
25356if test "${enable_video_svga+set}" = set; then
25357  enableval=$enable_video_svga;
25358else
25359  enable_video_svga=yes
25360fi
25361
25362    if test x$enable_video = xyes -a x$enable_video_svga = xyes; then
25363        { echo "$as_me:$LINENO: checking for SVGAlib (1.4.0+) support" >&5
25364echo $ECHO_N "checking for SVGAlib (1.4.0+) support... $ECHO_C" >&6; }
25365        video_svga=no
25366        cat >conftest.$ac_ext <<_ACEOF
25367/* confdefs.h.  */
25368_ACEOF
25369cat confdefs.h >>conftest.$ac_ext
25370cat >>conftest.$ac_ext <<_ACEOF
25371/* end confdefs.h.  */
25372
25373         #include <vga.h>
25374         #include <vgamouse.h>
25375         #include <vgakeyboard.h>
25376
25377int
25378main ()
25379{
25380
25381         if ( SCANCODE_RIGHTWIN && SCANCODE_LEFTWIN ) {
25382             exit(0);
25383         }
25384
25385  ;
25386  return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext
25390if { (ac_try="$ac_compile"
25391case "(($ac_try" in
25392  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393  *) ac_try_echo=$ac_try;;
25394esac
25395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25396  (eval "$ac_compile") 2>conftest.er1
25397  ac_status=$?
25398  grep -v '^ *+' conftest.er1 >conftest.err
25399  rm -f conftest.er1
25400  cat conftest.err >&5
25401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402  (exit $ac_status); } && {
25403	 test -z "$ac_c_werror_flag" ||
25404	 test ! -s conftest.err
25405       } && test -s conftest.$ac_objext; then
25406
25407        video_svga=yes
25408
25409else
25410  echo "$as_me: failed program was:" >&5
25411sed 's/^/| /' conftest.$ac_ext >&5
25412
25413
25414fi
25415
25416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417        { echo "$as_me:$LINENO: result: $video_svga" >&5
25418echo "${ECHO_T}$video_svga" >&6; }
25419        if test x$video_svga = xyes; then
25420            cat >>confdefs.h <<\_ACEOF
25421#define SDL_VIDEO_DRIVER_SVGALIB 1
25422_ACEOF
25423
25424            SOURCES="$SOURCES $srcdir/src/video/svga/*.c"
25425            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvga"
25426            have_video=yes
25427        fi
25428    fi
25429}
25430
25431CheckVGL()
25432{
25433    # Check whether --enable-video-vgl was given.
25434if test "${enable_video_vgl+set}" = set; then
25435  enableval=$enable_video_vgl;
25436else
25437  enable_video_vgl=yes
25438fi
25439
25440    if test x$enable_video = xyes -a x$enable_video_vgl = xyes; then
25441        { echo "$as_me:$LINENO: checking for libVGL support" >&5
25442echo $ECHO_N "checking for libVGL support... $ECHO_C" >&6; }
25443        video_vgl=no
25444        cat >conftest.$ac_ext <<_ACEOF
25445/* confdefs.h.  */
25446_ACEOF
25447cat confdefs.h >>conftest.$ac_ext
25448cat >>conftest.$ac_ext <<_ACEOF
25449/* end confdefs.h.  */
25450
25451         #include <sys/fbio.h>
25452         #include <sys/consio.h>
25453         #include <sys/kbio.h>
25454         #include <vgl.h>
25455
25456int
25457main ()
25458{
25459
25460         VGLBitmap bitmap;
25461         bitmap.Type = VIDBUF32;
25462         bitmap.PixelBytes = 4;
25463         exit(bitmap.Bitmap);
25464
25465  ;
25466  return 0;
25467}
25468_ACEOF
25469rm -f conftest.$ac_objext
25470if { (ac_try="$ac_compile"
25471case "(($ac_try" in
25472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25473  *) ac_try_echo=$ac_try;;
25474esac
25475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25476  (eval "$ac_compile") 2>conftest.er1
25477  ac_status=$?
25478  grep -v '^ *+' conftest.er1 >conftest.err
25479  rm -f conftest.er1
25480  cat conftest.err >&5
25481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482  (exit $ac_status); } && {
25483	 test -z "$ac_c_werror_flag" ||
25484	 test ! -s conftest.err
25485       } && test -s conftest.$ac_objext; then
25486
25487        video_vgl=yes
25488
25489else
25490  echo "$as_me: failed program was:" >&5
25491sed 's/^/| /' conftest.$ac_ext >&5
25492
25493
25494fi
25495
25496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497        { echo "$as_me:$LINENO: result: $video_vgl" >&5
25498echo "${ECHO_T}$video_vgl" >&6; }
25499        if test x$video_vgl = xyes; then
25500            cat >>confdefs.h <<\_ACEOF
25501#define SDL_VIDEO_DRIVER_VGL 1
25502_ACEOF
25503
25504            SOURCES="$SOURCES $srcdir/src/video/vgl/*.c"
25505            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvgl"
25506            have_video=yes
25507        fi
25508    fi
25509}
25510
25511CheckWscons()
25512{
25513    # Check whether --enable-video-wscons was given.
25514if test "${enable_video_wscons+set}" = set; then
25515  enableval=$enable_video_wscons;
25516else
25517  enable_video_wscons=yes
25518fi
25519
25520    if test x$enable_video = xyes -a x$enable_video_wscons = xyes; then
25521        { echo "$as_me:$LINENO: checking for wscons support" >&5
25522echo $ECHO_N "checking for wscons support... $ECHO_C" >&6; }
25523        video_wscons=no
25524        cat >conftest.$ac_ext <<_ACEOF
25525/* confdefs.h.  */
25526_ACEOF
25527cat confdefs.h >>conftest.$ac_ext
25528cat >>conftest.$ac_ext <<_ACEOF
25529/* end confdefs.h.  */
25530
25531         #include <sys/time.h>
25532         #include <dev/wscons/wsconsio.h>
25533         #include <dev/wscons/wsdisplay_usl_io.h>
25534
25535int
25536main ()
25537{
25538
25539         int wsmode = WSDISPLAYIO_MODE_DUMBFB;
25540
25541  ;
25542  return 0;
25543}
25544_ACEOF
25545rm -f conftest.$ac_objext
25546if { (ac_try="$ac_compile"
25547case "(($ac_try" in
25548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549  *) ac_try_echo=$ac_try;;
25550esac
25551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552  (eval "$ac_compile") 2>conftest.er1
25553  ac_status=$?
25554  grep -v '^ *+' conftest.er1 >conftest.err
25555  rm -f conftest.er1
25556  cat conftest.err >&5
25557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558  (exit $ac_status); } && {
25559	 test -z "$ac_c_werror_flag" ||
25560	 test ! -s conftest.err
25561       } && test -s conftest.$ac_objext; then
25562
25563        video_wscons=yes
25564
25565else
25566  echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569
25570fi
25571
25572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573        { echo "$as_me:$LINENO: result: $video_wscons" >&5
25574echo "${ECHO_T}$video_wscons" >&6; }
25575        if test x$video_wscons = xyes; then
25576            cat >>confdefs.h <<\_ACEOF
25577#define SDL_VIDEO_DRIVER_WSCONS 1
25578_ACEOF
25579
25580            SOURCES="$SOURCES $srcdir/src/video/wscons/*.c"
25581            have_video=yes
25582        fi
25583    fi
25584}
25585
25586
25587CheckAAlib()
25588{
25589    # Check whether --enable-video-aalib was given.
25590if test "${enable_video_aalib+set}" = set; then
25591  enableval=$enable_video_aalib;
25592else
25593  enable_video_aalib=no
25594fi
25595
25596    if test x$enable_video = xyes -a x$enable_video_aalib = xyes; then
25597        { echo "$as_me:$LINENO: checking for AAlib support" >&5
25598echo $ECHO_N "checking for AAlib support... $ECHO_C" >&6; }
25599        video_aalib=no
25600        cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h.  */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h.  */
25606
25607         #include <aalib.h>
25608
25609int
25610main ()
25611{
25612
25613
25614  ;
25615  return 0;
25616}
25617_ACEOF
25618rm -f conftest.$ac_objext
25619if { (ac_try="$ac_compile"
25620case "(($ac_try" in
25621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622  *) ac_try_echo=$ac_try;;
25623esac
25624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625  (eval "$ac_compile") 2>conftest.er1
25626  ac_status=$?
25627  grep -v '^ *+' conftest.er1 >conftest.err
25628  rm -f conftest.er1
25629  cat conftest.err >&5
25630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631  (exit $ac_status); } && {
25632	 test -z "$ac_c_werror_flag" ||
25633	 test ! -s conftest.err
25634       } && test -s conftest.$ac_objext; then
25635
25636        video_aalib=yes
25637
25638else
25639  echo "$as_me: failed program was:" >&5
25640sed 's/^/| /' conftest.$ac_ext >&5
25641
25642
25643fi
25644
25645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646        { echo "$as_me:$LINENO: result: $video_aalib" >&5
25647echo "${ECHO_T}$video_aalib" >&6; }
25648        if test x$video_aalib = xyes; then
25649            cat >>confdefs.h <<\_ACEOF
25650#define SDL_VIDEO_DRIVER_AALIB 1
25651_ACEOF
25652
25653            SOURCES="$SOURCES $srcdir/src/video/aalib/*.c"
25654            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -laa"
25655            have_video=yes
25656        fi
25657    fi
25658}
25659
25660CheckCaca()
25661{
25662    # Check whether --enable-video-caca was given.
25663if test "${enable_video_caca+set}" = set; then
25664  enableval=$enable_video_caca;
25665else
25666  enable_video_caca=no
25667fi
25668
25669    if test x$enable_video = xyes -a x$enable_video_caca = xyes; then
25670        video_caca=no
25671        # Extract the first word of "caca-config", so it can be a program name with args.
25672set dummy caca-config; ac_word=$2
25673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25675if test "${ac_cv_path_CACACONFIG+set}" = set; then
25676  echo $ECHO_N "(cached) $ECHO_C" >&6
25677else
25678  case $CACACONFIG in
25679  [\\/]* | ?:[\\/]*)
25680  ac_cv_path_CACACONFIG="$CACACONFIG" # Let the user override the test with a path.
25681  ;;
25682  *)
25683  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25684for as_dir in $PATH
25685do
25686  IFS=$as_save_IFS
25687  test -z "$as_dir" && as_dir=.
25688  for ac_exec_ext in '' $ac_executable_extensions; do
25689  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25690    ac_cv_path_CACACONFIG="$as_dir/$ac_word$ac_exec_ext"
25691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25692    break 2
25693  fi
25694done
25695done
25696IFS=$as_save_IFS
25697
25698  test -z "$ac_cv_path_CACACONFIG" && ac_cv_path_CACACONFIG="no"
25699  ;;
25700esac
25701fi
25702CACACONFIG=$ac_cv_path_CACACONFIG
25703if test -n "$CACACONFIG"; then
25704  { echo "$as_me:$LINENO: result: $CACACONFIG" >&5
25705echo "${ECHO_T}$CACACONFIG" >&6; }
25706else
25707  { echo "$as_me:$LINENO: result: no" >&5
25708echo "${ECHO_T}no" >&6; }
25709fi
25710
25711
25712        if test x$CACACONFIG != xno; then
25713            { echo "$as_me:$LINENO: checking for libcaca support" >&5
25714echo $ECHO_N "checking for libcaca support... $ECHO_C" >&6; }
25715            CACA_CFLAGS=`$CACACONFIG --cflags`
25716            CACA_LDFLAGS=`$CACACONFIG --libs`
25717            save_CFLAGS="$CFLAGS"
25718            cat >conftest.$ac_ext <<_ACEOF
25719/* confdefs.h.  */
25720_ACEOF
25721cat confdefs.h >>conftest.$ac_ext
25722cat >>conftest.$ac_ext <<_ACEOF
25723/* end confdefs.h.  */
25724
25725             #include <caca.h>
25726
25727int
25728main ()
25729{
25730
25731
25732  ;
25733  return 0;
25734}
25735_ACEOF
25736rm -f conftest.$ac_objext
25737if { (ac_try="$ac_compile"
25738case "(($ac_try" in
25739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25740  *) ac_try_echo=$ac_try;;
25741esac
25742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25743  (eval "$ac_compile") 2>conftest.er1
25744  ac_status=$?
25745  grep -v '^ *+' conftest.er1 >conftest.err
25746  rm -f conftest.er1
25747  cat conftest.err >&5
25748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749  (exit $ac_status); } && {
25750	 test -z "$ac_c_werror_flag" ||
25751	 test ! -s conftest.err
25752       } && test -s conftest.$ac_objext; then
25753
25754             video_caca=yes
25755
25756else
25757  echo "$as_me: failed program was:" >&5
25758sed 's/^/| /' conftest.$ac_ext >&5
25759
25760
25761fi
25762
25763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764            CFLAGS="$save_CFLAGS"
25765            { echo "$as_me:$LINENO: result: $video_caca" >&5
25766echo "${ECHO_T}$video_caca" >&6; }
25767            if test x$video_caca = xyes; then
25768                cat >>confdefs.h <<\_ACEOF
25769#define SDL_VIDEO_DRIVER_CACA 1
25770_ACEOF
25771
25772                EXTRA_CFLAGS="$EXTRA_CFLAGS $CACA_CFLAGS"
25773                EXTRA_LDFLAGS="$EXTRA_LDFLAGS $CACA_LDFLAGS"
25774                SOURCES="$SOURCES $srcdir/src/video/caca/*.c"
25775            fi
25776        fi
25777    fi
25778}
25779
25780CheckQtopia()
25781{
25782    # Check whether --enable-video-qtopia was given.
25783if test "${enable_video_qtopia+set}" = set; then
25784  enableval=$enable_video_qtopia;
25785else
25786  enable_video_qtopia=no
25787fi
25788
25789    if test x$enable_video = xyes -a x$enable_video_qtopia = xyes; then
25790        { echo "$as_me:$LINENO: checking for Qtopia support" >&5
25791echo $ECHO_N "checking for Qtopia support... $ECHO_C" >&6; }
25792        video_qtopia=no
25793        QTOPIA_FLAGS="-DQT_QWS_EBX -DQT_QWS_CUSTOM -DQWS -I${QPEDIR}/include -I${QTDIR}/include/ -DNO_DEBUG -fno-rtti -fno-exceptions"
25794        ac_ext=cpp
25795ac_cpp='$CXXCPP $CPPFLAGS'
25796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25799
25800        OLD_CXX="$CXXFLAGS"
25801        CXXFLAGS="$QTOPIA_FLAGS"
25802        cat >conftest.$ac_ext <<_ACEOF
25803/* confdefs.h.  */
25804_ACEOF
25805cat confdefs.h >>conftest.$ac_ext
25806cat >>conftest.$ac_ext <<_ACEOF
25807/* end confdefs.h.  */
25808
25809         #include <qpe/qpeapplication.h>
25810
25811int
25812main ()
25813{
25814
25815
25816  ;
25817  return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext
25821if { (ac_try="$ac_compile"
25822case "(($ac_try" in
25823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824  *) ac_try_echo=$ac_try;;
25825esac
25826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25827  (eval "$ac_compile") 2>conftest.er1
25828  ac_status=$?
25829  grep -v '^ *+' conftest.er1 >conftest.err
25830  rm -f conftest.er1
25831  cat conftest.err >&5
25832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833  (exit $ac_status); } && {
25834	 test -z "$ac_cxx_werror_flag" ||
25835	 test ! -s conftest.err
25836       } && test -s conftest.$ac_objext; then
25837
25838        video_qtopia=yes
25839
25840else
25841  echo "$as_me: failed program was:" >&5
25842sed 's/^/| /' conftest.$ac_ext >&5
25843
25844
25845fi
25846
25847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848        CXXFLAGS="$OLD_CXX"
25849        { echo "$as_me:$LINENO: result: $video_qtopia" >&5
25850echo "${ECHO_T}$video_qtopia" >&6; }
25851        if test x$video_qtopia = xyes; then
25852            cat >>confdefs.h <<\_ACEOF
25853#define SDL_VIDEO_DRIVER_QTOPIA 1
25854_ACEOF
25855
25856            SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc"
25857            SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc"
25858            SDLMAIN_LDFLAGS="-static"
25859            EXTRA_CFLAGS="$EXTRA_CFLAGS $QTOPIA_FLAGS"
25860            SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main"
25861            SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte"
25862            have_video=yes
25863        fi
25864        ac_ext=c
25865ac_cpp='$CPP $CPPFLAGS'
25866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25868ac_compiler_gnu=$ac_cv_c_compiler_gnu
25869
25870    fi
25871}
25872
25873CheckPicoGUI()
25874{
25875    # Check whether --enable-video-picogui was given.
25876if test "${enable_video_picogui+set}" = set; then
25877  enableval=$enable_video_picogui;
25878else
25879  enable_video_picogui=no
25880fi
25881
25882    if test x$enable_video = xyes -a x$enable_video_picogui = xyes; then
25883        { echo "$as_me:$LINENO: checking for PicoGUI support" >&5
25884echo $ECHO_N "checking for PicoGUI support... $ECHO_C" >&6; }
25885        video_picogui=no
25886        cat >conftest.$ac_ext <<_ACEOF
25887/* confdefs.h.  */
25888_ACEOF
25889cat confdefs.h >>conftest.$ac_ext
25890cat >>conftest.$ac_ext <<_ACEOF
25891/* end confdefs.h.  */
25892
25893         #include <picogui.h>
25894
25895int
25896main ()
25897{
25898
25899
25900  ;
25901  return 0;
25902}
25903_ACEOF
25904rm -f conftest.$ac_objext
25905if { (ac_try="$ac_compile"
25906case "(($ac_try" in
25907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908  *) ac_try_echo=$ac_try;;
25909esac
25910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911  (eval "$ac_compile") 2>conftest.er1
25912  ac_status=$?
25913  grep -v '^ *+' conftest.er1 >conftest.err
25914  rm -f conftest.er1
25915  cat conftest.err >&5
25916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917  (exit $ac_status); } && {
25918	 test -z "$ac_c_werror_flag" ||
25919	 test ! -s conftest.err
25920       } && test -s conftest.$ac_objext; then
25921
25922        video_picogui=yes
25923
25924else
25925  echo "$as_me: failed program was:" >&5
25926sed 's/^/| /' conftest.$ac_ext >&5
25927
25928
25929fi
25930
25931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932        { echo "$as_me:$LINENO: result: $video_picogui" >&5
25933echo "${ECHO_T}$video_picogui" >&6; }
25934        if test x$video_picogui = xyes; then
25935            cat >>confdefs.h <<\_ACEOF
25936#define SDL_VIDEO_DRIVER_PICOGUI 1
25937_ACEOF
25938
25939            SOURCES="$SOURCES $srcdir/src/video/picogui/*.c"
25940            SDL_LIBS="$SDL_LIBS -lpgui"
25941            have_video=yes
25942        fi
25943    fi
25944}
25945
25946CheckAtariBiosEvent()
25947{
25948    SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.c"
25949    SOURCES="$SOURCES $srcdir/src/video/ataricommon/*.S"
25950}
25951
25952CheckAtariXbiosVideo()
25953{
25954    # Check whether --enable-xbios was given.
25955if test "${enable_xbios+set}" = set; then
25956  enableval=$enable_xbios;
25957else
25958  enable_video_xbios=yes
25959fi
25960
25961    video_xbios=no
25962    if test x$enable_video = xyes -a x$enable_video_xbios = xyes; then
25963        video_xbios=yes
25964        cat >>confdefs.h <<\_ACEOF
25965#define SDL_VIDEO_DRIVER_XBIOS 1
25966_ACEOF
25967
25968        SOURCES="$SOURCES $srcdir/src/video/xbios/*.c"
25969        have_video=yes
25970    fi
25971}
25972
25973CheckAtariGemVideo()
25974{
25975    # Check whether --enable-gem was given.
25976if test "${enable_gem+set}" = set; then
25977  enableval=$enable_gem;
25978else
25979  enable_video_gem=yes
25980fi
25981
25982    if test x$enable_video = xyes -a x$enable_video_gem = xyes; then
25983        video_gem=no
25984        if test "${ac_cv_header_gem_h+set}" = set; then
25985  { echo "$as_me:$LINENO: checking for gem.h" >&5
25986echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
25987if test "${ac_cv_header_gem_h+set}" = set; then
25988  echo $ECHO_N "(cached) $ECHO_C" >&6
25989fi
25990{ echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
25991echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
25992else
25993  # Is the header compilable?
25994{ echo "$as_me:$LINENO: checking gem.h usability" >&5
25995echo $ECHO_N "checking gem.h usability... $ECHO_C" >&6; }
25996cat >conftest.$ac_ext <<_ACEOF
25997/* confdefs.h.  */
25998_ACEOF
25999cat confdefs.h >>conftest.$ac_ext
26000cat >>conftest.$ac_ext <<_ACEOF
26001/* end confdefs.h.  */
26002$ac_includes_default
26003#include <gem.h>
26004_ACEOF
26005rm -f conftest.$ac_objext
26006if { (ac_try="$ac_compile"
26007case "(($ac_try" in
26008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009  *) ac_try_echo=$ac_try;;
26010esac
26011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012  (eval "$ac_compile") 2>conftest.er1
26013  ac_status=$?
26014  grep -v '^ *+' conftest.er1 >conftest.err
26015  rm -f conftest.er1
26016  cat conftest.err >&5
26017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018  (exit $ac_status); } && {
26019	 test -z "$ac_c_werror_flag" ||
26020	 test ! -s conftest.err
26021       } && test -s conftest.$ac_objext; then
26022  ac_header_compiler=yes
26023else
26024  echo "$as_me: failed program was:" >&5
26025sed 's/^/| /' conftest.$ac_ext >&5
26026
26027	ac_header_compiler=no
26028fi
26029
26030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26032echo "${ECHO_T}$ac_header_compiler" >&6; }
26033
26034# Is the header present?
26035{ echo "$as_me:$LINENO: checking gem.h presence" >&5
26036echo $ECHO_N "checking gem.h presence... $ECHO_C" >&6; }
26037cat >conftest.$ac_ext <<_ACEOF
26038/* confdefs.h.  */
26039_ACEOF
26040cat confdefs.h >>conftest.$ac_ext
26041cat >>conftest.$ac_ext <<_ACEOF
26042/* end confdefs.h.  */
26043#include <gem.h>
26044_ACEOF
26045if { (ac_try="$ac_cpp conftest.$ac_ext"
26046case "(($ac_try" in
26047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048  *) ac_try_echo=$ac_try;;
26049esac
26050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26052  ac_status=$?
26053  grep -v '^ *+' conftest.er1 >conftest.err
26054  rm -f conftest.er1
26055  cat conftest.err >&5
26056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057  (exit $ac_status); } >/dev/null && {
26058	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26059	 test ! -s conftest.err
26060       }; then
26061  ac_header_preproc=yes
26062else
26063  echo "$as_me: failed program was:" >&5
26064sed 's/^/| /' conftest.$ac_ext >&5
26065
26066  ac_header_preproc=no
26067fi
26068
26069rm -f conftest.err conftest.$ac_ext
26070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26071echo "${ECHO_T}$ac_header_preproc" >&6; }
26072
26073# So?  What about this header?
26074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26075  yes:no: )
26076    { echo "$as_me:$LINENO: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&5
26077echo "$as_me: WARNING: gem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26078    { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the compiler's result" >&5
26079echo "$as_me: WARNING: gem.h: proceeding with the compiler's result" >&2;}
26080    ac_header_preproc=yes
26081    ;;
26082  no:yes:* )
26083    { echo "$as_me:$LINENO: WARNING: gem.h: present but cannot be compiled" >&5
26084echo "$as_me: WARNING: gem.h: present but cannot be compiled" >&2;}
26085    { echo "$as_me:$LINENO: WARNING: gem.h:     check for missing prerequisite headers?" >&5
26086echo "$as_me: WARNING: gem.h:     check for missing prerequisite headers?" >&2;}
26087    { echo "$as_me:$LINENO: WARNING: gem.h: see the Autoconf documentation" >&5
26088echo "$as_me: WARNING: gem.h: see the Autoconf documentation" >&2;}
26089    { echo "$as_me:$LINENO: WARNING: gem.h:     section \"Present But Cannot Be Compiled\"" >&5
26090echo "$as_me: WARNING: gem.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26091    { echo "$as_me:$LINENO: WARNING: gem.h: proceeding with the preprocessor's result" >&5
26092echo "$as_me: WARNING: gem.h: proceeding with the preprocessor's result" >&2;}
26093    { echo "$as_me:$LINENO: WARNING: gem.h: in the future, the compiler will take precedence" >&5
26094echo "$as_me: WARNING: gem.h: in the future, the compiler will take precedence" >&2;}
26095
26096    ;;
26097esac
26098{ echo "$as_me:$LINENO: checking for gem.h" >&5
26099echo $ECHO_N "checking for gem.h... $ECHO_C" >&6; }
26100if test "${ac_cv_header_gem_h+set}" = set; then
26101  echo $ECHO_N "(cached) $ECHO_C" >&6
26102else
26103  ac_cv_header_gem_h=$ac_header_preproc
26104fi
26105{ echo "$as_me:$LINENO: result: $ac_cv_header_gem_h" >&5
26106echo "${ECHO_T}$ac_cv_header_gem_h" >&6; }
26107
26108fi
26109if test $ac_cv_header_gem_h = yes; then
26110  have_gem_hdr=yes
26111fi
26112
26113
26114        { echo "$as_me:$LINENO: checking for appl_init in -lgem" >&5
26115echo $ECHO_N "checking for appl_init in -lgem... $ECHO_C" >&6; }
26116if test "${ac_cv_lib_gem_appl_init+set}" = set; then
26117  echo $ECHO_N "(cached) $ECHO_C" >&6
26118else
26119  ac_check_lib_save_LIBS=$LIBS
26120LIBS="-lgem  $LIBS"
26121cat >conftest.$ac_ext <<_ACEOF
26122/* confdefs.h.  */
26123_ACEOF
26124cat confdefs.h >>conftest.$ac_ext
26125cat >>conftest.$ac_ext <<_ACEOF
26126/* end confdefs.h.  */
26127
26128/* Override any GCC internal prototype to avoid an error.
26129   Use char because int might match the return type of a GCC
26130   builtin and then its argument prototype would still apply.  */
26131#ifdef __cplusplus
26132extern "C"
26133#endif
26134char appl_init ();
26135int
26136main ()
26137{
26138return appl_init ();
26139  ;
26140  return 0;
26141}
26142_ACEOF
26143rm -f conftest.$ac_objext conftest$ac_exeext
26144if { (ac_try="$ac_link"
26145case "(($ac_try" in
26146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147  *) ac_try_echo=$ac_try;;
26148esac
26149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150  (eval "$ac_link") 2>conftest.er1
26151  ac_status=$?
26152  grep -v '^ *+' conftest.er1 >conftest.err
26153  rm -f conftest.er1
26154  cat conftest.err >&5
26155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156  (exit $ac_status); } && {
26157	 test -z "$ac_c_werror_flag" ||
26158	 test ! -s conftest.err
26159       } && test -s conftest$ac_exeext &&
26160       $as_test_x conftest$ac_exeext; then
26161  ac_cv_lib_gem_appl_init=yes
26162else
26163  echo "$as_me: failed program was:" >&5
26164sed 's/^/| /' conftest.$ac_ext >&5
26165
26166	ac_cv_lib_gem_appl_init=no
26167fi
26168
26169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26170      conftest$ac_exeext conftest.$ac_ext
26171LIBS=$ac_check_lib_save_LIBS
26172fi
26173{ echo "$as_me:$LINENO: result: $ac_cv_lib_gem_appl_init" >&5
26174echo "${ECHO_T}$ac_cv_lib_gem_appl_init" >&6; }
26175if test $ac_cv_lib_gem_appl_init = yes; then
26176  have_gem_lib=yes
26177fi
26178
26179        if test x$have_gem_hdr = xyes -a x$have_gem_lib = xyes; then
26180            video_gem=yes
26181            cat >>confdefs.h <<\_ACEOF
26182#define SDL_VIDEO_DRIVER_GEM 1
26183_ACEOF
26184
26185            SOURCES="$SOURCES $srcdir/src/video/gem/*.c"
26186            SDL_LIBS="$SDL_LIBS -lgem"
26187            have_video=yes
26188        fi
26189    fi
26190}
26191
26192CheckDummyVideo()
26193{
26194    # Check whether --enable-video-dummy was given.
26195if test "${enable_video_dummy+set}" = set; then
26196  enableval=$enable_video_dummy;
26197else
26198  enable_video_dummy=yes
26199fi
26200
26201    if test x$enable_video_dummy = xyes; then
26202        cat >>confdefs.h <<\_ACEOF
26203#define SDL_VIDEO_DRIVER_DUMMY 1
26204_ACEOF
26205
26206        SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
26207        have_video=yes
26208    fi
26209}
26210
26211# Check whether --enable-video-opengl was given.
26212if test "${enable_video_opengl+set}" = set; then
26213  enableval=$enable_video_opengl;
26214else
26215  enable_video_opengl=yes
26216fi
26217
26218
26219CheckOpenGLX11()
26220{
26221    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26222        { echo "$as_me:$LINENO: checking for OpenGL (GLX) support" >&5
26223echo $ECHO_N "checking for OpenGL (GLX) support... $ECHO_C" >&6; }
26224        video_opengl=no
26225        cat >conftest.$ac_ext <<_ACEOF
26226/* confdefs.h.  */
26227_ACEOF
26228cat confdefs.h >>conftest.$ac_ext
26229cat >>conftest.$ac_ext <<_ACEOF
26230/* end confdefs.h.  */
26231
26232         #include <GL/gl.h>
26233         #include <GL/glx.h>
26234         #include <GL/glu.h>
26235
26236int
26237main ()
26238{
26239
26240
26241  ;
26242  return 0;
26243}
26244_ACEOF
26245rm -f conftest.$ac_objext
26246if { (ac_try="$ac_compile"
26247case "(($ac_try" in
26248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249  *) ac_try_echo=$ac_try;;
26250esac
26251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26252  (eval "$ac_compile") 2>conftest.er1
26253  ac_status=$?
26254  grep -v '^ *+' conftest.er1 >conftest.err
26255  rm -f conftest.er1
26256  cat conftest.err >&5
26257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258  (exit $ac_status); } && {
26259	 test -z "$ac_c_werror_flag" ||
26260	 test ! -s conftest.err
26261       } && test -s conftest.$ac_objext; then
26262
26263        video_opengl=yes
26264
26265else
26266  echo "$as_me: failed program was:" >&5
26267sed 's/^/| /' conftest.$ac_ext >&5
26268
26269
26270fi
26271
26272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273        { echo "$as_me:$LINENO: result: $video_opengl" >&5
26274echo "${ECHO_T}$video_opengl" >&6; }
26275        if test x$video_opengl = xyes; then
26276            cat >>confdefs.h <<\_ACEOF
26277#define SDL_VIDEO_OPENGL 1
26278_ACEOF
26279
26280            cat >>confdefs.h <<\_ACEOF
26281#define SDL_VIDEO_OPENGL_GLX 1
26282_ACEOF
26283
26284        fi
26285    fi
26286}
26287
26288CheckOpenGLQNX()
26289{
26290    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26291        { echo "$as_me:$LINENO: checking for OpenGL (Photon) support" >&5
26292echo $ECHO_N "checking for OpenGL (Photon) support... $ECHO_C" >&6; }
26293        video_opengl=no
26294        cat >conftest.$ac_ext <<_ACEOF
26295/* confdefs.h.  */
26296_ACEOF
26297cat confdefs.h >>conftest.$ac_ext
26298cat >>conftest.$ac_ext <<_ACEOF
26299/* end confdefs.h.  */
26300
26301         #include <GL/gl.h>
26302
26303int
26304main ()
26305{
26306
26307
26308  ;
26309  return 0;
26310}
26311_ACEOF
26312rm -f conftest.$ac_objext
26313if { (ac_try="$ac_compile"
26314case "(($ac_try" in
26315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26316  *) ac_try_echo=$ac_try;;
26317esac
26318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26319  (eval "$ac_compile") 2>conftest.er1
26320  ac_status=$?
26321  grep -v '^ *+' conftest.er1 >conftest.err
26322  rm -f conftest.er1
26323  cat conftest.err >&5
26324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325  (exit $ac_status); } && {
26326	 test -z "$ac_c_werror_flag" ||
26327	 test ! -s conftest.err
26328       } && test -s conftest.$ac_objext; then
26329
26330        video_opengl=yes
26331
26332else
26333  echo "$as_me: failed program was:" >&5
26334sed 's/^/| /' conftest.$ac_ext >&5
26335
26336
26337fi
26338
26339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340        { echo "$as_me:$LINENO: result: $video_opengl" >&5
26341echo "${ECHO_T}$video_opengl" >&6; }
26342        if test x$video_opengl = xyes; then
26343            cat >>confdefs.h <<\_ACEOF
26344#define SDL_VIDEO_OPENGL 1
26345_ACEOF
26346
26347            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26348        fi
26349    fi
26350}
26351
26352CheckWIN32GL()
26353{
26354    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26355        cat >>confdefs.h <<\_ACEOF
26356#define SDL_VIDEO_OPENGL 1
26357_ACEOF
26358
26359        cat >>confdefs.h <<\_ACEOF
26360#define SDL_VIDEO_OPENGL_WGL 1
26361_ACEOF
26362
26363    fi
26364}
26365
26366CheckBeGL()
26367{
26368    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26369        cat >>confdefs.h <<\_ACEOF
26370#define SDL_VIDEO_OPENGL 1
26371_ACEOF
26372
26373        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
26374    fi
26375}
26376
26377CheckMacGL()
26378{
26379    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
26380        cat >>confdefs.h <<\_ACEOF
26381#define SDL_VIDEO_OPENGL 1
26382_ACEOF
26383
26384        case "$host" in
26385            *-*-darwin*)
26386                if test x$enable_video_cocoa = xyes; then
26387                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGL"
26388                fi
26389                if test x$enable_video_carbon = xyes; then
26390                    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AGL"
26391                fi
26392        esac
26393    fi
26394}
26395
26396CheckAtariOSMesa()
26397{
26398    if test "x$enable_video" = "xyes" -a "x$enable_video_opengl" = "xyes"; then
26399        if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26400  { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26401echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26402if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26403  echo $ECHO_N "(cached) $ECHO_C" >&6
26404fi
26405{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26406echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26407else
26408  # Is the header compilable?
26409{ echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
26410echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
26411cat >conftest.$ac_ext <<_ACEOF
26412/* confdefs.h.  */
26413_ACEOF
26414cat confdefs.h >>conftest.$ac_ext
26415cat >>conftest.$ac_ext <<_ACEOF
26416/* end confdefs.h.  */
26417$ac_includes_default
26418#include <GL/osmesa.h>
26419_ACEOF
26420rm -f conftest.$ac_objext
26421if { (ac_try="$ac_compile"
26422case "(($ac_try" in
26423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424  *) ac_try_echo=$ac_try;;
26425esac
26426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427  (eval "$ac_compile") 2>conftest.er1
26428  ac_status=$?
26429  grep -v '^ *+' conftest.er1 >conftest.err
26430  rm -f conftest.er1
26431  cat conftest.err >&5
26432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433  (exit $ac_status); } && {
26434	 test -z "$ac_c_werror_flag" ||
26435	 test ! -s conftest.err
26436       } && test -s conftest.$ac_objext; then
26437  ac_header_compiler=yes
26438else
26439  echo "$as_me: failed program was:" >&5
26440sed 's/^/| /' conftest.$ac_ext >&5
26441
26442	ac_header_compiler=no
26443fi
26444
26445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26447echo "${ECHO_T}$ac_header_compiler" >&6; }
26448
26449# Is the header present?
26450{ echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
26451echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
26452cat >conftest.$ac_ext <<_ACEOF
26453/* confdefs.h.  */
26454_ACEOF
26455cat confdefs.h >>conftest.$ac_ext
26456cat >>conftest.$ac_ext <<_ACEOF
26457/* end confdefs.h.  */
26458#include <GL/osmesa.h>
26459_ACEOF
26460if { (ac_try="$ac_cpp conftest.$ac_ext"
26461case "(($ac_try" in
26462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463  *) ac_try_echo=$ac_try;;
26464esac
26465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26467  ac_status=$?
26468  grep -v '^ *+' conftest.er1 >conftest.err
26469  rm -f conftest.er1
26470  cat conftest.err >&5
26471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472  (exit $ac_status); } >/dev/null && {
26473	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26474	 test ! -s conftest.err
26475       }; then
26476  ac_header_preproc=yes
26477else
26478  echo "$as_me: failed program was:" >&5
26479sed 's/^/| /' conftest.$ac_ext >&5
26480
26481  ac_header_preproc=no
26482fi
26483
26484rm -f conftest.err conftest.$ac_ext
26485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26486echo "${ECHO_T}$ac_header_preproc" >&6; }
26487
26488# So?  What about this header?
26489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26490  yes:no: )
26491    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
26492echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26493    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
26494echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
26495    ac_header_preproc=yes
26496    ;;
26497  no:yes:* )
26498    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
26499echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
26500    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&5
26501echo "$as_me: WARNING: GL/osmesa.h:     check for missing prerequisite headers?" >&2;}
26502    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
26503echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
26504    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&5
26505echo "$as_me: WARNING: GL/osmesa.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26506    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
26507echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
26508    { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
26509echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
26510
26511    ;;
26512esac
26513{ echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
26514echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
26515if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
26516  echo $ECHO_N "(cached) $ECHO_C" >&6
26517else
26518  ac_cv_header_GL_osmesa_h=$ac_header_preproc
26519fi
26520{ echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
26521echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
26522
26523fi
26524if test $ac_cv_header_GL_osmesa_h = yes; then
26525  have_osmesa_hdr=yes
26526fi
26527
26528
26529        { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
26530echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
26531if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
26532  echo $ECHO_N "(cached) $ECHO_C" >&6
26533else
26534  ac_check_lib_save_LIBS=$LIBS
26535LIBS="-lOSMesa -lm $LIBS"
26536cat >conftest.$ac_ext <<_ACEOF
26537/* confdefs.h.  */
26538_ACEOF
26539cat confdefs.h >>conftest.$ac_ext
26540cat >>conftest.$ac_ext <<_ACEOF
26541/* end confdefs.h.  */
26542
26543/* Override any GCC internal prototype to avoid an error.
26544   Use char because int might match the return type of a GCC
26545   builtin and then its argument prototype would still apply.  */
26546#ifdef __cplusplus
26547extern "C"
26548#endif
26549char OSMesaCreateContext ();
26550int
26551main ()
26552{
26553return OSMesaCreateContext ();
26554  ;
26555  return 0;
26556}
26557_ACEOF
26558rm -f conftest.$ac_objext conftest$ac_exeext
26559if { (ac_try="$ac_link"
26560case "(($ac_try" in
26561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26562  *) ac_try_echo=$ac_try;;
26563esac
26564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26565  (eval "$ac_link") 2>conftest.er1
26566  ac_status=$?
26567  grep -v '^ *+' conftest.er1 >conftest.err
26568  rm -f conftest.er1
26569  cat conftest.err >&5
26570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571  (exit $ac_status); } && {
26572	 test -z "$ac_c_werror_flag" ||
26573	 test ! -s conftest.err
26574       } && test -s conftest$ac_exeext &&
26575       $as_test_x conftest$ac_exeext; then
26576  ac_cv_lib_OSMesa_OSMesaCreateContext=yes
26577else
26578  echo "$as_me: failed program was:" >&5
26579sed 's/^/| /' conftest.$ac_ext >&5
26580
26581	ac_cv_lib_OSMesa_OSMesaCreateContext=no
26582fi
26583
26584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26585      conftest$ac_exeext conftest.$ac_ext
26586LIBS=$ac_check_lib_save_LIBS
26587fi
26588{ echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
26589echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
26590if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
26591  have_osmesa_lib=yes
26592else
26593  have_osmesa_lib=no
26594fi
26595
26596
26597        # Static linking to -lOSMesa
26598        # Extract the first word of "osmesa-config", so it can be a program name with args.
26599set dummy osmesa-config; ac_word=$2
26600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26602if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
26603  echo $ECHO_N "(cached) $ECHO_C" >&6
26604else
26605  case $OSMESA_CONFIG in
26606  [\\/]* | ?:[\\/]*)
26607  ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
26608  ;;
26609  *)
26610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26611for as_dir in $PATH
26612do
26613  IFS=$as_save_IFS
26614  test -z "$as_dir" && as_dir=.
26615  for ac_exec_ext in '' $ac_executable_extensions; do
26616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26617    ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26619    break 2
26620  fi
26621done
26622done
26623IFS=$as_save_IFS
26624
26625  test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
26626  ;;
26627esac
26628fi
26629OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
26630if test -n "$OSMESA_CONFIG"; then
26631  { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
26632echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
26633else
26634  { echo "$as_me:$LINENO: result: no" >&5
26635echo "${ECHO_T}no" >&6; }
26636fi
26637
26638
26639        if test "x$OSMESA_CONFIG" = "xno" -o "x$enable_atari_ldg" = "xno"; then
26640            # -lOSMesa is really the static library
26641            if test "x$have_osmesa_hdr" = "xyes" -a "x$have_osmesa_lib" = "xyes"; then
26642                OSMESA_LIBS="-lOSMesa"
26643            fi
26644        else
26645            # -lOSMesa is a loader for OSMesa.ldg
26646            OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
26647            OSMESA_LIBS=`$OSMESA_CONFIG --libs`
26648        fi
26649        cat >>confdefs.h <<\_ACEOF
26650#define SDL_VIDEO_OPENGL 1
26651_ACEOF
26652
26653        cat >>confdefs.h <<\_ACEOF
26654#define SDL_VIDEO_OPENGL_OSMESA 1
26655_ACEOF
26656
26657        SDL_CFLAGS="$SDL_CFLAGS $OSMESA_CFLAGS"
26658        SDL_LIBS="$SDL_LIBS $OSMESA_LIBS"
26659
26660        # Check whether --enable-osmesa-shared was given.
26661if test "${enable_osmesa_shared+set}" = set; then
26662  enableval=$enable_osmesa_shared;
26663else
26664  enable_osmesa_shared=yes
26665fi
26666
26667        if test "x$enable_osmesa_shared" = "xyes" -a "x$enable_atari_ldg" = "xyes"; then
26668            # Dynamic linking
26669            if test "x$have_osmesa_hdr" = "xyes"; then
26670                cat >>confdefs.h <<\_ACEOF
26671#define SDL_VIDEO_OPENGL_OSMESA_DYNAMIC 1
26672_ACEOF
26673
26674            fi
26675        fi
26676    fi
26677}
26678
26679# Check whether --enable-screensaver was given.
26680if test "${enable_screensaver+set}" = set; then
26681  enableval=$enable_screensaver;
26682else
26683  enable_screensaver=no
26684fi
26685
26686if test x$enable_screensaver = xno; then
26687    cat >>confdefs.h <<\_ACEOF
26688#define SDL_VIDEO_DISABLE_SCREENSAVER 1
26689_ACEOF
26690
26691fi
26692
26693CheckInputEvents()
26694{
26695        # Check whether --enable-input-events was given.
26696if test "${enable_input_events+set}" = set; then
26697  enableval=$enable_input_events;
26698else
26699  enable_input_events=yes
26700fi
26701
26702    if test x$enable_input_events = xyes; then
26703        { echo "$as_me:$LINENO: checking for Linux 2.4 unified input interface" >&5
26704echo $ECHO_N "checking for Linux 2.4 unified input interface... $ECHO_C" >&6; }
26705        use_input_events=no
26706        cat >conftest.$ac_ext <<_ACEOF
26707/* confdefs.h.  */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h.  */
26712
26713          #include <linux/input.h>
26714
26715int
26716main ()
26717{
26718
26719          #ifndef EVIOCGNAME
26720          #error EVIOCGNAME() ioctl not available
26721          #endif
26722
26723  ;
26724  return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext
26728if { (ac_try="$ac_compile"
26729case "(($ac_try" in
26730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26731  *) ac_try_echo=$ac_try;;
26732esac
26733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26734  (eval "$ac_compile") 2>conftest.er1
26735  ac_status=$?
26736  grep -v '^ *+' conftest.er1 >conftest.err
26737  rm -f conftest.er1
26738  cat conftest.err >&5
26739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740  (exit $ac_status); } && {
26741	 test -z "$ac_c_werror_flag" ||
26742	 test ! -s conftest.err
26743       } && test -s conftest.$ac_objext; then
26744
26745        use_input_events=yes
26746
26747else
26748  echo "$as_me: failed program was:" >&5
26749sed 's/^/| /' conftest.$ac_ext >&5
26750
26751
26752fi
26753
26754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26755        { echo "$as_me:$LINENO: result: $use_input_events" >&5
26756echo "${ECHO_T}$use_input_events" >&6; }
26757        if test x$use_input_events = xyes; then
26758            cat >>confdefs.h <<\_ACEOF
26759#define SDL_INPUT_LINUXEV 1
26760_ACEOF
26761
26762        fi
26763    fi
26764}
26765
26766CheckTslib()
26767{
26768    # Check whether --enable-input-tslib was given.
26769if test "${enable_input_tslib+set}" = set; then
26770  enableval=$enable_input_tslib;
26771else
26772  enable_input_tslib=yes
26773fi
26774
26775    if test x$enable_input_tslib = xyes; then
26776        { echo "$as_me:$LINENO: checking for Touchscreen library support" >&5
26777echo $ECHO_N "checking for Touchscreen library support... $ECHO_C" >&6; }
26778        enable_input_tslib=no
26779        cat >conftest.$ac_ext <<_ACEOF
26780/* confdefs.h.  */
26781_ACEOF
26782cat confdefs.h >>conftest.$ac_ext
26783cat >>conftest.$ac_ext <<_ACEOF
26784/* end confdefs.h.  */
26785
26786          #include "tslib.h"
26787
26788int
26789main ()
26790{
26791
26792
26793  ;
26794  return 0;
26795}
26796_ACEOF
26797rm -f conftest.$ac_objext
26798if { (ac_try="$ac_compile"
26799case "(($ac_try" in
26800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801  *) ac_try_echo=$ac_try;;
26802esac
26803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804  (eval "$ac_compile") 2>conftest.er1
26805  ac_status=$?
26806  grep -v '^ *+' conftest.er1 >conftest.err
26807  rm -f conftest.er1
26808  cat conftest.err >&5
26809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810  (exit $ac_status); } && {
26811	 test -z "$ac_c_werror_flag" ||
26812	 test ! -s conftest.err
26813       } && test -s conftest.$ac_objext; then
26814
26815        enable_input_tslib=yes
26816
26817else
26818  echo "$as_me: failed program was:" >&5
26819sed 's/^/| /' conftest.$ac_ext >&5
26820
26821
26822fi
26823
26824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26825        { echo "$as_me:$LINENO: result: $enable_input_tslib" >&5
26826echo "${ECHO_T}$enable_input_tslib" >&6; }
26827        if test x$enable_input_tslib = xyes; then
26828            cat >>confdefs.h <<\_ACEOF
26829#define SDL_INPUT_TSLIB 1
26830_ACEOF
26831
26832            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
26833        fi
26834    fi
26835}
26836
26837CheckPTH()
26838{
26839        # Check whether --enable-pth was given.
26840if test "${enable_pth+set}" = set; then
26841  enableval=$enable_pth;
26842else
26843  enable_pth=yes
26844fi
26845
26846    if test x$enable_threads = xyes -a x$enable_pth = xyes; then
26847        # Extract the first word of "pth-config", so it can be a program name with args.
26848set dummy pth-config; ac_word=$2
26849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26851if test "${ac_cv_path_PTH_CONFIG+set}" = set; then
26852  echo $ECHO_N "(cached) $ECHO_C" >&6
26853else
26854  case $PTH_CONFIG in
26855  [\\/]* | ?:[\\/]*)
26856  ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
26857  ;;
26858  *)
26859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26860for as_dir in $PATH
26861do
26862  IFS=$as_save_IFS
26863  test -z "$as_dir" && as_dir=.
26864  for ac_exec_ext in '' $ac_executable_extensions; do
26865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26866    ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26868    break 2
26869  fi
26870done
26871done
26872IFS=$as_save_IFS
26873
26874  test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
26875  ;;
26876esac
26877fi
26878PTH_CONFIG=$ac_cv_path_PTH_CONFIG
26879if test -n "$PTH_CONFIG"; then
26880  { echo "$as_me:$LINENO: result: $PTH_CONFIG" >&5
26881echo "${ECHO_T}$PTH_CONFIG" >&6; }
26882else
26883  { echo "$as_me:$LINENO: result: no" >&5
26884echo "${ECHO_T}no" >&6; }
26885fi
26886
26887
26888        if test "$PTH_CONFIG" = "no"; then
26889            use_pth=no
26890        else
26891            use_pth=yes
26892        fi
26893        { echo "$as_me:$LINENO: checking pth" >&5
26894echo $ECHO_N "checking pth... $ECHO_C" >&6; }
26895        { echo "$as_me:$LINENO: result: $use_pth" >&5
26896echo "${ECHO_T}$use_pth" >&6; }
26897        if test "x$use_pth" = xyes; then
26898            cat >>confdefs.h <<\_ACEOF
26899#define SDL_THREAD_PTH 1
26900_ACEOF
26901
26902            SOURCES="$SOURCES $srcdir/src/thread/pth/*.c"
26903            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
26904            SDL_CFLAGS="$SDL_CFLAGS `$PTH_CONFIG --cflags`"
26905            SDL_LIBS="$SDL_LIBS `$PTH_CONFIG --libs --all`"
26906            have_threads=yes
26907        fi
26908    fi
26909}
26910
26911CheckPTHREAD()
26912{
26913        # Check whether --enable-pthreads was given.
26914if test "${enable_pthreads+set}" = set; then
26915  enableval=$enable_pthreads;
26916else
26917  enable_pthreads=yes
26918fi
26919
26920        # Check whether --enable-pthread-sem was given.
26921if test "${enable_pthread_sem+set}" = set; then
26922  enableval=$enable_pthread_sem;
26923else
26924  enable_pthread_sem=yes
26925fi
26926
26927    case "$host" in
26928        *-*-linux*|*-*-uclinux*)
26929            pthread_cflags="-D_REENTRANT"
26930            pthread_lib="-lpthread"
26931            ;;
26932        *-*-bsdi*)
26933            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26934            pthread_lib=""
26935            ;;
26936        *-*-darwin*)
26937            pthread_cflags="-D_THREAD_SAFE"
26938# causes Carbon.p complaints?
26939#            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26940            ;;
26941        *-*-freebsd*|*-*-dragonfly*)
26942            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26943            pthread_lib="-pthread"
26944            ;;
26945        *-*-netbsd*)
26946            pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
26947            pthread_lib="-lpthread"
26948            ;;
26949        *-*-openbsd*)
26950            pthread_cflags="-D_REENTRANT"
26951            pthread_lib="-pthread"
26952            ;;
26953        *-*-solaris*)
26954            pthread_cflags="-D_REENTRANT"
26955            pthread_lib="-lpthread -lposix4"
26956            ;;
26957        *-*-sysv5*)
26958            pthread_cflags="-D_REENTRANT -Kthread"
26959            pthread_lib=""
26960            ;;
26961        *-*-irix*)
26962            pthread_cflags="-D_SGI_MP_SOURCE"
26963            pthread_lib="-lpthread"
26964            ;;
26965        *-*-aix*)
26966            pthread_cflags="-D_REENTRANT -mthreads"
26967            pthread_lib="-lpthread"
26968            ;;
26969        *-*-hpux11*)
26970            pthread_cflags="-D_REENTRANT"
26971            pthread_lib="-L/usr/lib -lpthread"
26972            ;;
26973        *-*-qnx*)
26974            pthread_cflags=""
26975            pthread_lib=""
26976            ;;
26977        *-*-osf*)
26978            pthread_cflags="-D_REENTRANT"
26979            if test x$ac_cv_c_compiler_gnu = xyes; then
26980                pthread_lib="-lpthread -lrt"
26981            else
26982                pthread_lib="-lpthread -lexc -lrt"
26983            fi
26984            ;;
26985        *)
26986            pthread_cflags="-D_REENTRANT"
26987            pthread_lib="-lpthread"
26988            ;;
26989    esac
26990    if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
26991        # Save the original compiler flags and libraries
26992        ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
26993        # Add the pthread compiler flags and libraries
26994        CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
26995        # Check to see if we have pthread support on this system
26996        { echo "$as_me:$LINENO: checking for pthreads" >&5
26997echo $ECHO_N "checking for pthreads... $ECHO_C" >&6; }
26998        use_pthreads=no
26999        cat >conftest.$ac_ext <<_ACEOF
27000/* confdefs.h.  */
27001_ACEOF
27002cat confdefs.h >>conftest.$ac_ext
27003cat >>conftest.$ac_ext <<_ACEOF
27004/* end confdefs.h.  */
27005
27006         #include <pthread.h>
27007
27008int
27009main ()
27010{
27011
27012         pthread_attr_t type;
27013         pthread_attr_init(&type);
27014
27015  ;
27016  return 0;
27017}
27018_ACEOF
27019rm -f conftest.$ac_objext conftest$ac_exeext
27020if { (ac_try="$ac_link"
27021case "(($ac_try" in
27022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023  *) ac_try_echo=$ac_try;;
27024esac
27025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026  (eval "$ac_link") 2>conftest.er1
27027  ac_status=$?
27028  grep -v '^ *+' conftest.er1 >conftest.err
27029  rm -f conftest.er1
27030  cat conftest.err >&5
27031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032  (exit $ac_status); } && {
27033	 test -z "$ac_c_werror_flag" ||
27034	 test ! -s conftest.err
27035       } && test -s conftest$ac_exeext &&
27036       $as_test_x conftest$ac_exeext; then
27037
27038        use_pthreads=yes
27039
27040else
27041  echo "$as_me: failed program was:" >&5
27042sed 's/^/| /' conftest.$ac_ext >&5
27043
27044
27045fi
27046
27047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27048      conftest$ac_exeext conftest.$ac_ext
27049        { echo "$as_me:$LINENO: result: $use_pthreads" >&5
27050echo "${ECHO_T}$use_pthreads" >&6; }
27051        # Restore the compiler flags and libraries
27052        CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27053
27054        # Do futher testing if we have pthread support...
27055        if test x$use_pthreads = xyes; then
27056            cat >>confdefs.h <<\_ACEOF
27057#define SDL_THREAD_PTHREAD 1
27058_ACEOF
27059
27060            EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
27061            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
27062            SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
27063            SDL_LIBS="$SDL_LIBS $pthread_lib"
27064
27065            # Save the original compiler flags and libraries
27066            ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
27067            # Add the pthread compiler flags and libraries
27068            CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
27069
27070            # Check to see if recursive mutexes are available
27071            { echo "$as_me:$LINENO: checking for recursive mutexes" >&5
27072echo $ECHO_N "checking for recursive mutexes... $ECHO_C" >&6; }
27073            has_recursive_mutexes=no
27074            if test x$has_recursive_mutexes = xno; then
27075                cat >conftest.$ac_ext <<_ACEOF
27076/* confdefs.h.  */
27077_ACEOF
27078cat confdefs.h >>conftest.$ac_ext
27079cat >>conftest.$ac_ext <<_ACEOF
27080/* end confdefs.h.  */
27081
27082                  #include <pthread.h>
27083
27084int
27085main ()
27086{
27087
27088                  pthread_mutexattr_t attr;
27089                  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
27090
27091  ;
27092  return 0;
27093}
27094_ACEOF
27095rm -f conftest.$ac_objext
27096if { (ac_try="$ac_compile"
27097case "(($ac_try" in
27098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099  *) ac_try_echo=$ac_try;;
27100esac
27101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102  (eval "$ac_compile") 2>conftest.er1
27103  ac_status=$?
27104  grep -v '^ *+' conftest.er1 >conftest.err
27105  rm -f conftest.er1
27106  cat conftest.err >&5
27107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108  (exit $ac_status); } && {
27109	 test -z "$ac_c_werror_flag" ||
27110	 test ! -s conftest.err
27111       } && test -s conftest.$ac_objext; then
27112
27113                has_recursive_mutexes=yes
27114                cat >>confdefs.h <<\_ACEOF
27115#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1
27116_ACEOF
27117
27118
27119else
27120  echo "$as_me: failed program was:" >&5
27121sed 's/^/| /' conftest.$ac_ext >&5
27122
27123
27124fi
27125
27126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27127            fi
27128            if test x$has_recursive_mutexes = xno; then
27129                cat >conftest.$ac_ext <<_ACEOF
27130/* confdefs.h.  */
27131_ACEOF
27132cat confdefs.h >>conftest.$ac_ext
27133cat >>conftest.$ac_ext <<_ACEOF
27134/* end confdefs.h.  */
27135
27136                  #include <pthread.h>
27137
27138int
27139main ()
27140{
27141
27142                  pthread_mutexattr_t attr;
27143                  pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
27144
27145  ;
27146  return 0;
27147}
27148_ACEOF
27149rm -f conftest.$ac_objext
27150if { (ac_try="$ac_compile"
27151case "(($ac_try" in
27152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27153  *) ac_try_echo=$ac_try;;
27154esac
27155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27156  (eval "$ac_compile") 2>conftest.er1
27157  ac_status=$?
27158  grep -v '^ *+' conftest.er1 >conftest.err
27159  rm -f conftest.er1
27160  cat conftest.err >&5
27161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162  (exit $ac_status); } && {
27163	 test -z "$ac_c_werror_flag" ||
27164	 test ! -s conftest.err
27165       } && test -s conftest.$ac_objext; then
27166
27167                has_recursive_mutexes=yes
27168                cat >>confdefs.h <<\_ACEOF
27169#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1
27170_ACEOF
27171
27172
27173else
27174  echo "$as_me: failed program was:" >&5
27175sed 's/^/| /' conftest.$ac_ext >&5
27176
27177
27178fi
27179
27180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27181            fi
27182            { echo "$as_me:$LINENO: result: $has_recursive_mutexes" >&5
27183echo "${ECHO_T}$has_recursive_mutexes" >&6; }
27184
27185            # Check to see if pthread semaphore support is missing
27186            if test x$enable_pthread_sem = xyes; then
27187                { echo "$as_me:$LINENO: checking for pthread semaphores" >&5
27188echo $ECHO_N "checking for pthread semaphores... $ECHO_C" >&6; }
27189                have_pthread_sem=no
27190                cat >conftest.$ac_ext <<_ACEOF
27191/* confdefs.h.  */
27192_ACEOF
27193cat confdefs.h >>conftest.$ac_ext
27194cat >>conftest.$ac_ext <<_ACEOF
27195/* end confdefs.h.  */
27196
27197                  #include <pthread.h>
27198                  #include <semaphore.h>
27199
27200int
27201main ()
27202{
27203
27204
27205  ;
27206  return 0;
27207}
27208_ACEOF
27209rm -f conftest.$ac_objext
27210if { (ac_try="$ac_compile"
27211case "(($ac_try" in
27212  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213  *) ac_try_echo=$ac_try;;
27214esac
27215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216  (eval "$ac_compile") 2>conftest.er1
27217  ac_status=$?
27218  grep -v '^ *+' conftest.er1 >conftest.err
27219  rm -f conftest.er1
27220  cat conftest.err >&5
27221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222  (exit $ac_status); } && {
27223	 test -z "$ac_c_werror_flag" ||
27224	 test ! -s conftest.err
27225       } && test -s conftest.$ac_objext; then
27226
27227                have_pthread_sem=yes
27228
27229else
27230  echo "$as_me: failed program was:" >&5
27231sed 's/^/| /' conftest.$ac_ext >&5
27232
27233
27234fi
27235
27236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237                { echo "$as_me:$LINENO: result: $have_pthread_sem" >&5
27238echo "${ECHO_T}$have_pthread_sem" >&6; }
27239            fi
27240            if test x$have_pthread_sem = xyes; then
27241                { echo "$as_me:$LINENO: checking for sem_timedwait" >&5
27242echo $ECHO_N "checking for sem_timedwait... $ECHO_C" >&6; }
27243                have_sem_timedwait=no
27244                cat >conftest.$ac_ext <<_ACEOF
27245/* confdefs.h.  */
27246_ACEOF
27247cat confdefs.h >>conftest.$ac_ext
27248cat >>conftest.$ac_ext <<_ACEOF
27249/* end confdefs.h.  */
27250
27251                  #include <pthread.h>
27252                  #include <semaphore.h>
27253
27254int
27255main ()
27256{
27257
27258                  sem_timedwait(NULL, NULL);
27259
27260  ;
27261  return 0;
27262}
27263_ACEOF
27264rm -f conftest.$ac_objext conftest$ac_exeext
27265if { (ac_try="$ac_link"
27266case "(($ac_try" in
27267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268  *) ac_try_echo=$ac_try;;
27269esac
27270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271  (eval "$ac_link") 2>conftest.er1
27272  ac_status=$?
27273  grep -v '^ *+' conftest.er1 >conftest.err
27274  rm -f conftest.er1
27275  cat conftest.err >&5
27276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277  (exit $ac_status); } && {
27278	 test -z "$ac_c_werror_flag" ||
27279	 test ! -s conftest.err
27280       } && test -s conftest$ac_exeext &&
27281       $as_test_x conftest$ac_exeext; then
27282
27283                have_sem_timedwait=yes
27284                cat >>confdefs.h <<\_ACEOF
27285#define HAVE_SEM_TIMEDWAIT 1
27286_ACEOF
27287
27288
27289else
27290  echo "$as_me: failed program was:" >&5
27291sed 's/^/| /' conftest.$ac_ext >&5
27292
27293
27294fi
27295
27296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27297      conftest$ac_exeext conftest.$ac_ext
27298                { echo "$as_me:$LINENO: result: $have_sem_timedwait" >&5
27299echo "${ECHO_T}$have_sem_timedwait" >&6; }
27300            fi
27301
27302            # Restore the compiler flags and libraries
27303            CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
27304
27305            # Basic thread creation functions
27306            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
27307
27308            # Semaphores
27309            # We can fake these with mutexes and condition variables if necessary
27310            if test x$have_pthread_sem = xyes; then
27311                SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
27312            else
27313                SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
27314            fi
27315
27316            # Mutexes
27317            # We can fake these with semaphores if necessary
27318            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
27319
27320            # Condition variables
27321            # We can fake these with semaphores and mutexes if necessary
27322            SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
27323
27324            have_threads=yes
27325        else
27326            CheckPTH
27327        fi
27328    fi
27329}
27330
27331CheckWIN32()
27332{
27333    { echo "$as_me:$LINENO: checking Win32 compiler" >&5
27334echo $ECHO_N "checking Win32 compiler... $ECHO_C" >&6; }
27335    have_win32_gcc=no
27336    cat >conftest.$ac_ext <<_ACEOF
27337/* confdefs.h.  */
27338_ACEOF
27339cat confdefs.h >>conftest.$ac_ext
27340cat >>conftest.$ac_ext <<_ACEOF
27341/* end confdefs.h.  */
27342
27343     #include <windows.h>
27344
27345int
27346main ()
27347{
27348
27349
27350  ;
27351  return 0;
27352}
27353_ACEOF
27354rm -f conftest.$ac_objext
27355if { (ac_try="$ac_compile"
27356case "(($ac_try" in
27357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358  *) ac_try_echo=$ac_try;;
27359esac
27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361  (eval "$ac_compile") 2>conftest.er1
27362  ac_status=$?
27363  grep -v '^ *+' conftest.er1 >conftest.err
27364  rm -f conftest.er1
27365  cat conftest.err >&5
27366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367  (exit $ac_status); } && {
27368	 test -z "$ac_c_werror_flag" ||
27369	 test ! -s conftest.err
27370       } && test -s conftest.$ac_objext; then
27371
27372    have_win32_gcc=yes
27373
27374else
27375  echo "$as_me: failed program was:" >&5
27376sed 's/^/| /' conftest.$ac_ext >&5
27377
27378
27379fi
27380
27381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382    { echo "$as_me:$LINENO: result: $have_win32_gcc" >&5
27383echo "${ECHO_T}$have_win32_gcc" >&6; }
27384    if test x$have_win32_gcc != xyes; then
27385       { { echo "$as_me:$LINENO: error:
27386*** Your compiler ($CC) does not produce Win32 executables!
27387       " >&5
27388echo "$as_me: error:
27389*** Your compiler ($CC) does not produce Win32 executables!
27390       " >&2;}
27391   { (exit 1); exit 1; }; }
27392    fi
27393
27394        # Check whether --enable-stdio-redirect was given.
27395if test "${enable_stdio_redirect+set}" = set; then
27396  enableval=$enable_stdio_redirect;
27397else
27398  enable_stdio_redirect=yes
27399fi
27400
27401    if test x$enable_stdio_redirect != xyes; then
27402        EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_STDIO_REDIRECT"
27403    fi
27404
27405    if test x$enable_video = xyes; then
27406        cat >>confdefs.h <<\_ACEOF
27407#define SDL_VIDEO_DRIVER_WINDIB 1
27408_ACEOF
27409
27410        SOURCES="$SOURCES $srcdir/src/video/wincommon/*.c"
27411        SOURCES="$SOURCES $srcdir/src/video/windib/*.c"
27412        have_video=yes
27413    fi
27414}
27415
27416CheckDIRECTX()
27417{
27418    # Check whether --enable-directx was given.
27419if test "${enable_directx+set}" = set; then
27420  enableval=$enable_directx;
27421else
27422  enable_directx=yes
27423fi
27424
27425    if test x$enable_directx = xyes; then
27426        have_directx=no
27427        if test "${ac_cv_header_ddraw_h+set}" = set; then
27428  { echo "$as_me:$LINENO: checking for ddraw.h" >&5
27429echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27430if test "${ac_cv_header_ddraw_h+set}" = set; then
27431  echo $ECHO_N "(cached) $ECHO_C" >&6
27432fi
27433{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27434echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27435else
27436  # Is the header compilable?
27437{ echo "$as_me:$LINENO: checking ddraw.h usability" >&5
27438echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; }
27439cat >conftest.$ac_ext <<_ACEOF
27440/* confdefs.h.  */
27441_ACEOF
27442cat confdefs.h >>conftest.$ac_ext
27443cat >>conftest.$ac_ext <<_ACEOF
27444/* end confdefs.h.  */
27445$ac_includes_default
27446#include <ddraw.h>
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (ac_try="$ac_compile"
27450case "(($ac_try" in
27451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27452  *) ac_try_echo=$ac_try;;
27453esac
27454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27455  (eval "$ac_compile") 2>conftest.er1
27456  ac_status=$?
27457  grep -v '^ *+' conftest.er1 >conftest.err
27458  rm -f conftest.er1
27459  cat conftest.err >&5
27460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461  (exit $ac_status); } && {
27462	 test -z "$ac_c_werror_flag" ||
27463	 test ! -s conftest.err
27464       } && test -s conftest.$ac_objext; then
27465  ac_header_compiler=yes
27466else
27467  echo "$as_me: failed program was:" >&5
27468sed 's/^/| /' conftest.$ac_ext >&5
27469
27470	ac_header_compiler=no
27471fi
27472
27473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27475echo "${ECHO_T}$ac_header_compiler" >&6; }
27476
27477# Is the header present?
27478{ echo "$as_me:$LINENO: checking ddraw.h presence" >&5
27479echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; }
27480cat >conftest.$ac_ext <<_ACEOF
27481/* confdefs.h.  */
27482_ACEOF
27483cat confdefs.h >>conftest.$ac_ext
27484cat >>conftest.$ac_ext <<_ACEOF
27485/* end confdefs.h.  */
27486#include <ddraw.h>
27487_ACEOF
27488if { (ac_try="$ac_cpp conftest.$ac_ext"
27489case "(($ac_try" in
27490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491  *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27495  ac_status=$?
27496  grep -v '^ *+' conftest.er1 >conftest.err
27497  rm -f conftest.er1
27498  cat conftest.err >&5
27499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500  (exit $ac_status); } >/dev/null && {
27501	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27502	 test ! -s conftest.err
27503       }; then
27504  ac_header_preproc=yes
27505else
27506  echo "$as_me: failed program was:" >&5
27507sed 's/^/| /' conftest.$ac_ext >&5
27508
27509  ac_header_preproc=no
27510fi
27511
27512rm -f conftest.err conftest.$ac_ext
27513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27514echo "${ECHO_T}$ac_header_preproc" >&6; }
27515
27516# So?  What about this header?
27517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27518  yes:no: )
27519    { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
27520echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27521    { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5
27522echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;}
27523    ac_header_preproc=yes
27524    ;;
27525  no:yes:* )
27526    { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5
27527echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;}
27528    { echo "$as_me:$LINENO: WARNING: ddraw.h:     check for missing prerequisite headers?" >&5
27529echo "$as_me: WARNING: ddraw.h:     check for missing prerequisite headers?" >&2;}
27530    { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5
27531echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;}
27532    { echo "$as_me:$LINENO: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&5
27533echo "$as_me: WARNING: ddraw.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27534    { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5
27535echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;}
27536    { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5
27537echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;}
27538
27539    ;;
27540esac
27541{ echo "$as_me:$LINENO: checking for ddraw.h" >&5
27542echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
27543if test "${ac_cv_header_ddraw_h+set}" = set; then
27544  echo $ECHO_N "(cached) $ECHO_C" >&6
27545else
27546  ac_cv_header_ddraw_h=$ac_header_preproc
27547fi
27548{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
27549echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
27550
27551fi
27552if test $ac_cv_header_ddraw_h = yes; then
27553  have_ddraw=yes
27554fi
27555
27556
27557        if test "${ac_cv_header_dsound_h+set}" = set; then
27558  { echo "$as_me:$LINENO: checking for dsound.h" >&5
27559echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27560if test "${ac_cv_header_dsound_h+set}" = set; then
27561  echo $ECHO_N "(cached) $ECHO_C" >&6
27562fi
27563{ echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27564echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27565else
27566  # Is the header compilable?
27567{ echo "$as_me:$LINENO: checking dsound.h usability" >&5
27568echo $ECHO_N "checking dsound.h usability... $ECHO_C" >&6; }
27569cat >conftest.$ac_ext <<_ACEOF
27570/* confdefs.h.  */
27571_ACEOF
27572cat confdefs.h >>conftest.$ac_ext
27573cat >>conftest.$ac_ext <<_ACEOF
27574/* end confdefs.h.  */
27575$ac_includes_default
27576#include <dsound.h>
27577_ACEOF
27578rm -f conftest.$ac_objext
27579if { (ac_try="$ac_compile"
27580case "(($ac_try" in
27581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582  *) ac_try_echo=$ac_try;;
27583esac
27584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585  (eval "$ac_compile") 2>conftest.er1
27586  ac_status=$?
27587  grep -v '^ *+' conftest.er1 >conftest.err
27588  rm -f conftest.er1
27589  cat conftest.err >&5
27590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591  (exit $ac_status); } && {
27592	 test -z "$ac_c_werror_flag" ||
27593	 test ! -s conftest.err
27594       } && test -s conftest.$ac_objext; then
27595  ac_header_compiler=yes
27596else
27597  echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600	ac_header_compiler=no
27601fi
27602
27603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27605echo "${ECHO_T}$ac_header_compiler" >&6; }
27606
27607# Is the header present?
27608{ echo "$as_me:$LINENO: checking dsound.h presence" >&5
27609echo $ECHO_N "checking dsound.h presence... $ECHO_C" >&6; }
27610cat >conftest.$ac_ext <<_ACEOF
27611/* confdefs.h.  */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h.  */
27616#include <dsound.h>
27617_ACEOF
27618if { (ac_try="$ac_cpp conftest.$ac_ext"
27619case "(($ac_try" in
27620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27621  *) ac_try_echo=$ac_try;;
27622esac
27623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27625  ac_status=$?
27626  grep -v '^ *+' conftest.er1 >conftest.err
27627  rm -f conftest.er1
27628  cat conftest.err >&5
27629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630  (exit $ac_status); } >/dev/null && {
27631	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27632	 test ! -s conftest.err
27633       }; then
27634  ac_header_preproc=yes
27635else
27636  echo "$as_me: failed program was:" >&5
27637sed 's/^/| /' conftest.$ac_ext >&5
27638
27639  ac_header_preproc=no
27640fi
27641
27642rm -f conftest.err conftest.$ac_ext
27643{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27644echo "${ECHO_T}$ac_header_preproc" >&6; }
27645
27646# So?  What about this header?
27647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27648  yes:no: )
27649    { echo "$as_me:$LINENO: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&5
27650echo "$as_me: WARNING: dsound.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27651    { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the compiler's result" >&5
27652echo "$as_me: WARNING: dsound.h: proceeding with the compiler's result" >&2;}
27653    ac_header_preproc=yes
27654    ;;
27655  no:yes:* )
27656    { echo "$as_me:$LINENO: WARNING: dsound.h: present but cannot be compiled" >&5
27657echo "$as_me: WARNING: dsound.h: present but cannot be compiled" >&2;}
27658    { echo "$as_me:$LINENO: WARNING: dsound.h:     check for missing prerequisite headers?" >&5
27659echo "$as_me: WARNING: dsound.h:     check for missing prerequisite headers?" >&2;}
27660    { echo "$as_me:$LINENO: WARNING: dsound.h: see the Autoconf documentation" >&5
27661echo "$as_me: WARNING: dsound.h: see the Autoconf documentation" >&2;}
27662    { echo "$as_me:$LINENO: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&5
27663echo "$as_me: WARNING: dsound.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27664    { echo "$as_me:$LINENO: WARNING: dsound.h: proceeding with the preprocessor's result" >&5
27665echo "$as_me: WARNING: dsound.h: proceeding with the preprocessor's result" >&2;}
27666    { echo "$as_me:$LINENO: WARNING: dsound.h: in the future, the compiler will take precedence" >&5
27667echo "$as_me: WARNING: dsound.h: in the future, the compiler will take precedence" >&2;}
27668
27669    ;;
27670esac
27671{ echo "$as_me:$LINENO: checking for dsound.h" >&5
27672echo $ECHO_N "checking for dsound.h... $ECHO_C" >&6; }
27673if test "${ac_cv_header_dsound_h+set}" = set; then
27674  echo $ECHO_N "(cached) $ECHO_C" >&6
27675else
27676  ac_cv_header_dsound_h=$ac_header_preproc
27677fi
27678{ echo "$as_me:$LINENO: result: $ac_cv_header_dsound_h" >&5
27679echo "${ECHO_T}$ac_cv_header_dsound_h" >&6; }
27680
27681fi
27682if test $ac_cv_header_dsound_h = yes; then
27683  have_dsound=yes
27684fi
27685
27686
27687        if test "${ac_cv_header_dinput_h+set}" = set; then
27688  { echo "$as_me:$LINENO: checking for dinput.h" >&5
27689echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27690if test "${ac_cv_header_dinput_h+set}" = set; then
27691  echo $ECHO_N "(cached) $ECHO_C" >&6
27692fi
27693{ echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27694echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27695else
27696  # Is the header compilable?
27697{ echo "$as_me:$LINENO: checking dinput.h usability" >&5
27698echo $ECHO_N "checking dinput.h usability... $ECHO_C" >&6; }
27699cat >conftest.$ac_ext <<_ACEOF
27700/* confdefs.h.  */
27701_ACEOF
27702cat confdefs.h >>conftest.$ac_ext
27703cat >>conftest.$ac_ext <<_ACEOF
27704/* end confdefs.h.  */
27705$ac_includes_default
27706#include <dinput.h>
27707_ACEOF
27708rm -f conftest.$ac_objext
27709if { (ac_try="$ac_compile"
27710case "(($ac_try" in
27711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712  *) ac_try_echo=$ac_try;;
27713esac
27714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715  (eval "$ac_compile") 2>conftest.er1
27716  ac_status=$?
27717  grep -v '^ *+' conftest.er1 >conftest.err
27718  rm -f conftest.er1
27719  cat conftest.err >&5
27720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721  (exit $ac_status); } && {
27722	 test -z "$ac_c_werror_flag" ||
27723	 test ! -s conftest.err
27724       } && test -s conftest.$ac_objext; then
27725  ac_header_compiler=yes
27726else
27727  echo "$as_me: failed program was:" >&5
27728sed 's/^/| /' conftest.$ac_ext >&5
27729
27730	ac_header_compiler=no
27731fi
27732
27733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27735echo "${ECHO_T}$ac_header_compiler" >&6; }
27736
27737# Is the header present?
27738{ echo "$as_me:$LINENO: checking dinput.h presence" >&5
27739echo $ECHO_N "checking dinput.h presence... $ECHO_C" >&6; }
27740cat >conftest.$ac_ext <<_ACEOF
27741/* confdefs.h.  */
27742_ACEOF
27743cat confdefs.h >>conftest.$ac_ext
27744cat >>conftest.$ac_ext <<_ACEOF
27745/* end confdefs.h.  */
27746#include <dinput.h>
27747_ACEOF
27748if { (ac_try="$ac_cpp conftest.$ac_ext"
27749case "(($ac_try" in
27750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751  *) ac_try_echo=$ac_try;;
27752esac
27753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27755  ac_status=$?
27756  grep -v '^ *+' conftest.er1 >conftest.err
27757  rm -f conftest.er1
27758  cat conftest.err >&5
27759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760  (exit $ac_status); } >/dev/null && {
27761	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27762	 test ! -s conftest.err
27763       }; then
27764  ac_header_preproc=yes
27765else
27766  echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769  ac_header_preproc=no
27770fi
27771
27772rm -f conftest.err conftest.$ac_ext
27773{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27774echo "${ECHO_T}$ac_header_preproc" >&6; }
27775
27776# So?  What about this header?
27777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27778  yes:no: )
27779    { echo "$as_me:$LINENO: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&5
27780echo "$as_me: WARNING: dinput.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27781    { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the compiler's result" >&5
27782echo "$as_me: WARNING: dinput.h: proceeding with the compiler's result" >&2;}
27783    ac_header_preproc=yes
27784    ;;
27785  no:yes:* )
27786    { echo "$as_me:$LINENO: WARNING: dinput.h: present but cannot be compiled" >&5
27787echo "$as_me: WARNING: dinput.h: present but cannot be compiled" >&2;}
27788    { echo "$as_me:$LINENO: WARNING: dinput.h:     check for missing prerequisite headers?" >&5
27789echo "$as_me: WARNING: dinput.h:     check for missing prerequisite headers?" >&2;}
27790    { echo "$as_me:$LINENO: WARNING: dinput.h: see the Autoconf documentation" >&5
27791echo "$as_me: WARNING: dinput.h: see the Autoconf documentation" >&2;}
27792    { echo "$as_me:$LINENO: WARNING: dinput.h:     section \"Present But Cannot Be Compiled\"" >&5
27793echo "$as_me: WARNING: dinput.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27794    { echo "$as_me:$LINENO: WARNING: dinput.h: proceeding with the preprocessor's result" >&5
27795echo "$as_me: WARNING: dinput.h: proceeding with the preprocessor's result" >&2;}
27796    { echo "$as_me:$LINENO: WARNING: dinput.h: in the future, the compiler will take precedence" >&5
27797echo "$as_me: WARNING: dinput.h: in the future, the compiler will take precedence" >&2;}
27798
27799    ;;
27800esac
27801{ echo "$as_me:$LINENO: checking for dinput.h" >&5
27802echo $ECHO_N "checking for dinput.h... $ECHO_C" >&6; }
27803if test "${ac_cv_header_dinput_h+set}" = set; then
27804  echo $ECHO_N "(cached) $ECHO_C" >&6
27805else
27806  ac_cv_header_dinput_h=$ac_header_preproc
27807fi
27808{ echo "$as_me:$LINENO: result: $ac_cv_header_dinput_h" >&5
27809echo "${ECHO_T}$ac_cv_header_dinput_h" >&6; }
27810
27811fi
27812if test $ac_cv_header_dinput_h = yes; then
27813  use_dinput=yes
27814fi
27815
27816
27817        if test x$have_ddraw = xyes -a x$have_dsound = xyes -a x$use_dinput = xyes; then
27818            have_directx=yes
27819        fi
27820        if test x$enable_video = xyes -a x$have_directx = xyes; then
27821            cat >>confdefs.h <<\_ACEOF
27822#define SDL_VIDEO_DRIVER_DDRAW 1
27823_ACEOF
27824
27825            SOURCES="$SOURCES $srcdir/src/video/windx5/*.c"
27826            have_video=yes
27827        fi
27828    fi
27829}
27830
27831CheckDLOPEN()
27832{
27833    # Check whether --enable-sdl-dlopen was given.
27834if test "${enable_sdl_dlopen+set}" = set; then
27835  enableval=$enable_sdl_dlopen;
27836else
27837  enable_sdl_dlopen=yes
27838fi
27839
27840    if test x$enable_sdl_dlopen = xyes; then
27841        { echo "$as_me:$LINENO: checking for dlopen" >&5
27842echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
27843        have_dlopen=no
27844        cat >conftest.$ac_ext <<_ACEOF
27845/* confdefs.h.  */
27846_ACEOF
27847cat confdefs.h >>conftest.$ac_ext
27848cat >>conftest.$ac_ext <<_ACEOF
27849/* end confdefs.h.  */
27850
27851         #include <dlfcn.h>
27852
27853int
27854main ()
27855{
27856
27857         #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
27858         #error Use dlcompat for Mac OS X 10.2 compatibility
27859         #endif
27860
27861  ;
27862  return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext
27866if { (ac_try="$ac_compile"
27867case "(($ac_try" in
27868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869  *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872  (eval "$ac_compile") 2>conftest.er1
27873  ac_status=$?
27874  grep -v '^ *+' conftest.er1 >conftest.err
27875  rm -f conftest.er1
27876  cat conftest.err >&5
27877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878  (exit $ac_status); } && {
27879	 test -z "$ac_c_werror_flag" ||
27880	 test ! -s conftest.err
27881       } && test -s conftest.$ac_objext; then
27882
27883        have_dlopen=yes
27884
27885else
27886  echo "$as_me: failed program was:" >&5
27887sed 's/^/| /' conftest.$ac_ext >&5
27888
27889
27890fi
27891
27892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893        { echo "$as_me:$LINENO: result: $have_dlopen" >&5
27894echo "${ECHO_T}$have_dlopen" >&6; }
27895
27896        if test x$have_dlopen = xyes; then
27897            { echo "$as_me:$LINENO: checking for dlopen in -lc" >&5
27898echo $ECHO_N "checking for dlopen in -lc... $ECHO_C" >&6; }
27899if test "${ac_cv_lib_c_dlopen+set}" = set; then
27900  echo $ECHO_N "(cached) $ECHO_C" >&6
27901else
27902  ac_check_lib_save_LIBS=$LIBS
27903LIBS="-lc  $LIBS"
27904cat >conftest.$ac_ext <<_ACEOF
27905/* confdefs.h.  */
27906_ACEOF
27907cat confdefs.h >>conftest.$ac_ext
27908cat >>conftest.$ac_ext <<_ACEOF
27909/* end confdefs.h.  */
27910
27911/* Override any GCC internal prototype to avoid an error.
27912   Use char because int might match the return type of a GCC
27913   builtin and then its argument prototype would still apply.  */
27914#ifdef __cplusplus
27915extern "C"
27916#endif
27917char dlopen ();
27918int
27919main ()
27920{
27921return dlopen ();
27922  ;
27923  return 0;
27924}
27925_ACEOF
27926rm -f conftest.$ac_objext conftest$ac_exeext
27927if { (ac_try="$ac_link"
27928case "(($ac_try" in
27929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930  *) ac_try_echo=$ac_try;;
27931esac
27932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933  (eval "$ac_link") 2>conftest.er1
27934  ac_status=$?
27935  grep -v '^ *+' conftest.er1 >conftest.err
27936  rm -f conftest.er1
27937  cat conftest.err >&5
27938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939  (exit $ac_status); } && {
27940	 test -z "$ac_c_werror_flag" ||
27941	 test ! -s conftest.err
27942       } && test -s conftest$ac_exeext &&
27943       $as_test_x conftest$ac_exeext; then
27944  ac_cv_lib_c_dlopen=yes
27945else
27946  echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949	ac_cv_lib_c_dlopen=no
27950fi
27951
27952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27953      conftest$ac_exeext conftest.$ac_ext
27954LIBS=$ac_check_lib_save_LIBS
27955fi
27956{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5
27957echo "${ECHO_T}$ac_cv_lib_c_dlopen" >&6; }
27958if test $ac_cv_lib_c_dlopen = yes; then
27959  EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
27960else
27961  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27962echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
27963if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27964  echo $ECHO_N "(cached) $ECHO_C" >&6
27965else
27966  ac_check_lib_save_LIBS=$LIBS
27967LIBS="-ldl  $LIBS"
27968cat >conftest.$ac_ext <<_ACEOF
27969/* confdefs.h.  */
27970_ACEOF
27971cat confdefs.h >>conftest.$ac_ext
27972cat >>conftest.$ac_ext <<_ACEOF
27973/* end confdefs.h.  */
27974
27975/* Override any GCC internal prototype to avoid an error.
27976   Use char because int might match the return type of a GCC
27977   builtin and then its argument prototype would still apply.  */
27978#ifdef __cplusplus
27979extern "C"
27980#endif
27981char dlopen ();
27982int
27983main ()
27984{
27985return dlopen ();
27986  ;
27987  return 0;
27988}
27989_ACEOF
27990rm -f conftest.$ac_objext conftest$ac_exeext
27991if { (ac_try="$ac_link"
27992case "(($ac_try" in
27993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27994  *) ac_try_echo=$ac_try;;
27995esac
27996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27997  (eval "$ac_link") 2>conftest.er1
27998  ac_status=$?
27999  grep -v '^ *+' conftest.er1 >conftest.err
28000  rm -f conftest.er1
28001  cat conftest.err >&5
28002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003  (exit $ac_status); } && {
28004	 test -z "$ac_c_werror_flag" ||
28005	 test ! -s conftest.err
28006       } && test -s conftest$ac_exeext &&
28007       $as_test_x conftest$ac_exeext; then
28008  ac_cv_lib_dl_dlopen=yes
28009else
28010  echo "$as_me: failed program was:" >&5
28011sed 's/^/| /' conftest.$ac_ext >&5
28012
28013	ac_cv_lib_dl_dlopen=no
28014fi
28015
28016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28017      conftest$ac_exeext conftest.$ac_ext
28018LIBS=$ac_check_lib_save_LIBS
28019fi
28020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
28022if test $ac_cv_lib_dl_dlopen = yes; then
28023  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
28024else
28025  { echo "$as_me:$LINENO: checking for dlopen in -lltdl" >&5
28026echo $ECHO_N "checking for dlopen in -lltdl... $ECHO_C" >&6; }
28027if test "${ac_cv_lib_ltdl_dlopen+set}" = set; then
28028  echo $ECHO_N "(cached) $ECHO_C" >&6
28029else
28030  ac_check_lib_save_LIBS=$LIBS
28031LIBS="-lltdl  $LIBS"
28032cat >conftest.$ac_ext <<_ACEOF
28033/* confdefs.h.  */
28034_ACEOF
28035cat confdefs.h >>conftest.$ac_ext
28036cat >>conftest.$ac_ext <<_ACEOF
28037/* end confdefs.h.  */
28038
28039/* Override any GCC internal prototype to avoid an error.
28040   Use char because int might match the return type of a GCC
28041   builtin and then its argument prototype would still apply.  */
28042#ifdef __cplusplus
28043extern "C"
28044#endif
28045char dlopen ();
28046int
28047main ()
28048{
28049return dlopen ();
28050  ;
28051  return 0;
28052}
28053_ACEOF
28054rm -f conftest.$ac_objext conftest$ac_exeext
28055if { (ac_try="$ac_link"
28056case "(($ac_try" in
28057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28058  *) ac_try_echo=$ac_try;;
28059esac
28060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28061  (eval "$ac_link") 2>conftest.er1
28062  ac_status=$?
28063  grep -v '^ *+' conftest.er1 >conftest.err
28064  rm -f conftest.er1
28065  cat conftest.err >&5
28066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067  (exit $ac_status); } && {
28068	 test -z "$ac_c_werror_flag" ||
28069	 test ! -s conftest.err
28070       } && test -s conftest$ac_exeext &&
28071       $as_test_x conftest$ac_exeext; then
28072  ac_cv_lib_ltdl_dlopen=yes
28073else
28074  echo "$as_me: failed program was:" >&5
28075sed 's/^/| /' conftest.$ac_ext >&5
28076
28077	ac_cv_lib_ltdl_dlopen=no
28078fi
28079
28080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28081      conftest$ac_exeext conftest.$ac_ext
28082LIBS=$ac_check_lib_save_LIBS
28083fi
28084{ echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_dlopen" >&5
28085echo "${ECHO_T}$ac_cv_lib_ltdl_dlopen" >&6; }
28086if test $ac_cv_lib_ltdl_dlopen = yes; then
28087  EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
28088fi
28089
28090fi
28091
28092fi
28093
28094            cat >>confdefs.h <<\_ACEOF
28095#define SDL_LOADSO_DLOPEN 1
28096_ACEOF
28097
28098            SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
28099            have_loadso=yes
28100        fi
28101    fi
28102}
28103
28104CheckAtariLdg()
28105{
28106    # Check whether --enable-atari-ldg was given.
28107if test "${enable_atari_ldg+set}" = set; then
28108  enableval=$enable_atari_ldg;
28109else
28110  enable_atari_ldg=yes
28111fi
28112
28113    if test x$video_gem = xyes -a x$enable_atari_ldg = xyes; then
28114        if test "${ac_cv_header_ldg_h+set}" = set; then
28115  { echo "$as_me:$LINENO: checking for ldg.h" >&5
28116echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28117if test "${ac_cv_header_ldg_h+set}" = set; then
28118  echo $ECHO_N "(cached) $ECHO_C" >&6
28119fi
28120{ echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28121echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28122else
28123  # Is the header compilable?
28124{ echo "$as_me:$LINENO: checking ldg.h usability" >&5
28125echo $ECHO_N "checking ldg.h usability... $ECHO_C" >&6; }
28126cat >conftest.$ac_ext <<_ACEOF
28127/* confdefs.h.  */
28128_ACEOF
28129cat confdefs.h >>conftest.$ac_ext
28130cat >>conftest.$ac_ext <<_ACEOF
28131/* end confdefs.h.  */
28132$ac_includes_default
28133#include <ldg.h>
28134_ACEOF
28135rm -f conftest.$ac_objext
28136if { (ac_try="$ac_compile"
28137case "(($ac_try" in
28138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139  *) ac_try_echo=$ac_try;;
28140esac
28141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142  (eval "$ac_compile") 2>conftest.er1
28143  ac_status=$?
28144  grep -v '^ *+' conftest.er1 >conftest.err
28145  rm -f conftest.er1
28146  cat conftest.err >&5
28147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148  (exit $ac_status); } && {
28149	 test -z "$ac_c_werror_flag" ||
28150	 test ! -s conftest.err
28151       } && test -s conftest.$ac_objext; then
28152  ac_header_compiler=yes
28153else
28154  echo "$as_me: failed program was:" >&5
28155sed 's/^/| /' conftest.$ac_ext >&5
28156
28157	ac_header_compiler=no
28158fi
28159
28160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28162echo "${ECHO_T}$ac_header_compiler" >&6; }
28163
28164# Is the header present?
28165{ echo "$as_me:$LINENO: checking ldg.h presence" >&5
28166echo $ECHO_N "checking ldg.h presence... $ECHO_C" >&6; }
28167cat >conftest.$ac_ext <<_ACEOF
28168/* confdefs.h.  */
28169_ACEOF
28170cat confdefs.h >>conftest.$ac_ext
28171cat >>conftest.$ac_ext <<_ACEOF
28172/* end confdefs.h.  */
28173#include <ldg.h>
28174_ACEOF
28175if { (ac_try="$ac_cpp conftest.$ac_ext"
28176case "(($ac_try" in
28177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178  *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28182  ac_status=$?
28183  grep -v '^ *+' conftest.er1 >conftest.err
28184  rm -f conftest.er1
28185  cat conftest.err >&5
28186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187  (exit $ac_status); } >/dev/null && {
28188	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28189	 test ! -s conftest.err
28190       }; then
28191  ac_header_preproc=yes
28192else
28193  echo "$as_me: failed program was:" >&5
28194sed 's/^/| /' conftest.$ac_ext >&5
28195
28196  ac_header_preproc=no
28197fi
28198
28199rm -f conftest.err conftest.$ac_ext
28200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28201echo "${ECHO_T}$ac_header_preproc" >&6; }
28202
28203# So?  What about this header?
28204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28205  yes:no: )
28206    { echo "$as_me:$LINENO: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&5
28207echo "$as_me: WARNING: ldg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28208    { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the compiler's result" >&5
28209echo "$as_me: WARNING: ldg.h: proceeding with the compiler's result" >&2;}
28210    ac_header_preproc=yes
28211    ;;
28212  no:yes:* )
28213    { echo "$as_me:$LINENO: WARNING: ldg.h: present but cannot be compiled" >&5
28214echo "$as_me: WARNING: ldg.h: present but cannot be compiled" >&2;}
28215    { echo "$as_me:$LINENO: WARNING: ldg.h:     check for missing prerequisite headers?" >&5
28216echo "$as_me: WARNING: ldg.h:     check for missing prerequisite headers?" >&2;}
28217    { echo "$as_me:$LINENO: WARNING: ldg.h: see the Autoconf documentation" >&5
28218echo "$as_me: WARNING: ldg.h: see the Autoconf documentation" >&2;}
28219    { echo "$as_me:$LINENO: WARNING: ldg.h:     section \"Present But Cannot Be Compiled\"" >&5
28220echo "$as_me: WARNING: ldg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28221    { echo "$as_me:$LINENO: WARNING: ldg.h: proceeding with the preprocessor's result" >&5
28222echo "$as_me: WARNING: ldg.h: proceeding with the preprocessor's result" >&2;}
28223    { echo "$as_me:$LINENO: WARNING: ldg.h: in the future, the compiler will take precedence" >&5
28224echo "$as_me: WARNING: ldg.h: in the future, the compiler will take precedence" >&2;}
28225
28226    ;;
28227esac
28228{ echo "$as_me:$LINENO: checking for ldg.h" >&5
28229echo $ECHO_N "checking for ldg.h... $ECHO_C" >&6; }
28230if test "${ac_cv_header_ldg_h+set}" = set; then
28231  echo $ECHO_N "(cached) $ECHO_C" >&6
28232else
28233  ac_cv_header_ldg_h=$ac_header_preproc
28234fi
28235{ echo "$as_me:$LINENO: result: $ac_cv_header_ldg_h" >&5
28236echo "${ECHO_T}$ac_cv_header_ldg_h" >&6; }
28237
28238fi
28239if test $ac_cv_header_ldg_h = yes; then
28240  have_ldg_hdr=yes
28241fi
28242
28243
28244        { echo "$as_me:$LINENO: checking for ldg_open in -lldg" >&5
28245echo $ECHO_N "checking for ldg_open in -lldg... $ECHO_C" >&6; }
28246if test "${ac_cv_lib_ldg_ldg_open+set}" = set; then
28247  echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249  ac_check_lib_save_LIBS=$LIBS
28250LIBS="-lldg -lgem $LIBS"
28251cat >conftest.$ac_ext <<_ACEOF
28252/* confdefs.h.  */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h.  */
28257
28258/* Override any GCC internal prototype to avoid an error.
28259   Use char because int might match the return type of a GCC
28260   builtin and then its argument prototype would still apply.  */
28261#ifdef __cplusplus
28262extern "C"
28263#endif
28264char ldg_open ();
28265int
28266main ()
28267{
28268return ldg_open ();
28269  ;
28270  return 0;
28271}
28272_ACEOF
28273rm -f conftest.$ac_objext conftest$ac_exeext
28274if { (ac_try="$ac_link"
28275case "(($ac_try" in
28276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277  *) ac_try_echo=$ac_try;;
28278esac
28279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280  (eval "$ac_link") 2>conftest.er1
28281  ac_status=$?
28282  grep -v '^ *+' conftest.er1 >conftest.err
28283  rm -f conftest.er1
28284  cat conftest.err >&5
28285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286  (exit $ac_status); } && {
28287	 test -z "$ac_c_werror_flag" ||
28288	 test ! -s conftest.err
28289       } && test -s conftest$ac_exeext &&
28290       $as_test_x conftest$ac_exeext; then
28291  ac_cv_lib_ldg_ldg_open=yes
28292else
28293  echo "$as_me: failed program was:" >&5
28294sed 's/^/| /' conftest.$ac_ext >&5
28295
28296	ac_cv_lib_ldg_ldg_open=no
28297fi
28298
28299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28300      conftest$ac_exeext conftest.$ac_ext
28301LIBS=$ac_check_lib_save_LIBS
28302fi
28303{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldg_ldg_open" >&5
28304echo "${ECHO_T}$ac_cv_lib_ldg_ldg_open" >&6; }
28305if test $ac_cv_lib_ldg_ldg_open = yes; then
28306  have_ldg_lib=yes
28307else
28308  have_ldg_lib=no
28309fi
28310
28311        if test x$have_ldg_hdr = xyes -a x$have_ldg_lib = xyes; then
28312            cat >>confdefs.h <<\_ACEOF
28313#define SDL_LOADSO_LDG 1
28314_ACEOF
28315
28316            SOURCES="$SOURCES $srcdir/src/loadso/mint/*.c"
28317            SDL_LIBS="$SDL_LIBS -lldg -lgem"
28318            have_loadso=yes
28319        fi
28320    fi
28321}
28322
28323CheckUSBHID()
28324{
28325    if test x$enable_joystick = xyes; then
28326        { echo "$as_me:$LINENO: checking for hid_init in -lusbhid" >&5
28327echo $ECHO_N "checking for hid_init in -lusbhid... $ECHO_C" >&6; }
28328if test "${ac_cv_lib_usbhid_hid_init+set}" = set; then
28329  echo $ECHO_N "(cached) $ECHO_C" >&6
28330else
28331  ac_check_lib_save_LIBS=$LIBS
28332LIBS="-lusbhid  $LIBS"
28333cat >conftest.$ac_ext <<_ACEOF
28334/* confdefs.h.  */
28335_ACEOF
28336cat confdefs.h >>conftest.$ac_ext
28337cat >>conftest.$ac_ext <<_ACEOF
28338/* end confdefs.h.  */
28339
28340/* Override any GCC internal prototype to avoid an error.
28341   Use char because int might match the return type of a GCC
28342   builtin and then its argument prototype would still apply.  */
28343#ifdef __cplusplus
28344extern "C"
28345#endif
28346char hid_init ();
28347int
28348main ()
28349{
28350return hid_init ();
28351  ;
28352  return 0;
28353}
28354_ACEOF
28355rm -f conftest.$ac_objext conftest$ac_exeext
28356if { (ac_try="$ac_link"
28357case "(($ac_try" in
28358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359  *) ac_try_echo=$ac_try;;
28360esac
28361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362  (eval "$ac_link") 2>conftest.er1
28363  ac_status=$?
28364  grep -v '^ *+' conftest.er1 >conftest.err
28365  rm -f conftest.er1
28366  cat conftest.err >&5
28367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368  (exit $ac_status); } && {
28369	 test -z "$ac_c_werror_flag" ||
28370	 test ! -s conftest.err
28371       } && test -s conftest$ac_exeext &&
28372       $as_test_x conftest$ac_exeext; then
28373  ac_cv_lib_usbhid_hid_init=yes
28374else
28375  echo "$as_me: failed program was:" >&5
28376sed 's/^/| /' conftest.$ac_ext >&5
28377
28378	ac_cv_lib_usbhid_hid_init=no
28379fi
28380
28381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28382      conftest$ac_exeext conftest.$ac_ext
28383LIBS=$ac_check_lib_save_LIBS
28384fi
28385{ echo "$as_me:$LINENO: result: $ac_cv_lib_usbhid_hid_init" >&5
28386echo "${ECHO_T}$ac_cv_lib_usbhid_hid_init" >&6; }
28387if test $ac_cv_lib_usbhid_hid_init = yes; then
28388  have_libusbhid=yes
28389fi
28390
28391        if test x$have_libusbhid = xyes; then
28392            if test "${ac_cv_header_usbhid_h+set}" = set; then
28393  { echo "$as_me:$LINENO: checking for usbhid.h" >&5
28394echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28395if test "${ac_cv_header_usbhid_h+set}" = set; then
28396  echo $ECHO_N "(cached) $ECHO_C" >&6
28397fi
28398{ echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28399echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28400else
28401  # Is the header compilable?
28402{ echo "$as_me:$LINENO: checking usbhid.h usability" >&5
28403echo $ECHO_N "checking usbhid.h usability... $ECHO_C" >&6; }
28404cat >conftest.$ac_ext <<_ACEOF
28405/* confdefs.h.  */
28406_ACEOF
28407cat confdefs.h >>conftest.$ac_ext
28408cat >>conftest.$ac_ext <<_ACEOF
28409/* end confdefs.h.  */
28410$ac_includes_default
28411#include <usbhid.h>
28412_ACEOF
28413rm -f conftest.$ac_objext
28414if { (ac_try="$ac_compile"
28415case "(($ac_try" in
28416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417  *) ac_try_echo=$ac_try;;
28418esac
28419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420  (eval "$ac_compile") 2>conftest.er1
28421  ac_status=$?
28422  grep -v '^ *+' conftest.er1 >conftest.err
28423  rm -f conftest.er1
28424  cat conftest.err >&5
28425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426  (exit $ac_status); } && {
28427	 test -z "$ac_c_werror_flag" ||
28428	 test ! -s conftest.err
28429       } && test -s conftest.$ac_objext; then
28430  ac_header_compiler=yes
28431else
28432  echo "$as_me: failed program was:" >&5
28433sed 's/^/| /' conftest.$ac_ext >&5
28434
28435	ac_header_compiler=no
28436fi
28437
28438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28440echo "${ECHO_T}$ac_header_compiler" >&6; }
28441
28442# Is the header present?
28443{ echo "$as_me:$LINENO: checking usbhid.h presence" >&5
28444echo $ECHO_N "checking usbhid.h presence... $ECHO_C" >&6; }
28445cat >conftest.$ac_ext <<_ACEOF
28446/* confdefs.h.  */
28447_ACEOF
28448cat confdefs.h >>conftest.$ac_ext
28449cat >>conftest.$ac_ext <<_ACEOF
28450/* end confdefs.h.  */
28451#include <usbhid.h>
28452_ACEOF
28453if { (ac_try="$ac_cpp conftest.$ac_ext"
28454case "(($ac_try" in
28455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456  *) ac_try_echo=$ac_try;;
28457esac
28458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28460  ac_status=$?
28461  grep -v '^ *+' conftest.er1 >conftest.err
28462  rm -f conftest.er1
28463  cat conftest.err >&5
28464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465  (exit $ac_status); } >/dev/null && {
28466	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28467	 test ! -s conftest.err
28468       }; then
28469  ac_header_preproc=yes
28470else
28471  echo "$as_me: failed program was:" >&5
28472sed 's/^/| /' conftest.$ac_ext >&5
28473
28474  ac_header_preproc=no
28475fi
28476
28477rm -f conftest.err conftest.$ac_ext
28478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28479echo "${ECHO_T}$ac_header_preproc" >&6; }
28480
28481# So?  What about this header?
28482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28483  yes:no: )
28484    { echo "$as_me:$LINENO: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28485echo "$as_me: WARNING: usbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28486    { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the compiler's result" >&5
28487echo "$as_me: WARNING: usbhid.h: proceeding with the compiler's result" >&2;}
28488    ac_header_preproc=yes
28489    ;;
28490  no:yes:* )
28491    { echo "$as_me:$LINENO: WARNING: usbhid.h: present but cannot be compiled" >&5
28492echo "$as_me: WARNING: usbhid.h: present but cannot be compiled" >&2;}
28493    { echo "$as_me:$LINENO: WARNING: usbhid.h:     check for missing prerequisite headers?" >&5
28494echo "$as_me: WARNING: usbhid.h:     check for missing prerequisite headers?" >&2;}
28495    { echo "$as_me:$LINENO: WARNING: usbhid.h: see the Autoconf documentation" >&5
28496echo "$as_me: WARNING: usbhid.h: see the Autoconf documentation" >&2;}
28497    { echo "$as_me:$LINENO: WARNING: usbhid.h:     section \"Present But Cannot Be Compiled\"" >&5
28498echo "$as_me: WARNING: usbhid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28499    { echo "$as_me:$LINENO: WARNING: usbhid.h: proceeding with the preprocessor's result" >&5
28500echo "$as_me: WARNING: usbhid.h: proceeding with the preprocessor's result" >&2;}
28501    { echo "$as_me:$LINENO: WARNING: usbhid.h: in the future, the compiler will take precedence" >&5
28502echo "$as_me: WARNING: usbhid.h: in the future, the compiler will take precedence" >&2;}
28503
28504    ;;
28505esac
28506{ echo "$as_me:$LINENO: checking for usbhid.h" >&5
28507echo $ECHO_N "checking for usbhid.h... $ECHO_C" >&6; }
28508if test "${ac_cv_header_usbhid_h+set}" = set; then
28509  echo $ECHO_N "(cached) $ECHO_C" >&6
28510else
28511  ac_cv_header_usbhid_h=$ac_header_preproc
28512fi
28513{ echo "$as_me:$LINENO: result: $ac_cv_header_usbhid_h" >&5
28514echo "${ECHO_T}$ac_cv_header_usbhid_h" >&6; }
28515
28516fi
28517if test $ac_cv_header_usbhid_h = yes; then
28518  USB_CFLAGS="-DHAVE_USBHID_H"
28519fi
28520
28521
28522            if test "${ac_cv_header_libusbhid_h+set}" = set; then
28523  { echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28524echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28525if test "${ac_cv_header_libusbhid_h+set}" = set; then
28526  echo $ECHO_N "(cached) $ECHO_C" >&6
28527fi
28528{ echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28529echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28530else
28531  # Is the header compilable?
28532{ echo "$as_me:$LINENO: checking libusbhid.h usability" >&5
28533echo $ECHO_N "checking libusbhid.h usability... $ECHO_C" >&6; }
28534cat >conftest.$ac_ext <<_ACEOF
28535/* confdefs.h.  */
28536_ACEOF
28537cat confdefs.h >>conftest.$ac_ext
28538cat >>conftest.$ac_ext <<_ACEOF
28539/* end confdefs.h.  */
28540$ac_includes_default
28541#include <libusbhid.h>
28542_ACEOF
28543rm -f conftest.$ac_objext
28544if { (ac_try="$ac_compile"
28545case "(($ac_try" in
28546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547  *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550  (eval "$ac_compile") 2>conftest.er1
28551  ac_status=$?
28552  grep -v '^ *+' conftest.er1 >conftest.err
28553  rm -f conftest.er1
28554  cat conftest.err >&5
28555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556  (exit $ac_status); } && {
28557	 test -z "$ac_c_werror_flag" ||
28558	 test ! -s conftest.err
28559       } && test -s conftest.$ac_objext; then
28560  ac_header_compiler=yes
28561else
28562  echo "$as_me: failed program was:" >&5
28563sed 's/^/| /' conftest.$ac_ext >&5
28564
28565	ac_header_compiler=no
28566fi
28567
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28570echo "${ECHO_T}$ac_header_compiler" >&6; }
28571
28572# Is the header present?
28573{ echo "$as_me:$LINENO: checking libusbhid.h presence" >&5
28574echo $ECHO_N "checking libusbhid.h presence... $ECHO_C" >&6; }
28575cat >conftest.$ac_ext <<_ACEOF
28576/* confdefs.h.  */
28577_ACEOF
28578cat confdefs.h >>conftest.$ac_ext
28579cat >>conftest.$ac_ext <<_ACEOF
28580/* end confdefs.h.  */
28581#include <libusbhid.h>
28582_ACEOF
28583if { (ac_try="$ac_cpp conftest.$ac_ext"
28584case "(($ac_try" in
28585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586  *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28590  ac_status=$?
28591  grep -v '^ *+' conftest.er1 >conftest.err
28592  rm -f conftest.er1
28593  cat conftest.err >&5
28594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595  (exit $ac_status); } >/dev/null && {
28596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28597	 test ! -s conftest.err
28598       }; then
28599  ac_header_preproc=yes
28600else
28601  echo "$as_me: failed program was:" >&5
28602sed 's/^/| /' conftest.$ac_ext >&5
28603
28604  ac_header_preproc=no
28605fi
28606
28607rm -f conftest.err conftest.$ac_ext
28608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28609echo "${ECHO_T}$ac_header_preproc" >&6; }
28610
28611# So?  What about this header?
28612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28613  yes:no: )
28614    { echo "$as_me:$LINENO: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28615echo "$as_me: WARNING: libusbhid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28616    { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the compiler's result" >&5
28617echo "$as_me: WARNING: libusbhid.h: proceeding with the compiler's result" >&2;}
28618    ac_header_preproc=yes
28619    ;;
28620  no:yes:* )
28621    { echo "$as_me:$LINENO: WARNING: libusbhid.h: present but cannot be compiled" >&5
28622echo "$as_me: WARNING: libusbhid.h: present but cannot be compiled" >&2;}
28623    { echo "$as_me:$LINENO: WARNING: libusbhid.h:     check for missing prerequisite headers?" >&5
28624echo "$as_me: WARNING: libusbhid.h:     check for missing prerequisite headers?" >&2;}
28625    { echo "$as_me:$LINENO: WARNING: libusbhid.h: see the Autoconf documentation" >&5
28626echo "$as_me: WARNING: libusbhid.h: see the Autoconf documentation" >&2;}
28627    { echo "$as_me:$LINENO: WARNING: libusbhid.h:     section \"Present But Cannot Be Compiled\"" >&5
28628echo "$as_me: WARNING: libusbhid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28629    { echo "$as_me:$LINENO: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&5
28630echo "$as_me: WARNING: libusbhid.h: proceeding with the preprocessor's result" >&2;}
28631    { echo "$as_me:$LINENO: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&5
28632echo "$as_me: WARNING: libusbhid.h: in the future, the compiler will take precedence" >&2;}
28633
28634    ;;
28635esac
28636{ echo "$as_me:$LINENO: checking for libusbhid.h" >&5
28637echo $ECHO_N "checking for libusbhid.h... $ECHO_C" >&6; }
28638if test "${ac_cv_header_libusbhid_h+set}" = set; then
28639  echo $ECHO_N "(cached) $ECHO_C" >&6
28640else
28641  ac_cv_header_libusbhid_h=$ac_header_preproc
28642fi
28643{ echo "$as_me:$LINENO: result: $ac_cv_header_libusbhid_h" >&5
28644echo "${ECHO_T}$ac_cv_header_libusbhid_h" >&6; }
28645
28646fi
28647if test $ac_cv_header_libusbhid_h = yes; then
28648  USB_CFLAGS="-DHAVE_LIBUSBHID_H"
28649fi
28650
28651
28652            USB_LIBS="$USB_LIBS -lusbhid"
28653        else
28654            if test "${ac_cv_header_usb_h+set}" = set; then
28655  { echo "$as_me:$LINENO: checking for usb.h" >&5
28656echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28657if test "${ac_cv_header_usb_h+set}" = set; then
28658  echo $ECHO_N "(cached) $ECHO_C" >&6
28659fi
28660{ echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28661echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28662else
28663  # Is the header compilable?
28664{ echo "$as_me:$LINENO: checking usb.h usability" >&5
28665echo $ECHO_N "checking usb.h usability... $ECHO_C" >&6; }
28666cat >conftest.$ac_ext <<_ACEOF
28667/* confdefs.h.  */
28668_ACEOF
28669cat confdefs.h >>conftest.$ac_ext
28670cat >>conftest.$ac_ext <<_ACEOF
28671/* end confdefs.h.  */
28672$ac_includes_default
28673#include <usb.h>
28674_ACEOF
28675rm -f conftest.$ac_objext
28676if { (ac_try="$ac_compile"
28677case "(($ac_try" in
28678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679  *) ac_try_echo=$ac_try;;
28680esac
28681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682  (eval "$ac_compile") 2>conftest.er1
28683  ac_status=$?
28684  grep -v '^ *+' conftest.er1 >conftest.err
28685  rm -f conftest.er1
28686  cat conftest.err >&5
28687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688  (exit $ac_status); } && {
28689	 test -z "$ac_c_werror_flag" ||
28690	 test ! -s conftest.err
28691       } && test -s conftest.$ac_objext; then
28692  ac_header_compiler=yes
28693else
28694  echo "$as_me: failed program was:" >&5
28695sed 's/^/| /' conftest.$ac_ext >&5
28696
28697	ac_header_compiler=no
28698fi
28699
28700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28702echo "${ECHO_T}$ac_header_compiler" >&6; }
28703
28704# Is the header present?
28705{ echo "$as_me:$LINENO: checking usb.h presence" >&5
28706echo $ECHO_N "checking usb.h presence... $ECHO_C" >&6; }
28707cat >conftest.$ac_ext <<_ACEOF
28708/* confdefs.h.  */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h.  */
28713#include <usb.h>
28714_ACEOF
28715if { (ac_try="$ac_cpp conftest.$ac_ext"
28716case "(($ac_try" in
28717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28718  *) ac_try_echo=$ac_try;;
28719esac
28720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28721  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28722  ac_status=$?
28723  grep -v '^ *+' conftest.er1 >conftest.err
28724  rm -f conftest.er1
28725  cat conftest.err >&5
28726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727  (exit $ac_status); } >/dev/null && {
28728	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28729	 test ! -s conftest.err
28730       }; then
28731  ac_header_preproc=yes
28732else
28733  echo "$as_me: failed program was:" >&5
28734sed 's/^/| /' conftest.$ac_ext >&5
28735
28736  ac_header_preproc=no
28737fi
28738
28739rm -f conftest.err conftest.$ac_ext
28740{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28741echo "${ECHO_T}$ac_header_preproc" >&6; }
28742
28743# So?  What about this header?
28744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28745  yes:no: )
28746    { echo "$as_me:$LINENO: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28747echo "$as_me: WARNING: usb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28748    { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the compiler's result" >&5
28749echo "$as_me: WARNING: usb.h: proceeding with the compiler's result" >&2;}
28750    ac_header_preproc=yes
28751    ;;
28752  no:yes:* )
28753    { echo "$as_me:$LINENO: WARNING: usb.h: present but cannot be compiled" >&5
28754echo "$as_me: WARNING: usb.h: present but cannot be compiled" >&2;}
28755    { echo "$as_me:$LINENO: WARNING: usb.h:     check for missing prerequisite headers?" >&5
28756echo "$as_me: WARNING: usb.h:     check for missing prerequisite headers?" >&2;}
28757    { echo "$as_me:$LINENO: WARNING: usb.h: see the Autoconf documentation" >&5
28758echo "$as_me: WARNING: usb.h: see the Autoconf documentation" >&2;}
28759    { echo "$as_me:$LINENO: WARNING: usb.h:     section \"Present But Cannot Be Compiled\"" >&5
28760echo "$as_me: WARNING: usb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28761    { echo "$as_me:$LINENO: WARNING: usb.h: proceeding with the preprocessor's result" >&5
28762echo "$as_me: WARNING: usb.h: proceeding with the preprocessor's result" >&2;}
28763    { echo "$as_me:$LINENO: WARNING: usb.h: in the future, the compiler will take precedence" >&5
28764echo "$as_me: WARNING: usb.h: in the future, the compiler will take precedence" >&2;}
28765
28766    ;;
28767esac
28768{ echo "$as_me:$LINENO: checking for usb.h" >&5
28769echo $ECHO_N "checking for usb.h... $ECHO_C" >&6; }
28770if test "${ac_cv_header_usb_h+set}" = set; then
28771  echo $ECHO_N "(cached) $ECHO_C" >&6
28772else
28773  ac_cv_header_usb_h=$ac_header_preproc
28774fi
28775{ echo "$as_me:$LINENO: result: $ac_cv_header_usb_h" >&5
28776echo "${ECHO_T}$ac_cv_header_usb_h" >&6; }
28777
28778fi
28779if test $ac_cv_header_usb_h = yes; then
28780  USB_CFLAGS="-DHAVE_USB_H"
28781fi
28782
28783
28784            if test "${ac_cv_header_libusb_h+set}" = set; then
28785  { echo "$as_me:$LINENO: checking for libusb.h" >&5
28786echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28787if test "${ac_cv_header_libusb_h+set}" = set; then
28788  echo $ECHO_N "(cached) $ECHO_C" >&6
28789fi
28790{ echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28791echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28792else
28793  # Is the header compilable?
28794{ echo "$as_me:$LINENO: checking libusb.h usability" >&5
28795echo $ECHO_N "checking libusb.h usability... $ECHO_C" >&6; }
28796cat >conftest.$ac_ext <<_ACEOF
28797/* confdefs.h.  */
28798_ACEOF
28799cat confdefs.h >>conftest.$ac_ext
28800cat >>conftest.$ac_ext <<_ACEOF
28801/* end confdefs.h.  */
28802$ac_includes_default
28803#include <libusb.h>
28804_ACEOF
28805rm -f conftest.$ac_objext
28806if { (ac_try="$ac_compile"
28807case "(($ac_try" in
28808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809  *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812  (eval "$ac_compile") 2>conftest.er1
28813  ac_status=$?
28814  grep -v '^ *+' conftest.er1 >conftest.err
28815  rm -f conftest.er1
28816  cat conftest.err >&5
28817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818  (exit $ac_status); } && {
28819	 test -z "$ac_c_werror_flag" ||
28820	 test ! -s conftest.err
28821       } && test -s conftest.$ac_objext; then
28822  ac_header_compiler=yes
28823else
28824  echo "$as_me: failed program was:" >&5
28825sed 's/^/| /' conftest.$ac_ext >&5
28826
28827	ac_header_compiler=no
28828fi
28829
28830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28831{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28832echo "${ECHO_T}$ac_header_compiler" >&6; }
28833
28834# Is the header present?
28835{ echo "$as_me:$LINENO: checking libusb.h presence" >&5
28836echo $ECHO_N "checking libusb.h presence... $ECHO_C" >&6; }
28837cat >conftest.$ac_ext <<_ACEOF
28838/* confdefs.h.  */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h.  */
28843#include <libusb.h>
28844_ACEOF
28845if { (ac_try="$ac_cpp conftest.$ac_ext"
28846case "(($ac_try" in
28847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848  *) ac_try_echo=$ac_try;;
28849esac
28850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28852  ac_status=$?
28853  grep -v '^ *+' conftest.er1 >conftest.err
28854  rm -f conftest.er1
28855  cat conftest.err >&5
28856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857  (exit $ac_status); } >/dev/null && {
28858	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28859	 test ! -s conftest.err
28860       }; then
28861  ac_header_preproc=yes
28862else
28863  echo "$as_me: failed program was:" >&5
28864sed 's/^/| /' conftest.$ac_ext >&5
28865
28866  ac_header_preproc=no
28867fi
28868
28869rm -f conftest.err conftest.$ac_ext
28870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28871echo "${ECHO_T}$ac_header_preproc" >&6; }
28872
28873# So?  What about this header?
28874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28875  yes:no: )
28876    { echo "$as_me:$LINENO: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28877echo "$as_me: WARNING: libusb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28878    { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the compiler's result" >&5
28879echo "$as_me: WARNING: libusb.h: proceeding with the compiler's result" >&2;}
28880    ac_header_preproc=yes
28881    ;;
28882  no:yes:* )
28883    { echo "$as_me:$LINENO: WARNING: libusb.h: present but cannot be compiled" >&5
28884echo "$as_me: WARNING: libusb.h: present but cannot be compiled" >&2;}
28885    { echo "$as_me:$LINENO: WARNING: libusb.h:     check for missing prerequisite headers?" >&5
28886echo "$as_me: WARNING: libusb.h:     check for missing prerequisite headers?" >&2;}
28887    { echo "$as_me:$LINENO: WARNING: libusb.h: see the Autoconf documentation" >&5
28888echo "$as_me: WARNING: libusb.h: see the Autoconf documentation" >&2;}
28889    { echo "$as_me:$LINENO: WARNING: libusb.h:     section \"Present But Cannot Be Compiled\"" >&5
28890echo "$as_me: WARNING: libusb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28891    { echo "$as_me:$LINENO: WARNING: libusb.h: proceeding with the preprocessor's result" >&5
28892echo "$as_me: WARNING: libusb.h: proceeding with the preprocessor's result" >&2;}
28893    { echo "$as_me:$LINENO: WARNING: libusb.h: in the future, the compiler will take precedence" >&5
28894echo "$as_me: WARNING: libusb.h: in the future, the compiler will take precedence" >&2;}
28895
28896    ;;
28897esac
28898{ echo "$as_me:$LINENO: checking for libusb.h" >&5
28899echo $ECHO_N "checking for libusb.h... $ECHO_C" >&6; }
28900if test "${ac_cv_header_libusb_h+set}" = set; then
28901  echo $ECHO_N "(cached) $ECHO_C" >&6
28902else
28903  ac_cv_header_libusb_h=$ac_header_preproc
28904fi
28905{ echo "$as_me:$LINENO: result: $ac_cv_header_libusb_h" >&5
28906echo "${ECHO_T}$ac_cv_header_libusb_h" >&6; }
28907
28908fi
28909if test $ac_cv_header_libusb_h = yes; then
28910  USB_CFLAGS="-DHAVE_LIBUSB_H"
28911fi
28912
28913
28914            { echo "$as_me:$LINENO: checking for hid_init in -lusb" >&5
28915echo $ECHO_N "checking for hid_init in -lusb... $ECHO_C" >&6; }
28916if test "${ac_cv_lib_usb_hid_init+set}" = set; then
28917  echo $ECHO_N "(cached) $ECHO_C" >&6
28918else
28919  ac_check_lib_save_LIBS=$LIBS
28920LIBS="-lusb  $LIBS"
28921cat >conftest.$ac_ext <<_ACEOF
28922/* confdefs.h.  */
28923_ACEOF
28924cat confdefs.h >>conftest.$ac_ext
28925cat >>conftest.$ac_ext <<_ACEOF
28926/* end confdefs.h.  */
28927
28928/* Override any GCC internal prototype to avoid an error.
28929   Use char because int might match the return type of a GCC
28930   builtin and then its argument prototype would still apply.  */
28931#ifdef __cplusplus
28932extern "C"
28933#endif
28934char hid_init ();
28935int
28936main ()
28937{
28938return hid_init ();
28939  ;
28940  return 0;
28941}
28942_ACEOF
28943rm -f conftest.$ac_objext conftest$ac_exeext
28944if { (ac_try="$ac_link"
28945case "(($ac_try" in
28946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947  *) ac_try_echo=$ac_try;;
28948esac
28949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950  (eval "$ac_link") 2>conftest.er1
28951  ac_status=$?
28952  grep -v '^ *+' conftest.er1 >conftest.err
28953  rm -f conftest.er1
28954  cat conftest.err >&5
28955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956  (exit $ac_status); } && {
28957	 test -z "$ac_c_werror_flag" ||
28958	 test ! -s conftest.err
28959       } && test -s conftest$ac_exeext &&
28960       $as_test_x conftest$ac_exeext; then
28961  ac_cv_lib_usb_hid_init=yes
28962else
28963  echo "$as_me: failed program was:" >&5
28964sed 's/^/| /' conftest.$ac_ext >&5
28965
28966	ac_cv_lib_usb_hid_init=no
28967fi
28968
28969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28970      conftest$ac_exeext conftest.$ac_ext
28971LIBS=$ac_check_lib_save_LIBS
28972fi
28973{ echo "$as_me:$LINENO: result: $ac_cv_lib_usb_hid_init" >&5
28974echo "${ECHO_T}$ac_cv_lib_usb_hid_init" >&6; }
28975if test $ac_cv_lib_usb_hid_init = yes; then
28976  USB_LIBS="$USB_LIBS -lusb"
28977fi
28978
28979        fi
28980
28981        save_CFLAGS="$CFLAGS"
28982        CFLAGS="$CFLAGS $USB_CFLAGS"
28983
28984        { echo "$as_me:$LINENO: checking for usbhid" >&5
28985echo $ECHO_N "checking for usbhid... $ECHO_C" >&6; }
28986        have_usbhid=no
28987        cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h.  */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h.  */
28993
28994          #include <sys/types.h>
28995          #if defined(HAVE_USB_H)
28996          #include <usb.h>
28997          #endif
28998          #ifdef __DragonFly__
28999          # include <bus/usb/usb.h>
29000          # include <bus/usb/usbhid.h>
29001          #else
29002          # include <dev/usb/usb.h>
29003          # include <dev/usb/usbhid.h>
29004          #endif
29005          #if defined(HAVE_USBHID_H)
29006          #include <usbhid.h>
29007          #elif defined(HAVE_LIBUSB_H)
29008          #include <libusb.h>
29009          #elif defined(HAVE_LIBUSBHID_H)
29010          #include <libusbhid.h>
29011          #endif
29012
29013int
29014main ()
29015{
29016
29017          struct report_desc *repdesc;
29018          struct usb_ctl_report *repbuf;
29019          hid_kind_t hidkind;
29020
29021  ;
29022  return 0;
29023}
29024_ACEOF
29025rm -f conftest.$ac_objext
29026if { (ac_try="$ac_compile"
29027case "(($ac_try" in
29028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029  *) ac_try_echo=$ac_try;;
29030esac
29031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032  (eval "$ac_compile") 2>conftest.er1
29033  ac_status=$?
29034  grep -v '^ *+' conftest.er1 >conftest.err
29035  rm -f conftest.er1
29036  cat conftest.err >&5
29037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038  (exit $ac_status); } && {
29039	 test -z "$ac_c_werror_flag" ||
29040	 test ! -s conftest.err
29041       } && test -s conftest.$ac_objext; then
29042
29043        have_usbhid=yes
29044
29045else
29046  echo "$as_me: failed program was:" >&5
29047sed 's/^/| /' conftest.$ac_ext >&5
29048
29049
29050fi
29051
29052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29053        { echo "$as_me:$LINENO: result: $have_usbhid" >&5
29054echo "${ECHO_T}$have_usbhid" >&6; }
29055
29056        if test x$have_usbhid = xyes; then
29057            { echo "$as_me:$LINENO: checking for ucr_data member of usb_ctl_report" >&5
29058echo $ECHO_N "checking for ucr_data member of usb_ctl_report... $ECHO_C" >&6; }
29059            have_usbhid_ucr_data=no
29060            cat >conftest.$ac_ext <<_ACEOF
29061/* confdefs.h.  */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h.  */
29066
29067              #include <sys/types.h>
29068              #if defined(HAVE_USB_H)
29069              #include <usb.h>
29070              #endif
29071              #ifdef __DragonFly__
29072              # include <bus/usb/usb.h>
29073              # include <bus/usb/usbhid.h>
29074              #else
29075              # include <dev/usb/usb.h>
29076              # include <dev/usb/usbhid.h>
29077              #endif
29078              #if defined(HAVE_USBHID_H)
29079              #include <usbhid.h>
29080              #elif defined(HAVE_LIBUSB_H)
29081              #include <libusb.h>
29082              #elif defined(HAVE_LIBUSBHID_H)
29083              #include <libusbhid.h>
29084              #endif
29085
29086int
29087main ()
29088{
29089
29090              struct usb_ctl_report buf;
29091              if (buf.ucr_data) { }
29092
29093  ;
29094  return 0;
29095}
29096_ACEOF
29097rm -f conftest.$ac_objext
29098if { (ac_try="$ac_compile"
29099case "(($ac_try" in
29100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101  *) ac_try_echo=$ac_try;;
29102esac
29103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104  (eval "$ac_compile") 2>conftest.er1
29105  ac_status=$?
29106  grep -v '^ *+' conftest.er1 >conftest.err
29107  rm -f conftest.er1
29108  cat conftest.err >&5
29109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110  (exit $ac_status); } && {
29111	 test -z "$ac_c_werror_flag" ||
29112	 test ! -s conftest.err
29113       } && test -s conftest.$ac_objext; then
29114
29115            have_usbhid_ucr_data=yes
29116
29117else
29118  echo "$as_me: failed program was:" >&5
29119sed 's/^/| /' conftest.$ac_ext >&5
29120
29121
29122fi
29123
29124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125            if test x$have_usbhid_ucr_data = xyes; then
29126                USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
29127            fi
29128            { echo "$as_me:$LINENO: result: $have_usbhid_ucr_data" >&5
29129echo "${ECHO_T}$have_usbhid_ucr_data" >&6; }
29130
29131            { echo "$as_me:$LINENO: checking for new usbhid API" >&5
29132echo $ECHO_N "checking for new usbhid API... $ECHO_C" >&6; }
29133            have_usbhid_new=no
29134            cat >conftest.$ac_ext <<_ACEOF
29135/* confdefs.h.  */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h.  */
29140
29141              #include <sys/types.h>
29142              #if defined(HAVE_USB_H)
29143              #include <usb.h>
29144              #endif
29145              #ifdef __DragonFly__
29146              #include <bus/usb/usb.h>
29147              #include <bus/usb/usbhid.h>
29148              #else
29149              #include <dev/usb/usb.h>
29150              #include <dev/usb/usbhid.h>
29151              #endif
29152              #if defined(HAVE_USBHID_H)
29153              #include <usbhid.h>
29154              #elif defined(HAVE_LIBUSB_H)
29155              #include <libusb.h>
29156              #elif defined(HAVE_LIBUSBHID_H)
29157              #include <libusbhid.h>
29158              #endif
29159
29160int
29161main ()
29162{
29163
29164              report_desc_t d;
29165              hid_start_parse(d, 1, 1);
29166
29167  ;
29168  return 0;
29169}
29170_ACEOF
29171rm -f conftest.$ac_objext
29172if { (ac_try="$ac_compile"
29173case "(($ac_try" in
29174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175  *) ac_try_echo=$ac_try;;
29176esac
29177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178  (eval "$ac_compile") 2>conftest.er1
29179  ac_status=$?
29180  grep -v '^ *+' conftest.er1 >conftest.err
29181  rm -f conftest.er1
29182  cat conftest.err >&5
29183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184  (exit $ac_status); } && {
29185	 test -z "$ac_c_werror_flag" ||
29186	 test ! -s conftest.err
29187       } && test -s conftest.$ac_objext; then
29188
29189            have_usbhid_new=yes
29190
29191else
29192  echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195
29196fi
29197
29198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199            if test x$have_usbhid_new = xyes; then
29200                USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
29201            fi
29202            { echo "$as_me:$LINENO: result: $have_usbhid_new" >&5
29203echo "${ECHO_T}$have_usbhid_new" >&6; }
29204
29205            { echo "$as_me:$LINENO: checking for struct joystick in machine/joystick.h" >&5
29206echo $ECHO_N "checking for struct joystick in machine/joystick.h... $ECHO_C" >&6; }
29207            have_machine_joystick=no
29208            cat >conftest.$ac_ext <<_ACEOF
29209/* confdefs.h.  */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h.  */
29214
29215              #include <machine/joystick.h>
29216
29217int
29218main ()
29219{
29220
29221              struct joystick t;
29222
29223  ;
29224  return 0;
29225}
29226_ACEOF
29227rm -f conftest.$ac_objext
29228if { (ac_try="$ac_compile"
29229case "(($ac_try" in
29230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231  *) ac_try_echo=$ac_try;;
29232esac
29233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234  (eval "$ac_compile") 2>conftest.er1
29235  ac_status=$?
29236  grep -v '^ *+' conftest.er1 >conftest.err
29237  rm -f conftest.er1
29238  cat conftest.err >&5
29239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240  (exit $ac_status); } && {
29241	 test -z "$ac_c_werror_flag" ||
29242	 test ! -s conftest.err
29243       } && test -s conftest.$ac_objext; then
29244
29245            have_machine_joystick=yes
29246
29247else
29248  echo "$as_me: failed program was:" >&5
29249sed 's/^/| /' conftest.$ac_ext >&5
29250
29251
29252fi
29253
29254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29255            if test x$have_machine_joystick = xyes; then
29256                cat >>confdefs.h <<\_ACEOF
29257#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1
29258_ACEOF
29259
29260            fi
29261            { echo "$as_me:$LINENO: result: $have_machine_joystick" >&5
29262echo "${ECHO_T}$have_machine_joystick" >&6; }
29263
29264            cat >>confdefs.h <<\_ACEOF
29265#define SDL_JOYSTICK_USBHID 1
29266_ACEOF
29267
29268            SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
29269            EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
29270            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
29271            have_joystick=yes
29272        fi
29273        CFLAGS="$save_CFLAGS"
29274    fi
29275}
29276
29277CheckClockGettime()
29278{
29279    # Check whether --enable-clock_gettime was given.
29280if test "${enable_clock_gettime+set}" = set; then
29281  enableval=$enable_clock_gettime;
29282else
29283  enable_clock_gettime=no
29284fi
29285
29286    if test x$enable_clock_gettime = xyes; then
29287        { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
29288echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
29289if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
29290  echo $ECHO_N "(cached) $ECHO_C" >&6
29291else
29292  ac_check_lib_save_LIBS=$LIBS
29293LIBS="-lrt  $LIBS"
29294cat >conftest.$ac_ext <<_ACEOF
29295/* confdefs.h.  */
29296_ACEOF
29297cat confdefs.h >>conftest.$ac_ext
29298cat >>conftest.$ac_ext <<_ACEOF
29299/* end confdefs.h.  */
29300
29301/* Override any GCC internal prototype to avoid an error.
29302   Use char because int might match the return type of a GCC
29303   builtin and then its argument prototype would still apply.  */
29304#ifdef __cplusplus
29305extern "C"
29306#endif
29307char clock_gettime ();
29308int
29309main ()
29310{
29311return clock_gettime ();
29312  ;
29313  return 0;
29314}
29315_ACEOF
29316rm -f conftest.$ac_objext conftest$ac_exeext
29317if { (ac_try="$ac_link"
29318case "(($ac_try" in
29319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320  *) ac_try_echo=$ac_try;;
29321esac
29322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323  (eval "$ac_link") 2>conftest.er1
29324  ac_status=$?
29325  grep -v '^ *+' conftest.er1 >conftest.err
29326  rm -f conftest.er1
29327  cat conftest.err >&5
29328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329  (exit $ac_status); } && {
29330	 test -z "$ac_c_werror_flag" ||
29331	 test ! -s conftest.err
29332       } && test -s conftest$ac_exeext &&
29333       $as_test_x conftest$ac_exeext; then
29334  ac_cv_lib_rt_clock_gettime=yes
29335else
29336  echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339	ac_cv_lib_rt_clock_gettime=no
29340fi
29341
29342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29343      conftest$ac_exeext conftest.$ac_ext
29344LIBS=$ac_check_lib_save_LIBS
29345fi
29346{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
29347echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
29348if test $ac_cv_lib_rt_clock_gettime = yes; then
29349  have_clock_gettime=yes
29350fi
29351
29352        if test x$have_clock_gettime = xyes; then
29353            cat >>confdefs.h <<\_ACEOF
29354#define HAVE_CLOCK_GETTIME 1
29355_ACEOF
29356
29357            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
29358        fi
29359    fi
29360}
29361
29362CheckLinuxVersion()
29363{
29364    if test "${ac_cv_header_linux_version_h+set}" = set; then
29365  { echo "$as_me:$LINENO: checking for linux/version.h" >&5
29366echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29367if test "${ac_cv_header_linux_version_h+set}" = set; then
29368  echo $ECHO_N "(cached) $ECHO_C" >&6
29369fi
29370{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29371echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29372else
29373  # Is the header compilable?
29374{ echo "$as_me:$LINENO: checking linux/version.h usability" >&5
29375echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
29376cat >conftest.$ac_ext <<_ACEOF
29377/* confdefs.h.  */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h.  */
29382$ac_includes_default
29383#include <linux/version.h>
29384_ACEOF
29385rm -f conftest.$ac_objext
29386if { (ac_try="$ac_compile"
29387case "(($ac_try" in
29388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389  *) ac_try_echo=$ac_try;;
29390esac
29391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392  (eval "$ac_compile") 2>conftest.er1
29393  ac_status=$?
29394  grep -v '^ *+' conftest.er1 >conftest.err
29395  rm -f conftest.er1
29396  cat conftest.err >&5
29397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398  (exit $ac_status); } && {
29399	 test -z "$ac_c_werror_flag" ||
29400	 test ! -s conftest.err
29401       } && test -s conftest.$ac_objext; then
29402  ac_header_compiler=yes
29403else
29404  echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407	ac_header_compiler=no
29408fi
29409
29410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29412echo "${ECHO_T}$ac_header_compiler" >&6; }
29413
29414# Is the header present?
29415{ echo "$as_me:$LINENO: checking linux/version.h presence" >&5
29416echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
29417cat >conftest.$ac_ext <<_ACEOF
29418/* confdefs.h.  */
29419_ACEOF
29420cat confdefs.h >>conftest.$ac_ext
29421cat >>conftest.$ac_ext <<_ACEOF
29422/* end confdefs.h.  */
29423#include <linux/version.h>
29424_ACEOF
29425if { (ac_try="$ac_cpp conftest.$ac_ext"
29426case "(($ac_try" in
29427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428  *) ac_try_echo=$ac_try;;
29429esac
29430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29432  ac_status=$?
29433  grep -v '^ *+' conftest.er1 >conftest.err
29434  rm -f conftest.er1
29435  cat conftest.err >&5
29436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437  (exit $ac_status); } >/dev/null && {
29438	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29439	 test ! -s conftest.err
29440       }; then
29441  ac_header_preproc=yes
29442else
29443  echo "$as_me: failed program was:" >&5
29444sed 's/^/| /' conftest.$ac_ext >&5
29445
29446  ac_header_preproc=no
29447fi
29448
29449rm -f conftest.err conftest.$ac_ext
29450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29451echo "${ECHO_T}$ac_header_preproc" >&6; }
29452
29453# So?  What about this header?
29454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29455  yes:no: )
29456    { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
29457echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29458    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
29459echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
29460    ac_header_preproc=yes
29461    ;;
29462  no:yes:* )
29463    { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
29464echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
29465    { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
29466echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
29467    { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
29468echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
29469    { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
29470echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29471    { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
29472echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
29473    { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
29474echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
29475
29476    ;;
29477esac
29478{ echo "$as_me:$LINENO: checking for linux/version.h" >&5
29479echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
29480if test "${ac_cv_header_linux_version_h+set}" = set; then
29481  echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483  ac_cv_header_linux_version_h=$ac_header_preproc
29484fi
29485{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
29486echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
29487
29488fi
29489if test $ac_cv_header_linux_version_h = yes; then
29490  have_linux_version_h=yes
29491fi
29492
29493
29494    if test x$have_linux_version_h = xyes; then
29495        EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
29496    fi
29497}
29498
29499CheckRPATH()
29500{
29501    # Check whether --enable-rpath was given.
29502if test "${enable_rpath+set}" = set; then
29503  enableval=$enable_rpath;
29504else
29505  enable_rpath=yes
29506fi
29507
29508}
29509
29510case "$host" in
29511    arm-*-elf*) # FIXME: Can we get more specific for iPodLinux?
29512        ARCH=linux
29513        CheckDummyVideo
29514        CheckIPod
29515        # Set up files for the timer library
29516        if test x$enable_timers = xyes; then
29517            cat >>confdefs.h <<\_ACEOF
29518#define SDL_TIMER_UNIX 1
29519_ACEOF
29520
29521            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29522            have_timers=yes
29523        fi
29524        ;;
29525    *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-irix*|*-*-aix*|*-*-osf*)
29526        case "$host" in
29527            *-*-linux*)         ARCH=linux ;;
29528            *-*-uclinux*)       ARCH=linux ;;
29529            *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
29530            *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
29531            *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
29532            *-*-gnu*)           ARCH=gnu ;; # must be last of the gnu variants
29533            *-*-bsdi*)          ARCH=bsdi ;;
29534            *-*-freebsd*)       ARCH=freebsd ;;
29535            *-*-dragonfly*)     ARCH=freebsd ;;
29536            *-*-netbsd*)        ARCH=netbsd ;;
29537            *-*-openbsd*)       ARCH=openbsd ;;
29538            *-*-sysv5*)         ARCH=sysv5 ;;
29539            *-*-solaris*)       ARCH=solaris ;;
29540            *-*-hpux*)          ARCH=hpux ;;
29541            *-*-irix*)          ARCH=irix ;;
29542            *-*-aix*)           ARCH=aix ;;
29543            *-*-osf*)           ARCH=osf ;;
29544        esac
29545        CheckVisibilityHidden
29546        CheckDummyVideo
29547        CheckDiskAudio
29548        CheckDummyAudio
29549        CheckDLOPEN
29550        CheckNASM
29551        CheckAltivec
29552        CheckOSS
29553        CheckDMEDIA
29554        CheckMME
29555        CheckALSA
29556        CheckARTSC
29557        CheckESD
29558        CheckSndio
29559        CheckPulseAudio
29560        CheckNAS
29561        CheckX11
29562        CheckNANOX
29563        CheckFBCON
29564        CheckDirectFB
29565        CheckPS2GS
29566        CheckPS3
29567        CheckGGI
29568        CheckSVGA
29569        CheckVGL
29570        CheckWscons
29571        CheckAAlib
29572        CheckCaca
29573        CheckQtopia
29574        CheckPicoGUI
29575        CheckOpenGLX11
29576        CheckInputEvents
29577        CheckTslib
29578        CheckUSBHID
29579        CheckPTHREAD
29580        CheckClockGettime
29581        CheckLinuxVersion
29582        CheckRPATH
29583        # Set up files for the audio library
29584        if test x$enable_audio = xyes; then
29585          case $ARCH in
29586            sysv5|solaris|hpux)
29587                cat >>confdefs.h <<\_ACEOF
29588#define SDL_AUDIO_DRIVER_SUNAUDIO 1
29589_ACEOF
29590
29591                SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
29592                have_audio=yes
29593            ;;
29594            netbsd|openbsd)
29595                cat >>confdefs.h <<\_ACEOF
29596#define SDL_AUDIO_DRIVER_BSD 1
29597_ACEOF
29598
29599                SOURCES="$SOURCES $srcdir/src/audio/bsd/*.c"
29600                have_audio=yes
29601            ;;
29602            aix)
29603                cat >>confdefs.h <<\_ACEOF
29604#define SDL_AUDIO_DRIVER_PAUD 1
29605_ACEOF
29606
29607                SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
29608                have_audio=yes
29609            ;;
29610          esac
29611        fi
29612        # Set up files for the joystick library
29613        if test x$enable_joystick = xyes; then
29614          case $ARCH in
29615            linux)
29616                cat >>confdefs.h <<\_ACEOF
29617#define SDL_JOYSTICK_LINUX 1
29618_ACEOF
29619
29620                SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
29621                have_joystick=yes
29622            ;;
29623          esac
29624        fi
29625        # Set up files for the cdrom library
29626        if test x$enable_cdrom = xyes; then
29627          case $ARCH in
29628            linux|solaris)
29629                cat >>confdefs.h <<\_ACEOF
29630#define SDL_CDROM_LINUX 1
29631_ACEOF
29632
29633                SOURCES="$SOURCES $srcdir/src/cdrom/linux/*.c"
29634                have_cdrom=yes
29635            ;;
29636            *freebsd*)
29637                cat >>confdefs.h <<\_ACEOF
29638#define SDL_CDROM_FREEBSD 1
29639_ACEOF
29640
29641                SOURCES="$SOURCES $srcdir/src/cdrom/freebsd/*.c"
29642                have_cdrom=yes
29643            ;;
29644            *openbsd*|*netbsd*)
29645                cat >>confdefs.h <<\_ACEOF
29646#define SDL_CDROM_OPENBSD 1
29647_ACEOF
29648
29649                SOURCES="$SOURCES $srcdir/src/cdrom/openbsd/*.c"
29650                have_cdrom=yes
29651            ;;
29652            bsdi)
29653                cat >>confdefs.h <<\_ACEOF
29654#define SDL_CDROM_BSDI 1
29655_ACEOF
29656
29657                SOURCES="$SOURCES $srcdir/src/cdrom/bsdi/*.c"
29658                have_cdrom=yes
29659            ;;
29660            aix)
29661                cat >>confdefs.h <<\_ACEOF
29662#define SDL_CDROM_AIX 1
29663_ACEOF
29664
29665                SOURCES="$SOURCES $srcdir/src/cdrom/aix/*.c"
29666                have_cdrom=yes
29667            ;;
29668            osf)
29669                cat >>confdefs.h <<\_ACEOF
29670#define SDL_CDROM_OSF 1
29671_ACEOF
29672
29673                SOURCES="$SOURCES $srcdir/src/cdrom/osf/*.c"
29674                have_cdrom=yes
29675            ;;
29676          esac
29677        fi
29678        # Set up files for the thread library
29679        if test x$enable_threads = xyes -a x$use_pthreads != xyes -a x$use_pth != xyes -a x$ARCH = xirix; then
29680            cat >>confdefs.h <<\_ACEOF
29681#define SDL_THREAD_SPROC 1
29682_ACEOF
29683
29684            SOURCES="$SOURCES $srcdir/src/thread/irix/*.c"
29685            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29686            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29687            have_threads=yes
29688        fi
29689        # Set up files for the timer library
29690        if test x$enable_timers = xyes; then
29691            cat >>confdefs.h <<\_ACEOF
29692#define SDL_TIMER_UNIX 1
29693_ACEOF
29694
29695            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29696            have_timers=yes
29697        fi
29698        ;;
29699    *-*-qnx*)
29700        ARCH=qnx
29701        CheckDummyVideo
29702        CheckDiskAudio
29703        CheckDummyAudio
29704        # CheckNASM
29705        CheckDLOPEN
29706        CheckNAS
29707        CheckPHOTON
29708        CheckX11
29709        CheckOpenGLX11
29710        CheckPTHREAD
29711        # Set up files for the audio library
29712        if test x$enable_audio = xyes; then
29713            cat >>confdefs.h <<\_ACEOF
29714#define SDL_AUDIO_DRIVER_QNXNTO 1
29715_ACEOF
29716
29717            SOURCES="$SOURCES $srcdir/src/audio/nto/*.c"
29718            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
29719            have_audio=yes
29720        fi
29721        # Set up files for the cdrom library
29722        if test x$enable_cdrom = xyes; then
29723            cat >>confdefs.h <<\_ACEOF
29724#define SDL_CDROM_QNX 1
29725_ACEOF
29726
29727            SOURCES="$SOURCES $srcdir/src/cdrom/qnx/*.c"
29728            have_cdrom=yes
29729        fi
29730        # Set up files for the timer library
29731        if test x$enable_timers = xyes; then
29732            cat >>confdefs.h <<\_ACEOF
29733#define SDL_TIMER_UNIX 1
29734_ACEOF
29735
29736            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
29737            have_timers=yes
29738        fi
29739        ;;
29740    *-*-cygwin* | *-*-mingw32*)
29741        ARCH=win32
29742        if test "$build" != "$host"; then # cross-compiling
29743            # Default cross-compile location
29744            ac_default_prefix=/usr/local/cross-tools/i386-mingw32
29745        else
29746            # Look for the location of the tools and install there
29747            if test "$BUILD_PREFIX" != ""; then
29748                ac_default_prefix=$BUILD_PREFIX
29749            fi
29750        fi
29751        CheckDummyVideo
29752        CheckDiskAudio
29753        CheckDummyAudio
29754        CheckWIN32
29755        CheckWIN32GL
29756        CheckDIRECTX
29757        CheckNASM
29758        # Set up files for the audio library
29759        if test x$enable_audio = xyes; then
29760            cat >>confdefs.h <<\_ACEOF
29761#define SDL_AUDIO_DRIVER_WAVEOUT 1
29762_ACEOF
29763
29764            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29765            if test x$have_directx = xyes; then
29766                cat >>confdefs.h <<\_ACEOF
29767#define SDL_AUDIO_DRIVER_DSOUND 1
29768_ACEOF
29769
29770                SOURCES="$SOURCES $srcdir/src/audio/windx5/*.c"
29771            fi
29772            have_audio=yes
29773        fi
29774        # Set up files for the joystick library
29775        if test x$enable_joystick = xyes; then
29776            cat >>confdefs.h <<\_ACEOF
29777#define SDL_JOYSTICK_WINMM 1
29778_ACEOF
29779
29780            SOURCES="$SOURCES $srcdir/src/joystick/win32/*.c"
29781            have_joystick=yes
29782        fi
29783        # Set up files for the cdrom library
29784        if test x$enable_cdrom = xyes; then
29785            cat >>confdefs.h <<\_ACEOF
29786#define SDL_CDROM_WIN32 1
29787_ACEOF
29788
29789            SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
29790            have_cdrom=yes
29791        fi
29792        # Set up files for the thread library
29793        if test x$enable_threads = xyes; then
29794            cat >>confdefs.h <<\_ACEOF
29795#define SDL_THREAD_WIN32 1
29796_ACEOF
29797
29798            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29799            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29800            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29801            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29802            have_threads=yes
29803        fi
29804        # Set up files for the timer library
29805        if test x$enable_timers = xyes; then
29806            cat >>confdefs.h <<\_ACEOF
29807#define SDL_TIMER_WIN32 1
29808_ACEOF
29809
29810            SOURCES="$SOURCES $srcdir/src/timer/win32/*.c"
29811            have_timers=yes
29812        fi
29813        # Set up files for the shared object loading library
29814        if test x$enable_loadso = xyes; then
29815            cat >>confdefs.h <<\_ACEOF
29816#define SDL_LOADSO_WIN32 1
29817_ACEOF
29818
29819            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29820            have_loadso=yes
29821        fi
29822        # Set up the system libraries we need
29823        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm"
29824        if test x$have_directx = xyes; then
29825            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldxguid"
29826        fi
29827        # The Win32 platform requires special setup
29828        SOURCES="$SOURCES $srcdir/src/main/win32/*.rc"
29829        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29830        SDLMAIN_LDFLAGS="-static"
29831        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
29832        SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows"
29833        ;;
29834    *-wince*)
29835        ARCH=win32
29836        CheckDummyVideo
29837        CheckDiskAudio
29838        CheckDummyAudio
29839        CheckWIN32
29840        CheckNASM
29841        SOURCES="$SOURCES $srcdir/src/video/gapi/*.c"
29842        EXTRA_CFLAGS="$EXTRA_CFLAGS -D_WIN32_WCE=0x420"
29843        if test x$enable_audio = xyes; then
29844            cat >>confdefs.h <<\_ACEOF
29845#define SDL_AUDIO_DRIVER_WAVEOUT 1
29846_ACEOF
29847
29848            SOURCES="$SOURCES $srcdir/src/audio/windib/*.c"
29849            have_audio=yes
29850        fi
29851        # Set up files for the thread library
29852        if test x$enable_threads = xyes; then
29853            cat >>confdefs.h <<\_ACEOF
29854#define SDL_THREAD_WIN32 1
29855_ACEOF
29856
29857            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_sysmutex.c"
29858            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_syssem.c"
29859            SOURCES="$SOURCES $srcdir/src/thread/win32/SDL_systhread.c"
29860            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29861            have_threads=yes
29862        fi
29863        # Set up files for the timer library
29864        if test x$enable_timers = xyes; then
29865            cat >>confdefs.h <<\_ACEOF
29866#define SDL_TIMER_WINCE 1
29867_ACEOF
29868
29869            SOURCES="$SOURCES $srcdir/src/timer/wince/*.c"
29870            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lmmtimer"
29871            have_timers=yes
29872        fi
29873        # Set up files for the shared object loading library
29874        if test x$enable_loadso = xyes; then
29875            cat >>confdefs.h <<\_ACEOF
29876#define SDL_LOADSO_WIN32 1
29877_ACEOF
29878
29879            SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
29880            have_loadso=yes
29881        fi
29882        # Set up the system libraries we need
29883        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl"
29884        # The Win32 platform requires special setup
29885        SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
29886        SDLMAIN_LDFLAGS="-static"
29887        SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
29888        SDL_LIBS="-lSDLmain $SDL_LIBS"
29889        ;;
29890    *-*-beos* | *-*-haiku*)
29891        ARCH=beos
29892        ac_default_prefix=/boot/develop/tools/gnupro
29893        CheckDummyVideo
29894        CheckDiskAudio
29895        CheckDummyAudio
29896        CheckNASM
29897        CheckBWINDOW
29898        CheckBeGL
29899        # Set up files for the audio library
29900        if test x$enable_audio = xyes; then
29901            cat >>confdefs.h <<\_ACEOF
29902#define SDL_AUDIO_DRIVER_BAUDIO 1
29903_ACEOF
29904
29905            SOURCES="$SOURCES $srcdir/src/audio/baudio/*.cc"
29906            have_audio=yes
29907        fi
29908        # Set up files for the joystick library
29909        if test x$enable_joystick = xyes; then
29910            cat >>confdefs.h <<\_ACEOF
29911#define SDL_JOYSTICK_BEOS 1
29912_ACEOF
29913
29914            SOURCES="$SOURCES $srcdir/src/joystick/beos/*.cc"
29915            have_joystick=yes
29916        fi
29917        # Set up files for the cdrom library
29918        if test x$enable_cdrom = xyes; then
29919            cat >>confdefs.h <<\_ACEOF
29920#define SDL_CDROM_BEOS 1
29921_ACEOF
29922
29923            SOURCES="$SOURCES $srcdir/src/cdrom/beos/*.cc"
29924            have_cdrom=yes
29925        fi
29926        # Set up files for the thread library
29927        if test x$enable_threads = xyes; then
29928            cat >>confdefs.h <<\_ACEOF
29929#define SDL_THREAD_BEOS 1
29930_ACEOF
29931
29932            SOURCES="$SOURCES $srcdir/src/thread/beos/*.c"
29933            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_sysmutex.c"
29934            SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
29935            have_threads=yes
29936        fi
29937        # Set up files for the timer library
29938        if test x$enable_timers = xyes; then
29939            cat >>confdefs.h <<\_ACEOF
29940#define SDL_TIMER_BEOS 1
29941_ACEOF
29942
29943            SOURCES="$SOURCES $srcdir/src/timer/beos/*.c"
29944            have_timers=yes
29945        fi
29946        # Set up files for the shared object loading library
29947        if test x$enable_loadso = xyes; then
29948            case "$host" in
29949                *-*-beos*)
29950                    cat >>confdefs.h <<\_ACEOF
29951#define SDL_LOADSO_BEOS 1
29952_ACEOF
29953
29954                    SOURCES="$SOURCES $srcdir/src/loadso/beos/*.c"
29955                ;;
29956                *-*-haiku*)
29957                    cat >>confdefs.h <<\_ACEOF
29958#define SDL_LOADSO_DLOPEN 1
29959_ACEOF
29960
29961                    SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
29962                ;;
29963            esac
29964            have_loadso=yes
29965        fi
29966        # The BeOS platform requires special setup.
29967        SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
29968        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
29969        ;;
29970    *-*-darwin* )
29971        # This could be either full "Mac OS X", or plain "Darwin" which is
29972        # just the OS X kernel sans upper layers like Carbon and Cocoa.
29973        # Next line is broken, and a few files below require Mac OS X (full)
29974        ARCH=macosx
29975
29976        # Mac OS X builds with both the Carbon and OSX APIs at the moment
29977        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
29978        EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
29979
29980        # HACK: Reset EXTRA_LDFLAGS; the only thing it contains at this point
29981        # is -lm which is not needed under Mac OS X. But for some reasons it
29982        # also tends to contain spurious -L switches, which we don't want to
29983        # use here or in sdl-config. Hence we reset it.
29984        EXTRA_LDFLAGS=""
29985
29986        CheckVisibilityHidden
29987        CheckDummyVideo
29988        CheckDiskAudio
29989        CheckDummyAudio
29990        CheckDLOPEN
29991        CheckNASM
29992
29993        # Set up files for the shared object loading library
29994        # (this needs to be done before the dynamic X11 check)
29995        if test x$enable_loadso = xyes -a x$have_dlopen != xyes; then
29996            cat >>confdefs.h <<\_ACEOF
29997#define SDL_LOADSO_DLCOMPAT 1
29998_ACEOF
29999
30000            SOURCES="$SOURCES $srcdir/src/loadso/macosx/*.c"
30001            have_loadso=yes
30002        fi
30003
30004        CheckCOCOA
30005        CheckCARBON
30006        CheckX11
30007        CheckMacGL
30008        CheckOpenGLX11
30009        CheckPTHREAD
30010        CheckAltivec
30011
30012        # Need this or things might misbuild on a G3.
30013        EXTRA_CFLAGS="$EXTRA_CFLAGS -force_cpusubtype_ALL"
30014
30015        # Set up files for the audio library
30016        if test x$enable_audio = xyes; then
30017            cat >>confdefs.h <<\_ACEOF
30018#define SDL_AUDIO_DRIVER_COREAUDIO 1
30019_ACEOF
30020
30021            SOURCES="$SOURCES $srcdir/src/audio/macosx/*.c"
30022            have_audio=yes
30023        fi
30024        # Set up files for the joystick library
30025        if test x$enable_joystick = xyes; then
30026            cat >>confdefs.h <<\_ACEOF
30027#define SDL_JOYSTICK_IOKIT 1
30028_ACEOF
30029
30030            SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
30031            have_joystick=yes
30032            need_iokit_framework=yes
30033        fi
30034        # Set up files for the cdrom library
30035        if test x$enable_cdrom = xyes; then
30036            cat >>confdefs.h <<\_ACEOF
30037#define SDL_CDROM_MACOSX 1
30038_ACEOF
30039
30040            SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
30041            have_cdrom=yes
30042        fi
30043        # Set up files for the timer library
30044        if test x$enable_timers = xyes; then
30045            cat >>confdefs.h <<\_ACEOF
30046#define SDL_TIMER_UNIX 1
30047_ACEOF
30048
30049            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30050            have_timers=yes
30051        fi
30052        # The Mac OS X platform requires special setup.
30053        SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m"
30054        SDLMAIN_LDFLAGS="-static"
30055        EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
30056        SDL_LIBS="-lSDLmain $SDL_LIBS"
30057        if test x$enable_video_cocoa = xyes; then
30058            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
30059            need_iokit_framework=yes
30060        fi
30061        if test x$enable_video_carbon = xyes -o x$enable_video_cocoa = xyes; then
30062            # The Cocoa backend still needs Carbon
30063            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ApplicationServices"
30064            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
30065        fi
30066        # If either the audio or CD driver is used, add the AudioUnit framework
30067        if test x$enable_audio = xyes -o x$enable_cdrom = xyes; then
30068            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit"
30069        fi
30070        # Some subsystems reference IOKit...
30071        if test x$need_iokit_framework = xyes; then
30072            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
30073        fi
30074        ;;
30075    *-*-mint*)
30076        ARCH=mint
30077        CheckDummyVideo
30078        CheckDiskAudio
30079        CheckDummyAudio
30080        CheckAtariBiosEvent
30081        CheckAtariXbiosVideo
30082        CheckAtariGemVideo
30083        CheckAtariAudio
30084        CheckAtariLdg
30085        CheckAtariOSMesa
30086        CheckPTH
30087        # Set up files for the audio library
30088        if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30089            if test x$enable_audio = xyes; then
30090                cat >>confdefs.h <<\_ACEOF
30091#define SDL_AUDIO_DRIVER_SUNAUDIO 1
30092_ACEOF
30093
30094                SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
30095                have_audio=yes
30096            fi
30097        fi
30098        # Set up files for the joystick library
30099        if test x$enable_joystick = xyes; then
30100            cat >>confdefs.h <<\_ACEOF
30101#define SDL_JOYSTICK_MINT 1
30102_ACEOF
30103
30104            SOURCES="$SOURCES $srcdir/src/joystick/mint/*.c"
30105            have_joystick=yes
30106        fi
30107        # Set up files for the cdrom library
30108        if test x$enable_cdrom = xyes; then
30109            cat >>confdefs.h <<\_ACEOF
30110#define SDL_CDROM_MINT 1
30111_ACEOF
30112
30113            SOURCES="$SOURCES $srcdir/src/cdrom/mint/*.c"
30114            have_cdrom=yes
30115        fi
30116        # Set up files for the timer library
30117        if test x$enable_timers = xyes; then
30118            if test x$enable_threads = xyes -a x$enable_pth = xyes; then
30119                cat >>confdefs.h <<\_ACEOF
30120#define SDL_TIMER_UNIX 1
30121_ACEOF
30122
30123                SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
30124            else
30125                cat >>confdefs.h <<\_ACEOF
30126#define SDL_TIMER_MINT 1
30127_ACEOF
30128
30129                SOURCES="$SOURCES $srcdir/src/timer/mint/*.c"
30130                SOURCES="$SOURCES $srcdir/src/timer/mint/*.S"
30131            fi
30132            have_timers=yes
30133        fi
30134        ;;
30135    *-riscos)
30136        ARCH=riscos
30137        CheckOSS
30138        CheckPTHREAD
30139        # Set up files for the video library
30140        if test x$enable_video = xyes; then
30141            cat >>confdefs.h <<\_ACEOF
30142#define SDL_VIDEO_DRIVER_RISCOS 1
30143_ACEOF
30144
30145            SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
30146            SOURCES="$SOURCES $srcdir/src/video/riscos/*.S"
30147            have_video=yes
30148        fi
30149        # Set up files for the joystick library
30150        if test x$enable_joystick = xyes; then
30151            cat >>confdefs.h <<\_ACEOF
30152#define SDL_JOYSTICK_RISCOS 1
30153_ACEOF
30154
30155            SOURCES="$SOURCES $srcdir/src/joystick/riscos/*.c"
30156            have_joystick=yes
30157        fi
30158        # Set up files for the timer library
30159        if test x$enable_timers = xyes; then
30160            cat >>confdefs.h <<\_ACEOF
30161#define SDL_TIMER_RISCOS 1
30162_ACEOF
30163
30164            SOURCES="$SOURCES $srcdir/src/timer/riscos/*.c"
30165            have_timers=yes
30166        fi
30167        # The RISC OS platform requires special setup.
30168        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ljpeg -ltiff -lpng -lz"
30169        ;;
30170    *)
30171        { { echo "$as_me:$LINENO: error:
30172*** Unsupported host:  Please add to configure.in
30173        " >&5
30174echo "$as_me: error:
30175*** Unsupported host:  Please add to configure.in
30176        " >&2;}
30177   { (exit 1); exit 1; }; }
30178        ;;
30179esac
30180
30181CheckWarnAll
30182
30183# Verify that we have all the platform specific files we need
30184
30185if test x$enable_joystick = xyes; then
30186  if test x$have_joystick != xyes; then
30187    # Wants joystick subsystem, but doesn't have a platform-specific backend...
30188    cat >>confdefs.h <<\_ACEOF
30189#define SDL_JOYSTICK_DUMMY 1
30190_ACEOF
30191
30192    SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
30193  fi
30194fi
30195if test x$have_cdrom != xyes; then
30196    if test x$enable_cdrom = xyes; then
30197        cat >>confdefs.h <<\_ACEOF
30198#define SDL_CDROM_DISABLED 1
30199_ACEOF
30200
30201    fi
30202    SOURCES="$SOURCES $srcdir/src/cdrom/dummy/*.c"
30203fi
30204if test x$have_threads != xyes; then
30205    if test x$enable_threads = xyes; then
30206        cat >>confdefs.h <<\_ACEOF
30207#define SDL_THREADS_DISABLED 1
30208_ACEOF
30209
30210    fi
30211    SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
30212fi
30213if test x$have_timers != xyes; then
30214    if test x$enable_timers = xyes; then
30215        cat >>confdefs.h <<\_ACEOF
30216#define SDL_TIMERS_DISABLED 1
30217_ACEOF
30218
30219    fi
30220    SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
30221fi
30222if test x$have_loadso != xyes; then
30223    if test x$enable_loadso = xyes; then
30224        cat >>confdefs.h <<\_ACEOF
30225#define SDL_LOADSO_DISABLED 1
30226_ACEOF
30227
30228    fi
30229    SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
30230fi
30231if test x$SDLMAIN_SOURCES = x; then
30232    SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
30233    SDLMAIN_LDFLAGS="-static"
30234fi
30235
30236OBJECTS=`echo $SOURCES | sed 's,[^ ]*/\([^ ]*\)\.asm,$(objects)/\1.lo,g'`
30237OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30238OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30239OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30240OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.S,$(objects)/\1.lo,g'`
30241OBJECTS=`echo $OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
30242
30243SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[^ ]*/\([^ ]*\)\.cc,$(objects)/\1.lo,g'`
30244SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.m,$(objects)/\1.lo,g'`
30245SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
30246
30247# Set runtime shared library paths as needed
30248
30249if test "x$enable_rpath" = "xyes"; then
30250  if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = irix -o $ARCH = linux -o $ARCH = netbsd; then
30251    SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
30252  fi
30253  if test $ARCH = solaris; then
30254    SDL_RLD_FLAGS="-R\${libdir}"
30255  fi
30256else
30257  SDL_RLD_FLAGS=""
30258fi
30259
30260case "$ARCH" in
30261  macosx)
30262    if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
30263      SDL_LIBS="$SDL_LIBS -Wl,-framework,Cocoa"
30264    fi
30265    if test x$enable_video = xyes -a x$enable_video_carbon = xyes; then
30266      SDL_LIBS="$SDL_LIBS -Wl,-framework,Carbon"
30267    fi
30268    # Evil hack to allow static linking on Mac OS X
30269    SDL_STATIC_LIBS="\${libdir}/libSDLmain.a \${libdir}/libSDL.a $EXTRA_LDFLAGS"
30270    ;;
30271  *)
30272    SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
30273    ;;
30274esac
30275
30276
30277
30278
30279
30280if test x$enable_shared = xyes; then
30281    ENABLE_SHARED_TRUE=
30282    ENABLE_SHARED_FALSE="#"
30283else
30284    ENABLE_SHARED_TRUE="#"
30285    ENABLE_SHARED_FALSE=
30286fi
30287if test x$enable_static = xyes; then
30288    ENABLE_STATIC_TRUE=
30289    ENABLE_STATIC_FALSE="#"
30290else
30291    ENABLE_STATIC_TRUE="#"
30292    ENABLE_STATIC_FALSE=
30293fi
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312ac_config_files="$ac_config_files Makefile sdl-config SDL.spec SDL.qpg sdl.pc"
30313
30314ac_config_commands="$ac_config_commands default"
30315
30316cat >confcache <<\_ACEOF
30317# This file is a shell script that caches the results of configure
30318# tests run on this system so they can be shared between configure
30319# scripts and configure runs, see configure's option --config-cache.
30320# It is not useful on other systems.  If it contains results you don't
30321# want to keep, you may remove or edit it.
30322#
30323# config.status only pays attention to the cache file if you give it
30324# the --recheck option to rerun configure.
30325#
30326# `ac_cv_env_foo' variables (set or unset) will be overridden when
30327# loading this file, other *unset* `ac_cv_foo' will be assigned the
30328# following values.
30329
30330_ACEOF
30331
30332# The following way of writing the cache mishandles newlines in values,
30333# but we know of no workaround that is simple, portable, and efficient.
30334# So, we kill variables containing newlines.
30335# Ultrix sh set writes to stderr and can't be redirected directly,
30336# and sets the high bit in the cache file unless we assign to the vars.
30337(
30338  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30339    eval ac_val=\$$ac_var
30340    case $ac_val in #(
30341    *${as_nl}*)
30342      case $ac_var in #(
30343      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30344echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30345      esac
30346      case $ac_var in #(
30347      _ | IFS | as_nl) ;; #(
30348      *) $as_unset $ac_var ;;
30349      esac ;;
30350    esac
30351  done
30352
30353  (set) 2>&1 |
30354    case $as_nl`(ac_space=' '; set) 2>&1` in #(
30355    *${as_nl}ac_space=\ *)
30356      # `set' does not quote correctly, so add quotes (double-quote
30357      # substitution turns \\\\ into \\, and sed turns \\ into \).
30358      sed -n \
30359	"s/'/'\\\\''/g;
30360	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30361      ;; #(
30362    *)
30363      # `set' quotes correctly as required by POSIX, so do not add quotes.
30364      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30365      ;;
30366    esac |
30367    sort
30368) |
30369  sed '
30370     /^ac_cv_env_/b end
30371     t clear
30372     :clear
30373     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30374     t end
30375     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30376     :end' >>confcache
30377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30378  if test -w "$cache_file"; then
30379    test "x$cache_file" != "x/dev/null" &&
30380      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30381echo "$as_me: updating cache $cache_file" >&6;}
30382    cat confcache >$cache_file
30383  else
30384    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30385echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30386  fi
30387fi
30388rm -f confcache
30389
30390test "x$prefix" = xNONE && prefix=$ac_default_prefix
30391# Let make expand exec_prefix.
30392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30393
30394DEFS=-DHAVE_CONFIG_H
30395
30396ac_libobjs=
30397ac_ltlibobjs=
30398for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30399  # 1. Remove the extension, and $U if already installed.
30400  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30401  ac_i=`echo "$ac_i" | sed "$ac_script"`
30402  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30403  #    will be set to the directory where LIBOBJS objects are built.
30404  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30405  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30406done
30407LIBOBJS=$ac_libobjs
30408
30409LTLIBOBJS=$ac_ltlibobjs
30410
30411
30412
30413: ${CONFIG_STATUS=./config.status}
30414ac_clean_files_save=$ac_clean_files
30415ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30416{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30417echo "$as_me: creating $CONFIG_STATUS" >&6;}
30418cat >$CONFIG_STATUS <<_ACEOF
30419#! $SHELL
30420# Generated by $as_me.
30421# Run this file to recreate the current configuration.
30422# Compiler output produced by configure, useful for debugging
30423# configure, is in config.log if it exists.
30424
30425debug=false
30426ac_cs_recheck=false
30427ac_cs_silent=false
30428SHELL=\${CONFIG_SHELL-$SHELL}
30429_ACEOF
30430
30431cat >>$CONFIG_STATUS <<\_ACEOF
30432## --------------------- ##
30433## M4sh Initialization.  ##
30434## --------------------- ##
30435
30436# Be more Bourne compatible
30437DUALCASE=1; export DUALCASE # for MKS sh
30438if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30439  emulate sh
30440  NULLCMD=:
30441  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30442  # is contrary to our usage.  Disable this feature.
30443  alias -g '${1+"$@"}'='"$@"'
30444  setopt NO_GLOB_SUBST
30445else
30446  case `(set -o) 2>/dev/null` in
30447  *posix*) set -o posix ;;
30448esac
30449
30450fi
30451
30452
30453
30454
30455# PATH needs CR
30456# Avoid depending upon Character Ranges.
30457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30460as_cr_digits='0123456789'
30461as_cr_alnum=$as_cr_Letters$as_cr_digits
30462
30463# The user is always right.
30464if test "${PATH_SEPARATOR+set}" != set; then
30465  echo "#! /bin/sh" >conf$$.sh
30466  echo  "exit 0"   >>conf$$.sh
30467  chmod +x conf$$.sh
30468  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30469    PATH_SEPARATOR=';'
30470  else
30471    PATH_SEPARATOR=:
30472  fi
30473  rm -f conf$$.sh
30474fi
30475
30476# Support unset when possible.
30477if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30478  as_unset=unset
30479else
30480  as_unset=false
30481fi
30482
30483
30484# IFS
30485# We need space, tab and new line, in precisely that order.  Quoting is
30486# there to prevent editors from complaining about space-tab.
30487# (If _AS_PATH_WALK were called with IFS unset, it would disable word
30488# splitting by setting IFS to empty value.)
30489as_nl='
30490'
30491IFS=" ""	$as_nl"
30492
30493# Find who we are.  Look in the path if we contain no directory separator.
30494case $0 in
30495  *[\\/]* ) as_myself=$0 ;;
30496  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30497for as_dir in $PATH
30498do
30499  IFS=$as_save_IFS
30500  test -z "$as_dir" && as_dir=.
30501  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30502done
30503IFS=$as_save_IFS
30504
30505     ;;
30506esac
30507# We did not find ourselves, most probably we were run as `sh COMMAND'
30508# in which case we are not to be found in the path.
30509if test "x$as_myself" = x; then
30510  as_myself=$0
30511fi
30512if test ! -f "$as_myself"; then
30513  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30514  { (exit 1); exit 1; }
30515fi
30516
30517# Work around bugs in pre-3.0 UWIN ksh.
30518for as_var in ENV MAIL MAILPATH
30519do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30520done
30521PS1='$ '
30522PS2='> '
30523PS4='+ '
30524
30525# NLS nuisances.
30526for as_var in \
30527  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30528  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30529  LC_TELEPHONE LC_TIME
30530do
30531  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30532    eval $as_var=C; export $as_var
30533  else
30534    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30535  fi
30536done
30537
30538# Required to use basename.
30539if expr a : '\(a\)' >/dev/null 2>&1 &&
30540   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30541  as_expr=expr
30542else
30543  as_expr=false
30544fi
30545
30546if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30547  as_basename=basename
30548else
30549  as_basename=false
30550fi
30551
30552
30553# Name of the executable.
30554as_me=`$as_basename -- "$0" ||
30555$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30556	 X"$0" : 'X\(//\)$' \| \
30557	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30558echo X/"$0" |
30559    sed '/^.*\/\([^/][^/]*\)\/*$/{
30560	    s//\1/
30561	    q
30562	  }
30563	  /^X\/\(\/\/\)$/{
30564	    s//\1/
30565	    q
30566	  }
30567	  /^X\/\(\/\).*/{
30568	    s//\1/
30569	    q
30570	  }
30571	  s/.*/./; q'`
30572
30573# CDPATH.
30574$as_unset CDPATH
30575
30576
30577
30578  as_lineno_1=$LINENO
30579  as_lineno_2=$LINENO
30580  test "x$as_lineno_1" != "x$as_lineno_2" &&
30581  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30582
30583  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30584  # uniformly replaced by the line number.  The first 'sed' inserts a
30585  # line-number line after each line using $LINENO; the second 'sed'
30586  # does the real work.  The second script uses 'N' to pair each
30587  # line-number line with the line containing $LINENO, and appends
30588  # trailing '-' during substitution so that $LINENO is not a special
30589  # case at line end.
30590  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30591  # scripts with optimization help from Paolo Bonzini.  Blame Lee
30592  # E. McMahon (1931-1989) for sed's syntax.  :-)
30593  sed -n '
30594    p
30595    /[$]LINENO/=
30596  ' <$as_myself |
30597    sed '
30598      s/[$]LINENO.*/&-/
30599      t lineno
30600      b
30601      :lineno
30602      N
30603      :loop
30604      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30605      t loop
30606      s/-\n.*//
30607    ' >$as_me.lineno &&
30608  chmod +x "$as_me.lineno" ||
30609    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30610   { (exit 1); exit 1; }; }
30611
30612  # Don't try to exec as it changes $[0], causing all sort of problems
30613  # (the dirname of $[0] is not the place where we might find the
30614  # original and so on.  Autoconf is especially sensitive to this).
30615  . "./$as_me.lineno"
30616  # Exit status is that of the last command.
30617  exit
30618}
30619
30620
30621if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30622  as_dirname=dirname
30623else
30624  as_dirname=false
30625fi
30626
30627ECHO_C= ECHO_N= ECHO_T=
30628case `echo -n x` in
30629-n*)
30630  case `echo 'x\c'` in
30631  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
30632  *)   ECHO_C='\c';;
30633  esac;;
30634*)
30635  ECHO_N='-n';;
30636esac
30637
30638if expr a : '\(a\)' >/dev/null 2>&1 &&
30639   test "X`expr 00001 : '.*\(...\)'`" = X001; then
30640  as_expr=expr
30641else
30642  as_expr=false
30643fi
30644
30645rm -f conf$$ conf$$.exe conf$$.file
30646if test -d conf$$.dir; then
30647  rm -f conf$$.dir/conf$$.file
30648else
30649  rm -f conf$$.dir
30650  mkdir conf$$.dir
30651fi
30652echo >conf$$.file
30653if ln -s conf$$.file conf$$ 2>/dev/null; then
30654  as_ln_s='ln -s'
30655  # ... but there are two gotchas:
30656  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30657  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30658  # In both cases, we have to default to `cp -p'.
30659  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30660    as_ln_s='cp -p'
30661elif ln conf$$.file conf$$ 2>/dev/null; then
30662  as_ln_s=ln
30663else
30664  as_ln_s='cp -p'
30665fi
30666rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30667rmdir conf$$.dir 2>/dev/null
30668
30669if mkdir -p . 2>/dev/null; then
30670  as_mkdir_p=:
30671else
30672  test -d ./-p && rmdir ./-p
30673  as_mkdir_p=false
30674fi
30675
30676if test -x / >/dev/null 2>&1; then
30677  as_test_x='test -x'
30678else
30679  if ls -dL / >/dev/null 2>&1; then
30680    as_ls_L_option=L
30681  else
30682    as_ls_L_option=
30683  fi
30684  as_test_x='
30685    eval sh -c '\''
30686      if test -d "$1"; then
30687        test -d "$1/.";
30688      else
30689	case $1 in
30690        -*)set "./$1";;
30691	esac;
30692	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30693	???[sx]*):;;*)false;;esac;fi
30694    '\'' sh
30695  '
30696fi
30697as_executable_p=$as_test_x
30698
30699# Sed expression to map a string onto a valid CPP name.
30700as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30701
30702# Sed expression to map a string onto a valid variable name.
30703as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30704
30705
30706exec 6>&1
30707
30708# Save the log message, to keep $[0] and so on meaningful, and to
30709# report actual input values of CONFIG_FILES etc. instead of their
30710# values after options handling.
30711ac_log="
30712This file was extended by $as_me, which was
30713generated by GNU Autoconf 2.61.  Invocation command line was
30714
30715  CONFIG_FILES    = $CONFIG_FILES
30716  CONFIG_HEADERS  = $CONFIG_HEADERS
30717  CONFIG_LINKS    = $CONFIG_LINKS
30718  CONFIG_COMMANDS = $CONFIG_COMMANDS
30719  $ $0 $@
30720
30721on `(hostname || uname -n) 2>/dev/null | sed 1q`
30722"
30723
30724_ACEOF
30725
30726cat >>$CONFIG_STATUS <<_ACEOF
30727# Files that config.status was made for.
30728config_files="$ac_config_files"
30729config_headers="$ac_config_headers"
30730config_commands="$ac_config_commands"
30731
30732_ACEOF
30733
30734cat >>$CONFIG_STATUS <<\_ACEOF
30735ac_cs_usage="\
30736\`$as_me' instantiates files from templates according to the
30737current configuration.
30738
30739Usage: $0 [OPTIONS] [FILE]...
30740
30741  -h, --help       print this help, then exit
30742  -V, --version    print version number and configuration settings, then exit
30743  -q, --quiet      do not print progress messages
30744  -d, --debug      don't remove temporary files
30745      --recheck    update $as_me by reconfiguring in the same conditions
30746  --file=FILE[:TEMPLATE]
30747		   instantiate the configuration file FILE
30748  --header=FILE[:TEMPLATE]
30749		   instantiate the configuration header FILE
30750
30751Configuration files:
30752$config_files
30753
30754Configuration headers:
30755$config_headers
30756
30757Configuration commands:
30758$config_commands
30759
30760Report bugs to <bug-autoconf@gnu.org>."
30761
30762_ACEOF
30763cat >>$CONFIG_STATUS <<_ACEOF
30764ac_cs_version="\\
30765config.status
30766configured by $0, generated by GNU Autoconf 2.61,
30767  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30768
30769Copyright (C) 2006 Free Software Foundation, Inc.
30770This config.status script is free software; the Free Software Foundation
30771gives unlimited permission to copy, distribute and modify it."
30772
30773ac_pwd='$ac_pwd'
30774srcdir='$srcdir'
30775INSTALL='$INSTALL'
30776_ACEOF
30777
30778cat >>$CONFIG_STATUS <<\_ACEOF
30779# If no file are specified by the user, then we need to provide default
30780# value.  By we need to know if files were specified by the user.
30781ac_need_defaults=:
30782while test $# != 0
30783do
30784  case $1 in
30785  --*=*)
30786    ac_option=`expr "X$1" : 'X\([^=]*\)='`
30787    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30788    ac_shift=:
30789    ;;
30790  *)
30791    ac_option=$1
30792    ac_optarg=$2
30793    ac_shift=shift
30794    ;;
30795  esac
30796
30797  case $ac_option in
30798  # Handling of the options.
30799  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30800    ac_cs_recheck=: ;;
30801  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30802    echo "$ac_cs_version"; exit ;;
30803  --debug | --debu | --deb | --de | --d | -d )
30804    debug=: ;;
30805  --file | --fil | --fi | --f )
30806    $ac_shift
30807    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30808    ac_need_defaults=false;;
30809  --header | --heade | --head | --hea )
30810    $ac_shift
30811    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30812    ac_need_defaults=false;;
30813  --he | --h)
30814    # Conflict between --help and --header
30815    { echo "$as_me: error: ambiguous option: $1
30816Try \`$0 --help' for more information." >&2
30817   { (exit 1); exit 1; }; };;
30818  --help | --hel | -h )
30819    echo "$ac_cs_usage"; exit ;;
30820  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30821  | -silent | --silent | --silen | --sile | --sil | --si | --s)
30822    ac_cs_silent=: ;;
30823
30824  # This is an error.
30825  -*) { echo "$as_me: error: unrecognized option: $1
30826Try \`$0 --help' for more information." >&2
30827   { (exit 1); exit 1; }; } ;;
30828
30829  *) ac_config_targets="$ac_config_targets $1"
30830     ac_need_defaults=false ;;
30831
30832  esac
30833  shift
30834done
30835
30836ac_configure_extra_args=
30837
30838if $ac_cs_silent; then
30839  exec 6>/dev/null
30840  ac_configure_extra_args="$ac_configure_extra_args --silent"
30841fi
30842
30843_ACEOF
30844cat >>$CONFIG_STATUS <<_ACEOF
30845if \$ac_cs_recheck; then
30846  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30847  CONFIG_SHELL=$SHELL
30848  export CONFIG_SHELL
30849  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30850fi
30851
30852_ACEOF
30853cat >>$CONFIG_STATUS <<\_ACEOF
30854exec 5>>config.log
30855{
30856  echo
30857  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30858## Running $as_me. ##
30859_ASBOX
30860  echo "$ac_log"
30861} >&5
30862
30863_ACEOF
30864cat >>$CONFIG_STATUS <<_ACEOF
30865#
30866# INIT-COMMANDS
30867#
30868
30869
30870# The HP-UX ksh and POSIX shell print the target directory to stdout
30871# if CDPATH is set.
30872(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30873
30874sed_quote_subst='$sed_quote_subst'
30875double_quote_subst='$double_quote_subst'
30876delay_variable_subst='$delay_variable_subst'
30877macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30878macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30879AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
30880DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30881OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30882enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30883enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30884pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30885enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30886host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30887host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30888host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30889build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30890build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30891build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30892SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30893Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30894GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30895EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30896FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30897LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30898NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30899LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30900max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30901ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30902exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30903lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30904lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30905lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30906reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30907reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30908deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30909file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30910AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30911AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30912STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30913RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30914old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30915old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30916old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30917CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30918CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30919compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30920GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30921lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30922lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30923lt_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"`'
30924lt_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"`'
30925objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30926SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30927ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30928MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30929lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30930lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30931lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30932lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30933lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30934need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30935DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30936NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30937LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30938OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30939OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30940libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30941shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30942extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30943archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30944enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30945export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30946whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30947compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30948old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30949old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30950archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30951archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30952module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30953module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30954with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30955allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30956no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30957hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30958hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30959hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30960hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30961hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30962hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30963hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30964hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30965inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30966link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30967fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30968always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30969export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30970exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30971include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30972prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30973file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30974variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30975need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30976need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30977version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30978runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30979shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30980shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30981libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30982library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30983soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30984postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30985postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30986finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30987finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30988hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30989sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30990sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30991hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30992enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30993enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30994enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30995old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30996striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30997compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30998predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30999postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31000predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31001postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31002compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31003LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31004old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31005compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31006GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31007lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31008lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31009lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31010lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31011lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31012archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31013enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31014export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31015whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31016compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31017old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31018old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31019archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31020archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31021module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31022module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31023with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31024allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31025no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31026hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31027hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31028hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31029hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31030hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31031hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31032hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31033hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31034inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31035link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31036fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31037always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31038export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31039exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31040include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31041prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31042file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31043hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31044compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31045predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31046postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31047predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31048postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31049compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31050
31051LTCC='$LTCC'
31052LTCFLAGS='$LTCFLAGS'
31053compiler='$compiler_DEFAULT'
31054
31055# Quote evaled strings.
31056for var in SED \
31057GREP \
31058EGREP \
31059FGREP \
31060LD \
31061NM \
31062LN_S \
31063lt_SP2NL \
31064lt_NL2SP \
31065reload_flag \
31066deplibs_check_method \
31067file_magic_cmd \
31068AR \
31069AR_FLAGS \
31070STRIP \
31071RANLIB \
31072CC \
31073CFLAGS \
31074compiler \
31075lt_cv_sys_global_symbol_pipe \
31076lt_cv_sys_global_symbol_to_cdecl \
31077lt_cv_sys_global_symbol_to_c_name_address \
31078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31079SHELL \
31080ECHO \
31081lt_prog_compiler_no_builtin_flag \
31082lt_prog_compiler_wl \
31083lt_prog_compiler_pic \
31084lt_prog_compiler_static \
31085lt_cv_prog_compiler_c_o \
31086need_locks \
31087DSYMUTIL \
31088NMEDIT \
31089LIPO \
31090OTOOL \
31091OTOOL64 \
31092shrext_cmds \
31093export_dynamic_flag_spec \
31094whole_archive_flag_spec \
31095compiler_needs_object \
31096with_gnu_ld \
31097allow_undefined_flag \
31098no_undefined_flag \
31099hardcode_libdir_flag_spec \
31100hardcode_libdir_flag_spec_ld \
31101hardcode_libdir_separator \
31102fix_srcfile_path \
31103exclude_expsyms \
31104include_expsyms \
31105file_list_spec \
31106variables_saved_for_relink \
31107libname_spec \
31108library_names_spec \
31109soname_spec \
31110finish_eval \
31111old_striplib \
31112striplib \
31113compiler_lib_search_dirs \
31114predep_objects \
31115postdep_objects \
31116predeps \
31117postdeps \
31118compiler_lib_search_path \
31119LD_CXX \
31120compiler_CXX \
31121lt_prog_compiler_no_builtin_flag_CXX \
31122lt_prog_compiler_wl_CXX \
31123lt_prog_compiler_pic_CXX \
31124lt_prog_compiler_static_CXX \
31125lt_cv_prog_compiler_c_o_CXX \
31126export_dynamic_flag_spec_CXX \
31127whole_archive_flag_spec_CXX \
31128compiler_needs_object_CXX \
31129with_gnu_ld_CXX \
31130allow_undefined_flag_CXX \
31131no_undefined_flag_CXX \
31132hardcode_libdir_flag_spec_CXX \
31133hardcode_libdir_flag_spec_ld_CXX \
31134hardcode_libdir_separator_CXX \
31135fix_srcfile_path_CXX \
31136exclude_expsyms_CXX \
31137include_expsyms_CXX \
31138file_list_spec_CXX \
31139compiler_lib_search_dirs_CXX \
31140predep_objects_CXX \
31141postdep_objects_CXX \
31142predeps_CXX \
31143postdeps_CXX \
31144compiler_lib_search_path_CXX; do
31145    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31146    *[\\\\\\\`\\"\\\$]*)
31147      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31148      ;;
31149    *)
31150      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31151      ;;
31152    esac
31153done
31154
31155# Double-quote double-evaled strings.
31156for var in reload_cmds \
31157old_postinstall_cmds \
31158old_postuninstall_cmds \
31159old_archive_cmds \
31160extract_expsyms_cmds \
31161old_archive_from_new_cmds \
31162old_archive_from_expsyms_cmds \
31163archive_cmds \
31164archive_expsym_cmds \
31165module_cmds \
31166module_expsym_cmds \
31167export_symbols_cmds \
31168prelink_cmds \
31169postinstall_cmds \
31170postuninstall_cmds \
31171finish_cmds \
31172sys_lib_search_path_spec \
31173sys_lib_dlsearch_path_spec \
31174old_archive_cmds_CXX \
31175old_archive_from_new_cmds_CXX \
31176old_archive_from_expsyms_cmds_CXX \
31177archive_cmds_CXX \
31178archive_expsym_cmds_CXX \
31179module_cmds_CXX \
31180module_expsym_cmds_CXX \
31181export_symbols_cmds_CXX \
31182prelink_cmds_CXX; do
31183    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31184    *[\\\\\\\`\\"\\\$]*)
31185      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31186      ;;
31187    *)
31188      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31189      ;;
31190    esac
31191done
31192
31193# Fix-up fallback echo if it was mangled by the above quoting rules.
31194case \$lt_ECHO in
31195*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31196  ;;
31197esac
31198
31199ac_aux_dir='$ac_aux_dir'
31200xsi_shell='$xsi_shell'
31201lt_shell_append='$lt_shell_append'
31202
31203# See if we are running on zsh, and set the options which allow our
31204# commands through without removal of \ escapes INIT.
31205if test -n "\${ZSH_VERSION+set}" ; then
31206   setopt NO_GLOB_SUBST
31207fi
31208
31209
31210    PACKAGE='$PACKAGE'
31211    VERSION='$VERSION'
31212    TIMESTAMP='$TIMESTAMP'
31213    RM='$RM'
31214    ofile='$ofile'
31215
31216
31217
31218
31219
31220
31221_ACEOF
31222
31223cat >>$CONFIG_STATUS <<\_ACEOF
31224
31225# Handling of arguments.
31226for ac_config_target in $ac_config_targets
31227do
31228  case $ac_config_target in
31229    "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
31230    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31231    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31232    "sdl-config") CONFIG_FILES="$CONFIG_FILES sdl-config" ;;
31233    "SDL.spec") CONFIG_FILES="$CONFIG_FILES SDL.spec" ;;
31234    "SDL.qpg") CONFIG_FILES="$CONFIG_FILES SDL.qpg" ;;
31235    "sdl.pc") CONFIG_FILES="$CONFIG_FILES sdl.pc" ;;
31236    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31237
31238  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31239echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31240   { (exit 1); exit 1; }; };;
31241  esac
31242done
31243
31244
31245# If the user did not use the arguments to specify the items to instantiate,
31246# then the envvar interface is used.  Set only those that are not.
31247# We use the long form for the default assignment because of an extremely
31248# bizarre bug on SunOS 4.1.3.
31249if $ac_need_defaults; then
31250  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31251  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31252  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31253fi
31254
31255# Have a temporary directory for convenience.  Make it in the build tree
31256# simply because there is no reason against having it here, and in addition,
31257# creating and moving files from /tmp can sometimes cause problems.
31258# Hook for its removal unless debugging.
31259# Note that there is a small window in which the directory will not be cleaned:
31260# after its creation but before its name has been assigned to `$tmp'.
31261$debug ||
31262{
31263  tmp=
31264  trap 'exit_status=$?
31265  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31266' 0
31267  trap '{ (exit 1); exit 1; }' 1 2 13 15
31268}
31269# Create a (secure) tmp directory for tmp files.
31270
31271{
31272  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31273  test -n "$tmp" && test -d "$tmp"
31274}  ||
31275{
31276  tmp=./conf$$-$RANDOM
31277  (umask 077 && mkdir "$tmp")
31278} ||
31279{
31280   echo "$me: cannot create a temporary directory in ." >&2
31281   { (exit 1); exit 1; }
31282}
31283
31284#
31285# Set up the sed scripts for CONFIG_FILES section.
31286#
31287
31288# No need to generate the scripts if there are no CONFIG_FILES.
31289# This happens for instance when ./config.status config.h
31290if test -n "$CONFIG_FILES"; then
31291
31292_ACEOF
31293
31294
31295
31296ac_delim='%!_!# '
31297for ac_last_try in false false false false false :; do
31298  cat >conf$$subs.sed <<_ACEOF
31299SHELL!$SHELL$ac_delim
31300PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31301PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31302PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31303PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31304PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31305PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31306exec_prefix!$exec_prefix$ac_delim
31307prefix!$prefix$ac_delim
31308program_transform_name!$program_transform_name$ac_delim
31309bindir!$bindir$ac_delim
31310sbindir!$sbindir$ac_delim
31311libexecdir!$libexecdir$ac_delim
31312datarootdir!$datarootdir$ac_delim
31313datadir!$datadir$ac_delim
31314sysconfdir!$sysconfdir$ac_delim
31315sharedstatedir!$sharedstatedir$ac_delim
31316localstatedir!$localstatedir$ac_delim
31317includedir!$includedir$ac_delim
31318oldincludedir!$oldincludedir$ac_delim
31319docdir!$docdir$ac_delim
31320infodir!$infodir$ac_delim
31321htmldir!$htmldir$ac_delim
31322dvidir!$dvidir$ac_delim
31323pdfdir!$pdfdir$ac_delim
31324psdir!$psdir$ac_delim
31325libdir!$libdir$ac_delim
31326localedir!$localedir$ac_delim
31327mandir!$mandir$ac_delim
31328DEFS!$DEFS$ac_delim
31329ECHO_C!$ECHO_C$ac_delim
31330ECHO_N!$ECHO_N$ac_delim
31331ECHO_T!$ECHO_T$ac_delim
31332LIBS!$LIBS$ac_delim
31333build_alias!$build_alias$ac_delim
31334host_alias!$host_alias$ac_delim
31335target_alias!$target_alias$ac_delim
31336SDL_MAJOR_VERSION!$SDL_MAJOR_VERSION$ac_delim
31337SDL_MINOR_VERSION!$SDL_MINOR_VERSION$ac_delim
31338SDL_MICRO_VERSION!$SDL_MICRO_VERSION$ac_delim
31339SDL_INTERFACE_AGE!$SDL_INTERFACE_AGE$ac_delim
31340SDL_BINARY_AGE!$SDL_BINARY_AGE$ac_delim
31341SDL_VERSION!$SDL_VERSION$ac_delim
31342AS!$AS$ac_delim
31343DLLTOOL!$DLLTOOL$ac_delim
31344OBJDUMP!$OBJDUMP$ac_delim
31345LIBTOOL!$LIBTOOL$ac_delim
31346build!$build$ac_delim
31347build_cpu!$build_cpu$ac_delim
31348build_vendor!$build_vendor$ac_delim
31349build_os!$build_os$ac_delim
31350host!$host$ac_delim
31351host_cpu!$host_cpu$ac_delim
31352host_vendor!$host_vendor$ac_delim
31353host_os!$host_os$ac_delim
31354CC!$CC$ac_delim
31355CFLAGS!$CFLAGS$ac_delim
31356LDFLAGS!$LDFLAGS$ac_delim
31357CPPFLAGS!$CPPFLAGS$ac_delim
31358ac_ct_CC!$ac_ct_CC$ac_delim
31359EXEEXT!$EXEEXT$ac_delim
31360OBJEXT!$OBJEXT$ac_delim
31361SED!$SED$ac_delim
31362GREP!$GREP$ac_delim
31363EGREP!$EGREP$ac_delim
31364FGREP!$FGREP$ac_delim
31365LD!$LD$ac_delim
31366DUMPBIN!$DUMPBIN$ac_delim
31367ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
31368NM!$NM$ac_delim
31369LN_S!$LN_S$ac_delim
31370AR!$AR$ac_delim
31371STRIP!$STRIP$ac_delim
31372RANLIB!$RANLIB$ac_delim
31373lt_ECHO!$lt_ECHO$ac_delim
31374DSYMUTIL!$DSYMUTIL$ac_delim
31375NMEDIT!$NMEDIT$ac_delim
31376LIPO!$LIPO$ac_delim
31377OTOOL!$OTOOL$ac_delim
31378OTOOL64!$OTOOL64$ac_delim
31379CPP!$CPP$ac_delim
31380LT_RELEASE!$LT_RELEASE$ac_delim
31381LT_CURRENT!$LT_CURRENT$ac_delim
31382LT_REVISION!$LT_REVISION$ac_delim
31383LT_AGE!$LT_AGE$ac_delim
31384CXX!$CXX$ac_delim
31385CXXFLAGS!$CXXFLAGS$ac_delim
31386ac_ct_CXX!$ac_ct_CXX$ac_delim
31387CXXCPP!$CXXCPP$ac_delim
31388INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31389INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31390INSTALL_DATA!$INSTALL_DATA$ac_delim
31391SET_MAKE!$SET_MAKE$ac_delim
31392WINDRES!$WINDRES$ac_delim
31393ALLOCA!$ALLOCA$ac_delim
31394LIBOBJS!$LIBOBJS$ac_delim
31395POW_LIB!$POW_LIB$ac_delim
31396_ACEOF
31397
31398  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31399    break
31400  elif $ac_last_try; then
31401    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31402echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31403   { (exit 1); exit 1; }; }
31404  else
31405    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31406  fi
31407done
31408
31409ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31410if test -n "$ac_eof"; then
31411  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31412  ac_eof=`expr $ac_eof + 1`
31413fi
31414
31415cat >>$CONFIG_STATUS <<_ACEOF
31416cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31417/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31418_ACEOF
31419sed '
31420s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31421s/^/s,@/; s/!/@,|#_!!_#|/
31422:n
31423t n
31424s/'"$ac_delim"'$/,g/; t
31425s/$/\\/; p
31426N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31427' >>$CONFIG_STATUS <conf$$subs.sed
31428rm -f conf$$subs.sed
31429cat >>$CONFIG_STATUS <<_ACEOF
31430CEOF$ac_eof
31431_ACEOF
31432
31433
31434ac_delim='%!_!# '
31435for ac_last_try in false false false false false :; do
31436  cat >conf$$subs.sed <<_ACEOF
31437ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
31438ALSA_LIBS!$ALSA_LIBS$ac_delim
31439ESD_CONFIG!$ESD_CONFIG$ac_delim
31440ESD_CFLAGS!$ESD_CFLAGS$ac_delim
31441ESD_LIBS!$ESD_LIBS$ac_delim
31442PKG_CONFIG!$PKG_CONFIG$ac_delim
31443ARTSCONFIG!$ARTSCONFIG$ac_delim
31444NASM!$NASM$ac_delim
31445NASMFLAGS!$NASMFLAGS$ac_delim
31446XMKMF!$XMKMF$ac_delim
31447X_CFLAGS!$X_CFLAGS$ac_delim
31448X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31449X_LIBS!$X_LIBS$ac_delim
31450X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31451DIRECTFBCONFIG!$DIRECTFBCONFIG$ac_delim
31452CACACONFIG!$CACACONFIG$ac_delim
31453OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
31454PTH_CONFIG!$PTH_CONFIG$ac_delim
31455SDL_CFLAGS!$SDL_CFLAGS$ac_delim
31456SDL_LIBS!$SDL_LIBS$ac_delim
31457SDL_STATIC_LIBS!$SDL_STATIC_LIBS$ac_delim
31458SDL_RLD_FLAGS!$SDL_RLD_FLAGS$ac_delim
31459ENABLE_SHARED_TRUE!$ENABLE_SHARED_TRUE$ac_delim
31460ENABLE_SHARED_FALSE!$ENABLE_SHARED_FALSE$ac_delim
31461ENABLE_STATIC_TRUE!$ENABLE_STATIC_TRUE$ac_delim
31462ENABLE_STATIC_FALSE!$ENABLE_STATIC_FALSE$ac_delim
31463ac_aux_dir!$ac_aux_dir$ac_delim
31464INCLUDE!$INCLUDE$ac_delim
31465SOURCES!$SOURCES$ac_delim
31466OBJECTS!$OBJECTS$ac_delim
31467SDLMAIN_SOURCES!$SDLMAIN_SOURCES$ac_delim
31468SDLMAIN_OBJECTS!$SDLMAIN_OBJECTS$ac_delim
31469SDLMAIN_LDFLAGS!$SDLMAIN_LDFLAGS$ac_delim
31470BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
31471EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
31472BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
31473EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
31474LTLIBOBJS!$LTLIBOBJS$ac_delim
31475_ACEOF
31476
31477  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
31478    break
31479  elif $ac_last_try; then
31480    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31481echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31482   { (exit 1); exit 1; }; }
31483  else
31484    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31485  fi
31486done
31487
31488ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31489if test -n "$ac_eof"; then
31490  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31491  ac_eof=`expr $ac_eof + 1`
31492fi
31493
31494cat >>$CONFIG_STATUS <<_ACEOF
31495cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31496/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31497_ACEOF
31498sed '
31499s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31500s/^/s,@/; s/!/@,|#_!!_#|/
31501:n
31502t n
31503s/'"$ac_delim"'$/,g/; t
31504s/$/\\/; p
31505N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31506' >>$CONFIG_STATUS <conf$$subs.sed
31507rm -f conf$$subs.sed
31508cat >>$CONFIG_STATUS <<_ACEOF
31509:end
31510s/|#_!!_#|//g
31511CEOF$ac_eof
31512_ACEOF
31513
31514
31515# VPATH may cause trouble with some makes, so we remove $(srcdir),
31516# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31517# trailing colons and then remove the whole line if VPATH becomes empty
31518# (actually we leave an empty line to preserve line numbers).
31519if test "x$srcdir" = x.; then
31520  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31521s/:*\$(srcdir):*/:/
31522s/:*\${srcdir}:*/:/
31523s/:*@srcdir@:*/:/
31524s/^\([^=]*=[	 ]*\):*/\1/
31525s/:*$//
31526s/^[^=]*=[	 ]*$//
31527}'
31528fi
31529
31530cat >>$CONFIG_STATUS <<\_ACEOF
31531fi # test -n "$CONFIG_FILES"
31532
31533
31534for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31535do
31536  case $ac_tag in
31537  :[FHLC]) ac_mode=$ac_tag; continue;;
31538  esac
31539  case $ac_mode$ac_tag in
31540  :[FHL]*:*);;
31541  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31542echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31543   { (exit 1); exit 1; }; };;
31544  :[FH]-) ac_tag=-:-;;
31545  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31546  esac
31547  ac_save_IFS=$IFS
31548  IFS=:
31549  set x $ac_tag
31550  IFS=$ac_save_IFS
31551  shift
31552  ac_file=$1
31553  shift
31554
31555  case $ac_mode in
31556  :L) ac_source=$1;;
31557  :[FH])
31558    ac_file_inputs=
31559    for ac_f
31560    do
31561      case $ac_f in
31562      -) ac_f="$tmp/stdin";;
31563      *) # Look for the file first in the build tree, then in the source tree
31564	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
31565	 # because $ac_f cannot contain `:'.
31566	 test -f "$ac_f" ||
31567	   case $ac_f in
31568	   [\\/$]*) false;;
31569	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31570	   esac ||
31571	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31572echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31573   { (exit 1); exit 1; }; };;
31574      esac
31575      ac_file_inputs="$ac_file_inputs $ac_f"
31576    done
31577
31578    # Let's still pretend it is `configure' which instantiates (i.e., don't
31579    # use $as_me), people would be surprised to read:
31580    #    /* config.h.  Generated by config.status.  */
31581    configure_input="Generated from "`IFS=:
31582	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31583    if test x"$ac_file" != x-; then
31584      configure_input="$ac_file.  $configure_input"
31585      { echo "$as_me:$LINENO: creating $ac_file" >&5
31586echo "$as_me: creating $ac_file" >&6;}
31587    fi
31588
31589    case $ac_tag in
31590    *:-:* | *:-) cat >"$tmp/stdin";;
31591    esac
31592    ;;
31593  esac
31594
31595  ac_dir=`$as_dirname -- "$ac_file" ||
31596$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31597	 X"$ac_file" : 'X\(//\)[^/]' \| \
31598	 X"$ac_file" : 'X\(//\)$' \| \
31599	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31600echo X"$ac_file" |
31601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31602	    s//\1/
31603	    q
31604	  }
31605	  /^X\(\/\/\)[^/].*/{
31606	    s//\1/
31607	    q
31608	  }
31609	  /^X\(\/\/\)$/{
31610	    s//\1/
31611	    q
31612	  }
31613	  /^X\(\/\).*/{
31614	    s//\1/
31615	    q
31616	  }
31617	  s/.*/./; q'`
31618  { as_dir="$ac_dir"
31619  case $as_dir in #(
31620  -*) as_dir=./$as_dir;;
31621  esac
31622  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31623    as_dirs=
31624    while :; do
31625      case $as_dir in #(
31626      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31627      *) as_qdir=$as_dir;;
31628      esac
31629      as_dirs="'$as_qdir' $as_dirs"
31630      as_dir=`$as_dirname -- "$as_dir" ||
31631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31632	 X"$as_dir" : 'X\(//\)[^/]' \| \
31633	 X"$as_dir" : 'X\(//\)$' \| \
31634	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31635echo X"$as_dir" |
31636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31637	    s//\1/
31638	    q
31639	  }
31640	  /^X\(\/\/\)[^/].*/{
31641	    s//\1/
31642	    q
31643	  }
31644	  /^X\(\/\/\)$/{
31645	    s//\1/
31646	    q
31647	  }
31648	  /^X\(\/\).*/{
31649	    s//\1/
31650	    q
31651	  }
31652	  s/.*/./; q'`
31653      test -d "$as_dir" && break
31654    done
31655    test -z "$as_dirs" || eval "mkdir $as_dirs"
31656  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31657echo "$as_me: error: cannot create directory $as_dir" >&2;}
31658   { (exit 1); exit 1; }; }; }
31659  ac_builddir=.
31660
31661case "$ac_dir" in
31662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31663*)
31664  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31665  # A ".." for each directory in $ac_dir_suffix.
31666  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31667  case $ac_top_builddir_sub in
31668  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31669  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31670  esac ;;
31671esac
31672ac_abs_top_builddir=$ac_pwd
31673ac_abs_builddir=$ac_pwd$ac_dir_suffix
31674# for backward compatibility:
31675ac_top_builddir=$ac_top_build_prefix
31676
31677case $srcdir in
31678  .)  # We are building in place.
31679    ac_srcdir=.
31680    ac_top_srcdir=$ac_top_builddir_sub
31681    ac_abs_top_srcdir=$ac_pwd ;;
31682  [\\/]* | ?:[\\/]* )  # Absolute name.
31683    ac_srcdir=$srcdir$ac_dir_suffix;
31684    ac_top_srcdir=$srcdir
31685    ac_abs_top_srcdir=$srcdir ;;
31686  *) # Relative name.
31687    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31688    ac_top_srcdir=$ac_top_build_prefix$srcdir
31689    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31690esac
31691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31692
31693
31694  case $ac_mode in
31695  :F)
31696  #
31697  # CONFIG_FILE
31698  #
31699
31700  case $INSTALL in
31701  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31702  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31703  esac
31704_ACEOF
31705
31706cat >>$CONFIG_STATUS <<\_ACEOF
31707# If the template does not know about datarootdir, expand it.
31708# FIXME: This hack should be removed a few years after 2.60.
31709ac_datarootdir_hack=; ac_datarootdir_seen=
31710
31711case `sed -n '/datarootdir/ {
31712  p
31713  q
31714}
31715/@datadir@/p
31716/@docdir@/p
31717/@infodir@/p
31718/@localedir@/p
31719/@mandir@/p
31720' $ac_file_inputs` in
31721*datarootdir*) ac_datarootdir_seen=yes;;
31722*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31723  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31724echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31725_ACEOF
31726cat >>$CONFIG_STATUS <<_ACEOF
31727  ac_datarootdir_hack='
31728  s&@datadir@&$datadir&g
31729  s&@docdir@&$docdir&g
31730  s&@infodir@&$infodir&g
31731  s&@localedir@&$localedir&g
31732  s&@mandir@&$mandir&g
31733    s&\\\${datarootdir}&$datarootdir&g' ;;
31734esac
31735_ACEOF
31736
31737# Neutralize VPATH when `$srcdir' = `.'.
31738# Shell code in configure.ac might set extrasub.
31739# FIXME: do we really want to maintain this feature?
31740cat >>$CONFIG_STATUS <<_ACEOF
31741  sed "$ac_vpsub
31742$extrasub
31743_ACEOF
31744cat >>$CONFIG_STATUS <<\_ACEOF
31745:t
31746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31747s&@configure_input@&$configure_input&;t t
31748s&@top_builddir@&$ac_top_builddir_sub&;t t
31749s&@srcdir@&$ac_srcdir&;t t
31750s&@abs_srcdir@&$ac_abs_srcdir&;t t
31751s&@top_srcdir@&$ac_top_srcdir&;t t
31752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31753s&@builddir@&$ac_builddir&;t t
31754s&@abs_builddir@&$ac_abs_builddir&;t t
31755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31756s&@INSTALL@&$ac_INSTALL&;t t
31757$ac_datarootdir_hack
31758" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
31759
31760test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31761  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31762  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31763  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31764which seems to be undefined.  Please make sure it is defined." >&5
31765echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31766which seems to be undefined.  Please make sure it is defined." >&2;}
31767
31768  rm -f "$tmp/stdin"
31769  case $ac_file in
31770  -) cat "$tmp/out"; rm -f "$tmp/out";;
31771  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31772  esac
31773 ;;
31774  :H)
31775  #
31776  # CONFIG_HEADER
31777  #
31778_ACEOF
31779
31780# Transform confdefs.h into a sed script `conftest.defines', that
31781# substitutes the proper values into config.h.in to produce config.h.
31782rm -f conftest.defines conftest.tail
31783# First, append a space to every undef/define line, to ease matching.
31784echo 's/$/ /' >conftest.defines
31785# Then, protect against being on the right side of a sed subst, or in
31786# an unquoted here document, in config.status.  If some macros were
31787# called several times there might be several #defines for the same
31788# symbol, which is useless.  But do not sort them, since the last
31789# AC_DEFINE must be honored.
31790ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31791# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31792# NAME is the cpp macro being defined, VALUE is the value it is being given.
31793# PARAMS is the parameter list in the macro definition--in most cases, it's
31794# just an empty string.
31795ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
31796ac_dB='\\)[	 (].*,\\1define\\2'
31797ac_dC=' '
31798ac_dD=' ,'
31799
31800uniq confdefs.h |
31801  sed -n '
31802	t rset
31803	:rset
31804	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
31805	t ok
31806	d
31807	:ok
31808	s/[\\&,]/\\&/g
31809	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31810	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31811  ' >>conftest.defines
31812
31813# Remove the space that was appended to ease matching.
31814# Then replace #undef with comments.  This is necessary, for
31815# example, in the case of _POSIX_SOURCE, which is predefined and required
31816# on some systems where configure will not decide to define it.
31817# (The regexp can be short, since the line contains either #define or #undef.)
31818echo 's/ $//
31819s,^[	 #]*u.*,/* & */,' >>conftest.defines
31820
31821# Break up conftest.defines:
31822ac_max_sed_lines=50
31823
31824# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31825# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31826# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31827# et cetera.
31828ac_in='$ac_file_inputs'
31829ac_out='"$tmp/out1"'
31830ac_nxt='"$tmp/out2"'
31831
31832while :
31833do
31834  # Write a here document:
31835    cat >>$CONFIG_STATUS <<_ACEOF
31836    # First, check the format of the line:
31837    cat >"\$tmp/defines.sed" <<\\CEOF
31838/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*/b def
31839/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
31840b
31841:def
31842_ACEOF
31843  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31844  echo 'CEOF
31845    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31846  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31847  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31848  grep . conftest.tail >/dev/null || break
31849  rm -f conftest.defines
31850  mv conftest.tail conftest.defines
31851done
31852rm -f conftest.defines conftest.tail
31853
31854echo "ac_result=$ac_in" >>$CONFIG_STATUS
31855cat >>$CONFIG_STATUS <<\_ACEOF
31856  if test x"$ac_file" != x-; then
31857    echo "/* $configure_input  */" >"$tmp/config.h"
31858    cat "$ac_result" >>"$tmp/config.h"
31859    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31860      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31861echo "$as_me: $ac_file is unchanged" >&6;}
31862    else
31863      rm -f $ac_file
31864      mv "$tmp/config.h" $ac_file
31865    fi
31866  else
31867    echo "/* $configure_input  */"
31868    cat "$ac_result"
31869  fi
31870  rm -f "$tmp/out12"
31871 ;;
31872
31873  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31874echo "$as_me: executing $ac_file commands" >&6;}
31875 ;;
31876  esac
31877
31878
31879  case $ac_file$ac_mode in
31880    "libtool":C)
31881
31882    # See if we are running on zsh, and set the options which allow our
31883    # commands through without removal of \ escapes.
31884    if test -n "${ZSH_VERSION+set}" ; then
31885      setopt NO_GLOB_SUBST
31886    fi
31887
31888    cfgfile="${ofile}T"
31889    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31890    $RM "$cfgfile"
31891
31892    cat <<_LT_EOF >> "$cfgfile"
31893#! $SHELL
31894
31895# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31896# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31897# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31898# NOTE: Changes made to this file will be lost: look at ltmain.sh.
31899#
31900#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31901#                 2006, 2007, 2008 Free Software Foundation, Inc.
31902#   Written by Gordon Matzigkeit, 1996
31903#
31904#   This file is part of GNU Libtool.
31905#
31906# GNU Libtool is free software; you can redistribute it and/or
31907# modify it under the terms of the GNU General Public License as
31908# published by the Free Software Foundation; either version 2 of
31909# the License, or (at your option) any later version.
31910#
31911# As a special exception to the GNU General Public License,
31912# if you distribute this file as part of a program or library that
31913# is built using GNU Libtool, you may include this file under the
31914# same distribution terms that you use for the rest of that program.
31915#
31916# GNU Libtool is distributed in the hope that it will be useful,
31917# but WITHOUT ANY WARRANTY; without even the implied warranty of
31918# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31919# GNU General Public License for more details.
31920#
31921# You should have received a copy of the GNU General Public License
31922# along with GNU Libtool; see the file COPYING.  If not, a copy
31923# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31924# obtained by writing to the Free Software Foundation, Inc.,
31925# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31926
31927
31928# The names of the tagged configurations supported by this script.
31929available_tags="CXX "
31930
31931# ### BEGIN LIBTOOL CONFIG
31932
31933# Which release of libtool.m4 was used?
31934macro_version=$macro_version
31935macro_revision=$macro_revision
31936
31937# Assembler program.
31938AS=$AS
31939
31940# DLL creation program.
31941DLLTOOL=$DLLTOOL
31942
31943# Object dumper program.
31944OBJDUMP=$OBJDUMP
31945
31946# Whether or not to build shared libraries.
31947build_libtool_libs=$enable_shared
31948
31949# Whether or not to build static libraries.
31950build_old_libs=$enable_static
31951
31952# What type of objects to build.
31953pic_mode=$pic_mode
31954
31955# Whether or not to optimize for fast installation.
31956fast_install=$enable_fast_install
31957
31958# The host system.
31959host_alias=$host_alias
31960host=$host
31961host_os=$host_os
31962
31963# The build system.
31964build_alias=$build_alias
31965build=$build
31966build_os=$build_os
31967
31968# A sed program that does not truncate output.
31969SED=$lt_SED
31970
31971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
31972Xsed="\$SED -e 1s/^X//"
31973
31974# A grep program that handles long lines.
31975GREP=$lt_GREP
31976
31977# An ERE matcher.
31978EGREP=$lt_EGREP
31979
31980# A literal string matcher.
31981FGREP=$lt_FGREP
31982
31983# A BSD- or MS-compatible name lister.
31984NM=$lt_NM
31985
31986# Whether we need soft or hard links.
31987LN_S=$lt_LN_S
31988
31989# What is the maximum length of a command?
31990max_cmd_len=$max_cmd_len
31991
31992# Object file suffix (normally "o").
31993objext=$ac_objext
31994
31995# Executable file suffix (normally "").
31996exeext=$exeext
31997
31998# whether the shell understands "unset".
31999lt_unset=$lt_unset
32000
32001# turn spaces into newlines.
32002SP2NL=$lt_lt_SP2NL
32003
32004# turn newlines into spaces.
32005NL2SP=$lt_lt_NL2SP
32006
32007# How to create reloadable object files.
32008reload_flag=$lt_reload_flag
32009reload_cmds=$lt_reload_cmds
32010
32011# Method to check whether dependent libraries are shared objects.
32012deplibs_check_method=$lt_deplibs_check_method
32013
32014# Command to use when deplibs_check_method == "file_magic".
32015file_magic_cmd=$lt_file_magic_cmd
32016
32017# The archiver.
32018AR=$lt_AR
32019AR_FLAGS=$lt_AR_FLAGS
32020
32021# A symbol stripping program.
32022STRIP=$lt_STRIP
32023
32024# Commands used to install an old-style archive.
32025RANLIB=$lt_RANLIB
32026old_postinstall_cmds=$lt_old_postinstall_cmds
32027old_postuninstall_cmds=$lt_old_postuninstall_cmds
32028
32029# A C compiler.
32030LTCC=$lt_CC
32031
32032# LTCC compiler flags.
32033LTCFLAGS=$lt_CFLAGS
32034
32035# Take the output of nm and produce a listing of raw symbols and C names.
32036global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32037
32038# Transform the output of nm in a proper C declaration.
32039global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32040
32041# Transform the output of nm in a C name address pair.
32042global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32043
32044# Transform the output of nm in a C name address pair when lib prefix is needed.
32045global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32046
32047# The name of the directory that contains temporary libtool files.
32048objdir=$objdir
32049
32050# Shell to use when invoking shell scripts.
32051SHELL=$lt_SHELL
32052
32053# An echo program that does not interpret backslashes.
32054ECHO=$lt_ECHO
32055
32056# Used to examine libraries when file_magic_cmd begins with "file".
32057MAGIC_CMD=$MAGIC_CMD
32058
32059# Must we lock files when doing compilation?
32060need_locks=$lt_need_locks
32061
32062# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32063DSYMUTIL=$lt_DSYMUTIL
32064
32065# Tool to change global to local symbols on Mac OS X.
32066NMEDIT=$lt_NMEDIT
32067
32068# Tool to manipulate fat objects and archives on Mac OS X.
32069LIPO=$lt_LIPO
32070
32071# ldd/readelf like tool for Mach-O binaries on Mac OS X.
32072OTOOL=$lt_OTOOL
32073
32074# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32075OTOOL64=$lt_OTOOL64
32076
32077# Old archive suffix (normally "a").
32078libext=$libext
32079
32080# Shared library suffix (normally ".so").
32081shrext_cmds=$lt_shrext_cmds
32082
32083# The commands to extract the exported symbol list from a shared archive.
32084extract_expsyms_cmds=$lt_extract_expsyms_cmds
32085
32086# Variables whose values should be saved in libtool wrapper scripts and
32087# restored at link time.
32088variables_saved_for_relink=$lt_variables_saved_for_relink
32089
32090# Do we need the "lib" prefix for modules?
32091need_lib_prefix=$need_lib_prefix
32092
32093# Do we need a version for libraries?
32094need_version=$need_version
32095
32096# Library versioning type.
32097version_type=$version_type
32098
32099# Shared library runtime path variable.
32100runpath_var=$runpath_var
32101
32102# Shared library path variable.
32103shlibpath_var=$shlibpath_var
32104
32105# Is shlibpath searched before the hard-coded library search path?
32106shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32107
32108# Format of library name prefix.
32109libname_spec=$lt_libname_spec
32110
32111# List of archive names.  First name is the real one, the rest are links.
32112# The last name is the one that the linker finds with -lNAME
32113library_names_spec=$lt_library_names_spec
32114
32115# The coded name of the library, if different from the real name.
32116soname_spec=$lt_soname_spec
32117
32118# Command to use after installation of a shared archive.
32119postinstall_cmds=$lt_postinstall_cmds
32120
32121# Command to use after uninstallation of a shared archive.
32122postuninstall_cmds=$lt_postuninstall_cmds
32123
32124# Commands used to finish a libtool library installation in a directory.
32125finish_cmds=$lt_finish_cmds
32126
32127# As "finish_cmds", except a single script fragment to be evaled but
32128# not shown.
32129finish_eval=$lt_finish_eval
32130
32131# Whether we should hardcode library paths into libraries.
32132hardcode_into_libs=$hardcode_into_libs
32133
32134# Compile-time system search path for libraries.
32135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32136
32137# Run-time system search path for libraries.
32138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32139
32140# Whether dlopen is supported.
32141dlopen_support=$enable_dlopen
32142
32143# Whether dlopen of programs is supported.
32144dlopen_self=$enable_dlopen_self
32145
32146# Whether dlopen of statically linked programs is supported.
32147dlopen_self_static=$enable_dlopen_self_static
32148
32149# Commands to strip libraries.
32150old_striplib=$lt_old_striplib
32151striplib=$lt_striplib
32152
32153
32154# The linker used to build libraries.
32155LD=$lt_LD
32156
32157# Commands used to build an old-style archive.
32158old_archive_cmds=$lt_old_archive_cmds
32159
32160# A language specific compiler.
32161CC=$lt_compiler
32162
32163# Is the compiler the GNU compiler?
32164with_gcc=$GCC
32165
32166# Compiler flag to turn off builtin functions.
32167no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32168
32169# How to pass a linker flag through the compiler.
32170wl=$lt_lt_prog_compiler_wl
32171
32172# Additional compiler flags for building library objects.
32173pic_flag=$lt_lt_prog_compiler_pic
32174
32175# Compiler flag to prevent dynamic linking.
32176link_static_flag=$lt_lt_prog_compiler_static
32177
32178# Does compiler simultaneously support -c and -o options?
32179compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32180
32181# Whether or not to add -lc for building shared libraries.
32182build_libtool_need_lc=$archive_cmds_need_lc
32183
32184# Whether or not to disallow shared libs when runtime libs are static.
32185allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32186
32187# Compiler flag to allow reflexive dlopens.
32188export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32189
32190# Compiler flag to generate shared objects directly from archives.
32191whole_archive_flag_spec=$lt_whole_archive_flag_spec
32192
32193# Whether the compiler copes with passing no objects directly.
32194compiler_needs_object=$lt_compiler_needs_object
32195
32196# Create an old-style archive from a shared archive.
32197old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32198
32199# Create a temporary old-style archive to link instead of a shared archive.
32200old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32201
32202# Commands used to build a shared archive.
32203archive_cmds=$lt_archive_cmds
32204archive_expsym_cmds=$lt_archive_expsym_cmds
32205
32206# Commands used to build a loadable module if different from building
32207# a shared archive.
32208module_cmds=$lt_module_cmds
32209module_expsym_cmds=$lt_module_expsym_cmds
32210
32211# Whether we are building with GNU ld or not.
32212with_gnu_ld=$lt_with_gnu_ld
32213
32214# Flag that allows shared libraries with undefined symbols to be built.
32215allow_undefined_flag=$lt_allow_undefined_flag
32216
32217# Flag that enforces no undefined symbols.
32218no_undefined_flag=$lt_no_undefined_flag
32219
32220# Flag to hardcode \$libdir into a binary during linking.
32221# This must work even if \$libdir does not exist
32222hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32223
32224# If ld is used when linking, flag to hardcode \$libdir into a binary
32225# during linking.  This must work even if \$libdir does not exist.
32226hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32227
32228# Whether we need a single "-rpath" flag with a separated argument.
32229hardcode_libdir_separator=$lt_hardcode_libdir_separator
32230
32231# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32232# DIR into the resulting binary.
32233hardcode_direct=$hardcode_direct
32234
32235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32236# DIR into the resulting binary and the resulting library dependency is
32237# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32238# library is relocated.
32239hardcode_direct_absolute=$hardcode_direct_absolute
32240
32241# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32242# into the resulting binary.
32243hardcode_minus_L=$hardcode_minus_L
32244
32245# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32246# into the resulting binary.
32247hardcode_shlibpath_var=$hardcode_shlibpath_var
32248
32249# Set to "yes" if building a shared library automatically hardcodes DIR
32250# into the library and all subsequent libraries and executables linked
32251# against it.
32252hardcode_automatic=$hardcode_automatic
32253
32254# Set to yes if linker adds runtime paths of dependent libraries
32255# to runtime path list.
32256inherit_rpath=$inherit_rpath
32257
32258# Whether libtool must link a program against all its dependency libraries.
32259link_all_deplibs=$link_all_deplibs
32260
32261# Fix the shell variable \$srcfile for the compiler.
32262fix_srcfile_path=$lt_fix_srcfile_path
32263
32264# Set to "yes" if exported symbols are required.
32265always_export_symbols=$always_export_symbols
32266
32267# The commands to list exported symbols.
32268export_symbols_cmds=$lt_export_symbols_cmds
32269
32270# Symbols that should not be listed in the preloaded symbols.
32271exclude_expsyms=$lt_exclude_expsyms
32272
32273# Symbols that must always be exported.
32274include_expsyms=$lt_include_expsyms
32275
32276# Commands necessary for linking programs (against libraries) with templates.
32277prelink_cmds=$lt_prelink_cmds
32278
32279# Specify filename containing input files.
32280file_list_spec=$lt_file_list_spec
32281
32282# How to hardcode a shared library path into an executable.
32283hardcode_action=$hardcode_action
32284
32285# The directories searched by this compiler when creating a shared library.
32286compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32287
32288# Dependencies to place before and after the objects being linked to
32289# create a shared library.
32290predep_objects=$lt_predep_objects
32291postdep_objects=$lt_postdep_objects
32292predeps=$lt_predeps
32293postdeps=$lt_postdeps
32294
32295# The library search path used internally by the compiler when linking
32296# a shared library.
32297compiler_lib_search_path=$lt_compiler_lib_search_path
32298
32299# ### END LIBTOOL CONFIG
32300
32301_LT_EOF
32302
32303  case $host_os in
32304  aix3*)
32305    cat <<\_LT_EOF >> "$cfgfile"
32306# AIX sometimes has problems with the GCC collect2 program.  For some
32307# reason, if we set the COLLECT_NAMES environment variable, the problems
32308# vanish in a puff of smoke.
32309if test "X${COLLECT_NAMES+set}" != Xset; then
32310  COLLECT_NAMES=
32311  export COLLECT_NAMES
32312fi
32313_LT_EOF
32314    ;;
32315  esac
32316
32317
32318ltmain="$ac_aux_dir/ltmain.sh"
32319
32320
32321  # We use sed instead of cat because bash on DJGPP gets confused if
32322  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32323  # text mode, it properly converts lines to CR/LF.  This bash problem
32324  # is reportedly fixed, but why not run on old versions too?
32325  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32326    || (rm -f "$cfgfile"; exit 1)
32327
32328  case $xsi_shell in
32329  yes)
32330    cat << \_LT_EOF >> "$cfgfile"
32331
32332# func_dirname file append nondir_replacement
32333# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32334# otherwise set result to NONDIR_REPLACEMENT.
32335func_dirname ()
32336{
32337  case ${1} in
32338    */*) func_dirname_result="${1%/*}${2}" ;;
32339    *  ) func_dirname_result="${3}" ;;
32340  esac
32341}
32342
32343# func_basename file
32344func_basename ()
32345{
32346  func_basename_result="${1##*/}"
32347}
32348
32349# func_dirname_and_basename file append nondir_replacement
32350# perform func_basename and func_dirname in a single function
32351# call:
32352#   dirname:  Compute the dirname of FILE.  If nonempty,
32353#             add APPEND to the result, otherwise set result
32354#             to NONDIR_REPLACEMENT.
32355#             value returned in "$func_dirname_result"
32356#   basename: Compute filename of FILE.
32357#             value retuned in "$func_basename_result"
32358# Implementation must be kept synchronized with func_dirname
32359# and func_basename. For efficiency, we do not delegate to
32360# those functions but instead duplicate the functionality here.
32361func_dirname_and_basename ()
32362{
32363  case ${1} in
32364    */*) func_dirname_result="${1%/*}${2}" ;;
32365    *  ) func_dirname_result="${3}" ;;
32366  esac
32367  func_basename_result="${1##*/}"
32368}
32369
32370# func_stripname prefix suffix name
32371# strip PREFIX and SUFFIX off of NAME.
32372# PREFIX and SUFFIX must not contain globbing or regex special
32373# characters, hashes, percent signs, but SUFFIX may contain a leading
32374# dot (in which case that matches only a dot).
32375func_stripname ()
32376{
32377  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32378  # positional parameters, so assign one to ordinary parameter first.
32379  func_stripname_result=${3}
32380  func_stripname_result=${func_stripname_result#"${1}"}
32381  func_stripname_result=${func_stripname_result%"${2}"}
32382}
32383
32384# func_opt_split
32385func_opt_split ()
32386{
32387  func_opt_split_opt=${1%%=*}
32388  func_opt_split_arg=${1#*=}
32389}
32390
32391# func_lo2o object
32392func_lo2o ()
32393{
32394  case ${1} in
32395    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32396    *)    func_lo2o_result=${1} ;;
32397  esac
32398}
32399
32400# func_xform libobj-or-source
32401func_xform ()
32402{
32403  func_xform_result=${1%.*}.lo
32404}
32405
32406# func_arith arithmetic-term...
32407func_arith ()
32408{
32409  func_arith_result=$(( $* ))
32410}
32411
32412# func_len string
32413# STRING may not start with a hyphen.
32414func_len ()
32415{
32416  func_len_result=${#1}
32417}
32418
32419_LT_EOF
32420    ;;
32421  *) # Bourne compatible functions.
32422    cat << \_LT_EOF >> "$cfgfile"
32423
32424# func_dirname file append nondir_replacement
32425# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32426# otherwise set result to NONDIR_REPLACEMENT.
32427func_dirname ()
32428{
32429  # Extract subdirectory from the argument.
32430  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32431  if test "X$func_dirname_result" = "X${1}"; then
32432    func_dirname_result="${3}"
32433  else
32434    func_dirname_result="$func_dirname_result${2}"
32435  fi
32436}
32437
32438# func_basename file
32439func_basename ()
32440{
32441  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32442}
32443
32444
32445# func_stripname prefix suffix name
32446# strip PREFIX and SUFFIX off of NAME.
32447# PREFIX and SUFFIX must not contain globbing or regex special
32448# characters, hashes, percent signs, but SUFFIX may contain a leading
32449# dot (in which case that matches only a dot).
32450# func_strip_suffix prefix name
32451func_stripname ()
32452{
32453  case ${2} in
32454    .*) func_stripname_result=`$ECHO "X${3}" \
32455           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32456    *)  func_stripname_result=`$ECHO "X${3}" \
32457           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32458  esac
32459}
32460
32461# sed scripts:
32462my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32463my_sed_long_arg='1s/^-[^=]*=//'
32464
32465# func_opt_split
32466func_opt_split ()
32467{
32468  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32469  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32470}
32471
32472# func_lo2o object
32473func_lo2o ()
32474{
32475  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32476}
32477
32478# func_xform libobj-or-source
32479func_xform ()
32480{
32481  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32482}
32483
32484# func_arith arithmetic-term...
32485func_arith ()
32486{
32487  func_arith_result=`expr "$@"`
32488}
32489
32490# func_len string
32491# STRING may not start with a hyphen.
32492func_len ()
32493{
32494  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32495}
32496
32497_LT_EOF
32498esac
32499
32500case $lt_shell_append in
32501  yes)
32502    cat << \_LT_EOF >> "$cfgfile"
32503
32504# func_append var value
32505# Append VALUE to the end of shell variable VAR.
32506func_append ()
32507{
32508  eval "$1+=\$2"
32509}
32510_LT_EOF
32511    ;;
32512  *)
32513    cat << \_LT_EOF >> "$cfgfile"
32514
32515# func_append var value
32516# Append VALUE to the end of shell variable VAR.
32517func_append ()
32518{
32519  eval "$1=\$$1\$2"
32520}
32521
32522_LT_EOF
32523    ;;
32524  esac
32525
32526
32527  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32528    || (rm -f "$cfgfile"; exit 1)
32529
32530  mv -f "$cfgfile" "$ofile" ||
32531    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32532  chmod +x "$ofile"
32533
32534
32535    cat <<_LT_EOF >> "$ofile"
32536
32537# ### BEGIN LIBTOOL TAG CONFIG: CXX
32538
32539# The linker used to build libraries.
32540LD=$lt_LD_CXX
32541
32542# Commands used to build an old-style archive.
32543old_archive_cmds=$lt_old_archive_cmds_CXX
32544
32545# A language specific compiler.
32546CC=$lt_compiler_CXX
32547
32548# Is the compiler the GNU compiler?
32549with_gcc=$GCC_CXX
32550
32551# Compiler flag to turn off builtin functions.
32552no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32553
32554# How to pass a linker flag through the compiler.
32555wl=$lt_lt_prog_compiler_wl_CXX
32556
32557# Additional compiler flags for building library objects.
32558pic_flag=$lt_lt_prog_compiler_pic_CXX
32559
32560# Compiler flag to prevent dynamic linking.
32561link_static_flag=$lt_lt_prog_compiler_static_CXX
32562
32563# Does compiler simultaneously support -c and -o options?
32564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32565
32566# Whether or not to add -lc for building shared libraries.
32567build_libtool_need_lc=$archive_cmds_need_lc_CXX
32568
32569# Whether or not to disallow shared libs when runtime libs are static.
32570allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32571
32572# Compiler flag to allow reflexive dlopens.
32573export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32574
32575# Compiler flag to generate shared objects directly from archives.
32576whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32577
32578# Whether the compiler copes with passing no objects directly.
32579compiler_needs_object=$lt_compiler_needs_object_CXX
32580
32581# Create an old-style archive from a shared archive.
32582old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32583
32584# Create a temporary old-style archive to link instead of a shared archive.
32585old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32586
32587# Commands used to build a shared archive.
32588archive_cmds=$lt_archive_cmds_CXX
32589archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32590
32591# Commands used to build a loadable module if different from building
32592# a shared archive.
32593module_cmds=$lt_module_cmds_CXX
32594module_expsym_cmds=$lt_module_expsym_cmds_CXX
32595
32596# Whether we are building with GNU ld or not.
32597with_gnu_ld=$lt_with_gnu_ld_CXX
32598
32599# Flag that allows shared libraries with undefined symbols to be built.
32600allow_undefined_flag=$lt_allow_undefined_flag_CXX
32601
32602# Flag that enforces no undefined symbols.
32603no_undefined_flag=$lt_no_undefined_flag_CXX
32604
32605# Flag to hardcode \$libdir into a binary during linking.
32606# This must work even if \$libdir does not exist
32607hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32608
32609# If ld is used when linking, flag to hardcode \$libdir into a binary
32610# during linking.  This must work even if \$libdir does not exist.
32611hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32612
32613# Whether we need a single "-rpath" flag with a separated argument.
32614hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32615
32616# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32617# DIR into the resulting binary.
32618hardcode_direct=$hardcode_direct_CXX
32619
32620# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32621# DIR into the resulting binary and the resulting library dependency is
32622# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32623# library is relocated.
32624hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32625
32626# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32627# into the resulting binary.
32628hardcode_minus_L=$hardcode_minus_L_CXX
32629
32630# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32631# into the resulting binary.
32632hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32633
32634# Set to "yes" if building a shared library automatically hardcodes DIR
32635# into the library and all subsequent libraries and executables linked
32636# against it.
32637hardcode_automatic=$hardcode_automatic_CXX
32638
32639# Set to yes if linker adds runtime paths of dependent libraries
32640# to runtime path list.
32641inherit_rpath=$inherit_rpath_CXX
32642
32643# Whether libtool must link a program against all its dependency libraries.
32644link_all_deplibs=$link_all_deplibs_CXX
32645
32646# Fix the shell variable \$srcfile for the compiler.
32647fix_srcfile_path=$lt_fix_srcfile_path_CXX
32648
32649# Set to "yes" if exported symbols are required.
32650always_export_symbols=$always_export_symbols_CXX
32651
32652# The commands to list exported symbols.
32653export_symbols_cmds=$lt_export_symbols_cmds_CXX
32654
32655# Symbols that should not be listed in the preloaded symbols.
32656exclude_expsyms=$lt_exclude_expsyms_CXX
32657
32658# Symbols that must always be exported.
32659include_expsyms=$lt_include_expsyms_CXX
32660
32661# Commands necessary for linking programs (against libraries) with templates.
32662prelink_cmds=$lt_prelink_cmds_CXX
32663
32664# Specify filename containing input files.
32665file_list_spec=$lt_file_list_spec_CXX
32666
32667# How to hardcode a shared library path into an executable.
32668hardcode_action=$hardcode_action_CXX
32669
32670# The directories searched by this compiler when creating a shared library.
32671compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32672
32673# Dependencies to place before and after the objects being linked to
32674# create a shared library.
32675predep_objects=$lt_predep_objects_CXX
32676postdep_objects=$lt_postdep_objects_CXX
32677predeps=$lt_predeps_CXX
32678postdeps=$lt_postdeps_CXX
32679
32680# The library search path used internally by the compiler when linking
32681# a shared library.
32682compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32683
32684# ### END LIBTOOL TAG CONFIG: CXX
32685_LT_EOF
32686
32687 ;;
32688    "default":C)
32689    : >build-deps
32690    if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
32691 ;;
32692
32693  esac
32694done # for ac_tag
32695
32696
32697{ (exit 0); exit 0; }
32698_ACEOF
32699chmod +x $CONFIG_STATUS
32700ac_clean_files=$ac_clean_files_save
32701
32702
32703# configure is writing to config.log, and then calls config.status.
32704# config.status does its own redirection, appending to config.log.
32705# Unfortunately, on DOS this fails, as config.log is still kept open
32706# by configure, so config.status won't be able to write to it; its
32707# output is simply discarded.  So we exec the FD to /dev/null,
32708# effectively closing config.log, so it can be properly (re)opened and
32709# appended to by config.status.  When coming back to configure, we
32710# need to make the FD available again.
32711if test "$no_create" != yes; then
32712  ac_cs_success=:
32713  ac_config_status_args=
32714  test "$silent" = yes &&
32715    ac_config_status_args="$ac_config_status_args --quiet"
32716  exec 5>/dev/null
32717  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32718  exec 5>>config.log
32719  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32720  # would make configure fail if this is the last instruction.
32721  $ac_cs_success || { (exit 1); exit 1; }
32722fi
32723
32724