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
802MAJOR_VERSION
803MINOR_VERSION
804MICRO_VERSION
805INTERFACE_AGE
806BINARY_AGE
807VERSION
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
850INSTALL_PROGRAM
851INSTALL_SCRIPT
852INSTALL_DATA
853SET_MAKE
854WINDRES
855PKG_CONFIG
856SDL_CFLAGS
857SDL_LIBS
858SDL_CONFIG
859LIBMIKMOD_CONFIG
860MODPLUG_CFLAGS
861MODPLUG_LIBS
862SMPEG_CONFIG
863SMPEG_CFLAGS
864SMPEG_LIBS
865ac_aux_dir
866OBJECTS
867VERSION_OBJECTS
868PLAYWAVE_OBJECTS
869PLAYMUS_OBJECTS
870BUILD_CFLAGS
871EXTRA_CFLAGS
872BUILD_LDFLAGS
873EXTRA_LDFLAGS
874EXE
875SDL_VERSION
876LIBOBJS
877LTLIBOBJS'
878ac_subst_files=''
879      ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888PKG_CONFIG
889SDL_CFLAGS
890SDL_LIBS
891MODPLUG_CFLAGS
892MODPLUG_LIBS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452System types:
1453  --build=BUILD     configure for building on BUILD [guessed]
1454  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1455_ACEOF
1456fi
1457
1458if test -n "$ac_init_help"; then
1459
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1464  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1465  --enable-shared[=PKGS]  build shared libraries [default=yes]
1466  --enable-static[=PKGS]  build static libraries [default=yes]
1467  --enable-fast-install[=PKGS]
1468                          optimize for fast installation [default=yes]
1469  --disable-libtool-lock  avoid locking (might break parallel builds)
1470  --enable-dependency-tracking
1471                          Use gcc -MMD -MT dependency tracking [default=yes]
1472  --disable-sdltest       Do not try to compile and run a test SDL program
1473  --enable-music-cmd      support an external music player [default=yes]
1474  --enable-music-wave     enable streaming WAVE music [default=yes]
1475  --enable-music-mod      enable MOD music via mikmod [default=yes]
1476  --enable-music-mod-shared
1477                          dynamically load MOD support [default=yes]
1478  --enable-music-mod-modplug
1479                          enable MOD music via modplug [default=no]
1480  --enable-music-midi     enable MIDI music via timidity [default=yes]
1481  --enable-music-timidity-midi
1482                          enable timidity MIDI output [default=yes]
1483  --enable-music-native-midi
1484                          enable native MIDI music output [default=yes]
1485  --enable-music-fluidsynth-midi
1486                          enable FluidSynth MIDI output [default=yes]
1487  --enable-music-fluidsynth-shared
1488                          dynamically load FluidSynth support [default=yes]
1489  --enable-music-ogg      enable Ogg Vorbis music [default=yes]
1490  --enable-music-ogg-tremor
1491                          enable OGG Vorbis music via libtremor [default=no]
1492  --enable-music-ogg-shared
1493                          dynamically load Ogg Vorbis support [default=yes]
1494  --enable-music-flac     enable FLAC music [default=yes]
1495  --enable-music-flac-shared
1496                          dynamically load FLAC support [default=yes]
1497  --enable-music-mp3      enable MP3 music via smpeg [default=yes]
1498  --enable-music-mp3-shared
1499                          dynamically load MP3 support [default=yes]
1500  --disable-smpegtest       Do not try to compile and run a test SMPEG program
1501  --enable-music-mp3-mad-gpl
1502                          enable MP3 music via libmad GPL code [default=no]
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic              try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1511  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1512  --with-smpeg-prefix=PFX   Prefix where SMPEG is installed (optional)
1513  --with-smpeg-exec-prefix=PFX Exec prefix where SMPEG is installed (optional)
1514
1515Some influential environment variables:
1516  CC          C compiler command
1517  CFLAGS      C compiler flags
1518  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1519              nonstandard directory <lib dir>
1520  LIBS        libraries to pass to the linker, e.g. -l<library>
1521  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522              you have headers in a nonstandard directory <include dir>
1523  CPP         C preprocessor
1524  PKG_CONFIG  path to pkg-config utility
1525  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1526  SDL_LIBS    linker flags for SDL, overriding pkg-config
1527  MODPLUG_CFLAGS
1528              C compiler flags for MODPLUG, overriding pkg-config
1529  MODPLUG_LIBS
1530              linker flags for MODPLUG, overriding pkg-config
1531
1532Use these variables to override the choices made by `configure' or to help
1533it to find libraries and programs with nonstandard names/locations.
1534
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540  # If there are subdirs, report their specific --help.
1541  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542    test -d "$ac_dir" || continue
1543    ac_builddir=.
1544
1545case "$ac_dir" in
1546.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547*)
1548  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549  # A ".." for each directory in $ac_dir_suffix.
1550  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551  case $ac_top_builddir_sub in
1552  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554  esac ;;
1555esac
1556ac_abs_top_builddir=$ac_pwd
1557ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558# for backward compatibility:
1559ac_top_builddir=$ac_top_build_prefix
1560
1561case $srcdir in
1562  .)  # We are building in place.
1563    ac_srcdir=.
1564    ac_top_srcdir=$ac_top_builddir_sub
1565    ac_abs_top_srcdir=$ac_pwd ;;
1566  [\\/]* | ?:[\\/]* )  # Absolute name.
1567    ac_srcdir=$srcdir$ac_dir_suffix;
1568    ac_top_srcdir=$srcdir
1569    ac_abs_top_srcdir=$srcdir ;;
1570  *) # Relative name.
1571    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572    ac_top_srcdir=$ac_top_build_prefix$srcdir
1573    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574esac
1575ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577    cd "$ac_dir" || { ac_status=$?; continue; }
1578    # Check for guested configure.
1579    if test -f "$ac_srcdir/configure.gnu"; then
1580      echo &&
1581      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582    elif test -f "$ac_srcdir/configure"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure" --help=recursive
1585    else
1586      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587    fi || ac_status=$?
1588    cd "$ac_pwd" || { ac_status=$?; break; }
1589  done
1590fi
1591
1592test -n "$ac_init_help" && exit $ac_status
1593if $ac_init_version; then
1594  cat <<\_ACEOF
1595configure
1596generated by GNU Autoconf 2.61
1597
1598Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15992002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
1603  exit
1604fi
1605cat >config.log <<_ACEOF
1606This file contains any messages produced by compilers while
1607running configure, to aid debugging if configure makes a mistake.
1608
1609It was created by $as_me, which was
1610generated by GNU Autoconf 2.61.  Invocation command line was
1611
1612  $ $0 $@
1613
1614_ACEOF
1615exec 5>>config.log
1616{
1617cat <<_ASUNAME
1618## --------- ##
1619## Platform. ##
1620## --------- ##
1621
1622hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1630
1631/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1632/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1633/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1635/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1636/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1637/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1638
1639_ASUNAME
1640
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644  IFS=$as_save_IFS
1645  test -z "$as_dir" && as_dir=.
1646  echo "PATH: $as_dir"
1647done
1648IFS=$as_save_IFS
1649
1650} >&5
1651
1652cat >&5 <<_ACEOF
1653
1654
1655## ----------- ##
1656## Core tests. ##
1657## ----------- ##
1658
1659_ACEOF
1660
1661
1662# Keep a trace of the command line.
1663# Strip out --no-create and --no-recursion so they do not pile up.
1664# Strip out --silent because we don't want to record it for future runs.
1665# Also quote any args containing shell meta-characters.
1666# Make two passes to allow for proper duplicate-argument suppression.
1667ac_configure_args=
1668ac_configure_args0=
1669ac_configure_args1=
1670ac_must_keep_next=false
1671for ac_pass in 1 2
1672do
1673  for ac_arg
1674  do
1675    case $ac_arg in
1676    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678    | -silent | --silent | --silen | --sile | --sil)
1679      continue ;;
1680    *\'*)
1681      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682    esac
1683    case $ac_pass in
1684    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685    2)
1686      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687      if test $ac_must_keep_next = true; then
1688	ac_must_keep_next=false # Got value, back to normal.
1689      else
1690	case $ac_arg in
1691	  *=* | --config-cache | -C | -disable-* | --disable-* \
1692	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694	  | -with-* | --with-* | -without-* | --without-* | --x)
1695	    case "$ac_configure_args0 " in
1696	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697	    esac
1698	    ;;
1699	  -* ) ac_must_keep_next=true ;;
1700	esac
1701      fi
1702      ac_configure_args="$ac_configure_args '$ac_arg'"
1703      ;;
1704    esac
1705  done
1706done
1707$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710# When interrupted or exit'd, cleanup temporary files, and complete
1711# config.log.  We remove comments because anyway the quotes in there
1712# would cause problems or look ugly.
1713# WARNING: Use '\'' to represent an apostrophe within the trap.
1714# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715trap 'exit_status=$?
1716  # Save into config.log some information that might help in debugging.
1717  {
1718    echo
1719
1720    cat <<\_ASBOX
1721## ---------------- ##
1722## Cache variables. ##
1723## ---------------- ##
1724_ASBOX
1725    echo
1726    # The following way of writing the cache mishandles newlines in values,
1727(
1728  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729    eval ac_val=\$$ac_var
1730    case $ac_val in #(
1731    *${as_nl}*)
1732      case $ac_var in #(
1733      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735      esac
1736      case $ac_var in #(
1737      _ | IFS | as_nl) ;; #(
1738      *) $as_unset $ac_var ;;
1739      esac ;;
1740    esac
1741  done
1742  (set) 2>&1 |
1743    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744    *${as_nl}ac_space=\ *)
1745      sed -n \
1746	"s/'\''/'\''\\\\'\'''\''/g;
1747	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748      ;; #(
1749    *)
1750      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751      ;;
1752    esac |
1753    sort
1754)
1755    echo
1756
1757    cat <<\_ASBOX
1758## ----------------- ##
1759## Output variables. ##
1760## ----------------- ##
1761_ASBOX
1762    echo
1763    for ac_var in $ac_subst_vars
1764    do
1765      eval ac_val=\$$ac_var
1766      case $ac_val in
1767      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768      esac
1769      echo "$ac_var='\''$ac_val'\''"
1770    done | sort
1771    echo
1772
1773    if test -n "$ac_subst_files"; then
1774      cat <<\_ASBOX
1775## ------------------- ##
1776## File substitutions. ##
1777## ------------------- ##
1778_ASBOX
1779      echo
1780      for ac_var in $ac_subst_files
1781      do
1782	eval ac_val=\$$ac_var
1783	case $ac_val in
1784	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785	esac
1786	echo "$ac_var='\''$ac_val'\''"
1787      done | sort
1788      echo
1789    fi
1790
1791    if test -s confdefs.h; then
1792      cat <<\_ASBOX
1793## ----------- ##
1794## confdefs.h. ##
1795## ----------- ##
1796_ASBOX
1797      echo
1798      cat confdefs.h
1799      echo
1800    fi
1801    test "$ac_signal" != 0 &&
1802      echo "$as_me: caught signal $ac_signal"
1803    echo "$as_me: exit $exit_status"
1804  } >&5
1805  rm -f core *.core core.conftest.* &&
1806    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807    exit $exit_status
1808' 0
1809for ac_signal in 1 2 13 15; do
1810  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811done
1812ac_signal=0
1813
1814# confdefs.h avoids OS command line length limits that DEFS can exceed.
1815rm -f -r conftest* confdefs.h
1816
1817# Predefined preprocessor variables.
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_NAME "$PACKAGE_NAME"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE_VERSION "$PACKAGE_VERSION"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_STRING "$PACKAGE_STRING"
1836_ACEOF
1837
1838
1839cat >>confdefs.h <<_ACEOF
1840#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841_ACEOF
1842
1843
1844# Let the site file select an alternate cache file if it wants to.
1845# Prefer explicitly selected file to automatically selected ones.
1846if test -n "$CONFIG_SITE"; then
1847  set x "$CONFIG_SITE"
1848elif test "x$prefix" != xNONE; then
1849  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850else
1851  set x "$ac_default_prefix/share/config.site" \
1852	"$ac_default_prefix/etc/config.site"
1853fi
1854shift
1855for ac_site_file
1856do
1857  if test -r "$ac_site_file"; then
1858    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859echo "$as_me: loading site script $ac_site_file" >&6;}
1860    sed 's/^/| /' "$ac_site_file" >&5
1861    . "$ac_site_file"
1862  fi
1863done
1864
1865if test -r "$cache_file"; then
1866  # Some versions of bash will fail to source /dev/null (special
1867  # files actually), so we avoid doing that.
1868  if test -f "$cache_file"; then
1869    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870echo "$as_me: loading cache $cache_file" >&6;}
1871    case $cache_file in
1872      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873      *)                      . "./$cache_file";;
1874    esac
1875  fi
1876else
1877  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878echo "$as_me: creating cache $cache_file" >&6;}
1879  >$cache_file
1880fi
1881
1882# Check that the precious variables saved in the cache have kept the same
1883# value.
1884ac_cache_corrupted=false
1885for ac_var in $ac_precious_vars; do
1886  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887  eval ac_new_set=\$ac_env_${ac_var}_set
1888  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889  eval ac_new_val=\$ac_env_${ac_var}_value
1890  case $ac_old_set,$ac_new_set in
1891    set,)
1892      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894      ac_cache_corrupted=: ;;
1895    ,set)
1896      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898      ac_cache_corrupted=: ;;
1899    ,);;
1900    *)
1901      if test "x$ac_old_val" != "x$ac_new_val"; then
1902	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1905echo "$as_me:   former value:  $ac_old_val" >&2;}
1906	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1907echo "$as_me:   current value: $ac_new_val" >&2;}
1908	ac_cache_corrupted=:
1909      fi;;
1910  esac
1911  # Pass precious variables to config.status.
1912  if test "$ac_new_set" = set; then
1913    case $ac_new_val in
1914    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915    *) ac_arg=$ac_var=$ac_new_val ;;
1916    esac
1917    case " $ac_configure_args " in
1918      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1919      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920    esac
1921  fi
1922done
1923if $ac_cache_corrupted; then
1924  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928   { (exit 1); exit 1; }; }
1929fi
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953
1954ac_aux_dir=
1955for ac_dir in build-scripts "$srcdir"/build-scripts; do
1956  if test -f "$ac_dir/install-sh"; then
1957    ac_aux_dir=$ac_dir
1958    ac_install_sh="$ac_aux_dir/install-sh -c"
1959    break
1960  elif test -f "$ac_dir/install.sh"; then
1961    ac_aux_dir=$ac_dir
1962    ac_install_sh="$ac_aux_dir/install.sh -c"
1963    break
1964  elif test -f "$ac_dir/shtool"; then
1965    ac_aux_dir=$ac_dir
1966    ac_install_sh="$ac_aux_dir/shtool install -c"
1967    break
1968  fi
1969done
1970if test -z "$ac_aux_dir"; then
1971  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&5
1972echo "$as_me: error: cannot find install-sh or install.sh in build-scripts \"$srcdir\"/build-scripts" >&2;}
1973   { (exit 1); exit 1; }; }
1974fi
1975
1976# These three variables are undocumented and unsupported,
1977# and are intended to be withdrawn in a future Autoconf release.
1978# They can cause serious problems if a builder's source tree is in a directory
1979# whose full name contains unusual characters.
1980ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1981ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1982ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1983
1984
1985
1986
1987# Making releases:
1988#   MICRO_VERSION += 1;
1989#   INTERFACE_AGE += 1;
1990#   BINARY_AGE += 1;
1991# if any functions have been added, set INTERFACE_AGE to 0.
1992# if backwards compatibility has been broken,
1993# set BINARY_AGE and INTERFACE_AGE to 0.
1994#
1995MAJOR_VERSION=1
1996MINOR_VERSION=2
1997MICRO_VERSION=12
1998INTERFACE_AGE=0
1999BINARY_AGE=12
2000VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2001
2002
2003
2004
2005
2006
2007
2008
2009# libtool versioning
2010case `pwd` in
2011  *\ * | *\	*)
2012    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2013echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2014esac
2015
2016
2017
2018macro_version='2.2.6'
2019macro_revision='1.3012'
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033ltmain="$ac_aux_dir/ltmain.sh"
2034
2035# Make sure we can run config.sub.
2036$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039   { (exit 1); exit 1; }; }
2040
2041{ echo "$as_me:$LINENO: checking build system type" >&5
2042echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043if test "${ac_cv_build+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  ac_build_alias=$build_alias
2047test "x$ac_build_alias" = x &&
2048  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049test "x$ac_build_alias" = x &&
2050  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052   { (exit 1); exit 1; }; }
2053ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056   { (exit 1); exit 1; }; }
2057
2058fi
2059{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060echo "${ECHO_T}$ac_cv_build" >&6; }
2061case $ac_cv_build in
2062*-*-*) ;;
2063*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064echo "$as_me: error: invalid value of canonical build" >&2;}
2065   { (exit 1); exit 1; }; };;
2066esac
2067build=$ac_cv_build
2068ac_save_IFS=$IFS; IFS='-'
2069set x $ac_cv_build
2070shift
2071build_cpu=$1
2072build_vendor=$2
2073shift; shift
2074# Remember, the first character of IFS is used to create $*,
2075# except with old shells:
2076build_os=$*
2077IFS=$ac_save_IFS
2078case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2079
2080
2081{ echo "$as_me:$LINENO: checking host system type" >&5
2082echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083if test "${ac_cv_host+set}" = set; then
2084  echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
2086  if test "x$host_alias" = x; then
2087  ac_cv_host=$ac_cv_build
2088else
2089  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092   { (exit 1); exit 1; }; }
2093fi
2094
2095fi
2096{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097echo "${ECHO_T}$ac_cv_host" >&6; }
2098case $ac_cv_host in
2099*-*-*) ;;
2100*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101echo "$as_me: error: invalid value of canonical host" >&2;}
2102   { (exit 1); exit 1; }; };;
2103esac
2104host=$ac_cv_host
2105ac_save_IFS=$IFS; IFS='-'
2106set x $ac_cv_host
2107shift
2108host_cpu=$1
2109host_vendor=$2
2110shift; shift
2111# Remember, the first character of IFS is used to create $*,
2112# except with old shells:
2113host_os=$*
2114IFS=$ac_save_IFS
2115case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2116
2117
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123if test -n "$ac_tool_prefix"; then
2124  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2125set dummy ${ac_tool_prefix}gcc; ac_word=$2
2126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128if test "${ac_cv_prog_CC+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  if test -n "$CC"; then
2132  ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139  for ac_exec_ext in '' $ac_executable_extensions; do
2140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143    break 2
2144  fi
2145done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150fi
2151CC=$ac_cv_prog_CC
2152if test -n "$CC"; then
2153  { echo "$as_me:$LINENO: result: $CC" >&5
2154echo "${ECHO_T}$CC" >&6; }
2155else
2156  { echo "$as_me:$LINENO: result: no" >&5
2157echo "${ECHO_T}no" >&6; }
2158fi
2159
2160
2161fi
2162if test -z "$ac_cv_prog_CC"; then
2163  ac_ct_CC=$CC
2164  # Extract the first word of "gcc", so it can be a program name with args.
2165set dummy gcc; ac_word=$2
2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  if test -n "$ac_ct_CC"; then
2172  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2173else
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177  IFS=$as_save_IFS
2178  test -z "$as_dir" && as_dir=.
2179  for ac_exec_ext in '' $ac_executable_extensions; do
2180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181    ac_cv_prog_ac_ct_CC="gcc"
2182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183    break 2
2184  fi
2185done
2186done
2187IFS=$as_save_IFS
2188
2189fi
2190fi
2191ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192if test -n "$ac_ct_CC"; then
2193  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194echo "${ECHO_T}$ac_ct_CC" >&6; }
2195else
2196  { echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6; }
2198fi
2199
2200  if test "x$ac_ct_CC" = x; then
2201    CC=""
2202  else
2203    case $cross_compiling:$ac_tool_warned in
2204yes:)
2205{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2206whose name does not start with the host triplet.  If you think this
2207configuration is useful to you, please write to autoconf@gnu.org." >&5
2208echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2209whose name does not start with the host triplet.  If you think this
2210configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2211ac_tool_warned=yes ;;
2212esac
2213    CC=$ac_ct_CC
2214  fi
2215else
2216  CC="$ac_cv_prog_CC"
2217fi
2218
2219if test -z "$CC"; then
2220          if test -n "$ac_tool_prefix"; then
2221    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2222set dummy ${ac_tool_prefix}cc; ac_word=$2
2223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2225if test "${ac_cv_prog_CC+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test -n "$CC"; then
2229  ac_cv_prog_CC="$CC" # Let the user override the test.
2230else
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236  for ac_exec_ext in '' $ac_executable_extensions; do
2237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2238    ac_cv_prog_CC="${ac_tool_prefix}cc"
2239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240    break 2
2241  fi
2242done
2243done
2244IFS=$as_save_IFS
2245
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
2250  { echo "$as_me:$LINENO: result: $CC" >&5
2251echo "${ECHO_T}$CC" >&6; }
2252else
2253  { echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6; }
2255fi
2256
2257
2258  fi
2259fi
2260if test -z "$CC"; then
2261  # Extract the first word of "cc", so it can be a program name with args.
2262set dummy cc; ac_word=$2
2263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265if test "${ac_cv_prog_CC+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  if test -n "$CC"; then
2269  ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271  ac_prog_rejected=no
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277  for ac_exec_ext in '' $ac_executable_extensions; do
2278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2280       ac_prog_rejected=yes
2281       continue
2282     fi
2283    ac_cv_prog_CC="cc"
2284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285    break 2
2286  fi
2287done
2288done
2289IFS=$as_save_IFS
2290
2291if test $ac_prog_rejected = yes; then
2292  # We found a bogon in the path, so make sure we never use it.
2293  set dummy $ac_cv_prog_CC
2294  shift
2295  if test $# != 0; then
2296    # We chose a different compiler from the bogus one.
2297    # However, it has the same basename, so the bogon will be chosen
2298    # first if we set CC to just the basename; use the full file name.
2299    shift
2300    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301  fi
2302fi
2303fi
2304fi
2305CC=$ac_cv_prog_CC
2306if test -n "$CC"; then
2307  { echo "$as_me:$LINENO: result: $CC" >&5
2308echo "${ECHO_T}$CC" >&6; }
2309else
2310  { echo "$as_me:$LINENO: result: no" >&5
2311echo "${ECHO_T}no" >&6; }
2312fi
2313
2314
2315fi
2316if test -z "$CC"; then
2317  if test -n "$ac_tool_prefix"; then
2318  for ac_prog in cl.exe
2319  do
2320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324if test "${ac_cv_prog_CC+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  if test -n "$CC"; then
2328  ac_cv_prog_CC="$CC" # Let the user override the test.
2329else
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339    break 2
2340  fi
2341done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346fi
2347CC=$ac_cv_prog_CC
2348if test -n "$CC"; then
2349  { echo "$as_me:$LINENO: result: $CC" >&5
2350echo "${ECHO_T}$CC" >&6; }
2351else
2352  { echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6; }
2354fi
2355
2356
2357    test -n "$CC" && break
2358  done
2359fi
2360if test -z "$CC"; then
2361  ac_ct_CC=$CC
2362  for ac_prog in cl.exe
2363do
2364  # Extract the first word of "$ac_prog", so it can be a program name with args.
2365set dummy $ac_prog; ac_word=$2
2366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  if test -n "$ac_ct_CC"; then
2372  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373else
2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375for as_dir in $PATH
2376do
2377  IFS=$as_save_IFS
2378  test -z "$as_dir" && as_dir=.
2379  for ac_exec_ext in '' $ac_executable_extensions; do
2380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381    ac_cv_prog_ac_ct_CC="$ac_prog"
2382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386done
2387IFS=$as_save_IFS
2388
2389fi
2390fi
2391ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392if test -n "$ac_ct_CC"; then
2393  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394echo "${ECHO_T}$ac_ct_CC" >&6; }
2395else
2396  { echo "$as_me:$LINENO: result: no" >&5
2397echo "${ECHO_T}no" >&6; }
2398fi
2399
2400
2401  test -n "$ac_ct_CC" && break
2402done
2403
2404  if test "x$ac_ct_CC" = x; then
2405    CC=""
2406  else
2407    case $cross_compiling:$ac_tool_warned in
2408yes:)
2409{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410whose name does not start with the host triplet.  If you think this
2411configuration is useful to you, please write to autoconf@gnu.org." >&5
2412echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413whose name does not start with the host triplet.  If you think this
2414configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2415ac_tool_warned=yes ;;
2416esac
2417    CC=$ac_ct_CC
2418  fi
2419fi
2420
2421fi
2422
2423
2424test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: no acceptable C compiler found in \$PATH
2427See \`config.log' for more details." >&2;}
2428   { (exit 1); exit 1; }; }
2429
2430# Provide some information about the compiler.
2431echo "$as_me:$LINENO: checking for C compiler version" >&5
2432ac_compiler=`set X $ac_compile; echo $2`
2433{ (ac_try="$ac_compiler --version >&5"
2434case "(($ac_try" in
2435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436  *) ac_try_echo=$ac_try;;
2437esac
2438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439  (eval "$ac_compiler --version >&5") 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); }
2443{ (ac_try="$ac_compiler -v >&5"
2444case "(($ac_try" in
2445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446  *) ac_try_echo=$ac_try;;
2447esac
2448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449  (eval "$ac_compiler -v >&5") 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }
2453{ (ac_try="$ac_compiler -V >&5"
2454case "(($ac_try" in
2455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456  *) ac_try_echo=$ac_try;;
2457esac
2458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459  (eval "$ac_compiler -V >&5") 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }
2463
2464cat >conftest.$ac_ext <<_ACEOF
2465/* confdefs.h.  */
2466_ACEOF
2467cat confdefs.h >>conftest.$ac_ext
2468cat >>conftest.$ac_ext <<_ACEOF
2469/* end confdefs.h.  */
2470
2471int
2472main ()
2473{
2474
2475  ;
2476  return 0;
2477}
2478_ACEOF
2479ac_clean_files_save=$ac_clean_files
2480ac_clean_files="$ac_clean_files a.out a.exe b.out"
2481# Try to create an executable without -o first, disregard a.out.
2482# It will help us diagnose broken compilers, and finding out an intuition
2483# of exeext.
2484{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2485echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2486ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2487#
2488# List of possible output files, starting from the most likely.
2489# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2490# only as a last resort.  b.out is created by i960 compilers.
2491ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2492#
2493# The IRIX 6 linker writes into existing files which may not be
2494# executable, retaining their permissions.  Remove them first so a
2495# subsequent execution test works.
2496ac_rmfiles=
2497for ac_file in $ac_files
2498do
2499  case $ac_file in
2500    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2501    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2502  esac
2503done
2504rm -f $ac_rmfiles
2505
2506if { (ac_try="$ac_link_default"
2507case "(($ac_try" in
2508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509  *) ac_try_echo=$ac_try;;
2510esac
2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512  (eval "$ac_link_default") 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; then
2516  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2517# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2518# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2519# so that the user can short-circuit this test for compilers unknown to
2520# Autoconf.
2521for ac_file in $ac_files ''
2522do
2523  test -f "$ac_file" || continue
2524  case $ac_file in
2525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2526	;;
2527    [ab].out )
2528	# We found the default executable, but exeext='' is most
2529	# certainly right.
2530	break;;
2531    *.* )
2532        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2533	then :; else
2534	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2535	fi
2536	# We set ac_cv_exeext here because the later test for it is not
2537	# safe: cross compilers may not add the suffix if given an `-o'
2538	# argument, so we may need to know it at that point already.
2539	# Even if this section looks crufty: it has the advantage of
2540	# actually working.
2541	break;;
2542    * )
2543	break;;
2544  esac
2545done
2546test "$ac_cv_exeext" = no && ac_cv_exeext=
2547
2548else
2549  ac_file=''
2550fi
2551
2552{ echo "$as_me:$LINENO: result: $ac_file" >&5
2553echo "${ECHO_T}$ac_file" >&6; }
2554if test -z "$ac_file"; then
2555  echo "$as_me: failed program was:" >&5
2556sed 's/^/| /' conftest.$ac_ext >&5
2557
2558{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2559See \`config.log' for more details." >&5
2560echo "$as_me: error: C compiler cannot create executables
2561See \`config.log' for more details." >&2;}
2562   { (exit 77); exit 77; }; }
2563fi
2564
2565ac_exeext=$ac_cv_exeext
2566
2567# Check that the compiler produces executables we can run.  If not, either
2568# the compiler is broken, or we cross compile.
2569{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2570echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2571# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2572# If not cross compiling, check that we can run a simple program.
2573if test "$cross_compiling" != yes; then
2574  if { ac_try='./$ac_file'
2575  { (case "(($ac_try" in
2576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577  *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580  (eval "$ac_try") 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }; }; then
2584    cross_compiling=no
2585  else
2586    if test "$cross_compiling" = maybe; then
2587	cross_compiling=yes
2588    else
2589	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2590If you meant to cross compile, use \`--host'.
2591See \`config.log' for more details." >&5
2592echo "$as_me: error: cannot run C compiled programs.
2593If you meant to cross compile, use \`--host'.
2594See \`config.log' for more details." >&2;}
2595   { (exit 1); exit 1; }; }
2596    fi
2597  fi
2598fi
2599{ echo "$as_me:$LINENO: result: yes" >&5
2600echo "${ECHO_T}yes" >&6; }
2601
2602rm -f a.out a.exe conftest$ac_cv_exeext b.out
2603ac_clean_files=$ac_clean_files_save
2604# Check that the compiler produces executables we can run.  If not, either
2605# the compiler is broken, or we cross compile.
2606{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2607echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2608{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2609echo "${ECHO_T}$cross_compiling" >&6; }
2610
2611{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2612echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2613if { (ac_try="$ac_link"
2614case "(($ac_try" in
2615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616  *) ac_try_echo=$ac_try;;
2617esac
2618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619  (eval "$ac_link") 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; then
2623  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2624# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2625# work properly (i.e., refer to `conftest.exe'), while it won't with
2626# `rm'.
2627for ac_file in conftest.exe conftest conftest.*; do
2628  test -f "$ac_file" || continue
2629  case $ac_file in
2630    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2631    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632	  break;;
2633    * ) break;;
2634  esac
2635done
2636else
2637  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2638See \`config.log' for more details." >&5
2639echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2640See \`config.log' for more details." >&2;}
2641   { (exit 1); exit 1; }; }
2642fi
2643
2644rm -f conftest$ac_cv_exeext
2645{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2646echo "${ECHO_T}$ac_cv_exeext" >&6; }
2647
2648rm -f conftest.$ac_ext
2649EXEEXT=$ac_cv_exeext
2650ac_exeext=$EXEEXT
2651{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2652echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2653if test "${ac_cv_objext+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656  cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h.  */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h.  */
2662
2663int
2664main ()
2665{
2666
2667  ;
2668  return 0;
2669}
2670_ACEOF
2671rm -f conftest.o conftest.obj
2672if { (ac_try="$ac_compile"
2673case "(($ac_try" in
2674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675  *) ac_try_echo=$ac_try;;
2676esac
2677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678  (eval "$ac_compile") 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; then
2682  for ac_file in conftest.o conftest.obj conftest.*; do
2683  test -f "$ac_file" || continue;
2684  case $ac_file in
2685    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2686    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2687       break;;
2688  esac
2689done
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2695See \`config.log' for more details." >&5
2696echo "$as_me: error: cannot compute suffix of object files: cannot compile
2697See \`config.log' for more details." >&2;}
2698   { (exit 1); exit 1; }; }
2699fi
2700
2701rm -f conftest.$ac_cv_objext conftest.$ac_ext
2702fi
2703{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2704echo "${ECHO_T}$ac_cv_objext" >&6; }
2705OBJEXT=$ac_cv_objext
2706ac_objext=$OBJEXT
2707{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2708echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2709if test "${ac_cv_c_compiler_gnu+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712  cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h.  */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h.  */
2718
2719int
2720main ()
2721{
2722#ifndef __GNUC__
2723       choke me
2724#endif
2725
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (ac_try="$ac_compile"
2732case "(($ac_try" in
2733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734  *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737  (eval "$ac_compile") 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } && {
2744	 test -z "$ac_c_werror_flag" ||
2745	 test ! -s conftest.err
2746       } && test -s conftest.$ac_objext; then
2747  ac_compiler_gnu=yes
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752	ac_compiler_gnu=no
2753fi
2754
2755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756ac_cv_c_compiler_gnu=$ac_compiler_gnu
2757
2758fi
2759{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2760echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2761GCC=`test $ac_compiler_gnu = yes && echo yes`
2762ac_test_CFLAGS=${CFLAGS+set}
2763ac_save_CFLAGS=$CFLAGS
2764{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2765echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2766if test "${ac_cv_prog_cc_g+set}" = set; then
2767  echo $ECHO_N "(cached) $ECHO_C" >&6
2768else
2769  ac_save_c_werror_flag=$ac_c_werror_flag
2770   ac_c_werror_flag=yes
2771   ac_cv_prog_cc_g=no
2772   CFLAGS="-g"
2773   cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h.  */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h.  */
2779
2780int
2781main ()
2782{
2783
2784  ;
2785  return 0;
2786}
2787_ACEOF
2788rm -f conftest.$ac_objext
2789if { (ac_try="$ac_compile"
2790case "(($ac_try" in
2791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792  *) ac_try_echo=$ac_try;;
2793esac
2794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795  (eval "$ac_compile") 2>conftest.er1
2796  ac_status=$?
2797  grep -v '^ *+' conftest.er1 >conftest.err
2798  rm -f conftest.er1
2799  cat conftest.err >&5
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); } && {
2802	 test -z "$ac_c_werror_flag" ||
2803	 test ! -s conftest.err
2804       } && test -s conftest.$ac_objext; then
2805  ac_cv_prog_cc_g=yes
2806else
2807  echo "$as_me: failed program was:" >&5
2808sed 's/^/| /' conftest.$ac_ext >&5
2809
2810	CFLAGS=""
2811      cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826rm -f conftest.$ac_objext
2827if { (ac_try="$ac_compile"
2828case "(($ac_try" in
2829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830  *) ac_try_echo=$ac_try;;
2831esac
2832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833  (eval "$ac_compile") 2>conftest.er1
2834  ac_status=$?
2835  grep -v '^ *+' conftest.er1 >conftest.err
2836  rm -f conftest.er1
2837  cat conftest.err >&5
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); } && {
2840	 test -z "$ac_c_werror_flag" ||
2841	 test ! -s conftest.err
2842       } && test -s conftest.$ac_objext; then
2843  :
2844else
2845  echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848	ac_c_werror_flag=$ac_save_c_werror_flag
2849	 CFLAGS="-g"
2850	 cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h.  */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h.  */
2856
2857int
2858main ()
2859{
2860
2861  ;
2862  return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext
2866if { (ac_try="$ac_compile"
2867case "(($ac_try" in
2868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869  *) ac_try_echo=$ac_try;;
2870esac
2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872  (eval "$ac_compile") 2>conftest.er1
2873  ac_status=$?
2874  grep -v '^ *+' conftest.er1 >conftest.err
2875  rm -f conftest.er1
2876  cat conftest.err >&5
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); } && {
2879	 test -z "$ac_c_werror_flag" ||
2880	 test ! -s conftest.err
2881       } && test -s conftest.$ac_objext; then
2882  ac_cv_prog_cc_g=yes
2883else
2884  echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887
2888fi
2889
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891fi
2892
2893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2894fi
2895
2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897   ac_c_werror_flag=$ac_save_c_werror_flag
2898fi
2899{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2900echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2901if test "$ac_test_CFLAGS" = set; then
2902  CFLAGS=$ac_save_CFLAGS
2903elif test $ac_cv_prog_cc_g = yes; then
2904  if test "$GCC" = yes; then
2905    CFLAGS="-g -O2"
2906  else
2907    CFLAGS="-g"
2908  fi
2909else
2910  if test "$GCC" = yes; then
2911    CFLAGS="-O2"
2912  else
2913    CFLAGS=
2914  fi
2915fi
2916{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2917echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2918if test "${ac_cv_prog_cc_c89+set}" = set; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  ac_cv_prog_cc_c89=no
2922ac_save_CC=$CC
2923cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h.  */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h.  */
2929#include <stdarg.h>
2930#include <stdio.h>
2931#include <sys/types.h>
2932#include <sys/stat.h>
2933/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2934struct buf { int x; };
2935FILE * (*rcsopen) (struct buf *, struct stat *, int);
2936static char *e (p, i)
2937     char **p;
2938     int i;
2939{
2940  return p[i];
2941}
2942static char *f (char * (*g) (char **, int), char **p, ...)
2943{
2944  char *s;
2945  va_list v;
2946  va_start (v,p);
2947  s = g (p, va_arg (v,int));
2948  va_end (v);
2949  return s;
2950}
2951
2952/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2953   function prototypes and stuff, but not '\xHH' hex character constants.
2954   These don't provoke an error unfortunately, instead are silently treated
2955   as 'x'.  The following induces an error, until -std is added to get
2956   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2957   array size at least.  It's necessary to write '\x00'==0 to get something
2958   that's true only with -std.  */
2959int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2960
2961/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2962   inside strings and character constants.  */
2963#define FOO(x) 'x'
2964int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2965
2966int test (int i, double x);
2967struct s1 {int (*f) (int a);};
2968struct s2 {int (*f) (double a);};
2969int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2970int argc;
2971char **argv;
2972int
2973main ()
2974{
2975return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2981	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2982do
2983  CC="$ac_save_CC $ac_arg"
2984  rm -f conftest.$ac_objext
2985if { (ac_try="$ac_compile"
2986case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991  (eval "$ac_compile") 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } && {
2998	 test -z "$ac_c_werror_flag" ||
2999	 test ! -s conftest.err
3000       } && test -s conftest.$ac_objext; then
3001  ac_cv_prog_cc_c89=$ac_arg
3002else
3003  echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006
3007fi
3008
3009rm -f core conftest.err conftest.$ac_objext
3010  test "x$ac_cv_prog_cc_c89" != "xno" && break
3011done
3012rm -f conftest.$ac_ext
3013CC=$ac_save_CC
3014
3015fi
3016# AC_CACHE_VAL
3017case "x$ac_cv_prog_cc_c89" in
3018  x)
3019    { echo "$as_me:$LINENO: result: none needed" >&5
3020echo "${ECHO_T}none needed" >&6; } ;;
3021  xno)
3022    { echo "$as_me:$LINENO: result: unsupported" >&5
3023echo "${ECHO_T}unsupported" >&6; } ;;
3024  *)
3025    CC="$CC $ac_cv_prog_cc_c89"
3026    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3027echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3028esac
3029
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3038echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3039if test "${ac_cv_path_SED+set}" = set; then
3040  echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3043     for ac_i in 1 2 3 4 5 6 7; do
3044       ac_script="$ac_script$as_nl$ac_script"
3045     done
3046     echo "$ac_script" | sed 99q >conftest.sed
3047     $as_unset ac_script || ac_script=
3048     # Extract the first word of "sed gsed" to use in msg output
3049if test -z "$SED"; then
3050set dummy sed gsed; ac_prog_name=$2
3051if test "${ac_cv_path_SED+set}" = set; then
3052  echo $ECHO_N "(cached) $ECHO_C" >&6
3053else
3054  ac_path_SED_found=false
3055# Loop through the user's path and test for each of PROGNAME-LIST
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061  for ac_prog in sed gsed; do
3062  for ac_exec_ext in '' $ac_executable_extensions; do
3063    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3064    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3065    # Check for GNU ac_path_SED and select it if it is found.
3066  # Check for GNU $ac_path_SED
3067case `"$ac_path_SED" --version 2>&1` in
3068*GNU*)
3069  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3070*)
3071  ac_count=0
3072  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3073  while :
3074  do
3075    cat "conftest.in" "conftest.in" >"conftest.tmp"
3076    mv "conftest.tmp" "conftest.in"
3077    cp "conftest.in" "conftest.nl"
3078    echo '' >> "conftest.nl"
3079    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3080    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3081    ac_count=`expr $ac_count + 1`
3082    if test $ac_count -gt ${ac_path_SED_max-0}; then
3083      # Best one so far, save it but keep looking for a better one
3084      ac_cv_path_SED="$ac_path_SED"
3085      ac_path_SED_max=$ac_count
3086    fi
3087    # 10*(2^10) chars as input seems more than enough
3088    test $ac_count -gt 10 && break
3089  done
3090  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3091esac
3092
3093
3094    $ac_path_SED_found && break 3
3095  done
3096done
3097
3098done
3099IFS=$as_save_IFS
3100
3101
3102fi
3103
3104SED="$ac_cv_path_SED"
3105if test -z "$SED"; then
3106  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3107echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3108   { (exit 1); exit 1; }; }
3109fi
3110
3111else
3112  ac_cv_path_SED=$SED
3113fi
3114
3115fi
3116{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3117echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3118 SED="$ac_cv_path_SED"
3119  rm -f conftest.sed
3120
3121test -z "$SED" && SED=sed
3122Xsed="$SED -e 1s/^X//"
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3135echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3136if test "${ac_cv_path_GREP+set}" = set; then
3137  echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139  # Extract the first word of "grep ggrep" to use in msg output
3140if test -z "$GREP"; then
3141set dummy grep ggrep; ac_prog_name=$2
3142if test "${ac_cv_path_GREP+set}" = set; then
3143  echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145  ac_path_GREP_found=false
3146# Loop through the user's path and test for each of PROGNAME-LIST
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152  for ac_prog in grep ggrep; do
3153  for ac_exec_ext in '' $ac_executable_extensions; do
3154    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3155    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3156    # Check for GNU ac_path_GREP and select it if it is found.
3157  # Check for GNU $ac_path_GREP
3158case `"$ac_path_GREP" --version 2>&1` in
3159*GNU*)
3160  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3161*)
3162  ac_count=0
3163  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3164  while :
3165  do
3166    cat "conftest.in" "conftest.in" >"conftest.tmp"
3167    mv "conftest.tmp" "conftest.in"
3168    cp "conftest.in" "conftest.nl"
3169    echo 'GREP' >> "conftest.nl"
3170    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3171    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3172    ac_count=`expr $ac_count + 1`
3173    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3174      # Best one so far, save it but keep looking for a better one
3175      ac_cv_path_GREP="$ac_path_GREP"
3176      ac_path_GREP_max=$ac_count
3177    fi
3178    # 10*(2^10) chars as input seems more than enough
3179    test $ac_count -gt 10 && break
3180  done
3181  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3182esac
3183
3184
3185    $ac_path_GREP_found && break 3
3186  done
3187done
3188
3189done
3190IFS=$as_save_IFS
3191
3192
3193fi
3194
3195GREP="$ac_cv_path_GREP"
3196if test -z "$GREP"; then
3197  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3198echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3199   { (exit 1); exit 1; }; }
3200fi
3201
3202else
3203  ac_cv_path_GREP=$GREP
3204fi
3205
3206
3207fi
3208{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3209echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3210 GREP="$ac_cv_path_GREP"
3211
3212
3213{ echo "$as_me:$LINENO: checking for egrep" >&5
3214echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3215if test "${ac_cv_path_EGREP+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3219   then ac_cv_path_EGREP="$GREP -E"
3220   else
3221     # Extract the first word of "egrep" to use in msg output
3222if test -z "$EGREP"; then
3223set dummy egrep; ac_prog_name=$2
3224if test "${ac_cv_path_EGREP+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  ac_path_EGREP_found=false
3228# Loop through the user's path and test for each of PROGNAME-LIST
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234  for ac_prog in egrep; do
3235  for ac_exec_ext in '' $ac_executable_extensions; do
3236    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3237    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3238    # Check for GNU ac_path_EGREP and select it if it is found.
3239  # Check for GNU $ac_path_EGREP
3240case `"$ac_path_EGREP" --version 2>&1` in
3241*GNU*)
3242  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3243*)
3244  ac_count=0
3245  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3246  while :
3247  do
3248    cat "conftest.in" "conftest.in" >"conftest.tmp"
3249    mv "conftest.tmp" "conftest.in"
3250    cp "conftest.in" "conftest.nl"
3251    echo 'EGREP' >> "conftest.nl"
3252    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3253    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3254    ac_count=`expr $ac_count + 1`
3255    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3256      # Best one so far, save it but keep looking for a better one
3257      ac_cv_path_EGREP="$ac_path_EGREP"
3258      ac_path_EGREP_max=$ac_count
3259    fi
3260    # 10*(2^10) chars as input seems more than enough
3261    test $ac_count -gt 10 && break
3262  done
3263  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3264esac
3265
3266
3267    $ac_path_EGREP_found && break 3
3268  done
3269done
3270
3271done
3272IFS=$as_save_IFS
3273
3274
3275fi
3276
3277EGREP="$ac_cv_path_EGREP"
3278if test -z "$EGREP"; then
3279  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3280echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3281   { (exit 1); exit 1; }; }
3282fi
3283
3284else
3285  ac_cv_path_EGREP=$EGREP
3286fi
3287
3288
3289   fi
3290fi
3291{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3292echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3293 EGREP="$ac_cv_path_EGREP"
3294
3295
3296{ echo "$as_me:$LINENO: checking for fgrep" >&5
3297echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3298if test "${ac_cv_path_FGREP+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3302   then ac_cv_path_FGREP="$GREP -F"
3303   else
3304     # Extract the first word of "fgrep" to use in msg output
3305if test -z "$FGREP"; then
3306set dummy fgrep; ac_prog_name=$2
3307if test "${ac_cv_path_FGREP+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  ac_path_FGREP_found=false
3311# Loop through the user's path and test for each of PROGNAME-LIST
3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3314do
3315  IFS=$as_save_IFS
3316  test -z "$as_dir" && as_dir=.
3317  for ac_prog in fgrep; do
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3320    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3321    # Check for GNU ac_path_FGREP and select it if it is found.
3322  # Check for GNU $ac_path_FGREP
3323case `"$ac_path_FGREP" --version 2>&1` in
3324*GNU*)
3325  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3326*)
3327  ac_count=0
3328  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3329  while :
3330  do
3331    cat "conftest.in" "conftest.in" >"conftest.tmp"
3332    mv "conftest.tmp" "conftest.in"
3333    cp "conftest.in" "conftest.nl"
3334    echo 'FGREP' >> "conftest.nl"
3335    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3336    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3337    ac_count=`expr $ac_count + 1`
3338    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3339      # Best one so far, save it but keep looking for a better one
3340      ac_cv_path_FGREP="$ac_path_FGREP"
3341      ac_path_FGREP_max=$ac_count
3342    fi
3343    # 10*(2^10) chars as input seems more than enough
3344    test $ac_count -gt 10 && break
3345  done
3346  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3347esac
3348
3349
3350    $ac_path_FGREP_found && break 3
3351  done
3352done
3353
3354done
3355IFS=$as_save_IFS
3356
3357
3358fi
3359
3360FGREP="$ac_cv_path_FGREP"
3361if test -z "$FGREP"; then
3362  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3363echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3364   { (exit 1); exit 1; }; }
3365fi
3366
3367else
3368  ac_cv_path_FGREP=$FGREP
3369fi
3370
3371
3372   fi
3373fi
3374{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3375echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3376 FGREP="$ac_cv_path_FGREP"
3377
3378
3379test -z "$GREP" && GREP=grep
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399# Check whether --with-gnu-ld was given.
3400if test "${with_gnu_ld+set}" = set; then
3401  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3402else
3403  with_gnu_ld=no
3404fi
3405
3406ac_prog=ld
3407if test "$GCC" = yes; then
3408  # Check if gcc -print-prog-name=ld gives a path.
3409  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3410echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3411  case $host in
3412  *-*-mingw*)
3413    # gcc leaves a trailing carriage return which upsets mingw
3414    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3415  *)
3416    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3417  esac
3418  case $ac_prog in
3419    # Accept absolute paths.
3420    [\\/]* | ?:[\\/]*)
3421      re_direlt='/[^/][^/]*/\.\./'
3422      # Canonicalize the pathname of ld
3423      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3424      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3425	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3426      done
3427      test -z "$LD" && LD="$ac_prog"
3428      ;;
3429  "")
3430    # If it fails, then pretend we aren't using GCC.
3431    ac_prog=ld
3432    ;;
3433  *)
3434    # If it is relative, then search for the first ld in PATH.
3435    with_gnu_ld=unknown
3436    ;;
3437  esac
3438elif test "$with_gnu_ld" = yes; then
3439  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3440echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3441else
3442  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3443echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3444fi
3445if test "${lt_cv_path_LD+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  if test -z "$LD"; then
3449  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3450  for ac_dir in $PATH; do
3451    IFS="$lt_save_ifs"
3452    test -z "$ac_dir" && ac_dir=.
3453    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3454      lt_cv_path_LD="$ac_dir/$ac_prog"
3455      # Check to see if the program is GNU ld.  I'd rather use --version,
3456      # but apparently some variants of GNU ld only accept -v.
3457      # Break only if it was the GNU/non-GNU ld that we prefer.
3458      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3459      *GNU* | *'with BFD'*)
3460	test "$with_gnu_ld" != no && break
3461	;;
3462      *)
3463	test "$with_gnu_ld" != yes && break
3464	;;
3465      esac
3466    fi
3467  done
3468  IFS="$lt_save_ifs"
3469else
3470  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3471fi
3472fi
3473
3474LD="$lt_cv_path_LD"
3475if test -n "$LD"; then
3476  { echo "$as_me:$LINENO: result: $LD" >&5
3477echo "${ECHO_T}$LD" >&6; }
3478else
3479  { echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6; }
3481fi
3482test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3483echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3484   { (exit 1); exit 1; }; }
3485{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3486echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3487if test "${lt_cv_prog_gnu_ld+set}" = set; then
3488  echo $ECHO_N "(cached) $ECHO_C" >&6
3489else
3490  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3491case `$LD -v 2>&1 </dev/null` in
3492*GNU* | *'with BFD'*)
3493  lt_cv_prog_gnu_ld=yes
3494  ;;
3495*)
3496  lt_cv_prog_gnu_ld=no
3497  ;;
3498esac
3499fi
3500{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3501echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3502with_gnu_ld=$lt_cv_prog_gnu_ld
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3513echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3514if test "${lt_cv_path_NM+set}" = set; then
3515  echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517  if test -n "$NM"; then
3518  # Let the user override the test.
3519  lt_cv_path_NM="$NM"
3520else
3521  lt_nm_to_check="${ac_tool_prefix}nm"
3522  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3523    lt_nm_to_check="$lt_nm_to_check nm"
3524  fi
3525  for lt_tmp_nm in $lt_nm_to_check; do
3526    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3528      IFS="$lt_save_ifs"
3529      test -z "$ac_dir" && ac_dir=.
3530      tmp_nm="$ac_dir/$lt_tmp_nm"
3531      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532	# Check to see if the nm accepts a BSD-compat flag.
3533	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534	#   nm: unknown option "B" ignored
3535	# Tru64's nm complains that /dev/null is an invalid object file
3536	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537	*/dev/null* | *'Invalid file or object type'*)
3538	  lt_cv_path_NM="$tmp_nm -B"
3539	  break
3540	  ;;
3541	*)
3542	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3543	  */dev/null*)
3544	    lt_cv_path_NM="$tmp_nm -p"
3545	    break
3546	    ;;
3547	  *)
3548	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549	    continue # so that we can try to find one that supports BSD flags
3550	    ;;
3551	  esac
3552	  ;;
3553	esac
3554      fi
3555    done
3556    IFS="$lt_save_ifs"
3557  done
3558  : ${lt_cv_path_NM=no}
3559fi
3560fi
3561{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3562echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3563if test "$lt_cv_path_NM" != "no"; then
3564  NM="$lt_cv_path_NM"
3565else
3566  # Didn't find any BSD compatible name lister, look for dumpbin.
3567  if test -n "$ac_tool_prefix"; then
3568  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3569  do
3570    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3574if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3575  echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577  if test -n "$DUMPBIN"; then
3578  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3579else
3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581for as_dir in $PATH
3582do
3583  IFS=$as_save_IFS
3584  test -z "$as_dir" && as_dir=.
3585  for ac_exec_ext in '' $ac_executable_extensions; do
3586  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3587    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589    break 2
3590  fi
3591done
3592done
3593IFS=$as_save_IFS
3594
3595fi
3596fi
3597DUMPBIN=$ac_cv_prog_DUMPBIN
3598if test -n "$DUMPBIN"; then
3599  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3600echo "${ECHO_T}$DUMPBIN" >&6; }
3601else
3602  { echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6; }
3604fi
3605
3606
3607    test -n "$DUMPBIN" && break
3608  done
3609fi
3610if test -z "$DUMPBIN"; then
3611  ac_ct_DUMPBIN=$DUMPBIN
3612  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3613do
3614  # Extract the first word of "$ac_prog", so it can be a program name with args.
3615set dummy $ac_prog; ac_word=$2
3616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3618if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3619  echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621  if test -n "$ac_ct_DUMPBIN"; then
3622  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  test -z "$as_dir" && as_dir=.
3629  for ac_exec_ext in '' $ac_executable_extensions; do
3630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633    break 2
3634  fi
3635done
3636done
3637IFS=$as_save_IFS
3638
3639fi
3640fi
3641ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3642if test -n "$ac_ct_DUMPBIN"; then
3643  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3644echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
3645else
3646  { echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6; }
3648fi
3649
3650
3651  test -n "$ac_ct_DUMPBIN" && break
3652done
3653
3654  if test "x$ac_ct_DUMPBIN" = x; then
3655    DUMPBIN=":"
3656  else
3657    case $cross_compiling:$ac_tool_warned in
3658yes:)
3659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3660whose name does not start with the host triplet.  If you think this
3661configuration is useful to you, please write to autoconf@gnu.org." >&5
3662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3663whose name does not start with the host triplet.  If you think this
3664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3665ac_tool_warned=yes ;;
3666esac
3667    DUMPBIN=$ac_ct_DUMPBIN
3668  fi
3669fi
3670
3671
3672  if test "$DUMPBIN" != ":"; then
3673    NM="$DUMPBIN"
3674  fi
3675fi
3676test -z "$NM" && NM=nm
3677
3678
3679
3680
3681
3682
3683{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3684echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
3685if test "${lt_cv_nm_interface+set}" = set; then
3686  echo $ECHO_N "(cached) $ECHO_C" >&6
3687else
3688  lt_cv_nm_interface="BSD nm"
3689  echo "int some_variable = 0;" > conftest.$ac_ext
3690  (eval echo "\"\$as_me:3690: $ac_compile\"" >&5)
3691  (eval "$ac_compile" 2>conftest.err)
3692  cat conftest.err >&5
3693  (eval echo "\"\$as_me:3693: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3694  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3695  cat conftest.err >&5
3696  (eval echo "\"\$as_me:3696: output\"" >&5)
3697  cat conftest.out >&5
3698  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3699    lt_cv_nm_interface="MS dumpbin"
3700  fi
3701  rm -f conftest*
3702fi
3703{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3704echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
3705
3706{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3707echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3708LN_S=$as_ln_s
3709if test "$LN_S" = "ln -s"; then
3710  { echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6; }
3712else
3713  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3714echo "${ECHO_T}no, using $LN_S" >&6; }
3715fi
3716
3717# find the maximum length of command line arguments
3718{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3719echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
3720if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3721  echo $ECHO_N "(cached) $ECHO_C" >&6
3722else
3723    i=0
3724  teststring="ABCD"
3725
3726  case $build_os in
3727  msdosdjgpp*)
3728    # On DJGPP, this test can blow up pretty badly due to problems in libc
3729    # (any single argument exceeding 2000 bytes causes a buffer overrun
3730    # during glob expansion).  Even if it were fixed, the result of this
3731    # check would be larger than it should be.
3732    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3733    ;;
3734
3735  gnu*)
3736    # Under GNU Hurd, this test is not required because there is
3737    # no limit to the length of command line arguments.
3738    # Libtool will interpret -1 as no limit whatsoever
3739    lt_cv_sys_max_cmd_len=-1;
3740    ;;
3741
3742  cygwin* | mingw* | cegcc*)
3743    # On Win9x/ME, this test blows up -- it succeeds, but takes
3744    # about 5 minutes as the teststring grows exponentially.
3745    # Worse, since 9x/ME are not pre-emptively multitasking,
3746    # you end up with a "frozen" computer, even though with patience
3747    # the test eventually succeeds (with a max line length of 256k).
3748    # Instead, let's just punt: use the minimum linelength reported by
3749    # all of the supported platforms: 8192 (on NT/2K/XP).
3750    lt_cv_sys_max_cmd_len=8192;
3751    ;;
3752
3753  beos*)
3754    # On BeOS, this test takes a really really long time.
3755    # So we just punt and use a minimum line length of 8192.
3756    lt_cv_sys_max_cmd_len=8192;
3757    ;;
3758
3759  amigaos*)
3760    # On AmigaOS with pdksh, this test takes hours, literally.
3761    # So we just punt and use a minimum line length of 8192.
3762    lt_cv_sys_max_cmd_len=8192;
3763    ;;
3764
3765  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3766    # This has been around since 386BSD, at least.  Likely further.
3767    if test -x /sbin/sysctl; then
3768      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3769    elif test -x /usr/sbin/sysctl; then
3770      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3771    else
3772      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
3773    fi
3774    # And add a safety zone
3775    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3776    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3777    ;;
3778
3779  interix*)
3780    # We know the value 262144 and hardcode it with a safety zone (like BSD)
3781    lt_cv_sys_max_cmd_len=196608
3782    ;;
3783
3784  osf*)
3785    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3786    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3787    # nice to cause kernel panics so lets avoid the loop below.
3788    # First set a reasonable default.
3789    lt_cv_sys_max_cmd_len=16384
3790    #
3791    if test -x /sbin/sysconfig; then
3792      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3793        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3794      esac
3795    fi
3796    ;;
3797  sco3.2v5*)
3798    lt_cv_sys_max_cmd_len=102400
3799    ;;
3800  sysv5* | sco5v6* | sysv4.2uw2*)
3801    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3802    if test -n "$kargmax"; then
3803      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
3804    else
3805      lt_cv_sys_max_cmd_len=32768
3806    fi
3807    ;;
3808  *)
3809    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3810    if test -n "$lt_cv_sys_max_cmd_len"; then
3811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3812      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3813    else
3814      # Make teststring a little bigger before we do anything with it.
3815      # a 1K string should be a reasonable start.
3816      for i in 1 2 3 4 5 6 7 8 ; do
3817        teststring=$teststring$teststring
3818      done
3819      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3820      # If test is not a shell built-in, we'll probably end up computing a
3821      # maximum length that is only half of the actual maximum length, but
3822      # we can't tell.
3823      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3824	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3825	      test $i != 17 # 1/2 MB should be enough
3826      do
3827        i=`expr $i + 1`
3828        teststring=$teststring$teststring
3829      done
3830      # Only check the string length outside the loop.
3831      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3832      teststring=
3833      # Add a significant safety factor because C++ compilers can tack on
3834      # massive amounts of additional arguments before passing them to the
3835      # linker.  It appears as though 1/2 is a usable value.
3836      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3837    fi
3838    ;;
3839  esac
3840
3841fi
3842
3843if test -n $lt_cv_sys_max_cmd_len ; then
3844  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3845echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
3846else
3847  { echo "$as_me:$LINENO: result: none" >&5
3848echo "${ECHO_T}none" >&6; }
3849fi
3850max_cmd_len=$lt_cv_sys_max_cmd_len
3851
3852
3853
3854
3855
3856
3857: ${CP="cp -f"}
3858: ${MV="mv -f"}
3859: ${RM="rm -f"}
3860
3861{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3862echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
3863# Try some XSI features
3864xsi_shell=no
3865( _lt_dummy="a/b/c"
3866  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3867      = c,a/b,, \
3868    && eval 'test $(( 1 + 1 )) -eq 2 \
3869    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3870  && xsi_shell=yes
3871{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
3872echo "${ECHO_T}$xsi_shell" >&6; }
3873
3874
3875{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3876echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
3877lt_shell_append=no
3878( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3879    >/dev/null 2>&1 \
3880  && lt_shell_append=yes
3881{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3882echo "${ECHO_T}$lt_shell_append" >&6; }
3883
3884
3885if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3886  lt_unset=unset
3887else
3888  lt_unset=false
3889fi
3890
3891
3892
3893
3894
3895# test EBCDIC or ASCII
3896case `echo X|tr X '\101'` in
3897 A) # ASCII based system
3898    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3899  lt_SP2NL='tr \040 \012'
3900  lt_NL2SP='tr \015\012 \040\040'
3901  ;;
3902 *) # EBCDIC based system
3903  lt_SP2NL='tr \100 \n'
3904  lt_NL2SP='tr \r\n \100\100'
3905  ;;
3906esac
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3917echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3918if test "${lt_cv_ld_reload_flag+set}" = set; then
3919  echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921  lt_cv_ld_reload_flag='-r'
3922fi
3923{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3924echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3925reload_flag=$lt_cv_ld_reload_flag
3926case $reload_flag in
3927"" | " "*) ;;
3928*) reload_flag=" $reload_flag" ;;
3929esac
3930reload_cmds='$LD$reload_flag -o $output$reload_objs'
3931case $host_os in
3932  darwin*)
3933    if test "$GCC" = yes; then
3934      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3935    else
3936      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3937    fi
3938    ;;
3939esac
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949if test -n "$ac_tool_prefix"; then
3950  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3951set dummy ${ac_tool_prefix}objdump; ac_word=$2
3952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3954if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3955  echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957  if test -n "$OBJDUMP"; then
3958  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963  IFS=$as_save_IFS
3964  test -z "$as_dir" && as_dir=.
3965  for ac_exec_ext in '' $ac_executable_extensions; do
3966  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969    break 2
3970  fi
3971done
3972done
3973IFS=$as_save_IFS
3974
3975fi
3976fi
3977OBJDUMP=$ac_cv_prog_OBJDUMP
3978if test -n "$OBJDUMP"; then
3979  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
3980echo "${ECHO_T}$OBJDUMP" >&6; }
3981else
3982  { echo "$as_me:$LINENO: result: no" >&5
3983echo "${ECHO_T}no" >&6; }
3984fi
3985
3986
3987fi
3988if test -z "$ac_cv_prog_OBJDUMP"; then
3989  ac_ct_OBJDUMP=$OBJDUMP
3990  # Extract the first word of "objdump", so it can be a program name with args.
3991set dummy objdump; ac_word=$2
3992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3994if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3995  echo $ECHO_N "(cached) $ECHO_C" >&6
3996else
3997  if test -n "$ac_ct_OBJDUMP"; then
3998  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003  IFS=$as_save_IFS
4004  test -z "$as_dir" && as_dir=.
4005  for ac_exec_ext in '' $ac_executable_extensions; do
4006  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4008    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009    break 2
4010  fi
4011done
4012done
4013IFS=$as_save_IFS
4014
4015fi
4016fi
4017ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4018if test -n "$ac_ct_OBJDUMP"; then
4019  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4020echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4021else
4022  { echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6; }
4024fi
4025
4026  if test "x$ac_ct_OBJDUMP" = x; then
4027    OBJDUMP="false"
4028  else
4029    case $cross_compiling:$ac_tool_warned in
4030yes:)
4031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4032whose name does not start with the host triplet.  If you think this
4033configuration is useful to you, please write to autoconf@gnu.org." >&5
4034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4035whose name does not start with the host triplet.  If you think this
4036configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4037ac_tool_warned=yes ;;
4038esac
4039    OBJDUMP=$ac_ct_OBJDUMP
4040  fi
4041else
4042  OBJDUMP="$ac_cv_prog_OBJDUMP"
4043fi
4044
4045test -z "$OBJDUMP" && OBJDUMP=objdump
4046
4047
4048
4049
4050
4051
4052{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4053echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4054if test "${lt_cv_deplibs_check_method+set}" = set; then
4055  echo $ECHO_N "(cached) $ECHO_C" >&6
4056else
4057  lt_cv_file_magic_cmd='$MAGIC_CMD'
4058lt_cv_file_magic_test_file=
4059lt_cv_deplibs_check_method='unknown'
4060# Need to set the preceding variable on all platforms that support
4061# interlibrary dependencies.
4062# 'none' -- dependencies not supported.
4063# `unknown' -- same as none, but documents that we really don't know.
4064# 'pass_all' -- all dependencies passed with no checks.
4065# 'test_compile' -- check by making test program.
4066# 'file_magic [[regex]]' -- check by looking for files in library path
4067# which responds to the $file_magic_cmd with a given extended regex.
4068# If you have `file' or equivalent on your system and you're not sure
4069# whether `pass_all' will *always* work, you probably want this one.
4070
4071case $host_os in
4072aix[4-9]*)
4073  lt_cv_deplibs_check_method=pass_all
4074  ;;
4075
4076beos*)
4077  lt_cv_deplibs_check_method=pass_all
4078  ;;
4079
4080bsdi[45]*)
4081  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4082  lt_cv_file_magic_cmd='/usr/bin/file -L'
4083  lt_cv_file_magic_test_file=/shlib/libc.so
4084  ;;
4085
4086cygwin*)
4087  # func_win32_libid is a shell function defined in ltmain.sh
4088  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4089  lt_cv_deplibs_check_method=pass_all
4090  lt_cv_file_magic_cmd='func_win32_libid'
4091  ;;
4092
4093mingw* | pw32*)
4094  # Base MSYS/MinGW do not provide the 'file' command needed by
4095  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4096  # unless we find 'file', for example because we are cross-compiling.
4097  if ( file / ) >/dev/null 2>&1; then
4098    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4099    lt_cv_file_magic_cmd='func_win32_libid'
4100  else
4101    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4102    lt_cv_file_magic_cmd='$OBJDUMP -f'
4103  fi
4104  lt_cv_deplibs_check_method=pass_all
4105  ;;
4106
4107cegcc)
4108  # use the weaker test based on 'objdump'. See mingw*.
4109  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4110  lt_cv_file_magic_cmd='$OBJDUMP -f'
4111  ;;
4112
4113darwin* | rhapsody*)
4114  lt_cv_deplibs_check_method=pass_all
4115  ;;
4116
4117freebsd* | dragonfly*)
4118  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4119    case $host_cpu in
4120    i*86 )
4121      # Not sure whether the presence of OpenBSD here was a mistake.
4122      # Let's accept both of them until this is cleared up.
4123      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4124      lt_cv_file_magic_cmd=/usr/bin/file
4125      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4126      ;;
4127    esac
4128  else
4129    lt_cv_deplibs_check_method=pass_all
4130  fi
4131  ;;
4132
4133gnu*)
4134  lt_cv_deplibs_check_method=pass_all
4135  ;;
4136
4137hpux10.20* | hpux11*)
4138  lt_cv_file_magic_cmd=/usr/bin/file
4139  case $host_cpu in
4140  ia64*)
4141    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4142    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4143    ;;
4144  hppa*64*)
4145    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]'
4146    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4147    ;;
4148  *)
4149    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4150    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4151    ;;
4152  esac
4153  ;;
4154
4155interix[3-9]*)
4156  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4157  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4158  ;;
4159
4160irix5* | irix6* | nonstopux*)
4161  case $LD in
4162  *-32|*"-32 ") libmagic=32-bit;;
4163  *-n32|*"-n32 ") libmagic=N32;;
4164  *-64|*"-64 ") libmagic=64-bit;;
4165  *) libmagic=never-match;;
4166  esac
4167  lt_cv_deplibs_check_method=pass_all
4168  ;;
4169
4170# This must be Linux ELF.
4171linux* | k*bsd*-gnu)
4172  lt_cv_deplibs_check_method=pass_all
4173  ;;
4174
4175netbsd*)
4176  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4177    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4178  else
4179    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4180  fi
4181  ;;
4182
4183newos6*)
4184  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4185  lt_cv_file_magic_cmd=/usr/bin/file
4186  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4187  ;;
4188
4189*nto* | *qnx*)
4190  lt_cv_deplibs_check_method=pass_all
4191  ;;
4192
4193openbsd*)
4194  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4195    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4196  else
4197    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4198  fi
4199  ;;
4200
4201osf3* | osf4* | osf5*)
4202  lt_cv_deplibs_check_method=pass_all
4203  ;;
4204
4205rdos*)
4206  lt_cv_deplibs_check_method=pass_all
4207  ;;
4208
4209solaris*)
4210  lt_cv_deplibs_check_method=pass_all
4211  ;;
4212
4213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4214  lt_cv_deplibs_check_method=pass_all
4215  ;;
4216
4217sysv4 | sysv4.3*)
4218  case $host_vendor in
4219  motorola)
4220    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]'
4221    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4222    ;;
4223  ncr)
4224    lt_cv_deplibs_check_method=pass_all
4225    ;;
4226  sequent)
4227    lt_cv_file_magic_cmd='/bin/file'
4228    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4229    ;;
4230  sni)
4231    lt_cv_file_magic_cmd='/bin/file'
4232    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4233    lt_cv_file_magic_test_file=/lib/libc.so
4234    ;;
4235  siemens)
4236    lt_cv_deplibs_check_method=pass_all
4237    ;;
4238  pc)
4239    lt_cv_deplibs_check_method=pass_all
4240    ;;
4241  esac
4242  ;;
4243
4244tpf*)
4245  lt_cv_deplibs_check_method=pass_all
4246  ;;
4247esac
4248
4249fi
4250{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4251echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4252file_magic_cmd=$lt_cv_file_magic_cmd
4253deplibs_check_method=$lt_cv_deplibs_check_method
4254test -z "$deplibs_check_method" && deplibs_check_method=unknown
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267if test -n "$ac_tool_prefix"; then
4268  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4269set dummy ${ac_tool_prefix}ar; ac_word=$2
4270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4272if test "${ac_cv_prog_AR+set}" = set; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  if test -n "$AR"; then
4276  ac_cv_prog_AR="$AR" # Let the user override the test.
4277else
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281  IFS=$as_save_IFS
4282  test -z "$as_dir" && as_dir=.
4283  for ac_exec_ext in '' $ac_executable_extensions; do
4284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285    ac_cv_prog_AR="${ac_tool_prefix}ar"
4286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287    break 2
4288  fi
4289done
4290done
4291IFS=$as_save_IFS
4292
4293fi
4294fi
4295AR=$ac_cv_prog_AR
4296if test -n "$AR"; then
4297  { echo "$as_me:$LINENO: result: $AR" >&5
4298echo "${ECHO_T}$AR" >&6; }
4299else
4300  { echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6; }
4302fi
4303
4304
4305fi
4306if test -z "$ac_cv_prog_AR"; then
4307  ac_ct_AR=$AR
4308  # Extract the first word of "ar", so it can be a program name with args.
4309set dummy ar; ac_word=$2
4310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4312if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  if test -n "$ac_ct_AR"; then
4316  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321  IFS=$as_save_IFS
4322  test -z "$as_dir" && as_dir=.
4323  for ac_exec_ext in '' $ac_executable_extensions; do
4324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325    ac_cv_prog_ac_ct_AR="ar"
4326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327    break 2
4328  fi
4329done
4330done
4331IFS=$as_save_IFS
4332
4333fi
4334fi
4335ac_ct_AR=$ac_cv_prog_ac_ct_AR
4336if test -n "$ac_ct_AR"; then
4337  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4338echo "${ECHO_T}$ac_ct_AR" >&6; }
4339else
4340  { echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6; }
4342fi
4343
4344  if test "x$ac_ct_AR" = x; then
4345    AR="false"
4346  else
4347    case $cross_compiling:$ac_tool_warned in
4348yes:)
4349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4350whose name does not start with the host triplet.  If you think this
4351configuration is useful to you, please write to autoconf@gnu.org." >&5
4352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4353whose name does not start with the host triplet.  If you think this
4354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357    AR=$ac_ct_AR
4358  fi
4359else
4360  AR="$ac_cv_prog_AR"
4361fi
4362
4363test -z "$AR" && AR=ar
4364test -z "$AR_FLAGS" && AR_FLAGS=cru
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376if test -n "$ac_tool_prefix"; then
4377  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4378set dummy ${ac_tool_prefix}strip; ac_word=$2
4379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381if test "${ac_cv_prog_STRIP+set}" = set; then
4382  echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384  if test -n "$STRIP"; then
4385  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392  for ac_exec_ext in '' $ac_executable_extensions; do
4393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396    break 2
4397  fi
4398done
4399done
4400IFS=$as_save_IFS
4401
4402fi
4403fi
4404STRIP=$ac_cv_prog_STRIP
4405if test -n "$STRIP"; then
4406  { echo "$as_me:$LINENO: result: $STRIP" >&5
4407echo "${ECHO_T}$STRIP" >&6; }
4408else
4409  { echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6; }
4411fi
4412
4413
4414fi
4415if test -z "$ac_cv_prog_STRIP"; then
4416  ac_ct_STRIP=$STRIP
4417  # Extract the first word of "strip", so it can be a program name with args.
4418set dummy strip; ac_word=$2
4419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4421if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4422  echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424  if test -n "$ac_ct_STRIP"; then
4425  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430  IFS=$as_save_IFS
4431  test -z "$as_dir" && as_dir=.
4432  for ac_exec_ext in '' $ac_executable_extensions; do
4433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434    ac_cv_prog_ac_ct_STRIP="strip"
4435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436    break 2
4437  fi
4438done
4439done
4440IFS=$as_save_IFS
4441
4442fi
4443fi
4444ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4445if test -n "$ac_ct_STRIP"; then
4446  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4447echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4448else
4449  { echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6; }
4451fi
4452
4453  if test "x$ac_ct_STRIP" = x; then
4454    STRIP=":"
4455  else
4456    case $cross_compiling:$ac_tool_warned in
4457yes:)
4458{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4459whose name does not start with the host triplet.  If you think this
4460configuration is useful to you, please write to autoconf@gnu.org." >&5
4461echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4462whose name does not start with the host triplet.  If you think this
4463configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4464ac_tool_warned=yes ;;
4465esac
4466    STRIP=$ac_ct_STRIP
4467  fi
4468else
4469  STRIP="$ac_cv_prog_STRIP"
4470fi
4471
4472test -z "$STRIP" && STRIP=:
4473
4474
4475
4476
4477
4478
4479if test -n "$ac_tool_prefix"; then
4480  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4481set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484if test "${ac_cv_prog_RANLIB+set}" = set; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  if test -n "$RANLIB"; then
4488  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4489else
4490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491for as_dir in $PATH
4492do
4493  IFS=$as_save_IFS
4494  test -z "$as_dir" && as_dir=.
4495  for ac_exec_ext in '' $ac_executable_extensions; do
4496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499    break 2
4500  fi
4501done
4502done
4503IFS=$as_save_IFS
4504
4505fi
4506fi
4507RANLIB=$ac_cv_prog_RANLIB
4508if test -n "$RANLIB"; then
4509  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4510echo "${ECHO_T}$RANLIB" >&6; }
4511else
4512  { echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6; }
4514fi
4515
4516
4517fi
4518if test -z "$ac_cv_prog_RANLIB"; then
4519  ac_ct_RANLIB=$RANLIB
4520  # Extract the first word of "ranlib", so it can be a program name with args.
4521set dummy ranlib; ac_word=$2
4522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4524if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527  if test -n "$ac_ct_RANLIB"; then
4528  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4529else
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533  IFS=$as_save_IFS
4534  test -z "$as_dir" && as_dir=.
4535  for ac_exec_ext in '' $ac_executable_extensions; do
4536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537    ac_cv_prog_ac_ct_RANLIB="ranlib"
4538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539    break 2
4540  fi
4541done
4542done
4543IFS=$as_save_IFS
4544
4545fi
4546fi
4547ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4548if test -n "$ac_ct_RANLIB"; then
4549  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4550echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4551else
4552  { echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6; }
4554fi
4555
4556  if test "x$ac_ct_RANLIB" = x; then
4557    RANLIB=":"
4558  else
4559    case $cross_compiling:$ac_tool_warned in
4560yes:)
4561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4562whose name does not start with the host triplet.  If you think this
4563configuration is useful to you, please write to autoconf@gnu.org." >&5
4564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4565whose name does not start with the host triplet.  If you think this
4566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4567ac_tool_warned=yes ;;
4568esac
4569    RANLIB=$ac_ct_RANLIB
4570  fi
4571else
4572  RANLIB="$ac_cv_prog_RANLIB"
4573fi
4574
4575test -z "$RANLIB" && RANLIB=:
4576
4577
4578
4579
4580
4581
4582# Determine commands to create old-style static archives.
4583old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4584old_postinstall_cmds='chmod 644 $oldlib'
4585old_postuninstall_cmds=
4586
4587if test -n "$RANLIB"; then
4588  case $host_os in
4589  openbsd*)
4590    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4591    ;;
4592  *)
4593    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4594    ;;
4595  esac
4596  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4597fi
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632# If no C compiler was specified, use CC.
4633LTCC=${LTCC-"$CC"}
4634
4635# If no C compiler flags were specified, use CFLAGS.
4636LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4637
4638# Allow CC to be a program name with arguments.
4639compiler=$CC
4640
4641
4642# Check for command to grab the raw symbol name followed by C symbol from nm.
4643{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4644echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
4645if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648
4649# These are sane defaults that work on at least a few old systems.
4650# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4651
4652# Character class describing NM global symbol codes.
4653symcode='[BCDEGRST]'
4654
4655# Regexp to match symbols that can be accessed directly from C.
4656sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4657
4658# Define system-specific variables.
4659case $host_os in
4660aix*)
4661  symcode='[BCDT]'
4662  ;;
4663cygwin* | mingw* | pw32* | cegcc*)
4664  symcode='[ABCDGISTW]'
4665  ;;
4666hpux*)
4667  if test "$host_cpu" = ia64; then
4668    symcode='[ABCDEGRST]'
4669  fi
4670  ;;
4671irix* | nonstopux*)
4672  symcode='[BCDEGRST]'
4673  ;;
4674osf*)
4675  symcode='[BCDEGQRST]'
4676  ;;
4677solaris*)
4678  symcode='[BDRT]'
4679  ;;
4680sco3.2v5*)
4681  symcode='[DT]'
4682  ;;
4683sysv4.2uw2*)
4684  symcode='[DT]'
4685  ;;
4686sysv5* | sco5v6* | unixware* | OpenUNIX*)
4687  symcode='[ABDT]'
4688  ;;
4689sysv4)
4690  symcode='[DFNSTU]'
4691  ;;
4692esac
4693
4694# If we're using GNU nm, then use its standard symbol codes.
4695case `$NM -V 2>&1` in
4696*GNU* | *'with BFD'*)
4697  symcode='[ABCDGIRSTW]' ;;
4698esac
4699
4700# Transform an extracted symbol line into a proper C declaration.
4701# Some systems (esp. on ia64) link data and code symbols differently,
4702# so use this general approach.
4703lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4704
4705# Transform an extracted symbol line into symbol name and symbol address
4706lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4707lt_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'"
4708
4709# Handle CRLF in mingw tool chain
4710opt_cr=
4711case $build_os in
4712mingw*)
4713  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4714  ;;
4715esac
4716
4717# Try without a prefix underscore, then with it.
4718for ac_symprfx in "" "_"; do
4719
4720  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4721  symxfrm="\\1 $ac_symprfx\\2 \\2"
4722
4723  # Write the raw and C identifiers.
4724  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4725    # Fake it for dumpbin and say T for any non-static function
4726    # and D for any global variable.
4727    # Also find C++ and __fastcall symbols from MSVC++,
4728    # which start with @ or ?.
4729    lt_cv_sys_global_symbol_pipe="$AWK '"\
4730"     {last_section=section; section=\$ 3};"\
4731"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4732"     \$ 0!~/External *\|/{next};"\
4733"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4734"     {if(hide[section]) next};"\
4735"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4736"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4737"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4738"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4739"     ' prfx=^$ac_symprfx"
4740  else
4741    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4742  fi
4743
4744  # Check to see that the pipe works correctly.
4745  pipe_works=no
4746
4747  rm -f conftest*
4748  cat > conftest.$ac_ext <<_LT_EOF
4749#ifdef __cplusplus
4750extern "C" {
4751#endif
4752char nm_test_var;
4753void nm_test_func(void);
4754void nm_test_func(void){}
4755#ifdef __cplusplus
4756}
4757#endif
4758int main(){nm_test_var='a';nm_test_func();return(0);}
4759_LT_EOF
4760
4761  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762  (eval $ac_compile) 2>&5
4763  ac_status=$?
4764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765  (exit $ac_status); }; then
4766    # Now try to grab the symbols.
4767    nlist=conftest.nm
4768    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4769  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4770  ac_status=$?
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); } && test -s "$nlist"; then
4773      # Try sorting and uniquifying the output.
4774      if sort "$nlist" | uniq > "$nlist"T; then
4775	mv -f "$nlist"T "$nlist"
4776      else
4777	rm -f "$nlist"T
4778      fi
4779
4780      # Make sure that we snagged all the symbols we need.
4781      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4782	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4783	  cat <<_LT_EOF > conftest.$ac_ext
4784#ifdef __cplusplus
4785extern "C" {
4786#endif
4787
4788_LT_EOF
4789	  # Now generate the symbol file.
4790	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4791
4792	  cat <<_LT_EOF >> conftest.$ac_ext
4793
4794/* The mapping between symbol names and symbols.  */
4795const struct {
4796  const char *name;
4797  void       *address;
4798}
4799lt__PROGRAM__LTX_preloaded_symbols[] =
4800{
4801  { "@PROGRAM@", (void *) 0 },
4802_LT_EOF
4803	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4804	  cat <<\_LT_EOF >> conftest.$ac_ext
4805  {0, (void *) 0}
4806};
4807
4808/* This works around a problem in FreeBSD linker */
4809#ifdef FREEBSD_WORKAROUND
4810static const void *lt_preloaded_setup() {
4811  return lt__PROGRAM__LTX_preloaded_symbols;
4812}
4813#endif
4814
4815#ifdef __cplusplus
4816}
4817#endif
4818_LT_EOF
4819	  # Now try linking the two files.
4820	  mv conftest.$ac_objext conftstm.$ac_objext
4821	  lt_save_LIBS="$LIBS"
4822	  lt_save_CFLAGS="$CFLAGS"
4823	  LIBS="conftstm.$ac_objext"
4824	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4825	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826  (eval $ac_link) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } && test -s conftest${ac_exeext}; then
4830	    pipe_works=yes
4831	  fi
4832	  LIBS="$lt_save_LIBS"
4833	  CFLAGS="$lt_save_CFLAGS"
4834	else
4835	  echo "cannot find nm_test_func in $nlist" >&5
4836	fi
4837      else
4838	echo "cannot find nm_test_var in $nlist" >&5
4839      fi
4840    else
4841      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4842    fi
4843  else
4844    echo "$progname: failed program was:" >&5
4845    cat conftest.$ac_ext >&5
4846  fi
4847  rm -rf conftest* conftst*
4848
4849  # Do not use the global_symbol_pipe unless it works.
4850  if test "$pipe_works" = yes; then
4851    break
4852  else
4853    lt_cv_sys_global_symbol_pipe=
4854  fi
4855done
4856
4857fi
4858
4859if test -z "$lt_cv_sys_global_symbol_pipe"; then
4860  lt_cv_sys_global_symbol_to_cdecl=
4861fi
4862if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4863  { echo "$as_me:$LINENO: result: failed" >&5
4864echo "${ECHO_T}failed" >&6; }
4865else
4866  { echo "$as_me:$LINENO: result: ok" >&5
4867echo "${ECHO_T}ok" >&6; }
4868fi
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892# Check whether --enable-libtool-lock was given.
4893if test "${enable_libtool_lock+set}" = set; then
4894  enableval=$enable_libtool_lock;
4895fi
4896
4897test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4898
4899# Some flags need to be propagated to the compiler or linker for good
4900# libtool support.
4901case $host in
4902ia64-*-hpux*)
4903  # Find out which ABI we are using.
4904  echo 'int i;' > conftest.$ac_ext
4905  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4906  (eval $ac_compile) 2>&5
4907  ac_status=$?
4908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909  (exit $ac_status); }; then
4910    case `/usr/bin/file conftest.$ac_objext` in
4911      *ELF-32*)
4912	HPUX_IA64_MODE="32"
4913	;;
4914      *ELF-64*)
4915	HPUX_IA64_MODE="64"
4916	;;
4917    esac
4918  fi
4919  rm -rf conftest*
4920  ;;
4921*-*-irix6*)
4922  # Find out which ABI we are using.
4923  echo '#line 4923 "configure"' > conftest.$ac_ext
4924  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4925  (eval $ac_compile) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; then
4929    if test "$lt_cv_prog_gnu_ld" = yes; then
4930      case `/usr/bin/file conftest.$ac_objext` in
4931	*32-bit*)
4932	  LD="${LD-ld} -melf32bsmip"
4933	  ;;
4934	*N32*)
4935	  LD="${LD-ld} -melf32bmipn32"
4936	  ;;
4937	*64-bit*)
4938	  LD="${LD-ld} -melf64bmip"
4939	;;
4940      esac
4941    else
4942      case `/usr/bin/file conftest.$ac_objext` in
4943	*32-bit*)
4944	  LD="${LD-ld} -32"
4945	  ;;
4946	*N32*)
4947	  LD="${LD-ld} -n32"
4948	  ;;
4949	*64-bit*)
4950	  LD="${LD-ld} -64"
4951	  ;;
4952      esac
4953    fi
4954  fi
4955  rm -rf conftest*
4956  ;;
4957
4958x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4959s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4960  # Find out which ABI we are using.
4961  echo 'int i;' > conftest.$ac_ext
4962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963  (eval $ac_compile) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; then
4967    case `/usr/bin/file conftest.o` in
4968      *32-bit*)
4969	case $host in
4970	  x86_64-*kfreebsd*-gnu)
4971	    LD="${LD-ld} -m elf_i386_fbsd"
4972	    ;;
4973	  x86_64-*linux*)
4974	    LD="${LD-ld} -m elf_i386"
4975	    ;;
4976	  ppc64-*linux*|powerpc64-*linux*)
4977	    LD="${LD-ld} -m elf32ppclinux"
4978	    ;;
4979	  s390x-*linux*)
4980	    LD="${LD-ld} -m elf_s390"
4981	    ;;
4982	  sparc64-*linux*)
4983	    LD="${LD-ld} -m elf32_sparc"
4984	    ;;
4985	esac
4986	;;
4987      *64-bit*)
4988	case $host in
4989	  x86_64-*kfreebsd*-gnu)
4990	    LD="${LD-ld} -m elf_x86_64_fbsd"
4991	    ;;
4992	  x86_64-*linux*)
4993	    LD="${LD-ld} -m elf_x86_64"
4994	    ;;
4995	  ppc*-*linux*|powerpc*-*linux*)
4996	    LD="${LD-ld} -m elf64ppc"
4997	    ;;
4998	  s390*-*linux*|s390*-*tpf*)
4999	    LD="${LD-ld} -m elf64_s390"
5000	    ;;
5001	  sparc*-*linux*)
5002	    LD="${LD-ld} -m elf64_sparc"
5003	    ;;
5004	esac
5005	;;
5006    esac
5007  fi
5008  rm -rf conftest*
5009  ;;
5010
5011*-*-sco3.2v5*)
5012  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5013  SAVE_CFLAGS="$CFLAGS"
5014  CFLAGS="$CFLAGS -belf"
5015  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5016echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5017if test "${lt_cv_cc_needs_belf+set}" = set; then
5018  echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020  ac_ext=c
5021ac_cpp='$CPP $CPPFLAGS'
5022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025
5026     cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h.  */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h.  */
5032
5033int
5034main ()
5035{
5036
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext conftest$ac_exeext
5042if { (ac_try="$ac_link"
5043case "(($ac_try" in
5044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045  *) ac_try_echo=$ac_try;;
5046esac
5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048  (eval "$ac_link") 2>conftest.er1
5049  ac_status=$?
5050  grep -v '^ *+' conftest.er1 >conftest.err
5051  rm -f conftest.er1
5052  cat conftest.err >&5
5053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054  (exit $ac_status); } && {
5055	 test -z "$ac_c_werror_flag" ||
5056	 test ! -s conftest.err
5057       } && test -s conftest$ac_exeext &&
5058       $as_test_x conftest$ac_exeext; then
5059  lt_cv_cc_needs_belf=yes
5060else
5061  echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064	lt_cv_cc_needs_belf=no
5065fi
5066
5067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5068      conftest$ac_exeext conftest.$ac_ext
5069     ac_ext=c
5070ac_cpp='$CPP $CPPFLAGS'
5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074
5075fi
5076{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5077echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5078  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5079    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5080    CFLAGS="$SAVE_CFLAGS"
5081  fi
5082  ;;
5083sparc*-*solaris*)
5084  # Find out which ABI we are using.
5085  echo 'int i;' > conftest.$ac_ext
5086  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087  (eval $ac_compile) 2>&5
5088  ac_status=$?
5089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090  (exit $ac_status); }; then
5091    case `/usr/bin/file conftest.o` in
5092    *64-bit*)
5093      case $lt_cv_prog_gnu_ld in
5094      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5095      *)
5096	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5097	  LD="${LD-ld} -64"
5098	fi
5099	;;
5100      esac
5101      ;;
5102    esac
5103  fi
5104  rm -rf conftest*
5105  ;;
5106esac
5107
5108need_locks="$enable_libtool_lock"
5109
5110
5111  case $host_os in
5112    rhapsody* | darwin*)
5113    if test -n "$ac_tool_prefix"; then
5114  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5115set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if test -n "$DSYMUTIL"; then
5122  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129  for ac_exec_ext in '' $ac_executable_extensions; do
5130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136done
5137IFS=$as_save_IFS
5138
5139fi
5140fi
5141DSYMUTIL=$ac_cv_prog_DSYMUTIL
5142if test -n "$DSYMUTIL"; then
5143  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5144echo "${ECHO_T}$DSYMUTIL" >&6; }
5145else
5146  { echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6; }
5148fi
5149
5150
5151fi
5152if test -z "$ac_cv_prog_DSYMUTIL"; then
5153  ac_ct_DSYMUTIL=$DSYMUTIL
5154  # Extract the first word of "dsymutil", so it can be a program name with args.
5155set dummy dsymutil; ac_word=$2
5156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5158if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5159  echo $ECHO_N "(cached) $ECHO_C" >&6
5160else
5161  if test -n "$ac_ct_DSYMUTIL"; then
5162  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167  IFS=$as_save_IFS
5168  test -z "$as_dir" && as_dir=.
5169  for ac_exec_ext in '' $ac_executable_extensions; do
5170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173    break 2
5174  fi
5175done
5176done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5182if test -n "$ac_ct_DSYMUTIL"; then
5183  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5184echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5185else
5186  { echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6; }
5188fi
5189
5190  if test "x$ac_ct_DSYMUTIL" = x; then
5191    DSYMUTIL=":"
5192  else
5193    case $cross_compiling:$ac_tool_warned in
5194yes:)
5195{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5196whose name does not start with the host triplet.  If you think this
5197configuration is useful to you, please write to autoconf@gnu.org." >&5
5198echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5199whose name does not start with the host triplet.  If you think this
5200configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203    DSYMUTIL=$ac_ct_DSYMUTIL
5204  fi
5205else
5206  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5207fi
5208
5209    if test -n "$ac_tool_prefix"; then
5210  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5211set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214if test "${ac_cv_prog_NMEDIT+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217  if test -n "$NMEDIT"; then
5218  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225  for ac_exec_ext in '' $ac_executable_extensions; do
5226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232done
5233IFS=$as_save_IFS
5234
5235fi
5236fi
5237NMEDIT=$ac_cv_prog_NMEDIT
5238if test -n "$NMEDIT"; then
5239  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5240echo "${ECHO_T}$NMEDIT" >&6; }
5241else
5242  { echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6; }
5244fi
5245
5246
5247fi
5248if test -z "$ac_cv_prog_NMEDIT"; then
5249  ac_ct_NMEDIT=$NMEDIT
5250  # Extract the first word of "nmedit", so it can be a program name with args.
5251set dummy nmedit; ac_word=$2
5252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5255  echo $ECHO_N "(cached) $ECHO_C" >&6
5256else
5257  if test -n "$ac_ct_NMEDIT"; then
5258  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5259else
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263  IFS=$as_save_IFS
5264  test -z "$as_dir" && as_dir=.
5265  for ac_exec_ext in '' $ac_executable_extensions; do
5266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267    ac_cv_prog_ac_ct_NMEDIT="nmedit"
5268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269    break 2
5270  fi
5271done
5272done
5273IFS=$as_save_IFS
5274
5275fi
5276fi
5277ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5278if test -n "$ac_ct_NMEDIT"; then
5279  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5280echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5281else
5282  { echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6; }
5284fi
5285
5286  if test "x$ac_ct_NMEDIT" = x; then
5287    NMEDIT=":"
5288  else
5289    case $cross_compiling:$ac_tool_warned in
5290yes:)
5291{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5292whose name does not start with the host triplet.  If you think this
5293configuration is useful to you, please write to autoconf@gnu.org." >&5
5294echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5295whose name does not start with the host triplet.  If you think this
5296configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5297ac_tool_warned=yes ;;
5298esac
5299    NMEDIT=$ac_ct_NMEDIT
5300  fi
5301else
5302  NMEDIT="$ac_cv_prog_NMEDIT"
5303fi
5304
5305    if test -n "$ac_tool_prefix"; then
5306  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5307set dummy ${ac_tool_prefix}lipo; ac_word=$2
5308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5310if test "${ac_cv_prog_LIPO+set}" = set; then
5311  echo $ECHO_N "(cached) $ECHO_C" >&6
5312else
5313  if test -n "$LIPO"; then
5314  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319  IFS=$as_save_IFS
5320  test -z "$as_dir" && as_dir=.
5321  for ac_exec_ext in '' $ac_executable_extensions; do
5322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5325    break 2
5326  fi
5327done
5328done
5329IFS=$as_save_IFS
5330
5331fi
5332fi
5333LIPO=$ac_cv_prog_LIPO
5334if test -n "$LIPO"; then
5335  { echo "$as_me:$LINENO: result: $LIPO" >&5
5336echo "${ECHO_T}$LIPO" >&6; }
5337else
5338  { echo "$as_me:$LINENO: result: no" >&5
5339echo "${ECHO_T}no" >&6; }
5340fi
5341
5342
5343fi
5344if test -z "$ac_cv_prog_LIPO"; then
5345  ac_ct_LIPO=$LIPO
5346  # Extract the first word of "lipo", so it can be a program name with args.
5347set dummy lipo; ac_word=$2
5348{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5350if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  if test -n "$ac_ct_LIPO"; then
5354  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361  for ac_exec_ext in '' $ac_executable_extensions; do
5362  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363    ac_cv_prog_ac_ct_LIPO="lipo"
5364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5365    break 2
5366  fi
5367done
5368done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5374if test -n "$ac_ct_LIPO"; then
5375  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5376echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5377else
5378  { echo "$as_me:$LINENO: result: no" >&5
5379echo "${ECHO_T}no" >&6; }
5380fi
5381
5382  if test "x$ac_ct_LIPO" = x; then
5383    LIPO=":"
5384  else
5385    case $cross_compiling:$ac_tool_warned in
5386yes:)
5387{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5388whose name does not start with the host triplet.  If you think this
5389configuration is useful to you, please write to autoconf@gnu.org." >&5
5390echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5391whose name does not start with the host triplet.  If you think this
5392configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5393ac_tool_warned=yes ;;
5394esac
5395    LIPO=$ac_ct_LIPO
5396  fi
5397else
5398  LIPO="$ac_cv_prog_LIPO"
5399fi
5400
5401    if test -n "$ac_tool_prefix"; then
5402  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5403set dummy ${ac_tool_prefix}otool; ac_word=$2
5404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5406if test "${ac_cv_prog_OTOOL+set}" = set; then
5407  echo $ECHO_N "(cached) $ECHO_C" >&6
5408else
5409  if test -n "$OTOOL"; then
5410  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415  IFS=$as_save_IFS
5416  test -z "$as_dir" && as_dir=.
5417  for ac_exec_ext in '' $ac_executable_extensions; do
5418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5420    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421    break 2
5422  fi
5423done
5424done
5425IFS=$as_save_IFS
5426
5427fi
5428fi
5429OTOOL=$ac_cv_prog_OTOOL
5430if test -n "$OTOOL"; then
5431  { echo "$as_me:$LINENO: result: $OTOOL" >&5
5432echo "${ECHO_T}$OTOOL" >&6; }
5433else
5434  { echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6; }
5436fi
5437
5438
5439fi
5440if test -z "$ac_cv_prog_OTOOL"; then
5441  ac_ct_OTOOL=$OTOOL
5442  # Extract the first word of "otool", so it can be a program name with args.
5443set dummy otool; ac_word=$2
5444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5446if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5447  echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449  if test -n "$ac_ct_OTOOL"; then
5450  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457  for ac_exec_ext in '' $ac_executable_extensions; do
5458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459    ac_cv_prog_ac_ct_OTOOL="otool"
5460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464done
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5470if test -n "$ac_ct_OTOOL"; then
5471  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5472echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5473else
5474  { echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6; }
5476fi
5477
5478  if test "x$ac_ct_OTOOL" = x; then
5479    OTOOL=":"
5480  else
5481    case $cross_compiling:$ac_tool_warned in
5482yes:)
5483{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5484whose name does not start with the host triplet.  If you think this
5485configuration is useful to you, please write to autoconf@gnu.org." >&5
5486echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5487whose name does not start with the host triplet.  If you think this
5488configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5489ac_tool_warned=yes ;;
5490esac
5491    OTOOL=$ac_ct_OTOOL
5492  fi
5493else
5494  OTOOL="$ac_cv_prog_OTOOL"
5495fi
5496
5497    if test -n "$ac_tool_prefix"; then
5498  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5499set dummy ${ac_tool_prefix}otool64; ac_word=$2
5500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5502if test "${ac_cv_prog_OTOOL64+set}" = set; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505  if test -n "$OTOOL64"; then
5506  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511  IFS=$as_save_IFS
5512  test -z "$as_dir" && as_dir=.
5513  for ac_exec_ext in '' $ac_executable_extensions; do
5514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517    break 2
5518  fi
5519done
5520done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525OTOOL64=$ac_cv_prog_OTOOL64
5526if test -n "$OTOOL64"; then
5527  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5528echo "${ECHO_T}$OTOOL64" >&6; }
5529else
5530  { echo "$as_me:$LINENO: result: no" >&5
5531echo "${ECHO_T}no" >&6; }
5532fi
5533
5534
5535fi
5536if test -z "$ac_cv_prog_OTOOL64"; then
5537  ac_ct_OTOOL64=$OTOOL64
5538  # Extract the first word of "otool64", so it can be a program name with args.
5539set dummy otool64; ac_word=$2
5540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5542if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  if test -n "$ac_ct_OTOOL64"; then
5546  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553  for ac_exec_ext in '' $ac_executable_extensions; do
5554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555    ac_cv_prog_ac_ct_OTOOL64="otool64"
5556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559done
5560done
5561IFS=$as_save_IFS
5562
5563fi
5564fi
5565ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5566if test -n "$ac_ct_OTOOL64"; then
5567  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5568echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
5569else
5570  { echo "$as_me:$LINENO: result: no" >&5
5571echo "${ECHO_T}no" >&6; }
5572fi
5573
5574  if test "x$ac_ct_OTOOL64" = x; then
5575    OTOOL64=":"
5576  else
5577    case $cross_compiling:$ac_tool_warned in
5578yes:)
5579{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5580whose name does not start with the host triplet.  If you think this
5581configuration is useful to you, please write to autoconf@gnu.org." >&5
5582echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5583whose name does not start with the host triplet.  If you think this
5584configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587    OTOOL64=$ac_ct_OTOOL64
5588  fi
5589else
5590  OTOOL64="$ac_cv_prog_OTOOL64"
5591fi
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5620echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
5621if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5622  echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624  lt_cv_apple_cc_single_mod=no
5625      if test -z "${LT_MULTI_MODULE}"; then
5626	# By default we will add the -single_module flag. You can override
5627	# by either setting the environment variable LT_MULTI_MODULE
5628	# non-empty at configure time, or by adding -multi_module to the
5629	# link flags.
5630	rm -rf libconftest.dylib*
5631	echo "int foo(void){return 1;}" > conftest.c
5632	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5633-dynamiclib -Wl,-single_module conftest.c" >&5
5634	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5635	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5636        _lt_result=$?
5637	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5638	  lt_cv_apple_cc_single_mod=yes
5639	else
5640	  cat conftest.err >&5
5641	fi
5642	rm -rf libconftest.dylib*
5643	rm -f conftest.*
5644      fi
5645fi
5646{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5647echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
5648    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5649echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
5650if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5651  echo $ECHO_N "(cached) $ECHO_C" >&6
5652else
5653  lt_cv_ld_exported_symbols_list=no
5654      save_LDFLAGS=$LDFLAGS
5655      echo "_main" > conftest.sym
5656      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5657      cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663
5664int
5665main ()
5666{
5667
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672rm -f conftest.$ac_objext conftest$ac_exeext
5673if { (ac_try="$ac_link"
5674case "(($ac_try" in
5675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676  *) ac_try_echo=$ac_try;;
5677esac
5678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679  (eval "$ac_link") 2>conftest.er1
5680  ac_status=$?
5681  grep -v '^ *+' conftest.er1 >conftest.err
5682  rm -f conftest.er1
5683  cat conftest.err >&5
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); } && {
5686	 test -z "$ac_c_werror_flag" ||
5687	 test ! -s conftest.err
5688       } && test -s conftest$ac_exeext &&
5689       $as_test_x conftest$ac_exeext; then
5690  lt_cv_ld_exported_symbols_list=yes
5691else
5692  echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695	lt_cv_ld_exported_symbols_list=no
5696fi
5697
5698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5699      conftest$ac_exeext conftest.$ac_ext
5700	LDFLAGS="$save_LDFLAGS"
5701
5702fi
5703{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5704echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
5705    case $host_os in
5706    rhapsody* | darwin1.[012])
5707      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5708    darwin1.*)
5709      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5710    darwin*) # darwin 5.x on
5711      # if running on 10.5 or later, the deployment target defaults
5712      # to the OS version, if on x86, and 10.4, the deployment
5713      # target defaults to 10.4. Don't you love it?
5714      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5715	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5716	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5717	10.[012]*)
5718	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5719	10.*)
5720	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5721      esac
5722    ;;
5723  esac
5724    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5725      _lt_dar_single_mod='$single_module'
5726    fi
5727    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5728      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5729    else
5730      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5731    fi
5732    if test "$DSYMUTIL" != ":"; then
5733      _lt_dsymutil='~$DSYMUTIL $lib || :'
5734    else
5735      _lt_dsymutil=
5736    fi
5737    ;;
5738  esac
5739
5740ac_ext=c
5741ac_cpp='$CPP $CPPFLAGS'
5742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744ac_compiler_gnu=$ac_cv_c_compiler_gnu
5745{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5746echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5747# On Suns, sometimes $CPP names a directory.
5748if test -n "$CPP" && test -d "$CPP"; then
5749  CPP=
5750fi
5751if test -z "$CPP"; then
5752  if test "${ac_cv_prog_CPP+set}" = set; then
5753  echo $ECHO_N "(cached) $ECHO_C" >&6
5754else
5755      # Double quotes because CPP needs to be expanded
5756    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5757    do
5758      ac_preproc_ok=false
5759for ac_c_preproc_warn_flag in '' yes
5760do
5761  # Use a header file that comes with gcc, so configuring glibc
5762  # with a fresh cross-compiler works.
5763  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5764  # <limits.h> exists even on freestanding compilers.
5765  # On the NeXT, cc -E runs the code through the compiler's parser,
5766  # not just through cpp. "Syntax error" is here to catch this case.
5767  cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773#ifdef __STDC__
5774# include <limits.h>
5775#else
5776# include <assert.h>
5777#endif
5778		     Syntax error
5779_ACEOF
5780if { (ac_try="$ac_cpp conftest.$ac_ext"
5781case "(($ac_try" in
5782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783  *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787  ac_status=$?
5788  grep -v '^ *+' conftest.er1 >conftest.err
5789  rm -f conftest.er1
5790  cat conftest.err >&5
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); } >/dev/null && {
5793	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5794	 test ! -s conftest.err
5795       }; then
5796  :
5797else
5798  echo "$as_me: failed program was:" >&5
5799sed 's/^/| /' conftest.$ac_ext >&5
5800
5801  # Broken: fails on valid input.
5802continue
5803fi
5804
5805rm -f conftest.err conftest.$ac_ext
5806
5807  # OK, works on sane cases.  Now check whether nonexistent headers
5808  # can be detected and how.
5809  cat >conftest.$ac_ext <<_ACEOF
5810/* confdefs.h.  */
5811_ACEOF
5812cat confdefs.h >>conftest.$ac_ext
5813cat >>conftest.$ac_ext <<_ACEOF
5814/* end confdefs.h.  */
5815#include <ac_nonexistent.h>
5816_ACEOF
5817if { (ac_try="$ac_cpp conftest.$ac_ext"
5818case "(($ac_try" in
5819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820  *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5824  ac_status=$?
5825  grep -v '^ *+' conftest.er1 >conftest.err
5826  rm -f conftest.er1
5827  cat conftest.err >&5
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); } >/dev/null && {
5830	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5831	 test ! -s conftest.err
5832       }; then
5833  # Broken: success on invalid input.
5834continue
5835else
5836  echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
5838
5839  # Passes both tests.
5840ac_preproc_ok=:
5841break
5842fi
5843
5844rm -f conftest.err conftest.$ac_ext
5845
5846done
5847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5848rm -f conftest.err conftest.$ac_ext
5849if $ac_preproc_ok; then
5850  break
5851fi
5852
5853    done
5854    ac_cv_prog_CPP=$CPP
5855
5856fi
5857  CPP=$ac_cv_prog_CPP
5858else
5859  ac_cv_prog_CPP=$CPP
5860fi
5861{ echo "$as_me:$LINENO: result: $CPP" >&5
5862echo "${ECHO_T}$CPP" >&6; }
5863ac_preproc_ok=false
5864for ac_c_preproc_warn_flag in '' yes
5865do
5866  # Use a header file that comes with gcc, so configuring glibc
5867  # with a fresh cross-compiler works.
5868  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5869  # <limits.h> exists even on freestanding compilers.
5870  # On the NeXT, cc -E runs the code through the compiler's parser,
5871  # not just through cpp. "Syntax error" is here to catch this case.
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878#ifdef __STDC__
5879# include <limits.h>
5880#else
5881# include <assert.h>
5882#endif
5883		     Syntax error
5884_ACEOF
5885if { (ac_try="$ac_cpp conftest.$ac_ext"
5886case "(($ac_try" in
5887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888  *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5892  ac_status=$?
5893  grep -v '^ *+' conftest.er1 >conftest.err
5894  rm -f conftest.er1
5895  cat conftest.err >&5
5896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897  (exit $ac_status); } >/dev/null && {
5898	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5899	 test ! -s conftest.err
5900       }; then
5901  :
5902else
5903  echo "$as_me: failed program was:" >&5
5904sed 's/^/| /' conftest.$ac_ext >&5
5905
5906  # Broken: fails on valid input.
5907continue
5908fi
5909
5910rm -f conftest.err conftest.$ac_ext
5911
5912  # OK, works on sane cases.  Now check whether nonexistent headers
5913  # can be detected and how.
5914  cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h.  */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h.  */
5920#include <ac_nonexistent.h>
5921_ACEOF
5922if { (ac_try="$ac_cpp conftest.$ac_ext"
5923case "(($ac_try" in
5924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925  *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5929  ac_status=$?
5930  grep -v '^ *+' conftest.er1 >conftest.err
5931  rm -f conftest.er1
5932  cat conftest.err >&5
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); } >/dev/null && {
5935	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5936	 test ! -s conftest.err
5937       }; then
5938  # Broken: success on invalid input.
5939continue
5940else
5941  echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
5943
5944  # Passes both tests.
5945ac_preproc_ok=:
5946break
5947fi
5948
5949rm -f conftest.err conftest.$ac_ext
5950
5951done
5952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5953rm -f conftest.err conftest.$ac_ext
5954if $ac_preproc_ok; then
5955  :
5956else
5957  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5958See \`config.log' for more details." >&5
5959echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5960See \`config.log' for more details." >&2;}
5961   { (exit 1); exit 1; }; }
5962fi
5963
5964ac_ext=c
5965ac_cpp='$CPP $CPPFLAGS'
5966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970
5971{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5972echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5973if test "${ac_cv_header_stdc+set}" = set; then
5974  echo $ECHO_N "(cached) $ECHO_C" >&6
5975else
5976  cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h.  */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h.  */
5982#include <stdlib.h>
5983#include <stdarg.h>
5984#include <string.h>
5985#include <float.h>
5986
5987int
5988main ()
5989{
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995rm -f conftest.$ac_objext
5996if { (ac_try="$ac_compile"
5997case "(($ac_try" in
5998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999  *) ac_try_echo=$ac_try;;
6000esac
6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002  (eval "$ac_compile") 2>conftest.er1
6003  ac_status=$?
6004  grep -v '^ *+' conftest.er1 >conftest.err
6005  rm -f conftest.er1
6006  cat conftest.err >&5
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } && {
6009	 test -z "$ac_c_werror_flag" ||
6010	 test ! -s conftest.err
6011       } && test -s conftest.$ac_objext; then
6012  ac_cv_header_stdc=yes
6013else
6014  echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017	ac_cv_header_stdc=no
6018fi
6019
6020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021
6022if test $ac_cv_header_stdc = yes; then
6023  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6024  cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h.  */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h.  */
6030#include <string.h>
6031
6032_ACEOF
6033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034  $EGREP "memchr" >/dev/null 2>&1; then
6035  :
6036else
6037  ac_cv_header_stdc=no
6038fi
6039rm -f -r conftest*
6040
6041fi
6042
6043if test $ac_cv_header_stdc = yes; then
6044  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6045  cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051#include <stdlib.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055  $EGREP "free" >/dev/null 2>&1; then
6056  :
6057else
6058  ac_cv_header_stdc=no
6059fi
6060rm -f -r conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6066  if test "$cross_compiling" = yes; then
6067  :
6068else
6069  cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h.  */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h.  */
6075#include <ctype.h>
6076#include <stdlib.h>
6077#if ((' ' & 0x0FF) == 0x020)
6078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6080#else
6081# define ISLOWER(c) \
6082		   (('a' <= (c) && (c) <= 'i') \
6083		     || ('j' <= (c) && (c) <= 'r') \
6084		     || ('s' <= (c) && (c) <= 'z'))
6085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086#endif
6087
6088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6089int
6090main ()
6091{
6092  int i;
6093  for (i = 0; i < 256; i++)
6094    if (XOR (islower (i), ISLOWER (i))
6095	|| toupper (i) != TOUPPER (i))
6096      return 2;
6097  return 0;
6098}
6099_ACEOF
6100rm -f conftest$ac_exeext
6101if { (ac_try="$ac_link"
6102case "(($ac_try" in
6103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104  *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107  (eval "$ac_link") 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6111  { (case "(($ac_try" in
6112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113  *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116  (eval "$ac_try") 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; }; then
6120  :
6121else
6122  echo "$as_me: program exited with status $ac_status" >&5
6123echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126( exit $ac_status )
6127ac_cv_header_stdc=no
6128fi
6129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6130fi
6131
6132
6133fi
6134fi
6135{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6136echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6137if test $ac_cv_header_stdc = yes; then
6138
6139cat >>confdefs.h <<\_ACEOF
6140#define STDC_HEADERS 1
6141_ACEOF
6142
6143fi
6144
6145# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6156		  inttypes.h stdint.h unistd.h
6157do
6158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170$ac_includes_default
6171
6172#include <$ac_header>
6173_ACEOF
6174rm -f conftest.$ac_objext
6175if { (ac_try="$ac_compile"
6176case "(($ac_try" in
6177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178  *) ac_try_echo=$ac_try;;
6179esac
6180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181  (eval "$ac_compile") 2>conftest.er1
6182  ac_status=$?
6183  grep -v '^ *+' conftest.er1 >conftest.err
6184  rm -f conftest.er1
6185  cat conftest.err >&5
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); } && {
6188	 test -z "$ac_c_werror_flag" ||
6189	 test ! -s conftest.err
6190       } && test -s conftest.$ac_objext; then
6191  eval "$as_ac_Header=yes"
6192else
6193  echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196	eval "$as_ac_Header=no"
6197fi
6198
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200fi
6201ac_res=`eval echo '${'$as_ac_Header'}'`
6202	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6203echo "${ECHO_T}$ac_res" >&6; }
6204if test `eval echo '${'$as_ac_Header'}'` = yes; then
6205  cat >>confdefs.h <<_ACEOF
6206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6207_ACEOF
6208
6209fi
6210
6211done
6212
6213
6214
6215for ac_header in dlfcn.h
6216do
6217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h.  */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h.  */
6229$ac_includes_default
6230
6231#include <$ac_header>
6232_ACEOF
6233rm -f conftest.$ac_objext
6234if { (ac_try="$ac_compile"
6235case "(($ac_try" in
6236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237  *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240  (eval "$ac_compile") 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } && {
6247	 test -z "$ac_c_werror_flag" ||
6248	 test ! -s conftest.err
6249       } && test -s conftest.$ac_objext; then
6250  eval "$as_ac_Header=yes"
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255	eval "$as_ac_Header=no"
6256fi
6257
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259fi
6260ac_res=`eval echo '${'$as_ac_Header'}'`
6261	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6262echo "${ECHO_T}$ac_res" >&6; }
6263if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264  cat >>confdefs.h <<_ACEOF
6265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266_ACEOF
6267
6268fi
6269
6270done
6271
6272
6273
6274# Set options
6275enable_win32_dll=yes
6276
6277case $host in
6278*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6279  if test -n "$ac_tool_prefix"; then
6280  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}as; ac_word=$2
6282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284if test "${ac_cv_prog_AS+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287  if test -n "$AS"; then
6288  ac_cv_prog_AS="$AS" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295  for ac_exec_ext in '' $ac_executable_extensions; do
6296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297    ac_cv_prog_AS="${ac_tool_prefix}as"
6298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307AS=$ac_cv_prog_AS
6308if test -n "$AS"; then
6309  { echo "$as_me:$LINENO: result: $AS" >&5
6310echo "${ECHO_T}$AS" >&6; }
6311else
6312  { echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_AS"; then
6319  ac_ct_AS=$AS
6320  # Extract the first word of "as", so it can be a program name with args.
6321set dummy as; ac_word=$2
6322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6325  echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327  if test -n "$ac_ct_AS"; then
6328  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335  for ac_exec_ext in '' $ac_executable_extensions; do
6336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337    ac_cv_prog_ac_ct_AS="as"
6338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_AS=$ac_cv_prog_ac_ct_AS
6348if test -n "$ac_ct_AS"; then
6349  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6350echo "${ECHO_T}$ac_ct_AS" >&6; }
6351else
6352  { echo "$as_me:$LINENO: result: no" >&5
6353echo "${ECHO_T}no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_AS" = x; then
6357    AS="false"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6362whose name does not start with the host triplet.  If you think this
6363configuration is useful to you, please write to autoconf@gnu.org." >&5
6364echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6365whose name does not start with the host triplet.  If you think this
6366configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6367ac_tool_warned=yes ;;
6368esac
6369    AS=$ac_ct_AS
6370  fi
6371else
6372  AS="$ac_cv_prog_AS"
6373fi
6374
6375  if test -n "$ac_tool_prefix"; then
6376  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  if test -n "$DLLTOOL"; then
6384  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399IFS=$as_save_IFS
6400
6401fi
6402fi
6403DLLTOOL=$ac_cv_prog_DLLTOOL
6404if test -n "$DLLTOOL"; then
6405  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6406echo "${ECHO_T}$DLLTOOL" >&6; }
6407else
6408  { echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6; }
6410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_DLLTOOL"; then
6415  ac_ct_DLLTOOL=$DLLTOOL
6416  # Extract the first word of "dlltool", so it can be a program name with args.
6417set dummy dlltool; ac_word=$2
6418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6421  echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423  if test -n "$ac_ct_DLLTOOL"; then
6424  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429  IFS=$as_save_IFS
6430  test -z "$as_dir" && as_dir=.
6431  for ac_exec_ext in '' $ac_executable_extensions; do
6432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435    break 2
6436  fi
6437done
6438done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6444if test -n "$ac_ct_DLLTOOL"; then
6445  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6446echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6447else
6448  { echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6; }
6450fi
6451
6452  if test "x$ac_ct_DLLTOOL" = x; then
6453    DLLTOOL="false"
6454  else
6455    case $cross_compiling:$ac_tool_warned in
6456yes:)
6457{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6458whose name does not start with the host triplet.  If you think this
6459configuration is useful to you, please write to autoconf@gnu.org." >&5
6460echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6461whose name does not start with the host triplet.  If you think this
6462configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6463ac_tool_warned=yes ;;
6464esac
6465    DLLTOOL=$ac_ct_DLLTOOL
6466  fi
6467else
6468  DLLTOOL="$ac_cv_prog_DLLTOOL"
6469fi
6470
6471  if test -n "$ac_tool_prefix"; then
6472  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6473set dummy ${ac_tool_prefix}objdump; ac_word=$2
6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6477  echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479  if test -n "$OBJDUMP"; then
6480  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487  for ac_exec_ext in '' $ac_executable_extensions; do
6488  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491    break 2
6492  fi
6493done
6494done
6495IFS=$as_save_IFS
6496
6497fi
6498fi
6499OBJDUMP=$ac_cv_prog_OBJDUMP
6500if test -n "$OBJDUMP"; then
6501  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6502echo "${ECHO_T}$OBJDUMP" >&6; }
6503else
6504  { echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6; }
6506fi
6507
6508
6509fi
6510if test -z "$ac_cv_prog_OBJDUMP"; then
6511  ac_ct_OBJDUMP=$OBJDUMP
6512  # Extract the first word of "objdump", so it can be a program name with args.
6513set dummy objdump; ac_word=$2
6514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519  if test -n "$ac_ct_OBJDUMP"; then
6520  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6521else
6522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523for as_dir in $PATH
6524do
6525  IFS=$as_save_IFS
6526  test -z "$as_dir" && as_dir=.
6527  for ac_exec_ext in '' $ac_executable_extensions; do
6528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531    break 2
6532  fi
6533done
6534done
6535IFS=$as_save_IFS
6536
6537fi
6538fi
6539ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6540if test -n "$ac_ct_OBJDUMP"; then
6541  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6542echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6543else
6544  { echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6; }
6546fi
6547
6548  if test "x$ac_ct_OBJDUMP" = x; then
6549    OBJDUMP="false"
6550  else
6551    case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6554whose name does not start with the host triplet.  If you think this
6555configuration is useful to you, please write to autoconf@gnu.org." >&5
6556echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6557whose name does not start with the host triplet.  If you think this
6558configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6559ac_tool_warned=yes ;;
6560esac
6561    OBJDUMP=$ac_ct_OBJDUMP
6562  fi
6563else
6564  OBJDUMP="$ac_cv_prog_OBJDUMP"
6565fi
6566
6567  ;;
6568esac
6569
6570test -z "$AS" && AS=as
6571
6572
6573
6574
6575
6576test -z "$DLLTOOL" && DLLTOOL=dlltool
6577
6578
6579
6580
6581
6582test -z "$OBJDUMP" && OBJDUMP=objdump
6583
6584
6585
6586
6587
6588
6589
6590        enable_dlopen=no
6591
6592
6593
6594            # Check whether --enable-shared was given.
6595if test "${enable_shared+set}" = set; then
6596  enableval=$enable_shared; p=${PACKAGE-default}
6597    case $enableval in
6598    yes) enable_shared=yes ;;
6599    no) enable_shared=no ;;
6600    *)
6601      enable_shared=no
6602      # Look at the argument we got.  We use all the common list separators.
6603      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6604      for pkg in $enableval; do
6605	IFS="$lt_save_ifs"
6606	if test "X$pkg" = "X$p"; then
6607	  enable_shared=yes
6608	fi
6609      done
6610      IFS="$lt_save_ifs"
6611      ;;
6612    esac
6613else
6614  enable_shared=yes
6615fi
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625  # Check whether --enable-static was given.
6626if test "${enable_static+set}" = set; then
6627  enableval=$enable_static; p=${PACKAGE-default}
6628    case $enableval in
6629    yes) enable_static=yes ;;
6630    no) enable_static=no ;;
6631    *)
6632     enable_static=no
6633      # Look at the argument we got.  We use all the common list separators.
6634      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6635      for pkg in $enableval; do
6636	IFS="$lt_save_ifs"
6637	if test "X$pkg" = "X$p"; then
6638	  enable_static=yes
6639	fi
6640      done
6641      IFS="$lt_save_ifs"
6642      ;;
6643    esac
6644else
6645  enable_static=yes
6646fi
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657# Check whether --with-pic was given.
6658if test "${with_pic+set}" = set; then
6659  withval=$with_pic; pic_mode="$withval"
6660else
6661  pic_mode=default
6662fi
6663
6664
6665test -z "$pic_mode" && pic_mode=default
6666
6667
6668
6669
6670
6671
6672
6673  # Check whether --enable-fast-install was given.
6674if test "${enable_fast_install+set}" = set; then
6675  enableval=$enable_fast_install; p=${PACKAGE-default}
6676    case $enableval in
6677    yes) enable_fast_install=yes ;;
6678    no) enable_fast_install=no ;;
6679    *)
6680      enable_fast_install=no
6681      # Look at the argument we got.  We use all the common list separators.
6682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6683      for pkg in $enableval; do
6684	IFS="$lt_save_ifs"
6685	if test "X$pkg" = "X$p"; then
6686	  enable_fast_install=yes
6687	fi
6688      done
6689      IFS="$lt_save_ifs"
6690      ;;
6691    esac
6692else
6693  enable_fast_install=yes
6694fi
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706# This can be used to rebuild libtool when needed
6707LIBTOOL_DEPS="$ltmain"
6708
6709# Always use our own libtool.
6710LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736test -z "$LN_S" && LN_S="ln -s"
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751if test -n "${ZSH_VERSION+set}" ; then
6752   setopt NO_GLOB_SUBST
6753fi
6754
6755{ echo "$as_me:$LINENO: checking for objdir" >&5
6756echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6757if test "${lt_cv_objdir+set}" = set; then
6758  echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760  rm -f .libs 2>/dev/null
6761mkdir .libs 2>/dev/null
6762if test -d .libs; then
6763  lt_cv_objdir=.libs
6764else
6765  # MS-DOS does not allow filenames that begin with a dot.
6766  lt_cv_objdir=_libs
6767fi
6768rmdir .libs 2>/dev/null
6769fi
6770{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6771echo "${ECHO_T}$lt_cv_objdir" >&6; }
6772objdir=$lt_cv_objdir
6773
6774
6775
6776
6777
6778cat >>confdefs.h <<_ACEOF
6779#define LT_OBJDIR "$lt_cv_objdir/"
6780_ACEOF
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798case $host_os in
6799aix3*)
6800  # AIX sometimes has problems with the GCC collect2 program.  For some
6801  # reason, if we set the COLLECT_NAMES environment variable, the problems
6802  # vanish in a puff of smoke.
6803  if test "X${COLLECT_NAMES+set}" != Xset; then
6804    COLLECT_NAMES=
6805    export COLLECT_NAMES
6806  fi
6807  ;;
6808esac
6809
6810# Sed substitution that helps us do robust quoting.  It backslashifies
6811# metacharacters that are still active within double-quoted strings.
6812sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6813
6814# Same as above, but do not quote variable references.
6815double_quote_subst='s/\(["`\\]\)/\\\1/g'
6816
6817# Sed substitution to delay expansion of an escaped shell variable in a
6818# double_quote_subst'ed string.
6819delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6820
6821# Sed substitution to delay expansion of an escaped single quote.
6822delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6823
6824# Sed substitution to avoid accidental globbing in evaled expressions
6825no_glob_subst='s/\*/\\\*/g'
6826
6827# Global variables:
6828ofile=libtool
6829can_build_shared=yes
6830
6831# All known linkers require a `.a' archive for static linking (except MSVC,
6832# which needs '.lib').
6833libext=a
6834
6835with_gnu_ld="$lt_cv_prog_gnu_ld"
6836
6837old_CC="$CC"
6838old_CFLAGS="$CFLAGS"
6839
6840# Set sane defaults for various variables
6841test -z "$CC" && CC=cc
6842test -z "$LTCC" && LTCC=$CC
6843test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6844test -z "$LD" && LD=ld
6845test -z "$ac_objext" && ac_objext=o
6846
6847for cc_temp in $compiler""; do
6848  case $cc_temp in
6849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6851    \-*) ;;
6852    *) break;;
6853  esac
6854done
6855cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6856
6857
6858# Only perform the check for file, if the check method requires it
6859test -z "$MAGIC_CMD" && MAGIC_CMD=file
6860case $deplibs_check_method in
6861file_magic*)
6862  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6863    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6864echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6866  echo $ECHO_N "(cached) $ECHO_C" >&6
6867else
6868  case $MAGIC_CMD in
6869[\\/*] |  ?:[\\/]*)
6870  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6871  ;;
6872*)
6873  lt_save_MAGIC_CMD="$MAGIC_CMD"
6874  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6875  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6876  for ac_dir in $ac_dummy; do
6877    IFS="$lt_save_ifs"
6878    test -z "$ac_dir" && ac_dir=.
6879    if test -f $ac_dir/${ac_tool_prefix}file; then
6880      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6881      if test -n "$file_magic_test_file"; then
6882	case $deplibs_check_method in
6883	"file_magic "*)
6884	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6885	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6886	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6887	    $EGREP "$file_magic_regex" > /dev/null; then
6888	    :
6889	  else
6890	    cat <<_LT_EOF 1>&2
6891
6892*** Warning: the command libtool uses to detect shared libraries,
6893*** $file_magic_cmd, produces output that libtool cannot recognize.
6894*** The result is that libtool may fail to recognize shared libraries
6895*** as such.  This will affect the creation of libtool libraries that
6896*** depend on shared libraries, but programs linked with such libtool
6897*** libraries will work regardless of this problem.  Nevertheless, you
6898*** may want to report the problem to your system manager and/or to
6899*** bug-libtool@gnu.org
6900
6901_LT_EOF
6902	  fi ;;
6903	esac
6904      fi
6905      break
6906    fi
6907  done
6908  IFS="$lt_save_ifs"
6909  MAGIC_CMD="$lt_save_MAGIC_CMD"
6910  ;;
6911esac
6912fi
6913
6914MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6915if test -n "$MAGIC_CMD"; then
6916  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6917echo "${ECHO_T}$MAGIC_CMD" >&6; }
6918else
6919  { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924
6925
6926
6927if test -z "$lt_cv_path_MAGIC_CMD"; then
6928  if test -n "$ac_tool_prefix"; then
6929    { echo "$as_me:$LINENO: checking for file" >&5
6930echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6931if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6932  echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934  case $MAGIC_CMD in
6935[\\/*] |  ?:[\\/]*)
6936  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6937  ;;
6938*)
6939  lt_save_MAGIC_CMD="$MAGIC_CMD"
6940  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6941  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6942  for ac_dir in $ac_dummy; do
6943    IFS="$lt_save_ifs"
6944    test -z "$ac_dir" && ac_dir=.
6945    if test -f $ac_dir/file; then
6946      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6947      if test -n "$file_magic_test_file"; then
6948	case $deplibs_check_method in
6949	"file_magic "*)
6950	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6951	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6952	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6953	    $EGREP "$file_magic_regex" > /dev/null; then
6954	    :
6955	  else
6956	    cat <<_LT_EOF 1>&2
6957
6958*** Warning: the command libtool uses to detect shared libraries,
6959*** $file_magic_cmd, produces output that libtool cannot recognize.
6960*** The result is that libtool may fail to recognize shared libraries
6961*** as such.  This will affect the creation of libtool libraries that
6962*** depend on shared libraries, but programs linked with such libtool
6963*** libraries will work regardless of this problem.  Nevertheless, you
6964*** may want to report the problem to your system manager and/or to
6965*** bug-libtool@gnu.org
6966
6967_LT_EOF
6968	  fi ;;
6969	esac
6970      fi
6971      break
6972    fi
6973  done
6974  IFS="$lt_save_ifs"
6975  MAGIC_CMD="$lt_save_MAGIC_CMD"
6976  ;;
6977esac
6978fi
6979
6980MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6981if test -n "$MAGIC_CMD"; then
6982  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6983echo "${ECHO_T}$MAGIC_CMD" >&6; }
6984else
6985  { echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6; }
6987fi
6988
6989
6990  else
6991    MAGIC_CMD=:
6992  fi
6993fi
6994
6995  fi
6996  ;;
6997esac
6998
6999# Use C for the default configuration in the libtool script
7000
7001lt_save_CC="$CC"
7002ac_ext=c
7003ac_cpp='$CPP $CPPFLAGS'
7004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7006ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007
7008
7009# Source file extension for C test sources.
7010ac_ext=c
7011
7012# Object file extension for compiled C test sources.
7013objext=o
7014objext=$objext
7015
7016# Code to be used in simple compile tests
7017lt_simple_compile_test_code="int some_variable = 0;"
7018
7019# Code to be used in simple link tests
7020lt_simple_link_test_code='int main(){return(0);}'
7021
7022
7023
7024
7025
7026
7027
7028# If no C compiler was specified, use CC.
7029LTCC=${LTCC-"$CC"}
7030
7031# If no C compiler flags were specified, use CFLAGS.
7032LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7033
7034# Allow CC to be a program name with arguments.
7035compiler=$CC
7036
7037# Save the default compiler, since it gets overwritten when the other
7038# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7039compiler_DEFAULT=$CC
7040
7041# save warnings/boilerplate of simple test code
7042ac_outfile=conftest.$ac_objext
7043echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7044eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7045_lt_compiler_boilerplate=`cat conftest.err`
7046$RM conftest*
7047
7048ac_outfile=conftest.$ac_objext
7049echo "$lt_simple_link_test_code" >conftest.$ac_ext
7050eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7051_lt_linker_boilerplate=`cat conftest.err`
7052$RM -r conftest*
7053
7054
7055## CAVEAT EMPTOR:
7056## There is no encapsulation within the following macros, do not change
7057## the running order or otherwise move them around unless you know exactly
7058## what you are doing...
7059if test -n "$compiler"; then
7060
7061lt_prog_compiler_no_builtin_flag=
7062
7063if test "$GCC" = yes; then
7064  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7065
7066  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7067echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7068if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071  lt_cv_prog_compiler_rtti_exceptions=no
7072   ac_outfile=conftest.$ac_objext
7073   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7074   lt_compiler_flag="-fno-rtti -fno-exceptions"
7075   # Insert the option either (1) after the last *FLAGS variable, or
7076   # (2) before a word containing "conftest.", or (3) at the end.
7077   # Note that $ac_compile itself does not contain backslashes and begins
7078   # with a dollar sign (not a hyphen), so the echo should work correctly.
7079   # The option is referenced via a variable to avoid confusing sed.
7080   lt_compile=`echo "$ac_compile" | $SED \
7081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7083   -e 's:$: $lt_compiler_flag:'`
7084   (eval echo "\"\$as_me:7084: $lt_compile\"" >&5)
7085   (eval "$lt_compile" 2>conftest.err)
7086   ac_status=$?
7087   cat conftest.err >&5
7088   echo "$as_me:7088: \$? = $ac_status" >&5
7089   if (exit $ac_status) && test -s "$ac_outfile"; then
7090     # The compiler can only warn and ignore the option if not recognized
7091     # So say no if there are warnings other than the usual output.
7092     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7093     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7094     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7095       lt_cv_prog_compiler_rtti_exceptions=yes
7096     fi
7097   fi
7098   $RM conftest*
7099
7100fi
7101{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7102echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7103
7104if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7105    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7106else
7107    :
7108fi
7109
7110fi
7111
7112
7113
7114
7115
7116
7117  lt_prog_compiler_wl=
7118lt_prog_compiler_pic=
7119lt_prog_compiler_static=
7120
7121{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7123
7124  if test "$GCC" = yes; then
7125    lt_prog_compiler_wl='-Wl,'
7126    lt_prog_compiler_static='-static'
7127
7128    case $host_os in
7129      aix*)
7130      # All AIX code is PIC.
7131      if test "$host_cpu" = ia64; then
7132	# AIX 5 now supports IA64 processor
7133	lt_prog_compiler_static='-Bstatic'
7134      fi
7135      ;;
7136
7137    amigaos*)
7138      case $host_cpu in
7139      powerpc)
7140            # see comment about AmigaOS4 .so support
7141            lt_prog_compiler_pic='-fPIC'
7142        ;;
7143      m68k)
7144            # FIXME: we need at least 68020 code to build shared libraries, but
7145            # adding the `-m68020' flag to GCC prevents building anything better,
7146            # like `-m68040'.
7147            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7148        ;;
7149      esac
7150      ;;
7151
7152    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7153      # PIC is the default for these OSes.
7154      ;;
7155
7156    mingw* | cygwin* | pw32* | os2* | cegcc*)
7157      # This hack is so that the source file can tell whether it is being
7158      # built for inclusion in a dll (and should export symbols for example).
7159      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7160      # (--disable-auto-import) libraries
7161      lt_prog_compiler_pic='-DDLL_EXPORT'
7162      ;;
7163
7164    darwin* | rhapsody*)
7165      # PIC is the default on this platform
7166      # Common symbols not allowed in MH_DYLIB files
7167      lt_prog_compiler_pic='-fno-common'
7168      ;;
7169
7170    hpux*)
7171      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7172      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7173      # sets the default TLS model and affects inlining.
7174      case $host_cpu in
7175      hppa*64*)
7176	# +Z the default
7177	;;
7178      *)
7179	lt_prog_compiler_pic='-fPIC'
7180	;;
7181      esac
7182      ;;
7183
7184    interix[3-9]*)
7185      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7186      # Instead, we relocate shared libraries at runtime.
7187      ;;
7188
7189    msdosdjgpp*)
7190      # Just because we use GCC doesn't mean we suddenly get shared libraries
7191      # on systems that don't support them.
7192      lt_prog_compiler_can_build_shared=no
7193      enable_shared=no
7194      ;;
7195
7196    *nto* | *qnx*)
7197      # QNX uses GNU C++, but need to define -shared option too, otherwise
7198      # it will coredump.
7199      lt_prog_compiler_pic='-fPIC -shared'
7200      ;;
7201
7202    sysv4*MP*)
7203      if test -d /usr/nec; then
7204	lt_prog_compiler_pic=-Kconform_pic
7205      fi
7206      ;;
7207
7208    *)
7209      lt_prog_compiler_pic='-fPIC'
7210      ;;
7211    esac
7212  else
7213    # PORTME Check for flag to pass linker flags through the system compiler.
7214    case $host_os in
7215    aix*)
7216      lt_prog_compiler_wl='-Wl,'
7217      if test "$host_cpu" = ia64; then
7218	# AIX 5 now supports IA64 processor
7219	lt_prog_compiler_static='-Bstatic'
7220      else
7221	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7222      fi
7223      ;;
7224
7225    mingw* | cygwin* | pw32* | os2* | cegcc*)
7226      # This hack is so that the source file can tell whether it is being
7227      # built for inclusion in a dll (and should export symbols for example).
7228      lt_prog_compiler_pic='-DDLL_EXPORT'
7229      ;;
7230
7231    hpux9* | hpux10* | hpux11*)
7232      lt_prog_compiler_wl='-Wl,'
7233      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234      # not for PA HP-UX.
7235      case $host_cpu in
7236      hppa*64*|ia64*)
7237	# +Z the default
7238	;;
7239      *)
7240	lt_prog_compiler_pic='+Z'
7241	;;
7242      esac
7243      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7244      lt_prog_compiler_static='${wl}-a ${wl}archive'
7245      ;;
7246
7247    irix5* | irix6* | nonstopux*)
7248      lt_prog_compiler_wl='-Wl,'
7249      # PIC (with -KPIC) is the default.
7250      lt_prog_compiler_static='-non_shared'
7251      ;;
7252
7253    linux* | k*bsd*-gnu)
7254      case $cc_basename in
7255      # old Intel for x86_64 which still supported -KPIC.
7256      ecc*)
7257	lt_prog_compiler_wl='-Wl,'
7258	lt_prog_compiler_pic='-KPIC'
7259	lt_prog_compiler_static='-static'
7260        ;;
7261      # icc used to be incompatible with GCC.
7262      # ICC 10 doesn't accept -KPIC any more.
7263      icc* | ifort*)
7264	lt_prog_compiler_wl='-Wl,'
7265	lt_prog_compiler_pic='-fPIC'
7266	lt_prog_compiler_static='-static'
7267        ;;
7268      # Lahey Fortran 8.1.
7269      lf95*)
7270	lt_prog_compiler_wl='-Wl,'
7271	lt_prog_compiler_pic='--shared'
7272	lt_prog_compiler_static='--static'
7273	;;
7274      pgcc* | pgf77* | pgf90* | pgf95*)
7275        # Portland Group compilers (*not* the Pentium gcc compiler,
7276	# which looks to be a dead project)
7277	lt_prog_compiler_wl='-Wl,'
7278	lt_prog_compiler_pic='-fpic'
7279	lt_prog_compiler_static='-Bstatic'
7280        ;;
7281      ccc*)
7282        lt_prog_compiler_wl='-Wl,'
7283        # All Alpha code is PIC.
7284        lt_prog_compiler_static='-non_shared'
7285        ;;
7286      xl*)
7287	# IBM XL C 8.0/Fortran 10.1 on PPC
7288	lt_prog_compiler_wl='-Wl,'
7289	lt_prog_compiler_pic='-qpic'
7290	lt_prog_compiler_static='-qstaticlink'
7291	;;
7292      *)
7293	case `$CC -V 2>&1 | sed 5q` in
7294	*Sun\ C*)
7295	  # Sun C 5.9
7296	  lt_prog_compiler_pic='-KPIC'
7297	  lt_prog_compiler_static='-Bstatic'
7298	  lt_prog_compiler_wl='-Wl,'
7299	  ;;
7300	*Sun\ F*)
7301	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7302	  lt_prog_compiler_pic='-KPIC'
7303	  lt_prog_compiler_static='-Bstatic'
7304	  lt_prog_compiler_wl=''
7305	  ;;
7306	esac
7307	;;
7308      esac
7309      ;;
7310
7311    newsos6)
7312      lt_prog_compiler_pic='-KPIC'
7313      lt_prog_compiler_static='-Bstatic'
7314      ;;
7315
7316    *nto* | *qnx*)
7317      # QNX uses GNU C++, but need to define -shared option too, otherwise
7318      # it will coredump.
7319      lt_prog_compiler_pic='-fPIC -shared'
7320      ;;
7321
7322    osf3* | osf4* | osf5*)
7323      lt_prog_compiler_wl='-Wl,'
7324      # All OSF/1 code is PIC.
7325      lt_prog_compiler_static='-non_shared'
7326      ;;
7327
7328    rdos*)
7329      lt_prog_compiler_static='-non_shared'
7330      ;;
7331
7332    solaris*)
7333      lt_prog_compiler_pic='-KPIC'
7334      lt_prog_compiler_static='-Bstatic'
7335      case $cc_basename in
7336      f77* | f90* | f95*)
7337	lt_prog_compiler_wl='-Qoption ld ';;
7338      *)
7339	lt_prog_compiler_wl='-Wl,';;
7340      esac
7341      ;;
7342
7343    sunos4*)
7344      lt_prog_compiler_wl='-Qoption ld '
7345      lt_prog_compiler_pic='-PIC'
7346      lt_prog_compiler_static='-Bstatic'
7347      ;;
7348
7349    sysv4 | sysv4.2uw2* | sysv4.3*)
7350      lt_prog_compiler_wl='-Wl,'
7351      lt_prog_compiler_pic='-KPIC'
7352      lt_prog_compiler_static='-Bstatic'
7353      ;;
7354
7355    sysv4*MP*)
7356      if test -d /usr/nec ;then
7357	lt_prog_compiler_pic='-Kconform_pic'
7358	lt_prog_compiler_static='-Bstatic'
7359      fi
7360      ;;
7361
7362    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7363      lt_prog_compiler_wl='-Wl,'
7364      lt_prog_compiler_pic='-KPIC'
7365      lt_prog_compiler_static='-Bstatic'
7366      ;;
7367
7368    unicos*)
7369      lt_prog_compiler_wl='-Wl,'
7370      lt_prog_compiler_can_build_shared=no
7371      ;;
7372
7373    uts4*)
7374      lt_prog_compiler_pic='-pic'
7375      lt_prog_compiler_static='-Bstatic'
7376      ;;
7377
7378    *)
7379      lt_prog_compiler_can_build_shared=no
7380      ;;
7381    esac
7382  fi
7383
7384case $host_os in
7385  # For platforms which do not support PIC, -DPIC is meaningless:
7386  *djgpp*)
7387    lt_prog_compiler_pic=
7388    ;;
7389  *)
7390    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7391    ;;
7392esac
7393{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7394echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7395
7396
7397
7398
7399
7400
7401#
7402# Check to make sure the PIC flag actually works.
7403#
7404if test -n "$lt_prog_compiler_pic"; then
7405  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7406echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7407if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7408  echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
7410  lt_cv_prog_compiler_pic_works=no
7411   ac_outfile=conftest.$ac_objext
7412   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7413   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7414   # Insert the option either (1) after the last *FLAGS variable, or
7415   # (2) before a word containing "conftest.", or (3) at the end.
7416   # Note that $ac_compile itself does not contain backslashes and begins
7417   # with a dollar sign (not a hyphen), so the echo should work correctly.
7418   # The option is referenced via a variable to avoid confusing sed.
7419   lt_compile=`echo "$ac_compile" | $SED \
7420   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7422   -e 's:$: $lt_compiler_flag:'`
7423   (eval echo "\"\$as_me:7423: $lt_compile\"" >&5)
7424   (eval "$lt_compile" 2>conftest.err)
7425   ac_status=$?
7426   cat conftest.err >&5
7427   echo "$as_me:7427: \$? = $ac_status" >&5
7428   if (exit $ac_status) && test -s "$ac_outfile"; then
7429     # The compiler can only warn and ignore the option if not recognized
7430     # So say no if there are warnings other than the usual output.
7431     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7432     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7433     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7434       lt_cv_prog_compiler_pic_works=yes
7435     fi
7436   fi
7437   $RM conftest*
7438
7439fi
7440{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7441echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7442
7443if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7444    case $lt_prog_compiler_pic in
7445     "" | " "*) ;;
7446     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7447     esac
7448else
7449    lt_prog_compiler_pic=
7450     lt_prog_compiler_can_build_shared=no
7451fi
7452
7453fi
7454
7455
7456
7457
7458
7459
7460#
7461# Check to make sure the static flag actually works.
7462#
7463wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7464{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7465echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7466if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7467  echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469  lt_cv_prog_compiler_static_works=no
7470   save_LDFLAGS="$LDFLAGS"
7471   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7472   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7473   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7474     # The linker can only warn and ignore the option if not recognized
7475     # So say no if there are warnings
7476     if test -s conftest.err; then
7477       # Append any errors to the config.log.
7478       cat conftest.err 1>&5
7479       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7480       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7481       if diff conftest.exp conftest.er2 >/dev/null; then
7482         lt_cv_prog_compiler_static_works=yes
7483       fi
7484     else
7485       lt_cv_prog_compiler_static_works=yes
7486     fi
7487   fi
7488   $RM -r conftest*
7489   LDFLAGS="$save_LDFLAGS"
7490
7491fi
7492{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7493echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7494
7495if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7496    :
7497else
7498    lt_prog_compiler_static=
7499fi
7500
7501
7502
7503
7504
7505
7506
7507  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7508echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7509if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7510  echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512  lt_cv_prog_compiler_c_o=no
7513   $RM -r conftest 2>/dev/null
7514   mkdir conftest
7515   cd conftest
7516   mkdir out
7517   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7518
7519   lt_compiler_flag="-o out/conftest2.$ac_objext"
7520   # Insert the option either (1) after the last *FLAGS variable, or
7521   # (2) before a word containing "conftest.", or (3) at the end.
7522   # Note that $ac_compile itself does not contain backslashes and begins
7523   # with a dollar sign (not a hyphen), so the echo should work correctly.
7524   lt_compile=`echo "$ac_compile" | $SED \
7525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7527   -e 's:$: $lt_compiler_flag:'`
7528   (eval echo "\"\$as_me:7528: $lt_compile\"" >&5)
7529   (eval "$lt_compile" 2>out/conftest.err)
7530   ac_status=$?
7531   cat out/conftest.err >&5
7532   echo "$as_me:7532: \$? = $ac_status" >&5
7533   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7534   then
7535     # The compiler can only warn and ignore the option if not recognized
7536     # So say no if there are warnings
7537     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7538     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7539     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7540       lt_cv_prog_compiler_c_o=yes
7541     fi
7542   fi
7543   chmod u+w . 2>&5
7544   $RM conftest*
7545   # SGI C++ compiler will create directory out/ii_files/ for
7546   # template instantiation
7547   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7548   $RM out/* && rmdir out
7549   cd ..
7550   $RM -r conftest
7551   $RM conftest*
7552
7553fi
7554{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7555echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7556
7557
7558
7559
7560
7561
7562  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7563echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7564if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  lt_cv_prog_compiler_c_o=no
7568   $RM -r conftest 2>/dev/null
7569   mkdir conftest
7570   cd conftest
7571   mkdir out
7572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7573
7574   lt_compiler_flag="-o out/conftest2.$ac_objext"
7575   # Insert the option either (1) after the last *FLAGS variable, or
7576   # (2) before a word containing "conftest.", or (3) at the end.
7577   # Note that $ac_compile itself does not contain backslashes and begins
7578   # with a dollar sign (not a hyphen), so the echo should work correctly.
7579   lt_compile=`echo "$ac_compile" | $SED \
7580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582   -e 's:$: $lt_compiler_flag:'`
7583   (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584   (eval "$lt_compile" 2>out/conftest.err)
7585   ac_status=$?
7586   cat out/conftest.err >&5
7587   echo "$as_me:7587: \$? = $ac_status" >&5
7588   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7589   then
7590     # The compiler can only warn and ignore the option if not recognized
7591     # So say no if there are warnings
7592     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7593     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7594     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7595       lt_cv_prog_compiler_c_o=yes
7596     fi
7597   fi
7598   chmod u+w . 2>&5
7599   $RM conftest*
7600   # SGI C++ compiler will create directory out/ii_files/ for
7601   # template instantiation
7602   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7603   $RM out/* && rmdir out
7604   cd ..
7605   $RM -r conftest
7606   $RM conftest*
7607
7608fi
7609{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7610echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7611
7612
7613
7614
7615hard_links="nottested"
7616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7617  # do not overwrite the value of need_locks provided by the user
7618  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7620  hard_links=yes
7621  $RM conftest*
7622  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7623  touch conftest.a
7624  ln conftest.a conftest.b 2>&5 || hard_links=no
7625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7626  { echo "$as_me:$LINENO: result: $hard_links" >&5
7627echo "${ECHO_T}$hard_links" >&6; }
7628  if test "$hard_links" = no; then
7629    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7631    need_locks=warn
7632  fi
7633else
7634  need_locks=no
7635fi
7636
7637
7638
7639
7640
7641
7642  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7643echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7644
7645  runpath_var=
7646  allow_undefined_flag=
7647  always_export_symbols=no
7648  archive_cmds=
7649  archive_expsym_cmds=
7650  compiler_needs_object=no
7651  enable_shared_with_static_runtimes=no
7652  export_dynamic_flag_spec=
7653  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7654  hardcode_automatic=no
7655  hardcode_direct=no
7656  hardcode_direct_absolute=no
7657  hardcode_libdir_flag_spec=
7658  hardcode_libdir_flag_spec_ld=
7659  hardcode_libdir_separator=
7660  hardcode_minus_L=no
7661  hardcode_shlibpath_var=unsupported
7662  inherit_rpath=no
7663  link_all_deplibs=unknown
7664  module_cmds=
7665  module_expsym_cmds=
7666  old_archive_from_new_cmds=
7667  old_archive_from_expsyms_cmds=
7668  thread_safe_flag_spec=
7669  whole_archive_flag_spec=
7670  # include_expsyms should be a list of space-separated symbols to be *always*
7671  # included in the symbol list
7672  include_expsyms=
7673  # exclude_expsyms can be an extended regexp of symbols to exclude
7674  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7675  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7676  # as well as any symbol that contains `d'.
7677  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7678  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7679  # platforms (ab)use it in PIC code, but their linkers get confused if
7680  # the symbol is explicitly referenced.  Since portable code cannot
7681  # rely on this symbol name, it's probably fine to never include it in
7682  # preloaded symbol tables.
7683  # Exclude shared library initialization/finalization symbols.
7684  extract_expsyms_cmds=
7685
7686  case $host_os in
7687  cygwin* | mingw* | pw32* | cegcc*)
7688    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7689    # When not using gcc, we currently assume that we are using
7690    # Microsoft Visual C++.
7691    if test "$GCC" != yes; then
7692      with_gnu_ld=no
7693    fi
7694    ;;
7695  interix*)
7696    # we just hope/assume this is gcc and not c89 (= MSVC++)
7697    with_gnu_ld=yes
7698    ;;
7699  openbsd*)
7700    with_gnu_ld=no
7701    ;;
7702  esac
7703
7704  ld_shlibs=yes
7705  if test "$with_gnu_ld" = yes; then
7706    # If archive_cmds runs LD, not CC, wlarc should be empty
7707    wlarc='${wl}'
7708
7709    # Set some defaults for GNU ld with shared library support. These
7710    # are reset later if shared libraries are not supported. Putting them
7711    # here allows them to be overridden if necessary.
7712    runpath_var=LD_RUN_PATH
7713    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7714    export_dynamic_flag_spec='${wl}--export-dynamic'
7715    # ancient GNU ld didn't support --whole-archive et. al.
7716    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7717      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7718    else
7719      whole_archive_flag_spec=
7720    fi
7721    supports_anon_versioning=no
7722    case `$LD -v 2>&1` in
7723      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7724      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7725      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7726      *\ 2.11.*) ;; # other 2.11 versions
7727      *) supports_anon_versioning=yes ;;
7728    esac
7729
7730    # See if GNU ld supports shared libraries.
7731    case $host_os in
7732    aix[3-9]*)
7733      # On AIX/PPC, the GNU linker is very broken
7734      if test "$host_cpu" != ia64; then
7735	ld_shlibs=no
7736	cat <<_LT_EOF 1>&2
7737
7738*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7739*** to be unable to reliably create shared libraries on AIX.
7740*** Therefore, libtool is disabling shared libraries support.  If you
7741*** really care for shared libraries, you may want to modify your PATH
7742*** so that a non-GNU linker is found, and then restart.
7743
7744_LT_EOF
7745      fi
7746      ;;
7747
7748    amigaos*)
7749      case $host_cpu in
7750      powerpc)
7751            # see comment about AmigaOS4 .so support
7752            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7753            archive_expsym_cmds=''
7754        ;;
7755      m68k)
7756            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)'
7757            hardcode_libdir_flag_spec='-L$libdir'
7758            hardcode_minus_L=yes
7759        ;;
7760      esac
7761      ;;
7762
7763    beos*)
7764      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7765	allow_undefined_flag=unsupported
7766	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7767	# support --undefined.  This deserves some investigation.  FIXME
7768	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7769      else
7770	ld_shlibs=no
7771      fi
7772      ;;
7773
7774    cygwin* | mingw* | pw32* | cegcc*)
7775      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7776      # as there is no search path for DLLs.
7777      hardcode_libdir_flag_spec='-L$libdir'
7778      allow_undefined_flag=unsupported
7779      always_export_symbols=no
7780      enable_shared_with_static_runtimes=yes
7781      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7782
7783      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7784        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7785	# If the export-symbols file already is a .def file (1st line
7786	# is EXPORTS), use it as is; otherwise, prepend...
7787	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7788	  cp $export_symbols $output_objdir/$soname.def;
7789	else
7790	  echo EXPORTS > $output_objdir/$soname.def;
7791	  cat $export_symbols >> $output_objdir/$soname.def;
7792	fi~
7793	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7794      else
7795	ld_shlibs=no
7796      fi
7797      ;;
7798
7799    interix[3-9]*)
7800      hardcode_direct=no
7801      hardcode_shlibpath_var=no
7802      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7803      export_dynamic_flag_spec='${wl}-E'
7804      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7805      # Instead, shared libraries are loaded at an image base (0x10000000 by
7806      # default) and relocated if they conflict, which is a slow very memory
7807      # consuming and fragmenting process.  To avoid this, we pick a random,
7808      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7809      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7810      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7811      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'
7812      ;;
7813
7814    gnu* | linux* | tpf* | k*bsd*-gnu)
7815      tmp_diet=no
7816      if test "$host_os" = linux-dietlibc; then
7817	case $cc_basename in
7818	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
7819	esac
7820      fi
7821      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7822	 && test "$tmp_diet" = no
7823      then
7824	tmp_addflag=
7825	tmp_sharedflag='-shared'
7826	case $cc_basename,$host_cpu in
7827        pgcc*)				# Portland Group C compiler
7828	  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'
7829	  tmp_addflag=' $pic_flag'
7830	  ;;
7831	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7832	  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'
7833	  tmp_addflag=' $pic_flag -Mnomain' ;;
7834	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
7835	  tmp_addflag=' -i_dynamic' ;;
7836	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7837	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7838	ifc* | ifort*)			# Intel Fortran compiler
7839	  tmp_addflag=' -nofor_main' ;;
7840	lf95*)				# Lahey Fortran 8.1
7841	  whole_archive_flag_spec=
7842	  tmp_sharedflag='--shared' ;;
7843	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
7844	  tmp_sharedflag='-qmkshrobj'
7845	  tmp_addflag= ;;
7846	esac
7847	case `$CC -V 2>&1 | sed 5q` in
7848	*Sun\ C*)			# Sun C 5.9
7849	  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'
7850	  compiler_needs_object=yes
7851	  tmp_sharedflag='-G' ;;
7852	*Sun\ F*)			# Sun Fortran 8.3
7853	  tmp_sharedflag='-G' ;;
7854	esac
7855	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7856
7857        if test "x$supports_anon_versioning" = xyes; then
7858          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7859	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7860	    echo "local: *; };" >> $output_objdir/$libname.ver~
7861	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7862        fi
7863
7864	case $cc_basename in
7865	xlf*)
7866	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7867	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7868	  hardcode_libdir_flag_spec=
7869	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
7870	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7871	  if test "x$supports_anon_versioning" = xyes; then
7872	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7873	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7874	      echo "local: *; };" >> $output_objdir/$libname.ver~
7875	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7876	  fi
7877	  ;;
7878	esac
7879      else
7880        ld_shlibs=no
7881      fi
7882      ;;
7883
7884    netbsd*)
7885      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7886	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7887	wlarc=
7888      else
7889	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7890	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7891      fi
7892      ;;
7893
7894    solaris*)
7895      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7896	ld_shlibs=no
7897	cat <<_LT_EOF 1>&2
7898
7899*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7900*** create shared libraries on Solaris systems.  Therefore, libtool
7901*** is disabling shared libraries support.  We urge you to upgrade GNU
7902*** binutils to release 2.9.1 or newer.  Another option is to modify
7903*** your PATH or compiler configuration so that the native linker is
7904*** used, and then restart.
7905
7906_LT_EOF
7907      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7908	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7909	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7910      else
7911	ld_shlibs=no
7912      fi
7913      ;;
7914
7915    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7916      case `$LD -v 2>&1` in
7917        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7918	ld_shlibs=no
7919	cat <<_LT_EOF 1>&2
7920
7921*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7922*** reliably create shared libraries on SCO systems.  Therefore, libtool
7923*** is disabling shared libraries support.  We urge you to upgrade GNU
7924*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7925*** your PATH or compiler configuration so that the native linker is
7926*** used, and then restart.
7927
7928_LT_EOF
7929	;;
7930	*)
7931	  # For security reasons, it is highly recommended that you always
7932	  # use absolute paths for naming shared libraries, and exclude the
7933	  # DT_RUNPATH tag from executables and libraries.  But doing so
7934	  # requires that you compile everything twice, which is a pain.
7935	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7936	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7937	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7938	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7939	  else
7940	    ld_shlibs=no
7941	  fi
7942	;;
7943      esac
7944      ;;
7945
7946    sunos4*)
7947      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7948      wlarc=
7949      hardcode_direct=yes
7950      hardcode_shlibpath_var=no
7951      ;;
7952
7953    *)
7954      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7955	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7956	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7957      else
7958	ld_shlibs=no
7959      fi
7960      ;;
7961    esac
7962
7963    if test "$ld_shlibs" = no; then
7964      runpath_var=
7965      hardcode_libdir_flag_spec=
7966      export_dynamic_flag_spec=
7967      whole_archive_flag_spec=
7968    fi
7969  else
7970    # PORTME fill in a description of your system's linker (not GNU ld)
7971    case $host_os in
7972    aix3*)
7973      allow_undefined_flag=unsupported
7974      always_export_symbols=yes
7975      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'
7976      # Note: this linker hardcodes the directories in LIBPATH if there
7977      # are no directories specified by -L.
7978      hardcode_minus_L=yes
7979      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7980	# Neither direct hardcoding nor static linking is supported with a
7981	# broken collect2.
7982	hardcode_direct=unsupported
7983      fi
7984      ;;
7985
7986    aix[4-9]*)
7987      if test "$host_cpu" = ia64; then
7988	# On IA64, the linker does run time linking by default, so we don't
7989	# have to do anything special.
7990	aix_use_runtimelinking=no
7991	exp_sym_flag='-Bexport'
7992	no_entry_flag=""
7993      else
7994	# If we're using GNU nm, then we don't want the "-C" option.
7995	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7996	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7997	  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'
7998	else
7999	  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'
8000	fi
8001	aix_use_runtimelinking=no
8002
8003	# Test if we are trying to use run time linking or normal
8004	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8005	# need to do runtime linking.
8006	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8007	  for ld_flag in $LDFLAGS; do
8008	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8009	    aix_use_runtimelinking=yes
8010	    break
8011	  fi
8012	  done
8013	  ;;
8014	esac
8015
8016	exp_sym_flag='-bexport'
8017	no_entry_flag='-bnoentry'
8018      fi
8019
8020      # When large executables or shared objects are built, AIX ld can
8021      # have problems creating the table of contents.  If linking a library
8022      # or program results in "error TOC overflow" add -mminimal-toc to
8023      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8024      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8025
8026      archive_cmds=''
8027      hardcode_direct=yes
8028      hardcode_direct_absolute=yes
8029      hardcode_libdir_separator=':'
8030      link_all_deplibs=yes
8031      file_list_spec='${wl}-f,'
8032
8033      if test "$GCC" = yes; then
8034	case $host_os in aix4.[012]|aix4.[012].*)
8035	# We only want to do this on AIX 4.2 and lower, the check
8036	# below for broken collect2 doesn't work under 4.3+
8037	  collect2name=`${CC} -print-prog-name=collect2`
8038	  if test -f "$collect2name" &&
8039	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8040	  then
8041	  # We have reworked collect2
8042	  :
8043	  else
8044	  # We have old collect2
8045	  hardcode_direct=unsupported
8046	  # It fails to find uninstalled libraries when the uninstalled
8047	  # path is not listed in the libpath.  Setting hardcode_minus_L
8048	  # to unsupported forces relinking
8049	  hardcode_minus_L=yes
8050	  hardcode_libdir_flag_spec='-L$libdir'
8051	  hardcode_libdir_separator=
8052	  fi
8053	  ;;
8054	esac
8055	shared_flag='-shared'
8056	if test "$aix_use_runtimelinking" = yes; then
8057	  shared_flag="$shared_flag "'${wl}-G'
8058	fi
8059      else
8060	# not using gcc
8061	if test "$host_cpu" = ia64; then
8062	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8063	# chokes on -Wl,-G. The following line is correct:
8064	  shared_flag='-G'
8065	else
8066	  if test "$aix_use_runtimelinking" = yes; then
8067	    shared_flag='${wl}-G'
8068	  else
8069	    shared_flag='${wl}-bM:SRE'
8070	  fi
8071	fi
8072      fi
8073
8074      export_dynamic_flag_spec='${wl}-bexpall'
8075      # It seems that -bexpall does not export symbols beginning with
8076      # underscore (_), so it is better to generate a list of symbols to export.
8077      always_export_symbols=yes
8078      if test "$aix_use_runtimelinking" = yes; then
8079	# Warning - without using the other runtime loading flags (-brtl),
8080	# -berok will link without error, but may produce a broken library.
8081	allow_undefined_flag='-berok'
8082        # Determine the default libpath from the value encoded in an
8083        # empty executable.
8084        cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h.  */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h.  */
8090
8091int
8092main ()
8093{
8094
8095  ;
8096  return 0;
8097}
8098_ACEOF
8099rm -f conftest.$ac_objext conftest$ac_exeext
8100if { (ac_try="$ac_link"
8101case "(($ac_try" in
8102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103  *) ac_try_echo=$ac_try;;
8104esac
8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106  (eval "$ac_link") 2>conftest.er1
8107  ac_status=$?
8108  grep -v '^ *+' conftest.er1 >conftest.err
8109  rm -f conftest.er1
8110  cat conftest.err >&5
8111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112  (exit $ac_status); } && {
8113	 test -z "$ac_c_werror_flag" ||
8114	 test ! -s conftest.err
8115       } && test -s conftest$ac_exeext &&
8116       $as_test_x conftest$ac_exeext; then
8117
8118lt_aix_libpath_sed='
8119    /Import File Strings/,/^$/ {
8120	/^0/ {
8121	    s/^0  *\(.*\)$/\1/
8122	    p
8123	}
8124    }'
8125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8126# Check for a 64-bit object if we didn't find anything.
8127if test -z "$aix_libpath"; then
8128  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8129fi
8130else
8131  echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
8134
8135fi
8136
8137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8138      conftest$ac_exeext conftest.$ac_ext
8139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8140
8141        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8142        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"
8143      else
8144	if test "$host_cpu" = ia64; then
8145	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8146	  allow_undefined_flag="-z nodefs"
8147	  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"
8148	else
8149	 # Determine the default libpath from the value encoded in an
8150	 # empty executable.
8151	 cat >conftest.$ac_ext <<_ACEOF
8152/* confdefs.h.  */
8153_ACEOF
8154cat confdefs.h >>conftest.$ac_ext
8155cat >>conftest.$ac_ext <<_ACEOF
8156/* end confdefs.h.  */
8157
8158int
8159main ()
8160{
8161
8162  ;
8163  return 0;
8164}
8165_ACEOF
8166rm -f conftest.$ac_objext conftest$ac_exeext
8167if { (ac_try="$ac_link"
8168case "(($ac_try" in
8169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170  *) ac_try_echo=$ac_try;;
8171esac
8172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173  (eval "$ac_link") 2>conftest.er1
8174  ac_status=$?
8175  grep -v '^ *+' conftest.er1 >conftest.err
8176  rm -f conftest.er1
8177  cat conftest.err >&5
8178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179  (exit $ac_status); } && {
8180	 test -z "$ac_c_werror_flag" ||
8181	 test ! -s conftest.err
8182       } && test -s conftest$ac_exeext &&
8183       $as_test_x conftest$ac_exeext; then
8184
8185lt_aix_libpath_sed='
8186    /Import File Strings/,/^$/ {
8187	/^0/ {
8188	    s/^0  *\(.*\)$/\1/
8189	    p
8190	}
8191    }'
8192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8193# Check for a 64-bit object if we didn't find anything.
8194if test -z "$aix_libpath"; then
8195  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8196fi
8197else
8198  echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201
8202fi
8203
8204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8205      conftest$ac_exeext conftest.$ac_ext
8206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8207
8208	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8209	  # Warning - without using the other run time loading flags,
8210	  # -berok will link without error, but may produce a broken library.
8211	  no_undefined_flag=' ${wl}-bernotok'
8212	  allow_undefined_flag=' ${wl}-berok'
8213	  # Exported symbols can be pulled into shared objects from archives
8214	  whole_archive_flag_spec='$convenience'
8215	  archive_cmds_need_lc=yes
8216	  # This is similar to how AIX traditionally builds its shared libraries.
8217	  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'
8218	fi
8219      fi
8220      ;;
8221
8222    amigaos*)
8223      case $host_cpu in
8224      powerpc)
8225            # see comment about AmigaOS4 .so support
8226            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8227            archive_expsym_cmds=''
8228        ;;
8229      m68k)
8230            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)'
8231            hardcode_libdir_flag_spec='-L$libdir'
8232            hardcode_minus_L=yes
8233        ;;
8234      esac
8235      ;;
8236
8237    bsdi[45]*)
8238      export_dynamic_flag_spec=-rdynamic
8239      ;;
8240
8241    cygwin* | mingw* | pw32* | cegcc*)
8242      # When not using gcc, we currently assume that we are using
8243      # Microsoft Visual C++.
8244      # hardcode_libdir_flag_spec is actually meaningless, as there is
8245      # no search path for DLLs.
8246      hardcode_libdir_flag_spec=' '
8247      allow_undefined_flag=unsupported
8248      # Tell ltmain to make .lib files, not .a files.
8249      libext=lib
8250      # Tell ltmain to make .dll files, not .so files.
8251      shrext_cmds=".dll"
8252      # FIXME: Setting linknames here is a bad hack.
8253      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8254      # The linker will automatically build a .lib file if we build a DLL.
8255      old_archive_from_new_cmds='true'
8256      # FIXME: Should let the user specify the lib program.
8257      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8258      fix_srcfile_path='`cygpath -w "$srcfile"`'
8259      enable_shared_with_static_runtimes=yes
8260      ;;
8261
8262    darwin* | rhapsody*)
8263
8264
8265  archive_cmds_need_lc=no
8266  hardcode_direct=no
8267  hardcode_automatic=yes
8268  hardcode_shlibpath_var=unsupported
8269  whole_archive_flag_spec=''
8270  link_all_deplibs=yes
8271  allow_undefined_flag="$_lt_dar_allow_undefined"
8272  case $cc_basename in
8273     ifort*) _lt_dar_can_shared=yes ;;
8274     *) _lt_dar_can_shared=$GCC ;;
8275  esac
8276  if test "$_lt_dar_can_shared" = "yes"; then
8277    output_verbose_link_cmd=echo
8278    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8279    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8280    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}"
8281    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}"
8282
8283  else
8284  ld_shlibs=no
8285  fi
8286
8287      ;;
8288
8289    dgux*)
8290      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291      hardcode_libdir_flag_spec='-L$libdir'
8292      hardcode_shlibpath_var=no
8293      ;;
8294
8295    freebsd1*)
8296      ld_shlibs=no
8297      ;;
8298
8299    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8300    # support.  Future versions do this automatically, but an explicit c++rt0.o
8301    # does not break anything, and helps significantly (at the cost of a little
8302    # extra space).
8303    freebsd2.2*)
8304      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8305      hardcode_libdir_flag_spec='-R$libdir'
8306      hardcode_direct=yes
8307      hardcode_shlibpath_var=no
8308      ;;
8309
8310    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8311    freebsd2*)
8312      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8313      hardcode_direct=yes
8314      hardcode_minus_L=yes
8315      hardcode_shlibpath_var=no
8316      ;;
8317
8318    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8319    freebsd* | dragonfly*)
8320      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8321      hardcode_libdir_flag_spec='-R$libdir'
8322      hardcode_direct=yes
8323      hardcode_shlibpath_var=no
8324      ;;
8325
8326    hpux9*)
8327      if test "$GCC" = yes; then
8328	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'
8329      else
8330	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'
8331      fi
8332      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8333      hardcode_libdir_separator=:
8334      hardcode_direct=yes
8335
8336      # hardcode_minus_L: Not really in the search PATH,
8337      # but as the default location of the library.
8338      hardcode_minus_L=yes
8339      export_dynamic_flag_spec='${wl}-E'
8340      ;;
8341
8342    hpux10*)
8343      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8344	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8345      else
8346	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8347      fi
8348      if test "$with_gnu_ld" = no; then
8349	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8350	hardcode_libdir_flag_spec_ld='+b $libdir'
8351	hardcode_libdir_separator=:
8352	hardcode_direct=yes
8353	hardcode_direct_absolute=yes
8354	export_dynamic_flag_spec='${wl}-E'
8355	# hardcode_minus_L: Not really in the search PATH,
8356	# but as the default location of the library.
8357	hardcode_minus_L=yes
8358      fi
8359      ;;
8360
8361    hpux11*)
8362      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8363	case $host_cpu in
8364	hppa*64*)
8365	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366	  ;;
8367	ia64*)
8368	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8369	  ;;
8370	*)
8371	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8372	  ;;
8373	esac
8374      else
8375	case $host_cpu in
8376	hppa*64*)
8377	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8378	  ;;
8379	ia64*)
8380	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8381	  ;;
8382	*)
8383	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8384	  ;;
8385	esac
8386      fi
8387      if test "$with_gnu_ld" = no; then
8388	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8389	hardcode_libdir_separator=:
8390
8391	case $host_cpu in
8392	hppa*64*|ia64*)
8393	  hardcode_direct=no
8394	  hardcode_shlibpath_var=no
8395	  ;;
8396	*)
8397	  hardcode_direct=yes
8398	  hardcode_direct_absolute=yes
8399	  export_dynamic_flag_spec='${wl}-E'
8400
8401	  # hardcode_minus_L: Not really in the search PATH,
8402	  # but as the default location of the library.
8403	  hardcode_minus_L=yes
8404	  ;;
8405	esac
8406      fi
8407      ;;
8408
8409    irix5* | irix6* | nonstopux*)
8410      if test "$GCC" = yes; then
8411	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'
8412	# Try to use the -exported_symbol ld option, if it does not
8413	# work, assume that -exports_file does not work either and
8414	# implicitly export all symbols.
8415        save_LDFLAGS="$LDFLAGS"
8416        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8417        cat >conftest.$ac_ext <<_ACEOF
8418int foo(void) {}
8419_ACEOF
8420rm -f conftest.$ac_objext conftest$ac_exeext
8421if { (ac_try="$ac_link"
8422case "(($ac_try" in
8423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424  *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427  (eval "$ac_link") 2>conftest.er1
8428  ac_status=$?
8429  grep -v '^ *+' conftest.er1 >conftest.err
8430  rm -f conftest.er1
8431  cat conftest.err >&5
8432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433  (exit $ac_status); } && {
8434	 test -z "$ac_c_werror_flag" ||
8435	 test ! -s conftest.err
8436       } && test -s conftest$ac_exeext &&
8437       $as_test_x conftest$ac_exeext; then
8438  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'
8439
8440else
8441  echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444
8445fi
8446
8447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8448      conftest$ac_exeext conftest.$ac_ext
8449        LDFLAGS="$save_LDFLAGS"
8450      else
8451	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'
8452	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'
8453      fi
8454      archive_cmds_need_lc='no'
8455      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8456      hardcode_libdir_separator=:
8457      inherit_rpath=yes
8458      link_all_deplibs=yes
8459      ;;
8460
8461    netbsd*)
8462      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8463	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8464      else
8465	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8466      fi
8467      hardcode_libdir_flag_spec='-R$libdir'
8468      hardcode_direct=yes
8469      hardcode_shlibpath_var=no
8470      ;;
8471
8472    newsos6)
8473      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8474      hardcode_direct=yes
8475      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8476      hardcode_libdir_separator=:
8477      hardcode_shlibpath_var=no
8478      ;;
8479
8480    *nto* | *qnx*)
8481      ;;
8482
8483    openbsd*)
8484      if test -f /usr/libexec/ld.so; then
8485	hardcode_direct=yes
8486	hardcode_shlibpath_var=no
8487	hardcode_direct_absolute=yes
8488	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8489	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8490	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8491	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8492	  export_dynamic_flag_spec='${wl}-E'
8493	else
8494	  case $host_os in
8495	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8496	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8497	     hardcode_libdir_flag_spec='-R$libdir'
8498	     ;;
8499	   *)
8500	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8501	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8502	     ;;
8503	  esac
8504	fi
8505      else
8506	ld_shlibs=no
8507      fi
8508      ;;
8509
8510    os2*)
8511      hardcode_libdir_flag_spec='-L$libdir'
8512      hardcode_minus_L=yes
8513      allow_undefined_flag=unsupported
8514      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'
8515      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8516      ;;
8517
8518    osf3*)
8519      if test "$GCC" = yes; then
8520	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8521	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'
8522      else
8523	allow_undefined_flag=' -expect_unresolved \*'
8524	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'
8525      fi
8526      archive_cmds_need_lc='no'
8527      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528      hardcode_libdir_separator=:
8529      ;;
8530
8531    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8532      if test "$GCC" = yes; then
8533	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8534	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'
8535	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536      else
8537	allow_undefined_flag=' -expect_unresolved \*'
8538	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'
8539	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~
8540	$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'
8541
8542	# Both c and cxx compiler support -rpath directly
8543	hardcode_libdir_flag_spec='-rpath $libdir'
8544      fi
8545      archive_cmds_need_lc='no'
8546      hardcode_libdir_separator=:
8547      ;;
8548
8549    solaris*)
8550      no_undefined_flag=' -z defs'
8551      if test "$GCC" = yes; then
8552	wlarc='${wl}'
8553	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8554	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8555	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8556      else
8557	case `$CC -V 2>&1` in
8558	*"Compilers 5.0"*)
8559	  wlarc=''
8560	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8561	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8562	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8563	  ;;
8564	*)
8565	  wlarc='${wl}'
8566	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8567	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8568	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8569	  ;;
8570	esac
8571      fi
8572      hardcode_libdir_flag_spec='-R$libdir'
8573      hardcode_shlibpath_var=no
8574      case $host_os in
8575      solaris2.[0-5] | solaris2.[0-5].*) ;;
8576      *)
8577	# The compiler driver will combine and reorder linker options,
8578	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8579	# but is careful enough not to reorder.
8580	# Supported since Solaris 2.6 (maybe 2.5.1?)
8581	if test "$GCC" = yes; then
8582	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8583	else
8584	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8585	fi
8586	;;
8587      esac
8588      link_all_deplibs=yes
8589      ;;
8590
8591    sunos4*)
8592      if test "x$host_vendor" = xsequent; then
8593	# Use $CC to link under sequent, because it throws in some extra .o
8594	# files that make .init and .fini sections work.
8595	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8596      else
8597	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8598      fi
8599      hardcode_libdir_flag_spec='-L$libdir'
8600      hardcode_direct=yes
8601      hardcode_minus_L=yes
8602      hardcode_shlibpath_var=no
8603      ;;
8604
8605    sysv4)
8606      case $host_vendor in
8607	sni)
8608	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8609	  hardcode_direct=yes # is this really true???
8610	;;
8611	siemens)
8612	  ## LD is ld it makes a PLAMLIB
8613	  ## CC just makes a GrossModule.
8614	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8615	  reload_cmds='$CC -r -o $output$reload_objs'
8616	  hardcode_direct=no
8617        ;;
8618	motorola)
8619	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8620	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8621	;;
8622      esac
8623      runpath_var='LD_RUN_PATH'
8624      hardcode_shlibpath_var=no
8625      ;;
8626
8627    sysv4.3*)
8628      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8629      hardcode_shlibpath_var=no
8630      export_dynamic_flag_spec='-Bexport'
8631      ;;
8632
8633    sysv4*MP*)
8634      if test -d /usr/nec; then
8635	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8636	hardcode_shlibpath_var=no
8637	runpath_var=LD_RUN_PATH
8638	hardcode_runpath_var=yes
8639	ld_shlibs=yes
8640      fi
8641      ;;
8642
8643    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8644      no_undefined_flag='${wl}-z,text'
8645      archive_cmds_need_lc=no
8646      hardcode_shlibpath_var=no
8647      runpath_var='LD_RUN_PATH'
8648
8649      if test "$GCC" = yes; then
8650	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8652      else
8653	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8654	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8655      fi
8656      ;;
8657
8658    sysv5* | sco3.2v5* | sco5v6*)
8659      # Note: We can NOT use -z defs as we might desire, because we do not
8660      # link with -lc, and that would cause any symbols used from libc to
8661      # always be unresolved, which means just about no library would
8662      # ever link correctly.  If we're not using GNU ld we use -z text
8663      # though, which does catch some bad symbols but isn't as heavy-handed
8664      # as -z defs.
8665      no_undefined_flag='${wl}-z,text'
8666      allow_undefined_flag='${wl}-z,nodefs'
8667      archive_cmds_need_lc=no
8668      hardcode_shlibpath_var=no
8669      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8670      hardcode_libdir_separator=':'
8671      link_all_deplibs=yes
8672      export_dynamic_flag_spec='${wl}-Bexport'
8673      runpath_var='LD_RUN_PATH'
8674
8675      if test "$GCC" = yes; then
8676	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8677	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8678      else
8679	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8680	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8681      fi
8682      ;;
8683
8684    uts4*)
8685      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8686      hardcode_libdir_flag_spec='-L$libdir'
8687      hardcode_shlibpath_var=no
8688      ;;
8689
8690    *)
8691      ld_shlibs=no
8692      ;;
8693    esac
8694
8695    if test x$host_vendor = xsni; then
8696      case $host in
8697      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8698	export_dynamic_flag_spec='${wl}-Blargedynsym'
8699	;;
8700      esac
8701    fi
8702  fi
8703
8704{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8705echo "${ECHO_T}$ld_shlibs" >&6; }
8706test "$ld_shlibs" = no && can_build_shared=no
8707
8708with_gnu_ld=$with_gnu_ld
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724#
8725# Do we need to explicitly link libc?
8726#
8727case "x$archive_cmds_need_lc" in
8728x|xyes)
8729  # Assume -lc should be added
8730  archive_cmds_need_lc=yes
8731
8732  if test "$enable_shared" = yes && test "$GCC" = yes; then
8733    case $archive_cmds in
8734    *'~'*)
8735      # FIXME: we may have to deal with multi-command sequences.
8736      ;;
8737    '$CC '*)
8738      # Test whether the compiler implicitly links with -lc since on some
8739      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8740      # to ld, don't add -lc before -lgcc.
8741      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8742echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8743      $RM conftest*
8744      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745
8746      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747  (eval $ac_compile) 2>&5
8748  ac_status=$?
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); } 2>conftest.err; then
8751        soname=conftest
8752        lib=conftest
8753        libobjs=conftest.$ac_objext
8754        deplibs=
8755        wl=$lt_prog_compiler_wl
8756	pic_flag=$lt_prog_compiler_pic
8757        compiler_flags=-v
8758        linker_flags=-v
8759        verstring=
8760        output_objdir=.
8761        libname=conftest
8762        lt_save_allow_undefined_flag=$allow_undefined_flag
8763        allow_undefined_flag=
8764        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8765  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8766  ac_status=$?
8767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768  (exit $ac_status); }
8769        then
8770	  archive_cmds_need_lc=no
8771        else
8772	  archive_cmds_need_lc=yes
8773        fi
8774        allow_undefined_flag=$lt_save_allow_undefined_flag
8775      else
8776        cat conftest.err 1>&5
8777      fi
8778      $RM conftest*
8779      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8780echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8781      ;;
8782    esac
8783  fi
8784  ;;
8785esac
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
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  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8944echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8945
8946if test "$GCC" = yes; then
8947  case $host_os in
8948    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8949    *) lt_awk_arg="/^libraries:/" ;;
8950  esac
8951  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8952  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8953    # if the path contains ";" then we assume it to be the separator
8954    # otherwise default to the standard path separator (i.e. ":") - it is
8955    # assumed that no part of a normal pathname contains ";" but that should
8956    # okay in the real world where ";" in dirpaths is itself problematic.
8957    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8958  else
8959    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8960  fi
8961  # Ok, now we have the path, separated by spaces, we can step through it
8962  # and add multilib dir if necessary.
8963  lt_tmp_lt_search_path_spec=
8964  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8965  for lt_sys_path in $lt_search_path_spec; do
8966    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8967      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8968    else
8969      test -d "$lt_sys_path" && \
8970	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8971    fi
8972  done
8973  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8974BEGIN {RS=" "; FS="/|\n";} {
8975  lt_foo="";
8976  lt_count=0;
8977  for (lt_i = NF; lt_i > 0; lt_i--) {
8978    if ($lt_i != "" && $lt_i != ".") {
8979      if ($lt_i == "..") {
8980        lt_count++;
8981      } else {
8982        if (lt_count == 0) {
8983          lt_foo="/" $lt_i lt_foo;
8984        } else {
8985          lt_count--;
8986        }
8987      }
8988    }
8989  }
8990  if (lt_foo != "") { lt_freq[lt_foo]++; }
8991  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8992}'`
8993  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8994else
8995  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8996fi
8997library_names_spec=
8998libname_spec='lib$name'
8999soname_spec=
9000shrext_cmds=".so"
9001postinstall_cmds=
9002postuninstall_cmds=
9003finish_cmds=
9004finish_eval=
9005shlibpath_var=
9006shlibpath_overrides_runpath=unknown
9007version_type=none
9008dynamic_linker="$host_os ld.so"
9009sys_lib_dlsearch_path_spec="/lib /usr/lib"
9010need_lib_prefix=unknown
9011hardcode_into_libs=no
9012
9013# when you set need_version to no, make sure it does not cause -set_version
9014# flags to be left without arguments
9015need_version=unknown
9016
9017case $host_os in
9018aix3*)
9019  version_type=linux
9020  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9021  shlibpath_var=LIBPATH
9022
9023  # AIX 3 has no versioning support, so we append a major version to the name.
9024  soname_spec='${libname}${release}${shared_ext}$major'
9025  ;;
9026
9027aix[4-9]*)
9028  version_type=linux
9029  need_lib_prefix=no
9030  need_version=no
9031  hardcode_into_libs=yes
9032  if test "$host_cpu" = ia64; then
9033    # AIX 5 supports IA64
9034    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9035    shlibpath_var=LD_LIBRARY_PATH
9036  else
9037    # With GCC up to 2.95.x, collect2 would create an import file
9038    # for dependence libraries.  The import file would start with
9039    # the line `#! .'.  This would cause the generated library to
9040    # depend on `.', always an invalid library.  This was fixed in
9041    # development snapshots of GCC prior to 3.0.
9042    case $host_os in
9043      aix4 | aix4.[01] | aix4.[01].*)
9044      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9045	   echo ' yes '
9046	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9047	:
9048      else
9049	can_build_shared=no
9050      fi
9051      ;;
9052    esac
9053    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9054    # soname into executable. Probably we can add versioning support to
9055    # collect2, so additional links can be useful in future.
9056    if test "$aix_use_runtimelinking" = yes; then
9057      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9058      # instead of lib<name>.a to let people know that these are not
9059      # typical AIX shared libraries.
9060      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9061    else
9062      # We preserve .a as extension for shared libraries through AIX4.2
9063      # and later when we are not doing run time linking.
9064      library_names_spec='${libname}${release}.a $libname.a'
9065      soname_spec='${libname}${release}${shared_ext}$major'
9066    fi
9067    shlibpath_var=LIBPATH
9068  fi
9069  ;;
9070
9071amigaos*)
9072  case $host_cpu in
9073  powerpc)
9074    # Since July 2007 AmigaOS4 officially supports .so libraries.
9075    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9076    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077    ;;
9078  m68k)
9079    library_names_spec='$libname.ixlibrary $libname.a'
9080    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9081    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'
9082    ;;
9083  esac
9084  ;;
9085
9086beos*)
9087  library_names_spec='${libname}${shared_ext}'
9088  dynamic_linker="$host_os ld.so"
9089  shlibpath_var=LIBRARY_PATH
9090  ;;
9091
9092bsdi[45]*)
9093  version_type=linux
9094  need_version=no
9095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096  soname_spec='${libname}${release}${shared_ext}$major'
9097  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9098  shlibpath_var=LD_LIBRARY_PATH
9099  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9100  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9101  # the default ld.so.conf also contains /usr/contrib/lib and
9102  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9103  # libtool to hard-code these into programs
9104  ;;
9105
9106cygwin* | mingw* | pw32* | cegcc*)
9107  version_type=windows
9108  shrext_cmds=".dll"
9109  need_version=no
9110  need_lib_prefix=no
9111
9112  case $GCC,$host_os in
9113  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9114    library_names_spec='$libname.dll.a'
9115    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9116    postinstall_cmds='base_file=`basename \${file}`~
9117      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9118      dldir=$destdir/`dirname \$dlpath`~
9119      test -d \$dldir || mkdir -p \$dldir~
9120      $install_prog $dir/$dlname \$dldir/$dlname~
9121      chmod a+x \$dldir/$dlname~
9122      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9123        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9124      fi'
9125    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9126      dlpath=$dir/\$dldll~
9127       $RM \$dlpath'
9128    shlibpath_overrides_runpath=yes
9129
9130    case $host_os in
9131    cygwin*)
9132      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9133      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9134      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9135      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9136      ;;
9137    mingw* | cegcc*)
9138      # MinGW DLLs use traditional 'lib' prefix
9139      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9140      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9141      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9142      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9143        # It is most probably a Windows format PATH printed by
9144        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9145        # path with ; separators, and with drive letters. We can handle the
9146        # drive letters (cygwin fileutils understands them), so leave them,
9147        # especially as we might pass files found there to a mingw objdump,
9148        # which wouldn't understand a cygwinified path. Ahh.
9149        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9150      else
9151        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9152      fi
9153      ;;
9154    pw32*)
9155      # pw32 DLLs use 'pw' prefix rather than 'lib'
9156      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9157      ;;
9158    esac
9159    ;;
9160
9161  *)
9162    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9163    ;;
9164  esac
9165  dynamic_linker='Win32 ld.exe'
9166  # FIXME: first we should search . and the directory the executable is in
9167  shlibpath_var=PATH
9168  ;;
9169
9170darwin* | rhapsody*)
9171  dynamic_linker="$host_os dyld"
9172  version_type=darwin
9173  need_lib_prefix=no
9174  need_version=no
9175  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9176  soname_spec='${libname}${release}${major}$shared_ext'
9177  shlibpath_overrides_runpath=yes
9178  shlibpath_var=DYLD_LIBRARY_PATH
9179  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9180
9181  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9182  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9183  ;;
9184
9185dgux*)
9186  version_type=linux
9187  need_lib_prefix=no
9188  need_version=no
9189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9190  soname_spec='${libname}${release}${shared_ext}$major'
9191  shlibpath_var=LD_LIBRARY_PATH
9192  ;;
9193
9194freebsd1*)
9195  dynamic_linker=no
9196  ;;
9197
9198freebsd* | dragonfly*)
9199  # DragonFly does not have aout.  When/if they implement a new
9200  # versioning mechanism, adjust this.
9201  if test -x /usr/bin/objformat; then
9202    objformat=`/usr/bin/objformat`
9203  else
9204    case $host_os in
9205    freebsd[123]*) objformat=aout ;;
9206    *) objformat=elf ;;
9207    esac
9208  fi
9209  version_type=freebsd-$objformat
9210  case $version_type in
9211    freebsd-elf*)
9212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213      need_version=no
9214      need_lib_prefix=no
9215      ;;
9216    freebsd-*)
9217      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9218      need_version=yes
9219      ;;
9220  esac
9221  shlibpath_var=LD_LIBRARY_PATH
9222  case $host_os in
9223  freebsd2*)
9224    shlibpath_overrides_runpath=yes
9225    ;;
9226  freebsd3.[01]* | freebsdelf3.[01]*)
9227    shlibpath_overrides_runpath=yes
9228    hardcode_into_libs=yes
9229    ;;
9230  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9231  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9232    shlibpath_overrides_runpath=no
9233    hardcode_into_libs=yes
9234    ;;
9235  *) # from 4.6 on, and DragonFly
9236    shlibpath_overrides_runpath=yes
9237    hardcode_into_libs=yes
9238    ;;
9239  esac
9240  ;;
9241
9242gnu*)
9243  version_type=linux
9244  need_lib_prefix=no
9245  need_version=no
9246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9247  soname_spec='${libname}${release}${shared_ext}$major'
9248  shlibpath_var=LD_LIBRARY_PATH
9249  hardcode_into_libs=yes
9250  ;;
9251
9252hpux9* | hpux10* | hpux11*)
9253  # Give a soname corresponding to the major version so that dld.sl refuses to
9254  # link against other versions.
9255  version_type=sunos
9256  need_lib_prefix=no
9257  need_version=no
9258  case $host_cpu in
9259  ia64*)
9260    shrext_cmds='.so'
9261    hardcode_into_libs=yes
9262    dynamic_linker="$host_os dld.so"
9263    shlibpath_var=LD_LIBRARY_PATH
9264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266    soname_spec='${libname}${release}${shared_ext}$major'
9267    if test "X$HPUX_IA64_MODE" = X32; then
9268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9269    else
9270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9271    fi
9272    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9273    ;;
9274  hppa*64*)
9275    shrext_cmds='.sl'
9276    hardcode_into_libs=yes
9277    dynamic_linker="$host_os dld.sl"
9278    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9279    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9280    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281    soname_spec='${libname}${release}${shared_ext}$major'
9282    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9283    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9284    ;;
9285  *)
9286    shrext_cmds='.sl'
9287    dynamic_linker="$host_os dld.sl"
9288    shlibpath_var=SHLIB_PATH
9289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291    soname_spec='${libname}${release}${shared_ext}$major'
9292    ;;
9293  esac
9294  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9295  postinstall_cmds='chmod 555 $lib'
9296  ;;
9297
9298interix[3-9]*)
9299  version_type=linux
9300  need_lib_prefix=no
9301  need_version=no
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303  soname_spec='${libname}${release}${shared_ext}$major'
9304  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9305  shlibpath_var=LD_LIBRARY_PATH
9306  shlibpath_overrides_runpath=no
9307  hardcode_into_libs=yes
9308  ;;
9309
9310irix5* | irix6* | nonstopux*)
9311  case $host_os in
9312    nonstopux*) version_type=nonstopux ;;
9313    *)
9314	if test "$lt_cv_prog_gnu_ld" = yes; then
9315		version_type=linux
9316	else
9317		version_type=irix
9318	fi ;;
9319  esac
9320  need_lib_prefix=no
9321  need_version=no
9322  soname_spec='${libname}${release}${shared_ext}$major'
9323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9324  case $host_os in
9325  irix5* | nonstopux*)
9326    libsuff= shlibsuff=
9327    ;;
9328  *)
9329    case $LD in # libtool.m4 will add one of these switches to LD
9330    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9331      libsuff= shlibsuff= libmagic=32-bit;;
9332    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9333      libsuff=32 shlibsuff=N32 libmagic=N32;;
9334    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9335      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9336    *) libsuff= shlibsuff= libmagic=never-match;;
9337    esac
9338    ;;
9339  esac
9340  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9341  shlibpath_overrides_runpath=no
9342  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9343  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9344  hardcode_into_libs=yes
9345  ;;
9346
9347# No shared lib support for Linux oldld, aout, or coff.
9348linux*oldld* | linux*aout* | linux*coff*)
9349  dynamic_linker=no
9350  ;;
9351
9352# This must be Linux ELF.
9353linux* | k*bsd*-gnu)
9354  version_type=linux
9355  need_lib_prefix=no
9356  need_version=no
9357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358  soname_spec='${libname}${release}${shared_ext}$major'
9359  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9360  shlibpath_var=LD_LIBRARY_PATH
9361  shlibpath_overrides_runpath=no
9362  # Some binutils ld are patched to set DT_RUNPATH
9363  save_LDFLAGS=$LDFLAGS
9364  save_libdir=$libdir
9365  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9366       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9367  cat >conftest.$ac_ext <<_ACEOF
9368/* confdefs.h.  */
9369_ACEOF
9370cat confdefs.h >>conftest.$ac_ext
9371cat >>conftest.$ac_ext <<_ACEOF
9372/* end confdefs.h.  */
9373
9374int
9375main ()
9376{
9377
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382rm -f conftest.$ac_objext conftest$ac_exeext
9383if { (ac_try="$ac_link"
9384case "(($ac_try" in
9385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9386  *) ac_try_echo=$ac_try;;
9387esac
9388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9389  (eval "$ac_link") 2>conftest.er1
9390  ac_status=$?
9391  grep -v '^ *+' conftest.er1 >conftest.err
9392  rm -f conftest.er1
9393  cat conftest.err >&5
9394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395  (exit $ac_status); } && {
9396	 test -z "$ac_c_werror_flag" ||
9397	 test ! -s conftest.err
9398       } && test -s conftest$ac_exeext &&
9399       $as_test_x conftest$ac_exeext; then
9400  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9401  shlibpath_overrides_runpath=yes
9402fi
9403
9404else
9405  echo "$as_me: failed program was:" >&5
9406sed 's/^/| /' conftest.$ac_ext >&5
9407
9408
9409fi
9410
9411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412      conftest$ac_exeext conftest.$ac_ext
9413  LDFLAGS=$save_LDFLAGS
9414  libdir=$save_libdir
9415
9416  # This implies no fast_install, which is unacceptable.
9417  # Some rework will be needed to allow for fast_install
9418  # before this can be enabled.
9419  hardcode_into_libs=yes
9420
9421  # Append ld.so.conf contents to the search path
9422  if test -f /etc/ld.so.conf; then
9423    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' ' '`
9424    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9425  fi
9426
9427  # We used to test for /lib/ld.so.1 and disable shared libraries on
9428  # powerpc, because MkLinux only supported shared libraries with the
9429  # GNU dynamic linker.  Since this was broken with cross compilers,
9430  # most powerpc-linux boxes support dynamic linking these days and
9431  # people can always --disable-shared, the test was removed, and we
9432  # assume the GNU/Linux dynamic linker is in use.
9433  dynamic_linker='GNU/Linux ld.so'
9434  ;;
9435
9436netbsd*)
9437  version_type=sunos
9438  need_lib_prefix=no
9439  need_version=no
9440  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9441    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9442    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9443    dynamic_linker='NetBSD (a.out) ld.so'
9444  else
9445    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446    soname_spec='${libname}${release}${shared_ext}$major'
9447    dynamic_linker='NetBSD ld.elf_so'
9448  fi
9449  shlibpath_var=LD_LIBRARY_PATH
9450  shlibpath_overrides_runpath=yes
9451  hardcode_into_libs=yes
9452  ;;
9453
9454newsos6)
9455  version_type=linux
9456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  shlibpath_overrides_runpath=yes
9459  ;;
9460
9461*nto* | *qnx*)
9462  version_type=qnx
9463  need_lib_prefix=no
9464  need_version=no
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  shlibpath_var=LD_LIBRARY_PATH
9468  shlibpath_overrides_runpath=no
9469  hardcode_into_libs=yes
9470  dynamic_linker='ldqnx.so'
9471  ;;
9472
9473openbsd*)
9474  version_type=sunos
9475  sys_lib_dlsearch_path_spec="/usr/lib"
9476  need_lib_prefix=no
9477  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9478  case $host_os in
9479    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9480    *)				need_version=no  ;;
9481  esac
9482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9484  shlibpath_var=LD_LIBRARY_PATH
9485  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9486    case $host_os in
9487      openbsd2.[89] | openbsd2.[89].*)
9488	shlibpath_overrides_runpath=no
9489	;;
9490      *)
9491	shlibpath_overrides_runpath=yes
9492	;;
9493      esac
9494  else
9495    shlibpath_overrides_runpath=yes
9496  fi
9497  ;;
9498
9499os2*)
9500  libname_spec='$name'
9501  shrext_cmds=".dll"
9502  need_lib_prefix=no
9503  library_names_spec='$libname${shared_ext} $libname.a'
9504  dynamic_linker='OS/2 ld.exe'
9505  shlibpath_var=LIBPATH
9506  ;;
9507
9508osf3* | osf4* | osf5*)
9509  version_type=osf
9510  need_lib_prefix=no
9511  need_version=no
9512  soname_spec='${libname}${release}${shared_ext}$major'
9513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514  shlibpath_var=LD_LIBRARY_PATH
9515  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9516  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9517  ;;
9518
9519rdos*)
9520  dynamic_linker=no
9521  ;;
9522
9523solaris*)
9524  version_type=linux
9525  need_lib_prefix=no
9526  need_version=no
9527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528  soname_spec='${libname}${release}${shared_ext}$major'
9529  shlibpath_var=LD_LIBRARY_PATH
9530  shlibpath_overrides_runpath=yes
9531  hardcode_into_libs=yes
9532  # ldd complains unless libraries are executable
9533  postinstall_cmds='chmod +x $lib'
9534  ;;
9535
9536sunos4*)
9537  version_type=sunos
9538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9539  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=yes
9542  if test "$with_gnu_ld" = yes; then
9543    need_lib_prefix=no
9544  fi
9545  need_version=yes
9546  ;;
9547
9548sysv4 | sysv4.3*)
9549  version_type=linux
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551  soname_spec='${libname}${release}${shared_ext}$major'
9552  shlibpath_var=LD_LIBRARY_PATH
9553  case $host_vendor in
9554    sni)
9555      shlibpath_overrides_runpath=no
9556      need_lib_prefix=no
9557      runpath_var=LD_RUN_PATH
9558      ;;
9559    siemens)
9560      need_lib_prefix=no
9561      ;;
9562    motorola)
9563      need_lib_prefix=no
9564      need_version=no
9565      shlibpath_overrides_runpath=no
9566      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9567      ;;
9568  esac
9569  ;;
9570
9571sysv4*MP*)
9572  if test -d /usr/nec ;then
9573    version_type=linux
9574    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9575    soname_spec='$libname${shared_ext}.$major'
9576    shlibpath_var=LD_LIBRARY_PATH
9577  fi
9578  ;;
9579
9580sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9581  version_type=freebsd-elf
9582  need_lib_prefix=no
9583  need_version=no
9584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9585  soname_spec='${libname}${release}${shared_ext}$major'
9586  shlibpath_var=LD_LIBRARY_PATH
9587  shlibpath_overrides_runpath=yes
9588  hardcode_into_libs=yes
9589  if test "$with_gnu_ld" = yes; then
9590    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9591  else
9592    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9593    case $host_os in
9594      sco3.2v5*)
9595        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9596	;;
9597    esac
9598  fi
9599  sys_lib_dlsearch_path_spec='/usr/lib'
9600  ;;
9601
9602tpf*)
9603  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9604  version_type=linux
9605  need_lib_prefix=no
9606  need_version=no
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  shlibpath_var=LD_LIBRARY_PATH
9609  shlibpath_overrides_runpath=no
9610  hardcode_into_libs=yes
9611  ;;
9612
9613uts4*)
9614  version_type=linux
9615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616  soname_spec='${libname}${release}${shared_ext}$major'
9617  shlibpath_var=LD_LIBRARY_PATH
9618  ;;
9619
9620*)
9621  dynamic_linker=no
9622  ;;
9623esac
9624{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9625echo "${ECHO_T}$dynamic_linker" >&6; }
9626test "$dynamic_linker" = no && can_build_shared=no
9627
9628variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9629if test "$GCC" = yes; then
9630  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9631fi
9632
9633if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9634  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9635fi
9636if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9637  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9638fi
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9727echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9728hardcode_action=
9729if test -n "$hardcode_libdir_flag_spec" ||
9730   test -n "$runpath_var" ||
9731   test "X$hardcode_automatic" = "Xyes" ; then
9732
9733  # We can hardcode non-existent directories.
9734  if test "$hardcode_direct" != no &&
9735     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9736     # have to relink, otherwise we might link with an installed library
9737     # when we should be linking with a yet-to-be-installed one
9738     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9739     test "$hardcode_minus_L" != no; then
9740    # Linking always hardcodes the temporary library directory.
9741    hardcode_action=relink
9742  else
9743    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9744    hardcode_action=immediate
9745  fi
9746else
9747  # We cannot hardcode anything, or else we can only hardcode existing
9748  # directories.
9749  hardcode_action=unsupported
9750fi
9751{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9752echo "${ECHO_T}$hardcode_action" >&6; }
9753
9754if test "$hardcode_action" = relink ||
9755   test "$inherit_rpath" = yes; then
9756  # Fast installation is not supported
9757  enable_fast_install=no
9758elif test "$shlibpath_overrides_runpath" = yes ||
9759     test "$enable_shared" = no; then
9760  # Fast installation is not necessary
9761  enable_fast_install=needless
9762fi
9763
9764
9765
9766
9767
9768
9769  if test "x$enable_dlopen" != xyes; then
9770  enable_dlopen=unknown
9771  enable_dlopen_self=unknown
9772  enable_dlopen_self_static=unknown
9773else
9774  lt_cv_dlopen=no
9775  lt_cv_dlopen_libs=
9776
9777  case $host_os in
9778  beos*)
9779    lt_cv_dlopen="load_add_on"
9780    lt_cv_dlopen_libs=
9781    lt_cv_dlopen_self=yes
9782    ;;
9783
9784  mingw* | pw32* | cegcc*)
9785    lt_cv_dlopen="LoadLibrary"
9786    lt_cv_dlopen_libs=
9787    ;;
9788
9789  cygwin*)
9790    lt_cv_dlopen="dlopen"
9791    lt_cv_dlopen_libs=
9792    ;;
9793
9794  darwin*)
9795  # if libdl is installed we need to link against it
9796    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9797echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9798if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9799  echo $ECHO_N "(cached) $ECHO_C" >&6
9800else
9801  ac_check_lib_save_LIBS=$LIBS
9802LIBS="-ldl  $LIBS"
9803cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h.  */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h.  */
9809
9810/* Override any GCC internal prototype to avoid an error.
9811   Use char because int might match the return type of a GCC
9812   builtin and then its argument prototype would still apply.  */
9813#ifdef __cplusplus
9814extern "C"
9815#endif
9816char dlopen ();
9817int
9818main ()
9819{
9820return dlopen ();
9821  ;
9822  return 0;
9823}
9824_ACEOF
9825rm -f conftest.$ac_objext conftest$ac_exeext
9826if { (ac_try="$ac_link"
9827case "(($ac_try" in
9828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829  *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832  (eval "$ac_link") 2>conftest.er1
9833  ac_status=$?
9834  grep -v '^ *+' conftest.er1 >conftest.err
9835  rm -f conftest.er1
9836  cat conftest.err >&5
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); } && {
9839	 test -z "$ac_c_werror_flag" ||
9840	 test ! -s conftest.err
9841       } && test -s conftest$ac_exeext &&
9842       $as_test_x conftest$ac_exeext; then
9843  ac_cv_lib_dl_dlopen=yes
9844else
9845  echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848	ac_cv_lib_dl_dlopen=no
9849fi
9850
9851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852      conftest$ac_exeext conftest.$ac_ext
9853LIBS=$ac_check_lib_save_LIBS
9854fi
9855{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9856echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9857if test $ac_cv_lib_dl_dlopen = yes; then
9858  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9859else
9860
9861    lt_cv_dlopen="dyld"
9862    lt_cv_dlopen_libs=
9863    lt_cv_dlopen_self=yes
9864
9865fi
9866
9867    ;;
9868
9869  *)
9870    { echo "$as_me:$LINENO: checking for shl_load" >&5
9871echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9872if test "${ac_cv_func_shl_load+set}" = set; then
9873  echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875  cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h.  */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h.  */
9881/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9882   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9883#define shl_load innocuous_shl_load
9884
9885/* System header to define __stub macros and hopefully few prototypes,
9886    which can conflict with char shl_load (); below.
9887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888    <limits.h> exists even on freestanding compilers.  */
9889
9890#ifdef __STDC__
9891# include <limits.h>
9892#else
9893# include <assert.h>
9894#endif
9895
9896#undef shl_load
9897
9898/* Override any GCC internal prototype to avoid an error.
9899   Use char because int might match the return type of a GCC
9900   builtin and then its argument prototype would still apply.  */
9901#ifdef __cplusplus
9902extern "C"
9903#endif
9904char shl_load ();
9905/* The GNU C library defines this for functions which it implements
9906    to always fail with ENOSYS.  Some functions are actually named
9907    something starting with __ and the normal name is an alias.  */
9908#if defined __stub_shl_load || defined __stub___shl_load
9909choke me
9910#endif
9911
9912int
9913main ()
9914{
9915return shl_load ();
9916  ;
9917  return 0;
9918}
9919_ACEOF
9920rm -f conftest.$ac_objext conftest$ac_exeext
9921if { (ac_try="$ac_link"
9922case "(($ac_try" in
9923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924  *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927  (eval "$ac_link") 2>conftest.er1
9928  ac_status=$?
9929  grep -v '^ *+' conftest.er1 >conftest.err
9930  rm -f conftest.er1
9931  cat conftest.err >&5
9932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933  (exit $ac_status); } && {
9934	 test -z "$ac_c_werror_flag" ||
9935	 test ! -s conftest.err
9936       } && test -s conftest$ac_exeext &&
9937       $as_test_x conftest$ac_exeext; then
9938  ac_cv_func_shl_load=yes
9939else
9940  echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943	ac_cv_func_shl_load=no
9944fi
9945
9946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9947      conftest$ac_exeext conftest.$ac_ext
9948fi
9949{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9950echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9951if test $ac_cv_func_shl_load = yes; then
9952  lt_cv_dlopen="shl_load"
9953else
9954  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9955echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9956if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9957  echo $ECHO_N "(cached) $ECHO_C" >&6
9958else
9959  ac_check_lib_save_LIBS=$LIBS
9960LIBS="-ldld  $LIBS"
9961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h.  */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
9966/* end confdefs.h.  */
9967
9968/* Override any GCC internal prototype to avoid an error.
9969   Use char because int might match the return type of a GCC
9970   builtin and then its argument prototype would still apply.  */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974char shl_load ();
9975int
9976main ()
9977{
9978return shl_load ();
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983rm -f conftest.$ac_objext conftest$ac_exeext
9984if { (ac_try="$ac_link"
9985case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990  (eval "$ac_link") 2>conftest.er1
9991  ac_status=$?
9992  grep -v '^ *+' conftest.er1 >conftest.err
9993  rm -f conftest.er1
9994  cat conftest.err >&5
9995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996  (exit $ac_status); } && {
9997	 test -z "$ac_c_werror_flag" ||
9998	 test ! -s conftest.err
9999       } && test -s conftest$ac_exeext &&
10000       $as_test_x conftest$ac_exeext; then
10001  ac_cv_lib_dld_shl_load=yes
10002else
10003  echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006	ac_cv_lib_dld_shl_load=no
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10010      conftest$ac_exeext conftest.$ac_ext
10011LIBS=$ac_check_lib_save_LIBS
10012fi
10013{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10014echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10015if test $ac_cv_lib_dld_shl_load = yes; then
10016  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10017else
10018  { echo "$as_me:$LINENO: checking for dlopen" >&5
10019echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10020if test "${ac_cv_func_dlopen+set}" = set; then
10021  echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023  cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h.  */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h.  */
10029/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10031#define dlopen innocuous_dlopen
10032
10033/* System header to define __stub macros and hopefully few prototypes,
10034    which can conflict with char dlopen (); below.
10035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10036    <limits.h> exists even on freestanding compilers.  */
10037
10038#ifdef __STDC__
10039# include <limits.h>
10040#else
10041# include <assert.h>
10042#endif
10043
10044#undef dlopen
10045
10046/* Override any GCC internal prototype to avoid an error.
10047   Use char because int might match the return type of a GCC
10048   builtin and then its argument prototype would still apply.  */
10049#ifdef __cplusplus
10050extern "C"
10051#endif
10052char dlopen ();
10053/* The GNU C library defines this for functions which it implements
10054    to always fail with ENOSYS.  Some functions are actually named
10055    something starting with __ and the normal name is an alias.  */
10056#if defined __stub_dlopen || defined __stub___dlopen
10057choke me
10058#endif
10059
10060int
10061main ()
10062{
10063return dlopen ();
10064  ;
10065  return 0;
10066}
10067_ACEOF
10068rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (ac_try="$ac_link"
10070case "(($ac_try" in
10071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072  *) ac_try_echo=$ac_try;;
10073esac
10074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075  (eval "$ac_link") 2>conftest.er1
10076  ac_status=$?
10077  grep -v '^ *+' conftest.er1 >conftest.err
10078  rm -f conftest.er1
10079  cat conftest.err >&5
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); } && {
10082	 test -z "$ac_c_werror_flag" ||
10083	 test ! -s conftest.err
10084       } && test -s conftest$ac_exeext &&
10085       $as_test_x conftest$ac_exeext; then
10086  ac_cv_func_dlopen=yes
10087else
10088  echo "$as_me: failed program was:" >&5
10089sed 's/^/| /' conftest.$ac_ext >&5
10090
10091	ac_cv_func_dlopen=no
10092fi
10093
10094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095      conftest$ac_exeext conftest.$ac_ext
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10098echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10099if test $ac_cv_func_dlopen = yes; then
10100  lt_cv_dlopen="dlopen"
10101else
10102  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10103echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10104if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10105  echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107  ac_check_lib_save_LIBS=$LIBS
10108LIBS="-ldl  $LIBS"
10109cat >conftest.$ac_ext <<_ACEOF
10110/* confdefs.h.  */
10111_ACEOF
10112cat confdefs.h >>conftest.$ac_ext
10113cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h.  */
10115
10116/* Override any GCC internal prototype to avoid an error.
10117   Use char because int might match the return type of a GCC
10118   builtin and then its argument prototype would still apply.  */
10119#ifdef __cplusplus
10120extern "C"
10121#endif
10122char dlopen ();
10123int
10124main ()
10125{
10126return dlopen ();
10127  ;
10128  return 0;
10129}
10130_ACEOF
10131rm -f conftest.$ac_objext conftest$ac_exeext
10132if { (ac_try="$ac_link"
10133case "(($ac_try" in
10134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135  *) ac_try_echo=$ac_try;;
10136esac
10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138  (eval "$ac_link") 2>conftest.er1
10139  ac_status=$?
10140  grep -v '^ *+' conftest.er1 >conftest.err
10141  rm -f conftest.er1
10142  cat conftest.err >&5
10143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144  (exit $ac_status); } && {
10145	 test -z "$ac_c_werror_flag" ||
10146	 test ! -s conftest.err
10147       } && test -s conftest$ac_exeext &&
10148       $as_test_x conftest$ac_exeext; then
10149  ac_cv_lib_dl_dlopen=yes
10150else
10151  echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154	ac_cv_lib_dl_dlopen=no
10155fi
10156
10157rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10158      conftest$ac_exeext conftest.$ac_ext
10159LIBS=$ac_check_lib_save_LIBS
10160fi
10161{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10162echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10163if test $ac_cv_lib_dl_dlopen = yes; then
10164  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10165else
10166  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10167echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10168if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10169  echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171  ac_check_lib_save_LIBS=$LIBS
10172LIBS="-lsvld  $LIBS"
10173cat >conftest.$ac_ext <<_ACEOF
10174/* confdefs.h.  */
10175_ACEOF
10176cat confdefs.h >>conftest.$ac_ext
10177cat >>conftest.$ac_ext <<_ACEOF
10178/* end confdefs.h.  */
10179
10180/* Override any GCC internal prototype to avoid an error.
10181   Use char because int might match the return type of a GCC
10182   builtin and then its argument prototype would still apply.  */
10183#ifdef __cplusplus
10184extern "C"
10185#endif
10186char dlopen ();
10187int
10188main ()
10189{
10190return dlopen ();
10191  ;
10192  return 0;
10193}
10194_ACEOF
10195rm -f conftest.$ac_objext conftest$ac_exeext
10196if { (ac_try="$ac_link"
10197case "(($ac_try" in
10198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199  *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202  (eval "$ac_link") 2>conftest.er1
10203  ac_status=$?
10204  grep -v '^ *+' conftest.er1 >conftest.err
10205  rm -f conftest.er1
10206  cat conftest.err >&5
10207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208  (exit $ac_status); } && {
10209	 test -z "$ac_c_werror_flag" ||
10210	 test ! -s conftest.err
10211       } && test -s conftest$ac_exeext &&
10212       $as_test_x conftest$ac_exeext; then
10213  ac_cv_lib_svld_dlopen=yes
10214else
10215  echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218	ac_cv_lib_svld_dlopen=no
10219fi
10220
10221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10222      conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
10225{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10226echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10227if test $ac_cv_lib_svld_dlopen = yes; then
10228  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10229else
10230  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10231echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10232if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10233  echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235  ac_check_lib_save_LIBS=$LIBS
10236LIBS="-ldld  $LIBS"
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h.  */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h.  */
10243
10244/* Override any GCC internal prototype to avoid an error.
10245   Use char because int might match the return type of a GCC
10246   builtin and then its argument prototype would still apply.  */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250char dld_link ();
10251int
10252main ()
10253{
10254return dld_link ();
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
10260if { (ac_try="$ac_link"
10261case "(($ac_try" in
10262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263  *) ac_try_echo=$ac_try;;
10264esac
10265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266  (eval "$ac_link") 2>conftest.er1
10267  ac_status=$?
10268  grep -v '^ *+' conftest.er1 >conftest.err
10269  rm -f conftest.er1
10270  cat conftest.err >&5
10271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272  (exit $ac_status); } && {
10273	 test -z "$ac_c_werror_flag" ||
10274	 test ! -s conftest.err
10275       } && test -s conftest$ac_exeext &&
10276       $as_test_x conftest$ac_exeext; then
10277  ac_cv_lib_dld_dld_link=yes
10278else
10279  echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282	ac_cv_lib_dld_dld_link=no
10283fi
10284
10285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286      conftest$ac_exeext conftest.$ac_ext
10287LIBS=$ac_check_lib_save_LIBS
10288fi
10289{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10291if test $ac_cv_lib_dld_dld_link = yes; then
10292  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10293fi
10294
10295
10296fi
10297
10298
10299fi
10300
10301
10302fi
10303
10304
10305fi
10306
10307
10308fi
10309
10310    ;;
10311  esac
10312
10313  if test "x$lt_cv_dlopen" != xno; then
10314    enable_dlopen=yes
10315  else
10316    enable_dlopen=no
10317  fi
10318
10319  case $lt_cv_dlopen in
10320  dlopen)
10321    save_CPPFLAGS="$CPPFLAGS"
10322    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10323
10324    save_LDFLAGS="$LDFLAGS"
10325    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10326
10327    save_LIBS="$LIBS"
10328    LIBS="$lt_cv_dlopen_libs $LIBS"
10329
10330    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10331echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10332if test "${lt_cv_dlopen_self+set}" = set; then
10333  echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
10335  	  if test "$cross_compiling" = yes; then :
10336  lt_cv_dlopen_self=cross
10337else
10338  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10339  lt_status=$lt_dlunknown
10340  cat > conftest.$ac_ext <<_LT_EOF
10341#line 10341 "configure"
10342#include "confdefs.h"
10343
10344#if HAVE_DLFCN_H
10345#include <dlfcn.h>
10346#endif
10347
10348#include <stdio.h>
10349
10350#ifdef RTLD_GLOBAL
10351#  define LT_DLGLOBAL		RTLD_GLOBAL
10352#else
10353#  ifdef DL_GLOBAL
10354#    define LT_DLGLOBAL		DL_GLOBAL
10355#  else
10356#    define LT_DLGLOBAL		0
10357#  endif
10358#endif
10359
10360/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10361   find out it does not work in some platform. */
10362#ifndef LT_DLLAZY_OR_NOW
10363#  ifdef RTLD_LAZY
10364#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10365#  else
10366#    ifdef DL_LAZY
10367#      define LT_DLLAZY_OR_NOW		DL_LAZY
10368#    else
10369#      ifdef RTLD_NOW
10370#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10371#      else
10372#        ifdef DL_NOW
10373#          define LT_DLLAZY_OR_NOW	DL_NOW
10374#        else
10375#          define LT_DLLAZY_OR_NOW	0
10376#        endif
10377#      endif
10378#    endif
10379#  endif
10380#endif
10381
10382void fnord() { int i=42;}
10383int main ()
10384{
10385  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10386  int status = $lt_dlunknown;
10387
10388  if (self)
10389    {
10390      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10391      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10392      /* dlclose (self); */
10393    }
10394  else
10395    puts (dlerror ());
10396
10397  return status;
10398}
10399_LT_EOF
10400  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401  (eval $ac_link) 2>&5
10402  ac_status=$?
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10405    (./conftest; exit; ) >&5 2>/dev/null
10406    lt_status=$?
10407    case x$lt_status in
10408      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10409      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10410      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10411    esac
10412  else :
10413    # compilation failed
10414    lt_cv_dlopen_self=no
10415  fi
10416fi
10417rm -fr conftest*
10418
10419
10420fi
10421{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10422echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10423
10424    if test "x$lt_cv_dlopen_self" = xyes; then
10425      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10426      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10427echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10428if test "${lt_cv_dlopen_self_static+set}" = set; then
10429  echo $ECHO_N "(cached) $ECHO_C" >&6
10430else
10431  	  if test "$cross_compiling" = yes; then :
10432  lt_cv_dlopen_self_static=cross
10433else
10434  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10435  lt_status=$lt_dlunknown
10436  cat > conftest.$ac_ext <<_LT_EOF
10437#line 10437 "configure"
10438#include "confdefs.h"
10439
10440#if HAVE_DLFCN_H
10441#include <dlfcn.h>
10442#endif
10443
10444#include <stdio.h>
10445
10446#ifdef RTLD_GLOBAL
10447#  define LT_DLGLOBAL		RTLD_GLOBAL
10448#else
10449#  ifdef DL_GLOBAL
10450#    define LT_DLGLOBAL		DL_GLOBAL
10451#  else
10452#    define LT_DLGLOBAL		0
10453#  endif
10454#endif
10455
10456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10457   find out it does not work in some platform. */
10458#ifndef LT_DLLAZY_OR_NOW
10459#  ifdef RTLD_LAZY
10460#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10461#  else
10462#    ifdef DL_LAZY
10463#      define LT_DLLAZY_OR_NOW		DL_LAZY
10464#    else
10465#      ifdef RTLD_NOW
10466#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10467#      else
10468#        ifdef DL_NOW
10469#          define LT_DLLAZY_OR_NOW	DL_NOW
10470#        else
10471#          define LT_DLLAZY_OR_NOW	0
10472#        endif
10473#      endif
10474#    endif
10475#  endif
10476#endif
10477
10478void fnord() { int i=42;}
10479int main ()
10480{
10481  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10482  int status = $lt_dlunknown;
10483
10484  if (self)
10485    {
10486      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10487      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10488      /* dlclose (self); */
10489    }
10490  else
10491    puts (dlerror ());
10492
10493  return status;
10494}
10495_LT_EOF
10496  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497  (eval $ac_link) 2>&5
10498  ac_status=$?
10499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10501    (./conftest; exit; ) >&5 2>/dev/null
10502    lt_status=$?
10503    case x$lt_status in
10504      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10505      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10506      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10507    esac
10508  else :
10509    # compilation failed
10510    lt_cv_dlopen_self_static=no
10511  fi
10512fi
10513rm -fr conftest*
10514
10515
10516fi
10517{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10518echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10519    fi
10520
10521    CPPFLAGS="$save_CPPFLAGS"
10522    LDFLAGS="$save_LDFLAGS"
10523    LIBS="$save_LIBS"
10524    ;;
10525  esac
10526
10527  case $lt_cv_dlopen_self in
10528  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10529  *) enable_dlopen_self=unknown ;;
10530  esac
10531
10532  case $lt_cv_dlopen_self_static in
10533  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10534  *) enable_dlopen_self_static=unknown ;;
10535  esac
10536fi
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554striplib=
10555old_striplib=
10556{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10557echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10558if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10559  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10560  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10561  { echo "$as_me:$LINENO: result: yes" >&5
10562echo "${ECHO_T}yes" >&6; }
10563else
10564# FIXME - insert some real tests, host_os isn't really good enough
10565  case $host_os in
10566  darwin*)
10567    if test -n "$STRIP" ; then
10568      striplib="$STRIP -x"
10569      old_striplib="$STRIP -S"
10570      { echo "$as_me:$LINENO: result: yes" >&5
10571echo "${ECHO_T}yes" >&6; }
10572    else
10573      { echo "$as_me:$LINENO: result: no" >&5
10574echo "${ECHO_T}no" >&6; }
10575    fi
10576    ;;
10577  *)
10578    { echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6; }
10580    ;;
10581  esac
10582fi
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595  # Report which library types will actually be built
10596  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10597echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10598  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10599echo "${ECHO_T}$can_build_shared" >&6; }
10600
10601  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10602echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10603  test "$can_build_shared" = "no" && enable_shared=no
10604
10605  # On AIX, shared libraries and static libraries use the same namespace, and
10606  # are all built from PIC.
10607  case $host_os in
10608  aix3*)
10609    test "$enable_shared" = yes && enable_static=no
10610    if test -n "$RANLIB"; then
10611      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10612      postinstall_cmds='$RANLIB $lib'
10613    fi
10614    ;;
10615
10616  aix[4-9]*)
10617    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10618      test "$enable_shared" = yes && enable_static=no
10619    fi
10620    ;;
10621  esac
10622  { echo "$as_me:$LINENO: result: $enable_shared" >&5
10623echo "${ECHO_T}$enable_shared" >&6; }
10624
10625  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10626echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10627  # Make sure either enable_shared or enable_static is yes.
10628  test "$enable_shared" = yes || enable_static=yes
10629  { echo "$as_me:$LINENO: result: $enable_static" >&5
10630echo "${ECHO_T}$enable_static" >&6; }
10631
10632
10633
10634
10635fi
10636ac_ext=c
10637ac_cpp='$CPP $CPPFLAGS'
10638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10640ac_compiler_gnu=$ac_cv_c_compiler_gnu
10641
10642CC="$lt_save_CC"
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656        ac_config_commands="$ac_config_commands libtool"
10657
10658
10659
10660
10661# Only expand once:
10662
10663
10664
10665LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10666LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10667LT_REVISION=$INTERFACE_AGE
10668LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10669
10670
10671
10672
10673
10674
10675
10676ac_aux_dir=
10677for ac_dir in $srcdir/build-scripts; do
10678  if test -f "$ac_dir/install-sh"; then
10679    ac_aux_dir=$ac_dir
10680    ac_install_sh="$ac_aux_dir/install-sh -c"
10681    break
10682  elif test -f "$ac_dir/install.sh"; then
10683    ac_aux_dir=$ac_dir
10684    ac_install_sh="$ac_aux_dir/install.sh -c"
10685    break
10686  elif test -f "$ac_dir/shtool"; then
10687    ac_aux_dir=$ac_dir
10688    ac_install_sh="$ac_aux_dir/shtool install -c"
10689    break
10690  fi
10691done
10692if test -z "$ac_aux_dir"; then
10693  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
10694echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
10695   { (exit 1); exit 1; }; }
10696fi
10697
10698# These three variables are undocumented and unsupported,
10699# and are intended to be withdrawn in a future Autoconf release.
10700# They can cause serious problems if a builder's source tree is in a directory
10701# whose full name contains unusual characters.
10702ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10703ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10704ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10705
10706
10707
10708
10709ac_ext=c
10710ac_cpp='$CPP $CPPFLAGS'
10711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10713ac_compiler_gnu=$ac_cv_c_compiler_gnu
10714if test -n "$ac_tool_prefix"; then
10715  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10716set dummy ${ac_tool_prefix}gcc; ac_word=$2
10717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10719if test "${ac_cv_prog_CC+set}" = set; then
10720  echo $ECHO_N "(cached) $ECHO_C" >&6
10721else
10722  if test -n "$CC"; then
10723  ac_cv_prog_CC="$CC" # Let the user override the test.
10724else
10725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10726for as_dir in $PATH
10727do
10728  IFS=$as_save_IFS
10729  test -z "$as_dir" && as_dir=.
10730  for ac_exec_ext in '' $ac_executable_extensions; do
10731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10732    ac_cv_prog_CC="${ac_tool_prefix}gcc"
10733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10734    break 2
10735  fi
10736done
10737done
10738IFS=$as_save_IFS
10739
10740fi
10741fi
10742CC=$ac_cv_prog_CC
10743if test -n "$CC"; then
10744  { echo "$as_me:$LINENO: result: $CC" >&5
10745echo "${ECHO_T}$CC" >&6; }
10746else
10747  { echo "$as_me:$LINENO: result: no" >&5
10748echo "${ECHO_T}no" >&6; }
10749fi
10750
10751
10752fi
10753if test -z "$ac_cv_prog_CC"; then
10754  ac_ct_CC=$CC
10755  # Extract the first word of "gcc", so it can be a program name with args.
10756set dummy gcc; ac_word=$2
10757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10759if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10760  echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762  if test -n "$ac_ct_CC"; then
10763  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10764else
10765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768  IFS=$as_save_IFS
10769  test -z "$as_dir" && as_dir=.
10770  for ac_exec_ext in '' $ac_executable_extensions; do
10771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772    ac_cv_prog_ac_ct_CC="gcc"
10773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10774    break 2
10775  fi
10776done
10777done
10778IFS=$as_save_IFS
10779
10780fi
10781fi
10782ac_ct_CC=$ac_cv_prog_ac_ct_CC
10783if test -n "$ac_ct_CC"; then
10784  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10785echo "${ECHO_T}$ac_ct_CC" >&6; }
10786else
10787  { echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6; }
10789fi
10790
10791  if test "x$ac_ct_CC" = x; then
10792    CC=""
10793  else
10794    case $cross_compiling:$ac_tool_warned in
10795yes:)
10796{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10797whose name does not start with the host triplet.  If you think this
10798configuration is useful to you, please write to autoconf@gnu.org." >&5
10799echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10800whose name does not start with the host triplet.  If you think this
10801configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10802ac_tool_warned=yes ;;
10803esac
10804    CC=$ac_ct_CC
10805  fi
10806else
10807  CC="$ac_cv_prog_CC"
10808fi
10809
10810if test -z "$CC"; then
10811          if test -n "$ac_tool_prefix"; then
10812    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10813set dummy ${ac_tool_prefix}cc; ac_word=$2
10814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10816if test "${ac_cv_prog_CC+set}" = set; then
10817  echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819  if test -n "$CC"; then
10820  ac_cv_prog_CC="$CC" # Let the user override the test.
10821else
10822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825  IFS=$as_save_IFS
10826  test -z "$as_dir" && as_dir=.
10827  for ac_exec_ext in '' $ac_executable_extensions; do
10828  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10829    ac_cv_prog_CC="${ac_tool_prefix}cc"
10830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10831    break 2
10832  fi
10833done
10834done
10835IFS=$as_save_IFS
10836
10837fi
10838fi
10839CC=$ac_cv_prog_CC
10840if test -n "$CC"; then
10841  { echo "$as_me:$LINENO: result: $CC" >&5
10842echo "${ECHO_T}$CC" >&6; }
10843else
10844  { echo "$as_me:$LINENO: result: no" >&5
10845echo "${ECHO_T}no" >&6; }
10846fi
10847
10848
10849  fi
10850fi
10851if test -z "$CC"; then
10852  # Extract the first word of "cc", so it can be a program name with args.
10853set dummy cc; ac_word=$2
10854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10856if test "${ac_cv_prog_CC+set}" = set; then
10857  echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859  if test -n "$CC"; then
10860  ac_cv_prog_CC="$CC" # Let the user override the test.
10861else
10862  ac_prog_rejected=no
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866  IFS=$as_save_IFS
10867  test -z "$as_dir" && as_dir=.
10868  for ac_exec_ext in '' $ac_executable_extensions; do
10869  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10871       ac_prog_rejected=yes
10872       continue
10873     fi
10874    ac_cv_prog_CC="cc"
10875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876    break 2
10877  fi
10878done
10879done
10880IFS=$as_save_IFS
10881
10882if test $ac_prog_rejected = yes; then
10883  # We found a bogon in the path, so make sure we never use it.
10884  set dummy $ac_cv_prog_CC
10885  shift
10886  if test $# != 0; then
10887    # We chose a different compiler from the bogus one.
10888    # However, it has the same basename, so the bogon will be chosen
10889    # first if we set CC to just the basename; use the full file name.
10890    shift
10891    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10892  fi
10893fi
10894fi
10895fi
10896CC=$ac_cv_prog_CC
10897if test -n "$CC"; then
10898  { echo "$as_me:$LINENO: result: $CC" >&5
10899echo "${ECHO_T}$CC" >&6; }
10900else
10901  { echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6; }
10903fi
10904
10905
10906fi
10907if test -z "$CC"; then
10908  if test -n "$ac_tool_prefix"; then
10909  for ac_prog in cl.exe
10910  do
10911    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10912set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10913{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10915if test "${ac_cv_prog_CC+set}" = set; then
10916  echo $ECHO_N "(cached) $ECHO_C" >&6
10917else
10918  if test -n "$CC"; then
10919  ac_cv_prog_CC="$CC" # Let the user override the test.
10920else
10921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922for as_dir in $PATH
10923do
10924  IFS=$as_save_IFS
10925  test -z "$as_dir" && as_dir=.
10926  for ac_exec_ext in '' $ac_executable_extensions; do
10927  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10930    break 2
10931  fi
10932done
10933done
10934IFS=$as_save_IFS
10935
10936fi
10937fi
10938CC=$ac_cv_prog_CC
10939if test -n "$CC"; then
10940  { echo "$as_me:$LINENO: result: $CC" >&5
10941echo "${ECHO_T}$CC" >&6; }
10942else
10943  { echo "$as_me:$LINENO: result: no" >&5
10944echo "${ECHO_T}no" >&6; }
10945fi
10946
10947
10948    test -n "$CC" && break
10949  done
10950fi
10951if test -z "$CC"; then
10952  ac_ct_CC=$CC
10953  for ac_prog in cl.exe
10954do
10955  # Extract the first word of "$ac_prog", so it can be a program name with args.
10956set dummy $ac_prog; ac_word=$2
10957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10959if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10960  echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962  if test -n "$ac_ct_CC"; then
10963  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10964else
10965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966for as_dir in $PATH
10967do
10968  IFS=$as_save_IFS
10969  test -z "$as_dir" && as_dir=.
10970  for ac_exec_ext in '' $ac_executable_extensions; do
10971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10972    ac_cv_prog_ac_ct_CC="$ac_prog"
10973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10974    break 2
10975  fi
10976done
10977done
10978IFS=$as_save_IFS
10979
10980fi
10981fi
10982ac_ct_CC=$ac_cv_prog_ac_ct_CC
10983if test -n "$ac_ct_CC"; then
10984  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10985echo "${ECHO_T}$ac_ct_CC" >&6; }
10986else
10987  { echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6; }
10989fi
10990
10991
10992  test -n "$ac_ct_CC" && break
10993done
10994
10995  if test "x$ac_ct_CC" = x; then
10996    CC=""
10997  else
10998    case $cross_compiling:$ac_tool_warned in
10999yes:)
11000{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11001whose name does not start with the host triplet.  If you think this
11002configuration is useful to you, please write to autoconf@gnu.org." >&5
11003echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11004whose name does not start with the host triplet.  If you think this
11005configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11006ac_tool_warned=yes ;;
11007esac
11008    CC=$ac_ct_CC
11009  fi
11010fi
11011
11012fi
11013
11014
11015test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11016See \`config.log' for more details." >&5
11017echo "$as_me: error: no acceptable C compiler found in \$PATH
11018See \`config.log' for more details." >&2;}
11019   { (exit 1); exit 1; }; }
11020
11021# Provide some information about the compiler.
11022echo "$as_me:$LINENO: checking for C compiler version" >&5
11023ac_compiler=`set X $ac_compile; echo $2`
11024{ (ac_try="$ac_compiler --version >&5"
11025case "(($ac_try" in
11026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027  *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030  (eval "$ac_compiler --version >&5") 2>&5
11031  ac_status=$?
11032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033  (exit $ac_status); }
11034{ (ac_try="$ac_compiler -v >&5"
11035case "(($ac_try" in
11036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037  *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040  (eval "$ac_compiler -v >&5") 2>&5
11041  ac_status=$?
11042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043  (exit $ac_status); }
11044{ (ac_try="$ac_compiler -V >&5"
11045case "(($ac_try" in
11046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047  *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050  (eval "$ac_compiler -V >&5") 2>&5
11051  ac_status=$?
11052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053  (exit $ac_status); }
11054
11055{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11056echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11057if test "${ac_cv_c_compiler_gnu+set}" = set; then
11058  echo $ECHO_N "(cached) $ECHO_C" >&6
11059else
11060  cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h.  */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h.  */
11066
11067int
11068main ()
11069{
11070#ifndef __GNUC__
11071       choke me
11072#endif
11073
11074  ;
11075  return 0;
11076}
11077_ACEOF
11078rm -f conftest.$ac_objext
11079if { (ac_try="$ac_compile"
11080case "(($ac_try" in
11081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082  *) ac_try_echo=$ac_try;;
11083esac
11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085  (eval "$ac_compile") 2>conftest.er1
11086  ac_status=$?
11087  grep -v '^ *+' conftest.er1 >conftest.err
11088  rm -f conftest.er1
11089  cat conftest.err >&5
11090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091  (exit $ac_status); } && {
11092	 test -z "$ac_c_werror_flag" ||
11093	 test ! -s conftest.err
11094       } && test -s conftest.$ac_objext; then
11095  ac_compiler_gnu=yes
11096else
11097  echo "$as_me: failed program was:" >&5
11098sed 's/^/| /' conftest.$ac_ext >&5
11099
11100	ac_compiler_gnu=no
11101fi
11102
11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104ac_cv_c_compiler_gnu=$ac_compiler_gnu
11105
11106fi
11107{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11108echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11109GCC=`test $ac_compiler_gnu = yes && echo yes`
11110ac_test_CFLAGS=${CFLAGS+set}
11111ac_save_CFLAGS=$CFLAGS
11112{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11113echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11114if test "${ac_cv_prog_cc_g+set}" = set; then
11115  echo $ECHO_N "(cached) $ECHO_C" >&6
11116else
11117  ac_save_c_werror_flag=$ac_c_werror_flag
11118   ac_c_werror_flag=yes
11119   ac_cv_prog_cc_g=no
11120   CFLAGS="-g"
11121   cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h.  */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h.  */
11127
11128int
11129main ()
11130{
11131
11132  ;
11133  return 0;
11134}
11135_ACEOF
11136rm -f conftest.$ac_objext
11137if { (ac_try="$ac_compile"
11138case "(($ac_try" in
11139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140  *) ac_try_echo=$ac_try;;
11141esac
11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143  (eval "$ac_compile") 2>conftest.er1
11144  ac_status=$?
11145  grep -v '^ *+' conftest.er1 >conftest.err
11146  rm -f conftest.er1
11147  cat conftest.err >&5
11148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149  (exit $ac_status); } && {
11150	 test -z "$ac_c_werror_flag" ||
11151	 test ! -s conftest.err
11152       } && test -s conftest.$ac_objext; then
11153  ac_cv_prog_cc_g=yes
11154else
11155  echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158	CFLAGS=""
11159      cat >conftest.$ac_ext <<_ACEOF
11160/* confdefs.h.  */
11161_ACEOF
11162cat confdefs.h >>conftest.$ac_ext
11163cat >>conftest.$ac_ext <<_ACEOF
11164/* end confdefs.h.  */
11165
11166int
11167main ()
11168{
11169
11170  ;
11171  return 0;
11172}
11173_ACEOF
11174rm -f conftest.$ac_objext
11175if { (ac_try="$ac_compile"
11176case "(($ac_try" in
11177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178  *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181  (eval "$ac_compile") 2>conftest.er1
11182  ac_status=$?
11183  grep -v '^ *+' conftest.er1 >conftest.err
11184  rm -f conftest.er1
11185  cat conftest.err >&5
11186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187  (exit $ac_status); } && {
11188	 test -z "$ac_c_werror_flag" ||
11189	 test ! -s conftest.err
11190       } && test -s conftest.$ac_objext; then
11191  :
11192else
11193  echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196	ac_c_werror_flag=$ac_save_c_werror_flag
11197	 CFLAGS="-g"
11198	 cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h.  */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h.  */
11204
11205int
11206main ()
11207{
11208
11209  ;
11210  return 0;
11211}
11212_ACEOF
11213rm -f conftest.$ac_objext
11214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217  *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220  (eval "$ac_compile") 2>conftest.er1
11221  ac_status=$?
11222  grep -v '^ *+' conftest.er1 >conftest.err
11223  rm -f conftest.er1
11224  cat conftest.err >&5
11225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226  (exit $ac_status); } && {
11227	 test -z "$ac_c_werror_flag" ||
11228	 test ! -s conftest.err
11229       } && test -s conftest.$ac_objext; then
11230  ac_cv_prog_cc_g=yes
11231else
11232  echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235
11236fi
11237
11238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239fi
11240
11241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242fi
11243
11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245   ac_c_werror_flag=$ac_save_c_werror_flag
11246fi
11247{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11248echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11249if test "$ac_test_CFLAGS" = set; then
11250  CFLAGS=$ac_save_CFLAGS
11251elif test $ac_cv_prog_cc_g = yes; then
11252  if test "$GCC" = yes; then
11253    CFLAGS="-g -O2"
11254  else
11255    CFLAGS="-g"
11256  fi
11257else
11258  if test "$GCC" = yes; then
11259    CFLAGS="-O2"
11260  else
11261    CFLAGS=
11262  fi
11263fi
11264{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11265echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11266if test "${ac_cv_prog_cc_c89+set}" = set; then
11267  echo $ECHO_N "(cached) $ECHO_C" >&6
11268else
11269  ac_cv_prog_cc_c89=no
11270ac_save_CC=$CC
11271cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h.  */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h.  */
11277#include <stdarg.h>
11278#include <stdio.h>
11279#include <sys/types.h>
11280#include <sys/stat.h>
11281/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11282struct buf { int x; };
11283FILE * (*rcsopen) (struct buf *, struct stat *, int);
11284static char *e (p, i)
11285     char **p;
11286     int i;
11287{
11288  return p[i];
11289}
11290static char *f (char * (*g) (char **, int), char **p, ...)
11291{
11292  char *s;
11293  va_list v;
11294  va_start (v,p);
11295  s = g (p, va_arg (v,int));
11296  va_end (v);
11297  return s;
11298}
11299
11300/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11301   function prototypes and stuff, but not '\xHH' hex character constants.
11302   These don't provoke an error unfortunately, instead are silently treated
11303   as 'x'.  The following induces an error, until -std is added to get
11304   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11305   array size at least.  It's necessary to write '\x00'==0 to get something
11306   that's true only with -std.  */
11307int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11308
11309/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11310   inside strings and character constants.  */
11311#define FOO(x) 'x'
11312int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11313
11314int test (int i, double x);
11315struct s1 {int (*f) (int a);};
11316struct s2 {int (*f) (double a);};
11317int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11318int argc;
11319char **argv;
11320int
11321main ()
11322{
11323return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11329	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11330do
11331  CC="$ac_save_CC $ac_arg"
11332  rm -f conftest.$ac_objext
11333if { (ac_try="$ac_compile"
11334case "(($ac_try" in
11335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336  *) ac_try_echo=$ac_try;;
11337esac
11338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339  (eval "$ac_compile") 2>conftest.er1
11340  ac_status=$?
11341  grep -v '^ *+' conftest.er1 >conftest.err
11342  rm -f conftest.er1
11343  cat conftest.err >&5
11344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345  (exit $ac_status); } && {
11346	 test -z "$ac_c_werror_flag" ||
11347	 test ! -s conftest.err
11348       } && test -s conftest.$ac_objext; then
11349  ac_cv_prog_cc_c89=$ac_arg
11350else
11351  echo "$as_me: failed program was:" >&5
11352sed 's/^/| /' conftest.$ac_ext >&5
11353
11354
11355fi
11356
11357rm -f core conftest.err conftest.$ac_objext
11358  test "x$ac_cv_prog_cc_c89" != "xno" && break
11359done
11360rm -f conftest.$ac_ext
11361CC=$ac_save_CC
11362
11363fi
11364# AC_CACHE_VAL
11365case "x$ac_cv_prog_cc_c89" in
11366  x)
11367    { echo "$as_me:$LINENO: result: none needed" >&5
11368echo "${ECHO_T}none needed" >&6; } ;;
11369  xno)
11370    { echo "$as_me:$LINENO: result: unsupported" >&5
11371echo "${ECHO_T}unsupported" >&6; } ;;
11372  *)
11373    CC="$CC $ac_cv_prog_cc_c89"
11374    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11375echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11376esac
11377
11378
11379ac_ext=c
11380ac_cpp='$CPP $CPPFLAGS'
11381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11383ac_compiler_gnu=$ac_cv_c_compiler_gnu
11384
11385# Find a good install program.  We prefer a C program (faster),
11386# so one script is as good as another.  But avoid the broken or
11387# incompatible versions:
11388# SysV /etc/install, /usr/sbin/install
11389# SunOS /usr/etc/install
11390# IRIX /sbin/install
11391# AIX /bin/install
11392# AmigaOS /C/install, which installs bootblocks on floppy discs
11393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11394# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11396# OS/2's system install, which has a completely different semantic
11397# ./install, which can be erroneously created by make from ./install.sh.
11398{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11399echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11400if test -z "$INSTALL"; then
11401if test "${ac_cv_path_install+set}" = set; then
11402  echo $ECHO_N "(cached) $ECHO_C" >&6
11403else
11404  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405for as_dir in $PATH
11406do
11407  IFS=$as_save_IFS
11408  test -z "$as_dir" && as_dir=.
11409  # Account for people who put trailing slashes in PATH elements.
11410case $as_dir/ in
11411  ./ | .// | /cC/* | \
11412  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11413  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11414  /usr/ucb/* ) ;;
11415  *)
11416    # OSF1 and SCO ODT 3.0 have their own names for install.
11417    # Don't use installbsd from OSF since it installs stuff as root
11418    # by default.
11419    for ac_prog in ginstall scoinst install; do
11420      for ac_exec_ext in '' $ac_executable_extensions; do
11421	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11422	  if test $ac_prog = install &&
11423	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11424	    # AIX install.  It has an incompatible calling convention.
11425	    :
11426	  elif test $ac_prog = install &&
11427	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11428	    # program-specific install script used by HP pwplus--don't use.
11429	    :
11430	  else
11431	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11432	    break 3
11433	  fi
11434	fi
11435      done
11436    done
11437    ;;
11438esac
11439done
11440IFS=$as_save_IFS
11441
11442
11443fi
11444  if test "${ac_cv_path_install+set}" = set; then
11445    INSTALL=$ac_cv_path_install
11446  else
11447    # As a last resort, use the slow shell script.  Don't cache a
11448    # value for INSTALL within a source directory, because that will
11449    # break other packages using the cache if that directory is
11450    # removed, or if the value is a relative name.
11451    INSTALL=$ac_install_sh
11452  fi
11453fi
11454{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11455echo "${ECHO_T}$INSTALL" >&6; }
11456
11457# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11458# It thinks the first close brace ends the variable substitution.
11459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11460
11461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11462
11463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11464
11465{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11466echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11467set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11468if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11469  echo $ECHO_N "(cached) $ECHO_C" >&6
11470else
11471  cat >conftest.make <<\_ACEOF
11472SHELL = /bin/sh
11473all:
11474	@echo '@@@%%%=$(MAKE)=@@@%%%'
11475_ACEOF
11476# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11477case `${MAKE-make} -f conftest.make 2>/dev/null` in
11478  *@@@%%%=?*=@@@%%%*)
11479    eval ac_cv_prog_make_${ac_make}_set=yes;;
11480  *)
11481    eval ac_cv_prog_make_${ac_make}_set=no;;
11482esac
11483rm -f conftest.make
11484fi
11485if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11486  { echo "$as_me:$LINENO: result: yes" >&5
11487echo "${ECHO_T}yes" >&6; }
11488  SET_MAKE=
11489else
11490  { echo "$as_me:$LINENO: result: no" >&5
11491echo "${ECHO_T}no" >&6; }
11492  SET_MAKE="MAKE=${MAKE-make}"
11493fi
11494
11495if test -z "$host_alias"; then
11496    hostaliaswindres=
11497else
11498    hostaliaswindres="$host_alias-windres"
11499fi
11500for ac_prog in windres $hostaliaswindres $host_os-windres
11501do
11502  # Extract the first word of "$ac_prog", so it can be a program name with args.
11503set dummy $ac_prog; ac_word=$2
11504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11506if test "${ac_cv_prog_WINDRES+set}" = set; then
11507  echo $ECHO_N "(cached) $ECHO_C" >&6
11508else
11509  if test -n "$WINDRES"; then
11510  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11511else
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515  IFS=$as_save_IFS
11516  test -z "$as_dir" && as_dir=.
11517  for ac_exec_ext in '' $ac_executable_extensions; do
11518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519    ac_cv_prog_WINDRES="$ac_prog"
11520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11521    break 2
11522  fi
11523done
11524done
11525IFS=$as_save_IFS
11526
11527fi
11528fi
11529WINDRES=$ac_cv_prog_WINDRES
11530if test -n "$WINDRES"; then
11531  { echo "$as_me:$LINENO: result: $WINDRES" >&5
11532echo "${ECHO_T}$WINDRES" >&6; }
11533else
11534  { echo "$as_me:$LINENO: result: no" >&5
11535echo "${ECHO_T}no" >&6; }
11536fi
11537
11538
11539  test -n "$WINDRES" && break
11540done
11541
11542
11543case "$host" in
11544    *-*-cygwin*)
11545        # We build SDL on cygwin without the UNIX emulation layer
11546        BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin"
11547        BASE_LDFLAGS="-mno-cygwin"
11548        ;;
11549    *)
11550        BASE_CFLAGS="-D_GNU_SOURCE=1"
11551        BASE_LDFLAGS=""
11552        ;;
11553esac
11554BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11555EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
11556BUILD_LDFLAGS="$LDFLAGS"
11557EXTRA_LDFLAGS="$BASE_LDFLAGS"
11558## These are common directories to find software packages
11559#for path in /usr/freeware /usr/pkg /usr/local; do
11560#    if test -d $path/include; then
11561#        EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
11562#    fi
11563#    if test -d $path/lib; then
11564#        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
11565#    fi
11566#done
11567CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
11568CFLAGS="$CFLAGS $EXTRA_CFLAGS"
11569LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
11570
11571{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11572echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11573if test "${ac_cv_c_const+set}" = set; then
11574  echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576  cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h.  */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h.  */
11582
11583int
11584main ()
11585{
11586/* FIXME: Include the comments suggested by Paul. */
11587#ifndef __cplusplus
11588  /* Ultrix mips cc rejects this.  */
11589  typedef int charset[2];
11590  const charset cs;
11591  /* SunOS 4.1.1 cc rejects this.  */
11592  char const *const *pcpcc;
11593  char **ppc;
11594  /* NEC SVR4.0.2 mips cc rejects this.  */
11595  struct point {int x, y;};
11596  static struct point const zero = {0,0};
11597  /* AIX XL C 1.02.0.0 rejects this.
11598     It does not let you subtract one const X* pointer from another in
11599     an arm of an if-expression whose if-part is not a constant
11600     expression */
11601  const char *g = "string";
11602  pcpcc = &g + (g ? g-g : 0);
11603  /* HPUX 7.0 cc rejects these. */
11604  ++pcpcc;
11605  ppc = (char**) pcpcc;
11606  pcpcc = (char const *const *) ppc;
11607  { /* SCO 3.2v4 cc rejects this.  */
11608    char *t;
11609    char const *s = 0 ? (char *) 0 : (char const *) 0;
11610
11611    *t++ = 0;
11612    if (s) return 0;
11613  }
11614  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11615    int x[] = {25, 17};
11616    const int *foo = &x[0];
11617    ++foo;
11618  }
11619  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11620    typedef const int *iptr;
11621    iptr p = 0;
11622    ++p;
11623  }
11624  { /* AIX XL C 1.02.0.0 rejects this saying
11625       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11626    struct s { int j; const int *ap[3]; };
11627    struct s *b; b->j = 5;
11628  }
11629  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11630    const int foo = 10;
11631    if (!foo) return 0;
11632  }
11633  return !cs[0] && !zero.x;
11634#endif
11635
11636  ;
11637  return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext
11641if { (ac_try="$ac_compile"
11642case "(($ac_try" in
11643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644  *) ac_try_echo=$ac_try;;
11645esac
11646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647  (eval "$ac_compile") 2>conftest.er1
11648  ac_status=$?
11649  grep -v '^ *+' conftest.er1 >conftest.err
11650  rm -f conftest.er1
11651  cat conftest.err >&5
11652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653  (exit $ac_status); } && {
11654	 test -z "$ac_c_werror_flag" ||
11655	 test ! -s conftest.err
11656       } && test -s conftest.$ac_objext; then
11657  ac_cv_c_const=yes
11658else
11659  echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662	ac_cv_c_const=no
11663fi
11664
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666fi
11667{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11668echo "${ECHO_T}$ac_cv_c_const" >&6; }
11669if test $ac_cv_c_const = no; then
11670
11671cat >>confdefs.h <<\_ACEOF
11672#define const
11673_ACEOF
11674
11675fi
11676
11677
11678# Check whether --enable-dependency-tracking was given.
11679if test "${enable_dependency_tracking+set}" = set; then
11680  enableval=$enable_dependency_tracking;
11681else
11682  enable_dependency_tracking=yes
11683fi
11684
11685if test x$enable_dependency_tracking = xyes; then
11686    have_gcc_mmd_mt=no
11687    { echo "$as_me:$LINENO: checking for GCC -MMD -MT option" >&5
11688echo $ECHO_N "checking for GCC -MMD -MT option... $ECHO_C" >&6; }
11689    cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h.  */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h.  */
11695
11696    #if !defined(__GNUC__) || __GNUC__ < 3
11697    #error Dependency tracking requires GCC 3.0 or newer
11698    #endif
11699
11700int
11701main ()
11702{
11703
11704
11705  ;
11706  return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext
11710if { (ac_try="$ac_compile"
11711case "(($ac_try" in
11712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713  *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716  (eval "$ac_compile") 2>conftest.er1
11717  ac_status=$?
11718  grep -v '^ *+' conftest.er1 >conftest.err
11719  rm -f conftest.er1
11720  cat conftest.err >&5
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); } && {
11723	 test -z "$ac_c_werror_flag" ||
11724	 test ! -s conftest.err
11725       } && test -s conftest.$ac_objext; then
11726
11727    have_gcc_mmd_mt=yes
11728
11729else
11730  echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733
11734fi
11735
11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737    { echo "$as_me:$LINENO: result: $have_gcc_mmd_mt" >&5
11738echo "${ECHO_T}$have_gcc_mmd_mt" >&6; }
11739
11740    if test x$have_gcc_mmd_mt = xyes; then
11741        DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
11742    fi
11743fi
11744
11745case "$host" in
11746    *mingw32ce*)
11747        #VERSION_SOURCES="$srcdir/version.rc"
11748        EXE=".exe"
11749	;;
11750    *-*-cygwin* | *-*-mingw32*)
11751        VERSION_SOURCES="$srcdir/version.rc"
11752        EXE=".exe"
11753        if test "$build" != "$host"; then # cross-compiling
11754            # Default cross-compile location
11755            ac_default_prefix=/usr/local/cross-tools/i386-mingw32
11756        else
11757            # Look for the location of the tools and install there
11758            if test "$BUILD_PREFIX" != ""; then
11759                ac_default_prefix=$BUILD_PREFIX
11760            fi
11761        fi
11762        ;;
11763    *)
11764        SOURCES=""
11765        EXE=""
11766        ;;
11767esac
11768
11769# Standard C sources
11770SOURCES="$SOURCES \
11771$srcdir/effect_position.c \
11772$srcdir/effect_stereoreverse.c \
11773$srcdir/effects_internal.c \
11774$srcdir/load_aiff.c \
11775$srcdir/load_voc.c \
11776$srcdir/mixer.c \
11777$srcdir/music.c"
11778
11779base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
11780
11781CheckVisibilityHidden()
11782{
11783    { echo "$as_me:$LINENO: checking for GCC -fvisibility=hidden option" >&5
11784echo $ECHO_N "checking for GCC -fvisibility=hidden option... $ECHO_C" >&6; }
11785    have_gcc_fvisibility=no
11786
11787    visibility_CFLAGS="-fvisibility=hidden"
11788    save_CFLAGS="$CFLAGS"
11789    CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
11790    cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h.  */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h.  */
11796
11797    #if !defined(__GNUC__) || __GNUC__ < 4
11798    #error SDL only uses visibility attributes in GCC 4 or newer
11799    #endif
11800
11801int
11802main ()
11803{
11804
11805
11806  ;
11807  return 0;
11808}
11809_ACEOF
11810rm -f conftest.$ac_objext
11811if { (ac_try="$ac_compile"
11812case "(($ac_try" in
11813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814  *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817  (eval "$ac_compile") 2>conftest.er1
11818  ac_status=$?
11819  grep -v '^ *+' conftest.er1 >conftest.err
11820  rm -f conftest.er1
11821  cat conftest.err >&5
11822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823  (exit $ac_status); } && {
11824	 test -z "$ac_c_werror_flag" ||
11825	 test ! -s conftest.err
11826       } && test -s conftest.$ac_objext; then
11827
11828    have_gcc_fvisibility=yes
11829
11830else
11831  echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
11833
11834
11835fi
11836
11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838    { echo "$as_me:$LINENO: result: $have_gcc_fvisibility" >&5
11839echo "${ECHO_T}$have_gcc_fvisibility" >&6; }
11840    CFLAGS="$save_CFLAGS"
11841
11842    if test x$have_gcc_fvisibility = xyes; then
11843        EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
11844    fi
11845}
11846
11847
11848find_lib()
11849{
11850    gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
11851    gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
11852    env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
11853    if test "$cross_compiling" = yes; then
11854        host_lib_path=""
11855    else
11856        host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
11857    fi
11858    for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
11859        lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
11860        if test x$lib != x; then
11861            echo $lib
11862            return
11863        fi
11864    done
11865}
11866
11867SDL_VERSION=1.2.10
11868
11869
11870if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11871	if test -n "$ac_tool_prefix"; then
11872  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11873set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11876if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11877  echo $ECHO_N "(cached) $ECHO_C" >&6
11878else
11879  case $PKG_CONFIG in
11880  [\\/]* | ?:[\\/]*)
11881  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11882  ;;
11883  *)
11884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11885for as_dir in $PATH
11886do
11887  IFS=$as_save_IFS
11888  test -z "$as_dir" && as_dir=.
11889  for ac_exec_ext in '' $ac_executable_extensions; do
11890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11891    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11893    break 2
11894  fi
11895done
11896done
11897IFS=$as_save_IFS
11898
11899  ;;
11900esac
11901fi
11902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11903if test -n "$PKG_CONFIG"; then
11904  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11905echo "${ECHO_T}$PKG_CONFIG" >&6; }
11906else
11907  { echo "$as_me:$LINENO: result: no" >&5
11908echo "${ECHO_T}no" >&6; }
11909fi
11910
11911
11912fi
11913if test -z "$ac_cv_path_PKG_CONFIG"; then
11914  ac_pt_PKG_CONFIG=$PKG_CONFIG
11915  # Extract the first word of "pkg-config", so it can be a program name with args.
11916set dummy pkg-config; ac_word=$2
11917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11919if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11920  echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922  case $ac_pt_PKG_CONFIG in
11923  [\\/]* | ?:[\\/]*)
11924  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11925  ;;
11926  *)
11927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930  IFS=$as_save_IFS
11931  test -z "$as_dir" && as_dir=.
11932  for ac_exec_ext in '' $ac_executable_extensions; do
11933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936    break 2
11937  fi
11938done
11939done
11940IFS=$as_save_IFS
11941
11942  ;;
11943esac
11944fi
11945ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11946if test -n "$ac_pt_PKG_CONFIG"; then
11947  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11948echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11949else
11950  { echo "$as_me:$LINENO: result: no" >&5
11951echo "${ECHO_T}no" >&6; }
11952fi
11953
11954  if test "x$ac_pt_PKG_CONFIG" = x; then
11955    PKG_CONFIG=""
11956  else
11957    case $cross_compiling:$ac_tool_warned in
11958yes:)
11959{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11960whose name does not start with the host triplet.  If you think this
11961configuration is useful to you, please write to autoconf@gnu.org." >&5
11962echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11963whose name does not start with the host triplet.  If you think this
11964configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11965ac_tool_warned=yes ;;
11966esac
11967    PKG_CONFIG=$ac_pt_PKG_CONFIG
11968  fi
11969else
11970  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11971fi
11972
11973fi
11974if test -n "$PKG_CONFIG"; then
11975	_pkg_min_version=0.9.0
11976	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11977echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11978	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11979		{ echo "$as_me:$LINENO: result: yes" >&5
11980echo "${ECHO_T}yes" >&6; }
11981	else
11982		{ echo "$as_me:$LINENO: result: no" >&5
11983echo "${ECHO_T}no" >&6; }
11984		PKG_CONFIG=""
11985	fi
11986
11987fi
11988
11989# Check whether --with-sdl-prefix was given.
11990if test "${with_sdl_prefix+set}" = set; then
11991  withval=$with_sdl_prefix; sdl_prefix="$withval"
11992else
11993  sdl_prefix=""
11994fi
11995
11996
11997# Check whether --with-sdl-exec-prefix was given.
11998if test "${with_sdl_exec_prefix+set}" = set; then
11999  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12000else
12001  sdl_exec_prefix=""
12002fi
12003
12004# Check whether --enable-sdltest was given.
12005if test "${enable_sdltest+set}" = set; then
12006  enableval=$enable_sdltest;
12007else
12008  enable_sdltest=yes
12009fi
12010
12011
12012  min_sdl_version=$SDL_VERSION
12013
12014  if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12015
12016pkg_failed=no
12017{ echo "$as_me:$LINENO: checking for SDL" >&5
12018echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12019
12020if test -n "$PKG_CONFIG"; then
12021    if test -n "$SDL_CFLAGS"; then
12022        pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12023    else
12024        if test -n "$PKG_CONFIG" && \
12025    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12026  ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12027  ac_status=$?
12028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029  (exit $ac_status); }; then
12030  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
12031else
12032  pkg_failed=yes
12033fi
12034    fi
12035else
12036	pkg_failed=untried
12037fi
12038if test -n "$PKG_CONFIG"; then
12039    if test -n "$SDL_LIBS"; then
12040        pkg_cv_SDL_LIBS="$SDL_LIBS"
12041    else
12042        if test -n "$PKG_CONFIG" && \
12043    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12044  ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12045  ac_status=$?
12046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047  (exit $ac_status); }; then
12048  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
12049else
12050  pkg_failed=yes
12051fi
12052    fi
12053else
12054	pkg_failed=untried
12055fi
12056
12057
12058
12059if test $pkg_failed = yes; then
12060
12061if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12062        _pkg_short_errors_supported=yes
12063else
12064        _pkg_short_errors_supported=no
12065fi
12066        if test $_pkg_short_errors_supported = yes; then
12067	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12068        else
12069	        SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12070        fi
12071	# Put the nasty error message in config.log where it belongs
12072	echo "$SDL_PKG_ERRORS" >&5
12073
12074	{ echo "$as_me:$LINENO: result: no" >&5
12075echo "${ECHO_T}no" >&6; }
12076                             { echo "$as_me:$LINENO: result: no" >&5
12077echo "${ECHO_T}no" >&6; }
12078             sdl_pc=no
12079
12080elif test $pkg_failed = untried; then
12081	             { echo "$as_me:$LINENO: result: no" >&5
12082echo "${ECHO_T}no" >&6; }
12083             sdl_pc=no
12084
12085else
12086	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12087	SDL_LIBS=$pkg_cv_SDL_LIBS
12088        { echo "$as_me:$LINENO: result: yes" >&5
12089echo "${ECHO_T}yes" >&6; }
12090	sdl_pc=yes
12091fi
12092  else
12093    sdl_pc=no
12094    if test x$sdl_exec_prefix != x ; then
12095      sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12096      if test x${SDL_CONFIG+set} != xset ; then
12097        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12098      fi
12099    fi
12100    if test x$sdl_prefix != x ; then
12101      sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12102      if test x${SDL_CONFIG+set} != xset ; then
12103        SDL_CONFIG=$sdl_prefix/bin/sdl-config
12104      fi
12105    fi
12106  fi
12107
12108  if test "x$sdl_pc" = xyes ; then
12109    no_sdl=""
12110    SDL_CONFIG="pkg-config sdl"
12111  else
12112    as_save_PATH="$PATH"
12113    if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12114      PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12115    fi
12116    # Extract the first word of "sdl-config", so it can be a program name with args.
12117set dummy sdl-config; ac_word=$2
12118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12120if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12121  echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
12123  case $SDL_CONFIG in
12124  [\\/]* | ?:[\\/]*)
12125  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12126  ;;
12127  *)
12128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129for as_dir in $PATH
12130do
12131  IFS=$as_save_IFS
12132  test -z "$as_dir" && as_dir=.
12133  for ac_exec_ext in '' $ac_executable_extensions; do
12134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12135    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12137    break 2
12138  fi
12139done
12140done
12141IFS=$as_save_IFS
12142
12143  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12144  ;;
12145esac
12146fi
12147SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12148if test -n "$SDL_CONFIG"; then
12149  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12150echo "${ECHO_T}$SDL_CONFIG" >&6; }
12151else
12152  { echo "$as_me:$LINENO: result: no" >&5
12153echo "${ECHO_T}no" >&6; }
12154fi
12155
12156
12157    PATH="$as_save_PATH"
12158    { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12159echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12160    no_sdl=""
12161
12162    if test "$SDL_CONFIG" = "no" ; then
12163      no_sdl=yes
12164    else
12165      SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12166      SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12167
12168      sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12169             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12170      sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12171             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12172      sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12173             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12174      if test "x$enable_sdltest" = "xyes" ; then
12175        ac_save_CFLAGS="$CFLAGS"
12176        ac_save_CXXFLAGS="$CXXFLAGS"
12177        ac_save_LIBS="$LIBS"
12178        CFLAGS="$CFLAGS $SDL_CFLAGS"
12179        CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12180        LIBS="$LIBS $SDL_LIBS"
12181      rm -f conf.sdltest
12182      if test "$cross_compiling" = yes; then
12183  echo $ac_n "cross compiling; assumed OK... $ac_c"
12184else
12185  cat >conftest.$ac_ext <<_ACEOF
12186/* confdefs.h.  */
12187_ACEOF
12188cat confdefs.h >>conftest.$ac_ext
12189cat >>conftest.$ac_ext <<_ACEOF
12190/* end confdefs.h.  */
12191
12192#include <stdio.h>
12193#include <stdlib.h>
12194#include <string.h>
12195#include "SDL.h"
12196
12197char*
12198my_strdup (char *str)
12199{
12200  char *new_str;
12201
12202  if (str)
12203    {
12204      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12205      strcpy (new_str, str);
12206    }
12207  else
12208    new_str = NULL;
12209
12210  return new_str;
12211}
12212
12213int main (int argc, char *argv[])
12214{
12215  int major, minor, micro;
12216  char *tmp_version;
12217
12218  /* This hangs on some systems (?)
12219  system ("touch conf.sdltest");
12220  */
12221  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12222
12223  /* HP/UX 9 (%@#!) writes to sscanf strings */
12224  tmp_version = my_strdup("$min_sdl_version");
12225  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12226     printf("%s, bad version string\n", "$min_sdl_version");
12227     exit(1);
12228   }
12229
12230   if (($sdl_major_version > major) ||
12231      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12232      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12233    {
12234      return 0;
12235    }
12236  else
12237    {
12238      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12239      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12240      printf("*** best to upgrade to the required version.\n");
12241      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12242      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12243      printf("*** config.cache before re-running configure\n");
12244      return 1;
12245    }
12246}
12247
12248
12249_ACEOF
12250rm -f conftest$ac_exeext
12251if { (ac_try="$ac_link"
12252case "(($ac_try" in
12253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254  *) ac_try_echo=$ac_try;;
12255esac
12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257  (eval "$ac_link") 2>&5
12258  ac_status=$?
12259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12261  { (case "(($ac_try" in
12262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263  *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266  (eval "$ac_try") 2>&5
12267  ac_status=$?
12268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269  (exit $ac_status); }; }; then
12270  :
12271else
12272  echo "$as_me: program exited with status $ac_status" >&5
12273echo "$as_me: failed program was:" >&5
12274sed 's/^/| /' conftest.$ac_ext >&5
12275
12276( exit $ac_status )
12277no_sdl=yes
12278fi
12279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12280fi
12281
12282
12283        CFLAGS="$ac_save_CFLAGS"
12284        CXXFLAGS="$ac_save_CXXFLAGS"
12285        LIBS="$ac_save_LIBS"
12286      fi
12287    fi
12288    if test "x$no_sdl" = x ; then
12289      { echo "$as_me:$LINENO: result: yes" >&5
12290echo "${ECHO_T}yes" >&6; }
12291    else
12292      { echo "$as_me:$LINENO: result: no" >&5
12293echo "${ECHO_T}no" >&6; }
12294    fi
12295  fi
12296  if test "x$no_sdl" = x ; then
12297     :
12298  else
12299     if test "$SDL_CONFIG" = "no" ; then
12300       echo "*** The sdl-config script installed by SDL could not be found"
12301       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12302       echo "*** your path, or set the SDL_CONFIG environment variable to the"
12303       echo "*** full path to sdl-config."
12304     else
12305       if test -f conf.sdltest ; then
12306        :
12307       else
12308          echo "*** Could not run SDL test program, checking why..."
12309          CFLAGS="$CFLAGS $SDL_CFLAGS"
12310          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12311          LIBS="$LIBS $SDL_LIBS"
12312          cat >conftest.$ac_ext <<_ACEOF
12313/* confdefs.h.  */
12314_ACEOF
12315cat confdefs.h >>conftest.$ac_ext
12316cat >>conftest.$ac_ext <<_ACEOF
12317/* end confdefs.h.  */
12318
12319#include <stdio.h>
12320#include "SDL.h"
12321
12322int main(int argc, char *argv[])
12323{ return 0; }
12324#undef  main
12325#define main K_and_R_C_main
12326
12327int
12328main ()
12329{
12330 return 0;
12331  ;
12332  return 0;
12333}
12334_ACEOF
12335rm -f conftest.$ac_objext conftest$ac_exeext
12336if { (ac_try="$ac_link"
12337case "(($ac_try" in
12338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339  *) ac_try_echo=$ac_try;;
12340esac
12341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342  (eval "$ac_link") 2>conftest.er1
12343  ac_status=$?
12344  grep -v '^ *+' conftest.er1 >conftest.err
12345  rm -f conftest.er1
12346  cat conftest.err >&5
12347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348  (exit $ac_status); } && {
12349	 test -z "$ac_c_werror_flag" ||
12350	 test ! -s conftest.err
12351       } && test -s conftest$ac_exeext &&
12352       $as_test_x conftest$ac_exeext; then
12353   echo "*** The test program compiled, but did not run. This usually means"
12354          echo "*** that the run-time linker is not finding SDL or finding the wrong"
12355          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12356          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12357          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12358          echo "*** is required on your system"
12359	  echo "***"
12360          echo "*** If you have an old version installed, it is best to remove it, although"
12361          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12362else
12363  echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366	 echo "*** The test program failed to compile or link. See the file config.log for the"
12367          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12368          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12369          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12370fi
12371
12372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373      conftest$ac_exeext conftest.$ac_ext
12374          CFLAGS="$ac_save_CFLAGS"
12375          CXXFLAGS="$ac_save_CXXFLAGS"
12376          LIBS="$ac_save_LIBS"
12377       fi
12378     fi
12379     SDL_CFLAGS=""
12380     SDL_LIBS=""
12381     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
12382echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
12383   { (exit 1); exit 1; }; }
12384
12385  fi
12386
12387
12388  rm -f conf.sdltest
12389
12390EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS"
12391EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SDL_LIBS"
12392
12393{ echo "$as_me:$LINENO: checking for pow in -lm" >&5
12394echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
12395if test "${ac_cv_lib_m_pow+set}" = set; then
12396  echo $ECHO_N "(cached) $ECHO_C" >&6
12397else
12398  ac_check_lib_save_LIBS=$LIBS
12399LIBS="-lm  $LIBS"
12400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h.  */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h.  */
12406
12407/* Override any GCC internal prototype to avoid an error.
12408   Use char because int might match the return type of a GCC
12409   builtin and then its argument prototype would still apply.  */
12410#ifdef __cplusplus
12411extern "C"
12412#endif
12413char pow ();
12414int
12415main ()
12416{
12417return pow ();
12418  ;
12419  return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (ac_try="$ac_link"
12424case "(($ac_try" in
12425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426  *) ac_try_echo=$ac_try;;
12427esac
12428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429  (eval "$ac_link") 2>conftest.er1
12430  ac_status=$?
12431  grep -v '^ *+' conftest.er1 >conftest.err
12432  rm -f conftest.er1
12433  cat conftest.err >&5
12434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435  (exit $ac_status); } && {
12436	 test -z "$ac_c_werror_flag" ||
12437	 test ! -s conftest.err
12438       } && test -s conftest$ac_exeext &&
12439       $as_test_x conftest$ac_exeext; then
12440  ac_cv_lib_m_pow=yes
12441else
12442  echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445	ac_cv_lib_m_pow=no
12446fi
12447
12448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449      conftest$ac_exeext conftest.$ac_ext
12450LIBS=$ac_check_lib_save_LIBS
12451fi
12452{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
12453echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
12454if test $ac_cv_lib_m_pow = yes; then
12455  LIBM="-lm"
12456fi
12457
12458
12459
12460CheckVisibilityHidden
12461
12462# Check whether --enable-music-cmd was given.
12463if test "${enable_music_cmd+set}" = set; then
12464  enableval=$enable_music_cmd;
12465else
12466  enable_music_cmd=detect
12467fi
12468
12469if test "x$enable_music_cmd" != xno; then
12470
12471
12472for ac_func in fork vfork
12473do
12474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12478  echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480  cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h.  */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
12485/* end confdefs.h.  */
12486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12487   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12488#define $ac_func innocuous_$ac_func
12489
12490/* System header to define __stub macros and hopefully few prototypes,
12491    which can conflict with char $ac_func (); below.
12492    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493    <limits.h> exists even on freestanding compilers.  */
12494
12495#ifdef __STDC__
12496# include <limits.h>
12497#else
12498# include <assert.h>
12499#endif
12500
12501#undef $ac_func
12502
12503/* Override any GCC internal prototype to avoid an error.
12504   Use char because int might match the return type of a GCC
12505   builtin and then its argument prototype would still apply.  */
12506#ifdef __cplusplus
12507extern "C"
12508#endif
12509char $ac_func ();
12510/* The GNU C library defines this for functions which it implements
12511    to always fail with ENOSYS.  Some functions are actually named
12512    something starting with __ and the normal name is an alias.  */
12513#if defined __stub_$ac_func || defined __stub___$ac_func
12514choke me
12515#endif
12516
12517int
12518main ()
12519{
12520return $ac_func ();
12521  ;
12522  return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext conftest$ac_exeext
12526if { (ac_try="$ac_link"
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_link") 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); } && {
12539	 test -z "$ac_c_werror_flag" ||
12540	 test ! -s conftest.err
12541       } && test -s conftest$ac_exeext &&
12542       $as_test_x conftest$ac_exeext; then
12543  eval "$as_ac_var=yes"
12544else
12545  echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548	eval "$as_ac_var=no"
12549fi
12550
12551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12552      conftest$ac_exeext conftest.$ac_ext
12553fi
12554ac_res=`eval echo '${'$as_ac_var'}'`
12555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12556echo "${ECHO_T}$ac_res" >&6; }
12557if test `eval echo '${'$as_ac_var'}'` = yes; then
12558  cat >>confdefs.h <<_ACEOF
12559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560_ACEOF
12561
12562fi
12563done
12564
12565    if test "x$ac_cv_func_fork" = "xyes"; then
12566        EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_FORK"
12567    elif test "x$ac_cv_func_vfork" = "xyes"; then
12568        EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_VFORK"
12569    elif test "x$enable_music_cmd" = "xyes"; then
12570        { { echo "$as_me:$LINENO: error: external music player not available on your platform" >&5
12571echo "$as_me: error: external music player not available on your platform" >&2;}
12572   { (exit 1); exit 1; }; }
12573    else
12574        enable_music_cmd=no
12575    fi
12576    if test "x$enable_music_cmd" != xno; then
12577        SOURCES="$SOURCES $srcdir/music_cmd.c"
12578        EXTRA_CFLAGS="$EXTRA_CFLAGS -DCMD_MUSIC"
12579    fi
12580fi
12581
12582# Check whether --enable-music-wave was given.
12583if test "${enable_music_wave+set}" = set; then
12584  enableval=$enable_music_wave;
12585else
12586  enable_music_wave=yes
12587fi
12588
12589if test x$enable_music_wave = xyes; then
12590    SOURCES="$SOURCES $srcdir/wavestream.c"
12591    EXTRA_CFLAGS="$EXTRA_CFLAGS -DWAV_MUSIC"
12592fi
12593
12594# Check whether --enable-music-mod was given.
12595if test "${enable_music_mod+set}" = set; then
12596  enableval=$enable_music_mod;
12597else
12598  enable_music_mod=yes
12599fi
12600
12601# Check whether --enable-music-mod-shared was given.
12602if test "${enable_music_mod_shared+set}" = set; then
12603  enableval=$enable_music_mod_shared;
12604else
12605  enable_music_mod_shared=yes
12606fi
12607
12608if test x$enable_music_mod = xyes; then
12609    have_libmikmod=no
12610    libmikmod_maj=3
12611    libmikmod_min=1
12612    libmikmod_rev=10
12613    libmikmod_ver="$libmikmod_maj.$libmikmod_min.$libmikmod_rev"
12614    # Extract the first word of "libmikmod-config", so it can be a program name with args.
12615set dummy libmikmod-config; ac_word=$2
12616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12618if test "${ac_cv_path_LIBMIKMOD_CONFIG+set}" = set; then
12619  echo $ECHO_N "(cached) $ECHO_C" >&6
12620else
12621  case $LIBMIKMOD_CONFIG in
12622  [\\/]* | ?:[\\/]*)
12623  ac_cv_path_LIBMIKMOD_CONFIG="$LIBMIKMOD_CONFIG" # Let the user override the test with a path.
12624  ;;
12625  *)
12626  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629  IFS=$as_save_IFS
12630  test -z "$as_dir" && as_dir=.
12631  for ac_exec_ext in '' $ac_executable_extensions; do
12632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12633    ac_cv_path_LIBMIKMOD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12635    break 2
12636  fi
12637done
12638done
12639IFS=$as_save_IFS
12640
12641  test -z "$ac_cv_path_LIBMIKMOD_CONFIG" && ac_cv_path_LIBMIKMOD_CONFIG="no"
12642  ;;
12643esac
12644fi
12645LIBMIKMOD_CONFIG=$ac_cv_path_LIBMIKMOD_CONFIG
12646if test -n "$LIBMIKMOD_CONFIG"; then
12647  { echo "$as_me:$LINENO: result: $LIBMIKMOD_CONFIG" >&5
12648echo "${ECHO_T}$LIBMIKMOD_CONFIG" >&6; }
12649else
12650  { echo "$as_me:$LINENO: result: no" >&5
12651echo "${ECHO_T}no" >&6; }
12652fi
12653
12654
12655    if test "$LIBMIKMOD_CONFIG" != "no" ; then
12656
12657        CFLAGS_SAVED="$CFLAGS"
12658        LIBS_SAVED="$LIBS"
12659        CFLAGS="$CFLAGS -DLIBMIKMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
12660        LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`"
12661        have_libmikmod=yes
12662        { echo "$as_me:$LINENO: checking for libmikmod - version >= $libmikmod_ver" >&5
12663echo $ECHO_N "checking for libmikmod - version >= $libmikmod_ver... $ECHO_C" >&6; }
12664        if test "$cross_compiling" = yes; then
12665  echo $ac_n "cross compiling; assumed OK... $ac_c"
12666else
12667  cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h.  */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h.  */
12673
12674#include "mikmod.h"
12675#include "stdio.h"
12676
12677int main(int argc, char **argv)
12678{
12679long maj=$libmikmod_maj,min=$libmikmod_min,rev=$libmikmod_rev,ver=MikMod_GetVersion();
12680/*printf("(%d.%d.%d) ",ver>>16,(ver>>8)&0xff,ver&0xff);*/
12681if(ver>=((maj<<16)|(min<<8)|(rev))) {
12682    printf("yes\n");
12683    return 0;
12684}
12685printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev);
12686return 1;
12687}
12688
12689_ACEOF
12690rm -f conftest$ac_exeext
12691if { (ac_try="$ac_link"
12692case "(($ac_try" in
12693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694  *) ac_try_echo=$ac_try;;
12695esac
12696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697  (eval "$ac_link") 2>&5
12698  ac_status=$?
12699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12701  { (case "(($ac_try" in
12702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703  *) ac_try_echo=$ac_try;;
12704esac
12705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706  (eval "$ac_try") 2>&5
12707  ac_status=$?
12708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709  (exit $ac_status); }; }; then
12710  :
12711else
12712  echo "$as_me: program exited with status $ac_status" >&5
12713echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716( exit $ac_status )
12717have_libmikmod=no; CFLAGS="$CFLAGS_SAVED"; LIBS="$LIBS_SAVED"
12718fi
12719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12720fi
12721
12722
12723    fi
12724
12725    if test x$have_libmikmod = xyes; then
12726        case "$host" in
12727            *-*-darwin*)
12728                mikmod_lib=`find_lib libmikmod.dylib`
12729                ;;
12730            *-*-cygwin* | *-*-mingw32*)
12731                mikmod_lib=`find_lib "libmikmod*.dll"`
12732                ;;
12733            *)
12734                mikmod_lib=`find_lib "libmikmod*.so.[0-9]"`
12735                if test x$mikmod_lib = x; then
12736                    mikmod_lib=`find_lib "libmikmod*.so.[0-9]*"`
12737                fi
12738                ;;
12739        esac
12740        SOURCES="$SOURCES $srcdir/*_mod.c"
12741        EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_MUSIC `$LIBMIKMOD_CONFIG --cflags`"
12742        if test x$enable_music_mod_shared = xyes && test x$mikmod_lib != x; then
12743            echo "-- dynamic libmikmod -> $mikmod_lib"
12744            EXTRA_CFLAGS="$EXTRA_CFLAGS -DMOD_DYNAMIC=\\\"$mikmod_lib\\\""
12745        else
12746            EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`"
12747        fi
12748    else
12749        { echo "$as_me:$LINENO: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&5
12750echo "$as_me: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&2;}
12751    fi
12752fi
12753
12754# Check whether --enable-music-mod-modplug was given.
12755if test "${enable_music_mod_modplug+set}" = set; then
12756  enableval=$enable_music_mod_modplug;
12757else
12758  enable_music_mod_modplug=no
12759fi
12760
12761if test x$enable_music_mod_modplug = xyes; then
12762
12763pkg_failed=no
12764{ echo "$as_me:$LINENO: checking for MODPLUG" >&5
12765echo $ECHO_N "checking for MODPLUG... $ECHO_C" >&6; }
12766
12767if test -n "$PKG_CONFIG"; then
12768    if test -n "$MODPLUG_CFLAGS"; then
12769        pkg_cv_MODPLUG_CFLAGS="$MODPLUG_CFLAGS"
12770    else
12771        if test -n "$PKG_CONFIG" && \
12772    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.7\"") >&5
12773  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.7") 2>&5
12774  ac_status=$?
12775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776  (exit $ac_status); }; then
12777  pkg_cv_MODPLUG_CFLAGS=`$PKG_CONFIG --cflags "libmodplug >= 0.8.7" 2>/dev/null`
12778else
12779  pkg_failed=yes
12780fi
12781    fi
12782else
12783	pkg_failed=untried
12784fi
12785if test -n "$PKG_CONFIG"; then
12786    if test -n "$MODPLUG_LIBS"; then
12787        pkg_cv_MODPLUG_LIBS="$MODPLUG_LIBS"
12788    else
12789        if test -n "$PKG_CONFIG" && \
12790    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.7\"") >&5
12791  ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.7") 2>&5
12792  ac_status=$?
12793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794  (exit $ac_status); }; then
12795  pkg_cv_MODPLUG_LIBS=`$PKG_CONFIG --libs "libmodplug >= 0.8.7" 2>/dev/null`
12796else
12797  pkg_failed=yes
12798fi
12799    fi
12800else
12801	pkg_failed=untried
12802fi
12803
12804
12805
12806if test $pkg_failed = yes; then
12807
12808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12809        _pkg_short_errors_supported=yes
12810else
12811        _pkg_short_errors_supported=no
12812fi
12813        if test $_pkg_short_errors_supported = yes; then
12814	        MODPLUG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmodplug >= 0.8.7"`
12815        else
12816	        MODPLUG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmodplug >= 0.8.7"`
12817        fi
12818	# Put the nasty error message in config.log where it belongs
12819	echo "$MODPLUG_PKG_ERRORS" >&5
12820
12821	{ { echo "$as_me:$LINENO: error: Package requirements (libmodplug >= 0.8.7) were not met:
12822
12823$MODPLUG_PKG_ERRORS
12824
12825Consider adjusting the PKG_CONFIG_PATH environment variable if you
12826installed software in a non-standard prefix.
12827
12828Alternatively, you may set the environment variables MODPLUG_CFLAGS
12829and MODPLUG_LIBS to avoid the need to call pkg-config.
12830See the pkg-config man page for more details.
12831" >&5
12832echo "$as_me: error: Package requirements (libmodplug >= 0.8.7) were not met:
12833
12834$MODPLUG_PKG_ERRORS
12835
12836Consider adjusting the PKG_CONFIG_PATH environment variable if you
12837installed software in a non-standard prefix.
12838
12839Alternatively, you may set the environment variables MODPLUG_CFLAGS
12840and MODPLUG_LIBS to avoid the need to call pkg-config.
12841See the pkg-config man page for more details.
12842" >&2;}
12843   { (exit 1); exit 1; }; }
12844elif test $pkg_failed = untried; then
12845	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12846is in your PATH or set the PKG_CONFIG environment variable to the full
12847path to pkg-config.
12848
12849Alternatively, you may set the environment variables MODPLUG_CFLAGS
12850and MODPLUG_LIBS to avoid the need to call pkg-config.
12851See the pkg-config man page for more details.
12852
12853To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12854See \`config.log' for more details." >&5
12855echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12856is in your PATH or set the PKG_CONFIG environment variable to the full
12857path to pkg-config.
12858
12859Alternatively, you may set the environment variables MODPLUG_CFLAGS
12860and MODPLUG_LIBS to avoid the need to call pkg-config.
12861See the pkg-config man page for more details.
12862
12863To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12864See \`config.log' for more details." >&2;}
12865   { (exit 1); exit 1; }; }
12866else
12867	MODPLUG_CFLAGS=$pkg_cv_MODPLUG_CFLAGS
12868	MODPLUG_LIBS=$pkg_cv_MODPLUG_LIBS
12869        { echo "$as_me:$LINENO: result: yes" >&5
12870echo "${ECHO_T}yes" >&6; }
12871	:
12872fi
12873	EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_MUSIC  $MODPLUG_CFLAGS"
12874	EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MODPLUG_LIBS"
12875    have_libmodplug=yes
12876    SOURCES="$SOURCES $srcdir/music_modplug.c"
12877else
12878	have_libmodplug=no
12879fi
12880
12881if test x$have_libmikmod != xyes -a x$have_libmodplug != xyes ; then
12882	{ echo "$as_me:$LINENO: WARNING: MOD support disabled" >&5
12883echo "$as_me: WARNING: MOD support disabled" >&2;}
12884fi
12885
12886# Check whether --enable-music-midi was given.
12887if test "${enable_music_midi+set}" = set; then
12888  enableval=$enable_music_midi;
12889else
12890  enable_music_midi=yes
12891fi
12892
12893if test x$enable_music_midi = xyes; then
12894    EXTRA_CFLAGS="$EXTRA_CFLAGS -DMID_MUSIC"
12895    # Check whether --enable-music-timidity-midi was given.
12896if test "${enable_music_timidity_midi+set}" = set; then
12897  enableval=$enable_music_timidity_midi;
12898else
12899  enable_music_timidity_midi=yes
12900fi
12901
12902    if test x$enable_music_timidity_midi = xyes; then
12903        EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_TIMIDITY_MIDI -I\$(srcdir)/timidity"
12904        SOURCES="$SOURCES $srcdir/timidity/*.c"
12905    fi
12906    # Check whether --enable-music-native-midi was given.
12907if test "${enable_music_native_midi+set}" = set; then
12908  enableval=$enable_music_native_midi;
12909else
12910  enable_music_native_midi=yes
12911fi
12912
12913    if test x$enable_music_native_midi = xyes; then
12914        use_music_native_midi=no
12915        case "$host" in
12916            *mingw32ce*)
12917                use_music_native_midi=no
12918                ;;
12919            *-*-cygwin* | *-*-mingw32*)
12920                use_music_native_midi=yes
12921                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm"
12922                ;;
12923            *-*-darwin*)
12924                use_music_native_midi=yes
12925                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices"
12926                ;;
12927            *-*-haiku*)
12928                use_music_native_midi=yes_cpp
12929                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmidi"
12930                ;;
12931        esac
12932        if test x$use_music_native_midi = xyes; then
12933            EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
12934            SOURCES="$SOURCES $srcdir/native_midi/*.c"
12935        elif test x$use_music_native_midi = xyes_cpp; then
12936            EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_NATIVE_MIDI -I\$(srcdir)/native_midi"
12937            SOURCES="$SOURCES $srcdir/native_midi/*.c"
12938            SOURCES_CXX="$SOURCES_CXX $srcdir/native_midi/*.cpp"
12939        fi
12940    fi
12941    # Check whether --enable-music-fluidsynth-midi was given.
12942if test "${enable_music_fluidsynth_midi+set}" = set; then
12943  enableval=$enable_music_fluidsynth_midi;
12944else
12945  enable_music_fluidsynth_midi=yes
12946fi
12947
12948    # Check whether --enable-music-fluidsynth-shared was given.
12949if test "${enable_music_fluidsynth_shared+set}" = set; then
12950  enableval=$enable_music_fluidsynth_shared;
12951else
12952  enable_music_fluidsynth_shared=yes
12953fi
12954
12955    if test x$enable_music_fluidsynth_midi = xyes; then
12956        if test "${ac_cv_header_fluidsynth_h+set}" = set; then
12957  { echo "$as_me:$LINENO: checking for fluidsynth.h" >&5
12958echo $ECHO_N "checking for fluidsynth.h... $ECHO_C" >&6; }
12959if test "${ac_cv_header_fluidsynth_h+set}" = set; then
12960  echo $ECHO_N "(cached) $ECHO_C" >&6
12961fi
12962{ echo "$as_me:$LINENO: result: $ac_cv_header_fluidsynth_h" >&5
12963echo "${ECHO_T}$ac_cv_header_fluidsynth_h" >&6; }
12964else
12965  # Is the header compilable?
12966{ echo "$as_me:$LINENO: checking fluidsynth.h usability" >&5
12967echo $ECHO_N "checking fluidsynth.h usability... $ECHO_C" >&6; }
12968cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h.  */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h.  */
12974$ac_includes_default
12975#include <fluidsynth.h>
12976_ACEOF
12977rm -f conftest.$ac_objext
12978if { (ac_try="$ac_compile"
12979case "(($ac_try" in
12980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981  *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984  (eval "$ac_compile") 2>conftest.er1
12985  ac_status=$?
12986  grep -v '^ *+' conftest.er1 >conftest.err
12987  rm -f conftest.er1
12988  cat conftest.err >&5
12989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990  (exit $ac_status); } && {
12991	 test -z "$ac_c_werror_flag" ||
12992	 test ! -s conftest.err
12993       } && test -s conftest.$ac_objext; then
12994  ac_header_compiler=yes
12995else
12996  echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999	ac_header_compiler=no
13000fi
13001
13002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13004echo "${ECHO_T}$ac_header_compiler" >&6; }
13005
13006# Is the header present?
13007{ echo "$as_me:$LINENO: checking fluidsynth.h presence" >&5
13008echo $ECHO_N "checking fluidsynth.h presence... $ECHO_C" >&6; }
13009cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h.  */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h.  */
13015#include <fluidsynth.h>
13016_ACEOF
13017if { (ac_try="$ac_cpp conftest.$ac_ext"
13018case "(($ac_try" in
13019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020  *) ac_try_echo=$ac_try;;
13021esac
13022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13024  ac_status=$?
13025  grep -v '^ *+' conftest.er1 >conftest.err
13026  rm -f conftest.er1
13027  cat conftest.err >&5
13028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029  (exit $ac_status); } >/dev/null && {
13030	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13031	 test ! -s conftest.err
13032       }; then
13033  ac_header_preproc=yes
13034else
13035  echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038  ac_header_preproc=no
13039fi
13040
13041rm -f conftest.err conftest.$ac_ext
13042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13043echo "${ECHO_T}$ac_header_preproc" >&6; }
13044
13045# So?  What about this header?
13046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13047  yes:no: )
13048    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: accepted by the compiler, rejected by the preprocessor!" >&5
13049echo "$as_me: WARNING: fluidsynth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13050    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: proceeding with the compiler's result" >&5
13051echo "$as_me: WARNING: fluidsynth.h: proceeding with the compiler's result" >&2;}
13052    ac_header_preproc=yes
13053    ;;
13054  no:yes:* )
13055    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: present but cannot be compiled" >&5
13056echo "$as_me: WARNING: fluidsynth.h: present but cannot be compiled" >&2;}
13057    { echo "$as_me:$LINENO: WARNING: fluidsynth.h:     check for missing prerequisite headers?" >&5
13058echo "$as_me: WARNING: fluidsynth.h:     check for missing prerequisite headers?" >&2;}
13059    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: see the Autoconf documentation" >&5
13060echo "$as_me: WARNING: fluidsynth.h: see the Autoconf documentation" >&2;}
13061    { echo "$as_me:$LINENO: WARNING: fluidsynth.h:     section \"Present But Cannot Be Compiled\"" >&5
13062echo "$as_me: WARNING: fluidsynth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13063    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: proceeding with the preprocessor's result" >&5
13064echo "$as_me: WARNING: fluidsynth.h: proceeding with the preprocessor's result" >&2;}
13065    { echo "$as_me:$LINENO: WARNING: fluidsynth.h: in the future, the compiler will take precedence" >&5
13066echo "$as_me: WARNING: fluidsynth.h: in the future, the compiler will take precedence" >&2;}
13067
13068    ;;
13069esac
13070{ echo "$as_me:$LINENO: checking for fluidsynth.h" >&5
13071echo $ECHO_N "checking for fluidsynth.h... $ECHO_C" >&6; }
13072if test "${ac_cv_header_fluidsynth_h+set}" = set; then
13073  echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075  ac_cv_header_fluidsynth_h=$ac_header_preproc
13076fi
13077{ echo "$as_me:$LINENO: result: $ac_cv_header_fluidsynth_h" >&5
13078echo "${ECHO_T}$ac_cv_header_fluidsynth_h" >&6; }
13079
13080fi
13081if test $ac_cv_header_fluidsynth_h = yes; then
13082  have_fluidsynth_hdr=yes
13083fi
13084
13085
13086        { echo "$as_me:$LINENO: checking for fluid_player_add_mem in -lfluidsynth" >&5
13087echo $ECHO_N "checking for fluid_player_add_mem in -lfluidsynth... $ECHO_C" >&6; }
13088if test "${ac_cv_lib_fluidsynth_fluid_player_add_mem+set}" = set; then
13089  echo $ECHO_N "(cached) $ECHO_C" >&6
13090else
13091  ac_check_lib_save_LIBS=$LIBS
13092LIBS="-lfluidsynth  $LIBS"
13093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h.  */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h.  */
13099
13100/* Override any GCC internal prototype to avoid an error.
13101   Use char because int might match the return type of a GCC
13102   builtin and then its argument prototype would still apply.  */
13103#ifdef __cplusplus
13104extern "C"
13105#endif
13106char fluid_player_add_mem ();
13107int
13108main ()
13109{
13110return fluid_player_add_mem ();
13111  ;
13112  return 0;
13113}
13114_ACEOF
13115rm -f conftest.$ac_objext conftest$ac_exeext
13116if { (ac_try="$ac_link"
13117case "(($ac_try" in
13118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119  *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122  (eval "$ac_link") 2>conftest.er1
13123  ac_status=$?
13124  grep -v '^ *+' conftest.er1 >conftest.err
13125  rm -f conftest.er1
13126  cat conftest.err >&5
13127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128  (exit $ac_status); } && {
13129	 test -z "$ac_c_werror_flag" ||
13130	 test ! -s conftest.err
13131       } && test -s conftest$ac_exeext &&
13132       $as_test_x conftest$ac_exeext; then
13133  ac_cv_lib_fluidsynth_fluid_player_add_mem=yes
13134else
13135  echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138	ac_cv_lib_fluidsynth_fluid_player_add_mem=no
13139fi
13140
13141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13142      conftest$ac_exeext conftest.$ac_ext
13143LIBS=$ac_check_lib_save_LIBS
13144fi
13145{ echo "$as_me:$LINENO: result: $ac_cv_lib_fluidsynth_fluid_player_add_mem" >&5
13146echo "${ECHO_T}$ac_cv_lib_fluidsynth_fluid_player_add_mem" >&6; }
13147if test $ac_cv_lib_fluidsynth_fluid_player_add_mem = yes; then
13148  have_fluidsynth_lib=yes
13149fi
13150
13151        if test x$have_fluidsynth_hdr = xyes -a x$have_fluidsynth_lib = xyes; then
13152            case "$host" in
13153                *-*-darwin*)
13154                    fluidsynth_lib=`find_lib libfluidsynth.dylib`
13155                    if test x$fluidsynth_lib = x; then
13156                        fluidsynth_lib=`find_lib libfluidsynth.[0-9]`
13157                    fi
13158                    if test x$fluidsynth_lib = x; then
13159                        fluidsynth_lib=`find_lib libfluidsynth.[0-9]*`
13160                    fi
13161                    ;;
13162                *-*-cygwin* | *-*-mingw32*)
13163                    fluidsynth_lib=`find_lib "fluidsynth*.dll"`
13164                    ;;
13165                *)
13166                    fluidsynth_lib=`find_lib "libfluidsynth.so.[0-9]"`
13167                    if test x$fluidsynth_lib = x; then
13168                        fluidsynth_lib=`find_lib "libfluidsynth.so.[0-9]*"`
13169                    fi
13170                    ;;
13171            esac
13172            SOURCES="$SOURCES $srcdir/dynamic_fluidsynth.c $srcdir/fluidsynth.c"
13173            EXTRA_CFLAGS="$EXTRA_CFLAGS -DUSE_FLUIDSYNTH_MIDI"
13174            if test x$enable_music_fluidsynth_shared = xyes && test x$fluidsynth_lib != x; then
13175                echo "-- dynamic libfluidsyth -> $fluidsynth_lib"
13176                EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLUIDSYNTH_DYNAMIC=\\\"$fluidsynth_lib\\\""
13177            else
13178                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lfluidsynth"
13179            fi
13180        else
13181            { echo "$as_me:$LINENO: WARNING: *** Unable to find FluidSynth library (http://www.fluidsynth.org/)" >&5
13182echo "$as_me: WARNING: *** Unable to find FluidSynth library (http://www.fluidsynth.org/)" >&2;}
13183            { echo "$as_me:$LINENO: WARNING: FluidSynth support disabled" >&5
13184echo "$as_me: WARNING: FluidSynth support disabled" >&2;}
13185        fi
13186    fi
13187fi
13188
13189# Check whether --enable-music-ogg was given.
13190if test "${enable_music_ogg+set}" = set; then
13191  enableval=$enable_music_ogg;
13192else
13193  enable_music_ogg=yes
13194fi
13195
13196# Check whether --enable-music-ogg-tremor was given.
13197if test "${enable_music_ogg_tremor+set}" = set; then
13198  enableval=$enable_music_ogg_tremor;
13199else
13200  enable_music_ogg_tremor=no
13201fi
13202
13203# Check whether --enable-music-ogg-shared was given.
13204if test "${enable_music_ogg_shared+set}" = set; then
13205  enableval=$enable_music_ogg_shared;
13206else
13207  enable_music_ogg_shared=yes
13208fi
13209
13210if test x$enable_music_ogg = xyes; then
13211    if test x$enable_music_ogg_tremor = xyes; then
13212        if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
13213  { echo "$as_me:$LINENO: checking for tremor/ivorbisfile.h" >&5
13214echo $ECHO_N "checking for tremor/ivorbisfile.h... $ECHO_C" >&6; }
13215if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
13216  echo $ECHO_N "(cached) $ECHO_C" >&6
13217fi
13218{ echo "$as_me:$LINENO: result: $ac_cv_header_tremor_ivorbisfile_h" >&5
13219echo "${ECHO_T}$ac_cv_header_tremor_ivorbisfile_h" >&6; }
13220else
13221  # Is the header compilable?
13222{ echo "$as_me:$LINENO: checking tremor/ivorbisfile.h usability" >&5
13223echo $ECHO_N "checking tremor/ivorbisfile.h usability... $ECHO_C" >&6; }
13224cat >conftest.$ac_ext <<_ACEOF
13225/* confdefs.h.  */
13226_ACEOF
13227cat confdefs.h >>conftest.$ac_ext
13228cat >>conftest.$ac_ext <<_ACEOF
13229/* end confdefs.h.  */
13230$ac_includes_default
13231#include <tremor/ivorbisfile.h>
13232_ACEOF
13233rm -f conftest.$ac_objext
13234if { (ac_try="$ac_compile"
13235case "(($ac_try" in
13236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237  *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240  (eval "$ac_compile") 2>conftest.er1
13241  ac_status=$?
13242  grep -v '^ *+' conftest.er1 >conftest.err
13243  rm -f conftest.er1
13244  cat conftest.err >&5
13245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246  (exit $ac_status); } && {
13247	 test -z "$ac_c_werror_flag" ||
13248	 test ! -s conftest.err
13249       } && test -s conftest.$ac_objext; then
13250  ac_header_compiler=yes
13251else
13252  echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255	ac_header_compiler=no
13256fi
13257
13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13260echo "${ECHO_T}$ac_header_compiler" >&6; }
13261
13262# Is the header present?
13263{ echo "$as_me:$LINENO: checking tremor/ivorbisfile.h presence" >&5
13264echo $ECHO_N "checking tremor/ivorbisfile.h presence... $ECHO_C" >&6; }
13265cat >conftest.$ac_ext <<_ACEOF
13266/* confdefs.h.  */
13267_ACEOF
13268cat confdefs.h >>conftest.$ac_ext
13269cat >>conftest.$ac_ext <<_ACEOF
13270/* end confdefs.h.  */
13271#include <tremor/ivorbisfile.h>
13272_ACEOF
13273if { (ac_try="$ac_cpp conftest.$ac_ext"
13274case "(($ac_try" in
13275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276  *) ac_try_echo=$ac_try;;
13277esac
13278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13280  ac_status=$?
13281  grep -v '^ *+' conftest.er1 >conftest.err
13282  rm -f conftest.er1
13283  cat conftest.err >&5
13284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285  (exit $ac_status); } >/dev/null && {
13286	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13287	 test ! -s conftest.err
13288       }; then
13289  ac_header_preproc=yes
13290else
13291  echo "$as_me: failed program was:" >&5
13292sed 's/^/| /' conftest.$ac_ext >&5
13293
13294  ac_header_preproc=no
13295fi
13296
13297rm -f conftest.err conftest.$ac_ext
13298{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13299echo "${ECHO_T}$ac_header_preproc" >&6; }
13300
13301# So?  What about this header?
13302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13303  yes:no: )
13304    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&5
13305echo "$as_me: WARNING: tremor/ivorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13306    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: proceeding with the compiler's result" >&5
13307echo "$as_me: WARNING: tremor/ivorbisfile.h: proceeding with the compiler's result" >&2;}
13308    ac_header_preproc=yes
13309    ;;
13310  no:yes:* )
13311    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: present but cannot be compiled" >&5
13312echo "$as_me: WARNING: tremor/ivorbisfile.h: present but cannot be compiled" >&2;}
13313    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h:     check for missing prerequisite headers?" >&5
13314echo "$as_me: WARNING: tremor/ivorbisfile.h:     check for missing prerequisite headers?" >&2;}
13315    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: see the Autoconf documentation" >&5
13316echo "$as_me: WARNING: tremor/ivorbisfile.h: see the Autoconf documentation" >&2;}
13317    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&5
13318echo "$as_me: WARNING: tremor/ivorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13319    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: proceeding with the preprocessor's result" >&5
13320echo "$as_me: WARNING: tremor/ivorbisfile.h: proceeding with the preprocessor's result" >&2;}
13321    { echo "$as_me:$LINENO: WARNING: tremor/ivorbisfile.h: in the future, the compiler will take precedence" >&5
13322echo "$as_me: WARNING: tremor/ivorbisfile.h: in the future, the compiler will take precedence" >&2;}
13323
13324    ;;
13325esac
13326{ echo "$as_me:$LINENO: checking for tremor/ivorbisfile.h" >&5
13327echo $ECHO_N "checking for tremor/ivorbisfile.h... $ECHO_C" >&6; }
13328if test "${ac_cv_header_tremor_ivorbisfile_h+set}" = set; then
13329  echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331  ac_cv_header_tremor_ivorbisfile_h=$ac_header_preproc
13332fi
13333{ echo "$as_me:$LINENO: result: $ac_cv_header_tremor_ivorbisfile_h" >&5
13334echo "${ECHO_T}$ac_cv_header_tremor_ivorbisfile_h" >&6; }
13335
13336fi
13337if test $ac_cv_header_tremor_ivorbisfile_h = yes; then
13338  have_tremor_hdr=yes
13339fi
13340
13341
13342        { echo "$as_me:$LINENO: checking for ov_open_callbacks in -lvorbisidec" >&5
13343echo $ECHO_N "checking for ov_open_callbacks in -lvorbisidec... $ECHO_C" >&6; }
13344if test "${ac_cv_lib_vorbisidec_ov_open_callbacks+set}" = set; then
13345  echo $ECHO_N "(cached) $ECHO_C" >&6
13346else
13347  ac_check_lib_save_LIBS=$LIBS
13348LIBS="-lvorbisidec  $LIBS"
13349cat >conftest.$ac_ext <<_ACEOF
13350/* confdefs.h.  */
13351_ACEOF
13352cat confdefs.h >>conftest.$ac_ext
13353cat >>conftest.$ac_ext <<_ACEOF
13354/* end confdefs.h.  */
13355
13356/* Override any GCC internal prototype to avoid an error.
13357   Use char because int might match the return type of a GCC
13358   builtin and then its argument prototype would still apply.  */
13359#ifdef __cplusplus
13360extern "C"
13361#endif
13362char ov_open_callbacks ();
13363int
13364main ()
13365{
13366return ov_open_callbacks ();
13367  ;
13368  return 0;
13369}
13370_ACEOF
13371rm -f conftest.$ac_objext conftest$ac_exeext
13372if { (ac_try="$ac_link"
13373case "(($ac_try" in
13374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375  *) ac_try_echo=$ac_try;;
13376esac
13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378  (eval "$ac_link") 2>conftest.er1
13379  ac_status=$?
13380  grep -v '^ *+' conftest.er1 >conftest.err
13381  rm -f conftest.er1
13382  cat conftest.err >&5
13383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384  (exit $ac_status); } && {
13385	 test -z "$ac_c_werror_flag" ||
13386	 test ! -s conftest.err
13387       } && test -s conftest$ac_exeext &&
13388       $as_test_x conftest$ac_exeext; then
13389  ac_cv_lib_vorbisidec_ov_open_callbacks=yes
13390else
13391  echo "$as_me: failed program was:" >&5
13392sed 's/^/| /' conftest.$ac_ext >&5
13393
13394	ac_cv_lib_vorbisidec_ov_open_callbacks=no
13395fi
13396
13397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13398      conftest$ac_exeext conftest.$ac_ext
13399LIBS=$ac_check_lib_save_LIBS
13400fi
13401{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisidec_ov_open_callbacks" >&5
13402echo "${ECHO_T}$ac_cv_lib_vorbisidec_ov_open_callbacks" >&6; }
13403if test $ac_cv_lib_vorbisidec_ov_open_callbacks = yes; then
13404  have_tremor_lib=yes
13405fi
13406
13407        if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then
13408            case "$host" in
13409                *-*-darwin*)
13410                    ogg_lib=`find_lib libvorbisidec.dylib`
13411                    if test x$ogg_lib = x; then
13412                        ogg_lib=`find_lib libvorbisidec.[0-9]`
13413                    fi
13414                    if test x$ogg_lib = x; then
13415                        ogg_lib=`find_lib libvorbisidec.[0-9]*`
13416                    fi
13417                    ;;
13418                *-*-cygwin* | *-*-mingw32*)
13419                    ogg_lib=`find_lib "vorbisidec*.dll"`
13420                    ;;
13421                *)
13422                    ogg_lib=`find_lib "libvorbisidec.so.[0-9]"`
13423                    if test x$ogg_lib = x; then
13424                        ogg_lib=`find_lib "libvorbisidec.so.[0-9]*"`
13425                    fi
13426                    ;;
13427            esac
13428            SOURCES="$SOURCES $srcdir/*_ogg.c"
13429            EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC -DOGG_USE_TREMOR"
13430            if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
13431                echo "-- dynamic libvorbisidec -> $ogg_lib"
13432                EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
13433            else
13434                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis -logg"
13435            fi
13436        else
13437            { echo "$as_me:$LINENO: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&5
13438echo "$as_me: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&2;}
13439            { echo "$as_me:$LINENO: WARNING: Ogg Vorbis support disabled" >&5
13440echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;}
13441        fi
13442    else
13443        if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
13444  { echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
13445echo $ECHO_N "checking for vorbis/vorbisfile.h... $ECHO_C" >&6; }
13446if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
13447  echo $ECHO_N "(cached) $ECHO_C" >&6
13448fi
13449{ echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
13450echo "${ECHO_T}$ac_cv_header_vorbis_vorbisfile_h" >&6; }
13451else
13452  # Is the header compilable?
13453{ echo "$as_me:$LINENO: checking vorbis/vorbisfile.h usability" >&5
13454echo $ECHO_N "checking vorbis/vorbisfile.h usability... $ECHO_C" >&6; }
13455cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h.  */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h.  */
13461$ac_includes_default
13462#include <vorbis/vorbisfile.h>
13463_ACEOF
13464rm -f conftest.$ac_objext
13465if { (ac_try="$ac_compile"
13466case "(($ac_try" in
13467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468  *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471  (eval "$ac_compile") 2>conftest.er1
13472  ac_status=$?
13473  grep -v '^ *+' conftest.er1 >conftest.err
13474  rm -f conftest.er1
13475  cat conftest.err >&5
13476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477  (exit $ac_status); } && {
13478	 test -z "$ac_c_werror_flag" ||
13479	 test ! -s conftest.err
13480       } && test -s conftest.$ac_objext; then
13481  ac_header_compiler=yes
13482else
13483  echo "$as_me: failed program was:" >&5
13484sed 's/^/| /' conftest.$ac_ext >&5
13485
13486	ac_header_compiler=no
13487fi
13488
13489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491echo "${ECHO_T}$ac_header_compiler" >&6; }
13492
13493# Is the header present?
13494{ echo "$as_me:$LINENO: checking vorbis/vorbisfile.h presence" >&5
13495echo $ECHO_N "checking vorbis/vorbisfile.h presence... $ECHO_C" >&6; }
13496cat >conftest.$ac_ext <<_ACEOF
13497/* confdefs.h.  */
13498_ACEOF
13499cat confdefs.h >>conftest.$ac_ext
13500cat >>conftest.$ac_ext <<_ACEOF
13501/* end confdefs.h.  */
13502#include <vorbis/vorbisfile.h>
13503_ACEOF
13504if { (ac_try="$ac_cpp conftest.$ac_ext"
13505case "(($ac_try" in
13506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507  *) ac_try_echo=$ac_try;;
13508esac
13509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13511  ac_status=$?
13512  grep -v '^ *+' conftest.er1 >conftest.err
13513  rm -f conftest.er1
13514  cat conftest.err >&5
13515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516  (exit $ac_status); } >/dev/null && {
13517	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13518	 test ! -s conftest.err
13519       }; then
13520  ac_header_preproc=yes
13521else
13522  echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525  ac_header_preproc=no
13526fi
13527
13528rm -f conftest.err conftest.$ac_ext
13529{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13530echo "${ECHO_T}$ac_header_preproc" >&6; }
13531
13532# So?  What about this header?
13533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13534  yes:no: )
13535    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&5
13536echo "$as_me: WARNING: vorbis/vorbisfile.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13537    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&5
13538echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the compiler's result" >&2;}
13539    ac_header_preproc=yes
13540    ;;
13541  no:yes:* )
13542    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&5
13543echo "$as_me: WARNING: vorbis/vorbisfile.h: present but cannot be compiled" >&2;}
13544    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h:     check for missing prerequisite headers?" >&5
13545echo "$as_me: WARNING: vorbis/vorbisfile.h:     check for missing prerequisite headers?" >&2;}
13546    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&5
13547echo "$as_me: WARNING: vorbis/vorbisfile.h: see the Autoconf documentation" >&2;}
13548    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&5
13549echo "$as_me: WARNING: vorbis/vorbisfile.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13550    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&5
13551echo "$as_me: WARNING: vorbis/vorbisfile.h: proceeding with the preprocessor's result" >&2;}
13552    { echo "$as_me:$LINENO: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&5
13553echo "$as_me: WARNING: vorbis/vorbisfile.h: in the future, the compiler will take precedence" >&2;}
13554
13555    ;;
13556esac
13557{ echo "$as_me:$LINENO: checking for vorbis/vorbisfile.h" >&5
13558echo $ECHO_N "checking for vorbis/vorbisfile.h... $ECHO_C" >&6; }
13559if test "${ac_cv_header_vorbis_vorbisfile_h+set}" = set; then
13560  echo $ECHO_N "(cached) $ECHO_C" >&6
13561else
13562  ac_cv_header_vorbis_vorbisfile_h=$ac_header_preproc
13563fi
13564{ echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_vorbisfile_h" >&5
13565echo "${ECHO_T}$ac_cv_header_vorbis_vorbisfile_h" >&6; }
13566
13567fi
13568if test $ac_cv_header_vorbis_vorbisfile_h = yes; then
13569  have_ogg_hdr=yes
13570fi
13571
13572
13573        { echo "$as_me:$LINENO: checking for ov_open_callbacks in -lvorbisfile" >&5
13574echo $ECHO_N "checking for ov_open_callbacks in -lvorbisfile... $ECHO_C" >&6; }
13575if test "${ac_cv_lib_vorbisfile_ov_open_callbacks+set}" = set; then
13576  echo $ECHO_N "(cached) $ECHO_C" >&6
13577else
13578  ac_check_lib_save_LIBS=$LIBS
13579LIBS="-lvorbisfile  $LIBS"
13580cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h.  */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h.  */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588   Use char because int might match the return type of a GCC
13589   builtin and then its argument prototype would still apply.  */
13590#ifdef __cplusplus
13591extern "C"
13592#endif
13593char ov_open_callbacks ();
13594int
13595main ()
13596{
13597return ov_open_callbacks ();
13598  ;
13599  return 0;
13600}
13601_ACEOF
13602rm -f conftest.$ac_objext conftest$ac_exeext
13603if { (ac_try="$ac_link"
13604case "(($ac_try" in
13605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606  *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609  (eval "$ac_link") 2>conftest.er1
13610  ac_status=$?
13611  grep -v '^ *+' conftest.er1 >conftest.err
13612  rm -f conftest.er1
13613  cat conftest.err >&5
13614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615  (exit $ac_status); } && {
13616	 test -z "$ac_c_werror_flag" ||
13617	 test ! -s conftest.err
13618       } && test -s conftest$ac_exeext &&
13619       $as_test_x conftest$ac_exeext; then
13620  ac_cv_lib_vorbisfile_ov_open_callbacks=yes
13621else
13622  echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625	ac_cv_lib_vorbisfile_ov_open_callbacks=no
13626fi
13627
13628rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13629      conftest$ac_exeext conftest.$ac_ext
13630LIBS=$ac_check_lib_save_LIBS
13631fi
13632{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5
13633echo "${ECHO_T}$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; }
13634if test $ac_cv_lib_vorbisfile_ov_open_callbacks = yes; then
13635  have_ogg_lib=yes
13636fi
13637
13638        if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then
13639            case "$host" in
13640                *-*-darwin*)
13641                    ogg_lib=`find_lib libvorbisfile.dylib`
13642                    ;;
13643                *-*-cygwin* | *-*-mingw32*)
13644                    ogg_lib=`find_lib "libvorbisfile*.dll"`
13645                    ;;
13646                *)
13647                    ogg_lib=`find_lib "libvorbisfile.so.[0-9]"`
13648                    if test x$ogg_lib = x; then
13649                        ogg_lib=`find_lib "libvorbisfile.so.[0-9]*"`
13650                    fi
13651                    ;;
13652            esac
13653            SOURCES="$SOURCES $srcdir/*_ogg.c"
13654            EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_MUSIC"
13655            if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then
13656                echo "-- dynamic libvorbisfile -> $ogg_lib"
13657                EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\""
13658            else
13659                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis -logg"
13660            fi
13661        else
13662            { echo "$as_me:$LINENO: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&5
13663echo "$as_me: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&2;}
13664            { echo "$as_me:$LINENO: WARNING: Ogg Vorbis support disabled" >&5
13665echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;}
13666        fi
13667    fi
13668fi
13669
13670libflac_ver=8
13671# Check whether --enable-music-flac was given.
13672if test "${enable_music_flac+set}" = set; then
13673  enableval=$enable_music_flac;
13674else
13675  enable_music_flac=yes
13676fi
13677
13678# Check whether --enable-music-flac-shared was given.
13679if test "${enable_music_flac_shared+set}" = set; then
13680  enableval=$enable_music_flac_shared;
13681else
13682  enable_music_flac_shared=yes
13683fi
13684
13685if test x$enable_music_flac = xyes; then
13686    if test "${ac_cv_header_FLAC_export_h+set}" = set; then
13687  { echo "$as_me:$LINENO: checking for FLAC/export.h" >&5
13688echo $ECHO_N "checking for FLAC/export.h... $ECHO_C" >&6; }
13689if test "${ac_cv_header_FLAC_export_h+set}" = set; then
13690  echo $ECHO_N "(cached) $ECHO_C" >&6
13691fi
13692{ echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_export_h" >&5
13693echo "${ECHO_T}$ac_cv_header_FLAC_export_h" >&6; }
13694else
13695  # Is the header compilable?
13696{ echo "$as_me:$LINENO: checking FLAC/export.h usability" >&5
13697echo $ECHO_N "checking FLAC/export.h usability... $ECHO_C" >&6; }
13698cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h.  */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h.  */
13704$ac_includes_default
13705#include <FLAC/export.h>
13706_ACEOF
13707rm -f conftest.$ac_objext
13708if { (ac_try="$ac_compile"
13709case "(($ac_try" in
13710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711  *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714  (eval "$ac_compile") 2>conftest.er1
13715  ac_status=$?
13716  grep -v '^ *+' conftest.er1 >conftest.err
13717  rm -f conftest.er1
13718  cat conftest.err >&5
13719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720  (exit $ac_status); } && {
13721	 test -z "$ac_c_werror_flag" ||
13722	 test ! -s conftest.err
13723       } && test -s conftest.$ac_objext; then
13724  ac_header_compiler=yes
13725else
13726  echo "$as_me: failed program was:" >&5
13727sed 's/^/| /' conftest.$ac_ext >&5
13728
13729	ac_header_compiler=no
13730fi
13731
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734echo "${ECHO_T}$ac_header_compiler" >&6; }
13735
13736# Is the header present?
13737{ echo "$as_me:$LINENO: checking FLAC/export.h presence" >&5
13738echo $ECHO_N "checking FLAC/export.h presence... $ECHO_C" >&6; }
13739cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h.  */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h.  */
13745#include <FLAC/export.h>
13746_ACEOF
13747if { (ac_try="$ac_cpp conftest.$ac_ext"
13748case "(($ac_try" in
13749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750  *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13754  ac_status=$?
13755  grep -v '^ *+' conftest.er1 >conftest.err
13756  rm -f conftest.er1
13757  cat conftest.err >&5
13758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759  (exit $ac_status); } >/dev/null && {
13760	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13761	 test ! -s conftest.err
13762       }; then
13763  ac_header_preproc=yes
13764else
13765  echo "$as_me: failed program was:" >&5
13766sed 's/^/| /' conftest.$ac_ext >&5
13767
13768  ac_header_preproc=no
13769fi
13770
13771rm -f conftest.err conftest.$ac_ext
13772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773echo "${ECHO_T}$ac_header_preproc" >&6; }
13774
13775# So?  What about this header?
13776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13777  yes:no: )
13778    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: accepted by the compiler, rejected by the preprocessor!" >&5
13779echo "$as_me: WARNING: FLAC/export.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: proceeding with the compiler's result" >&5
13781echo "$as_me: WARNING: FLAC/export.h: proceeding with the compiler's result" >&2;}
13782    ac_header_preproc=yes
13783    ;;
13784  no:yes:* )
13785    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: present but cannot be compiled" >&5
13786echo "$as_me: WARNING: FLAC/export.h: present but cannot be compiled" >&2;}
13787    { echo "$as_me:$LINENO: WARNING: FLAC/export.h:     check for missing prerequisite headers?" >&5
13788echo "$as_me: WARNING: FLAC/export.h:     check for missing prerequisite headers?" >&2;}
13789    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: see the Autoconf documentation" >&5
13790echo "$as_me: WARNING: FLAC/export.h: see the Autoconf documentation" >&2;}
13791    { echo "$as_me:$LINENO: WARNING: FLAC/export.h:     section \"Present But Cannot Be Compiled\"" >&5
13792echo "$as_me: WARNING: FLAC/export.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13793    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: proceeding with the preprocessor's result" >&5
13794echo "$as_me: WARNING: FLAC/export.h: proceeding with the preprocessor's result" >&2;}
13795    { echo "$as_me:$LINENO: WARNING: FLAC/export.h: in the future, the compiler will take precedence" >&5
13796echo "$as_me: WARNING: FLAC/export.h: in the future, the compiler will take precedence" >&2;}
13797
13798    ;;
13799esac
13800{ echo "$as_me:$LINENO: checking for FLAC/export.h" >&5
13801echo $ECHO_N "checking for FLAC/export.h... $ECHO_C" >&6; }
13802if test "${ac_cv_header_FLAC_export_h+set}" = set; then
13803  echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805  ac_cv_header_FLAC_export_h=$ac_header_preproc
13806fi
13807{ echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_export_h" >&5
13808echo "${ECHO_T}$ac_cv_header_FLAC_export_h" >&6; }
13809
13810fi
13811if test $ac_cv_header_FLAC_export_h = yes; then
13812  have_flac_export=yes
13813fi
13814
13815
13816    if test x$have_flac_export = xyes; then
13817        LIBS_SAVED="$LIBS"
13818        LIBS="-lFLAC"
13819        { echo "$as_me:$LINENO: checking for libflac so-name version >= $libflac_ver" >&5
13820echo $ECHO_N "checking for libflac so-name version >= $libflac_ver... $ECHO_C" >&6; }
13821        cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h.  */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h.  */
13827
13828#include "FLAC/export.h"
13829#include "stdio.h"
13830
13831int
13832main ()
13833{
13834
13835#if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver)
13836#else
13837#error "old-flac"
13838#endif
13839
13840  ;
13841  return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext
13845if { (ac_try="$ac_compile"
13846case "(($ac_try" in
13847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848  *) ac_try_echo=$ac_try;;
13849esac
13850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851  (eval "$ac_compile") 2>conftest.er1
13852  ac_status=$?
13853  grep -v '^ *+' conftest.er1 >conftest.err
13854  rm -f conftest.er1
13855  cat conftest.err >&5
13856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857  (exit $ac_status); } && {
13858	 test -z "$ac_c_werror_flag" ||
13859	 test ! -s conftest.err
13860       } && test -s conftest.$ac_objext; then
13861  have_flac_ver=yes
13862else
13863  echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866	have_flac_ver=no
13867fi
13868
13869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13870        LIBS="$LIBS_SAVED"
13871        { echo "$as_me:$LINENO: result: $have_flac_ver" >&5
13872echo "${ECHO_T}$have_flac_ver" >&6; }
13873    fi
13874
13875    if test x$have_flac_ver = xyes; then
13876        if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
13877  { echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
13878echo $ECHO_N "checking for FLAC/stream_decoder.h... $ECHO_C" >&6; }
13879if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
13880  echo $ECHO_N "(cached) $ECHO_C" >&6
13881fi
13882{ echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
13883echo "${ECHO_T}$ac_cv_header_FLAC_stream_decoder_h" >&6; }
13884else
13885  # Is the header compilable?
13886{ echo "$as_me:$LINENO: checking FLAC/stream_decoder.h usability" >&5
13887echo $ECHO_N "checking FLAC/stream_decoder.h usability... $ECHO_C" >&6; }
13888cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h.  */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h.  */
13894$ac_includes_default
13895#include <FLAC/stream_decoder.h>
13896_ACEOF
13897rm -f conftest.$ac_objext
13898if { (ac_try="$ac_compile"
13899case "(($ac_try" in
13900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901  *) ac_try_echo=$ac_try;;
13902esac
13903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904  (eval "$ac_compile") 2>conftest.er1
13905  ac_status=$?
13906  grep -v '^ *+' conftest.er1 >conftest.err
13907  rm -f conftest.er1
13908  cat conftest.err >&5
13909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910  (exit $ac_status); } && {
13911	 test -z "$ac_c_werror_flag" ||
13912	 test ! -s conftest.err
13913       } && test -s conftest.$ac_objext; then
13914  ac_header_compiler=yes
13915else
13916  echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919	ac_header_compiler=no
13920fi
13921
13922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13924echo "${ECHO_T}$ac_header_compiler" >&6; }
13925
13926# Is the header present?
13927{ echo "$as_me:$LINENO: checking FLAC/stream_decoder.h presence" >&5
13928echo $ECHO_N "checking FLAC/stream_decoder.h presence... $ECHO_C" >&6; }
13929cat >conftest.$ac_ext <<_ACEOF
13930/* confdefs.h.  */
13931_ACEOF
13932cat confdefs.h >>conftest.$ac_ext
13933cat >>conftest.$ac_ext <<_ACEOF
13934/* end confdefs.h.  */
13935#include <FLAC/stream_decoder.h>
13936_ACEOF
13937if { (ac_try="$ac_cpp conftest.$ac_ext"
13938case "(($ac_try" in
13939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940  *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13944  ac_status=$?
13945  grep -v '^ *+' conftest.er1 >conftest.err
13946  rm -f conftest.er1
13947  cat conftest.err >&5
13948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949  (exit $ac_status); } >/dev/null && {
13950	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13951	 test ! -s conftest.err
13952       }; then
13953  ac_header_preproc=yes
13954else
13955  echo "$as_me: failed program was:" >&5
13956sed 's/^/| /' conftest.$ac_ext >&5
13957
13958  ac_header_preproc=no
13959fi
13960
13961rm -f conftest.err conftest.$ac_ext
13962{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963echo "${ECHO_T}$ac_header_preproc" >&6; }
13964
13965# So?  What about this header?
13966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13967  yes:no: )
13968    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: accepted by the compiler, rejected by the preprocessor!" >&5
13969echo "$as_me: WARNING: FLAC/stream_decoder.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: proceeding with the compiler's result" >&5
13971echo "$as_me: WARNING: FLAC/stream_decoder.h: proceeding with the compiler's result" >&2;}
13972    ac_header_preproc=yes
13973    ;;
13974  no:yes:* )
13975    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: present but cannot be compiled" >&5
13976echo "$as_me: WARNING: FLAC/stream_decoder.h: present but cannot be compiled" >&2;}
13977    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h:     check for missing prerequisite headers?" >&5
13978echo "$as_me: WARNING: FLAC/stream_decoder.h:     check for missing prerequisite headers?" >&2;}
13979    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: see the Autoconf documentation" >&5
13980echo "$as_me: WARNING: FLAC/stream_decoder.h: see the Autoconf documentation" >&2;}
13981    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h:     section \"Present But Cannot Be Compiled\"" >&5
13982echo "$as_me: WARNING: FLAC/stream_decoder.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13983    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: proceeding with the preprocessor's result" >&5
13984echo "$as_me: WARNING: FLAC/stream_decoder.h: proceeding with the preprocessor's result" >&2;}
13985    { echo "$as_me:$LINENO: WARNING: FLAC/stream_decoder.h: in the future, the compiler will take precedence" >&5
13986echo "$as_me: WARNING: FLAC/stream_decoder.h: in the future, the compiler will take precedence" >&2;}
13987
13988    ;;
13989esac
13990{ echo "$as_me:$LINENO: checking for FLAC/stream_decoder.h" >&5
13991echo $ECHO_N "checking for FLAC/stream_decoder.h... $ECHO_C" >&6; }
13992if test "${ac_cv_header_FLAC_stream_decoder_h+set}" = set; then
13993  echo $ECHO_N "(cached) $ECHO_C" >&6
13994else
13995  ac_cv_header_FLAC_stream_decoder_h=$ac_header_preproc
13996fi
13997{ echo "$as_me:$LINENO: result: $ac_cv_header_FLAC_stream_decoder_h" >&5
13998echo "${ECHO_T}$ac_cv_header_FLAC_stream_decoder_h" >&6; }
13999
14000fi
14001if test $ac_cv_header_FLAC_stream_decoder_h = yes; then
14002  have_flac_hdr=yes
14003fi
14004
14005
14006        { echo "$as_me:$LINENO: checking for FLAC__stream_decoder_new in -lFLAC" >&5
14007echo $ECHO_N "checking for FLAC__stream_decoder_new in -lFLAC... $ECHO_C" >&6; }
14008if test "${ac_cv_lib_FLAC_FLAC__stream_decoder_new+set}" = set; then
14009  echo $ECHO_N "(cached) $ECHO_C" >&6
14010else
14011  ac_check_lib_save_LIBS=$LIBS
14012LIBS="-lFLAC  $LIBS"
14013cat >conftest.$ac_ext <<_ACEOF
14014/* confdefs.h.  */
14015_ACEOF
14016cat confdefs.h >>conftest.$ac_ext
14017cat >>conftest.$ac_ext <<_ACEOF
14018/* end confdefs.h.  */
14019
14020/* Override any GCC internal prototype to avoid an error.
14021   Use char because int might match the return type of a GCC
14022   builtin and then its argument prototype would still apply.  */
14023#ifdef __cplusplus
14024extern "C"
14025#endif
14026char FLAC__stream_decoder_new ();
14027int
14028main ()
14029{
14030return FLAC__stream_decoder_new ();
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext conftest$ac_exeext
14036if { (ac_try="$ac_link"
14037case "(($ac_try" in
14038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039  *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042  (eval "$ac_link") 2>conftest.er1
14043  ac_status=$?
14044  grep -v '^ *+' conftest.er1 >conftest.err
14045  rm -f conftest.er1
14046  cat conftest.err >&5
14047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048  (exit $ac_status); } && {
14049	 test -z "$ac_c_werror_flag" ||
14050	 test ! -s conftest.err
14051       } && test -s conftest$ac_exeext &&
14052       $as_test_x conftest$ac_exeext; then
14053  ac_cv_lib_FLAC_FLAC__stream_decoder_new=yes
14054else
14055  echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058	ac_cv_lib_FLAC_FLAC__stream_decoder_new=no
14059fi
14060
14061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14062      conftest$ac_exeext conftest.$ac_ext
14063LIBS=$ac_check_lib_save_LIBS
14064fi
14065{ echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&5
14066echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&6; }
14067if test $ac_cv_lib_FLAC_FLAC__stream_decoder_new = yes; then
14068  have_flac_lib=yes
14069fi
14070
14071        if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then
14072            case "$host" in
14073                *-*-darwin*)
14074                    flac_lib=`find_lib libFLAC.dylib`
14075                    ;;
14076                *-*-cygwin* | *-*-mingw32*)
14077                    flac_lib=`find_lib "libFLAC*.dll"`
14078                    ;;
14079                *)
14080                    flac_lib=`find_lib "libFLAC.so.[0-9]"`
14081                    if test x$flac_lib = x; then
14082                        flac_lib=`find_lib "libFLAC.so.[0-9]*"`
14083                    fi
14084                    ;;
14085            esac
14086            SOURCES="$SOURCES $srcdir/*_flac.c"
14087            EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_MUSIC"
14088            if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then
14089                echo "-- dynamic libFLAC -> $flac_lib"
14090                EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\\\"$flac_lib\\\""
14091            else
14092                EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC"
14093            fi
14094        fi
14095    else
14096        { echo "$as_me:$LINENO: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&5
14097echo "$as_me: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&2;}
14098        { echo "$as_me:$LINENO: WARNING: FLAC support disabled" >&5
14099echo "$as_me: WARNING: FLAC support disabled" >&2;}
14100    fi
14101fi
14102
14103
14104for ac_header in signal.h
14105do
14106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14108  { echo "$as_me:$LINENO: checking for $ac_header" >&5
14109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14111  echo $ECHO_N "(cached) $ECHO_C" >&6
14112fi
14113ac_res=`eval echo '${'$as_ac_Header'}'`
14114	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14115echo "${ECHO_T}$ac_res" >&6; }
14116else
14117  # Is the header compilable?
14118{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14120cat >conftest.$ac_ext <<_ACEOF
14121/* confdefs.h.  */
14122_ACEOF
14123cat confdefs.h >>conftest.$ac_ext
14124cat >>conftest.$ac_ext <<_ACEOF
14125/* end confdefs.h.  */
14126$ac_includes_default
14127#include <$ac_header>
14128_ACEOF
14129rm -f conftest.$ac_objext
14130if { (ac_try="$ac_compile"
14131case "(($ac_try" in
14132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133  *) ac_try_echo=$ac_try;;
14134esac
14135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136  (eval "$ac_compile") 2>conftest.er1
14137  ac_status=$?
14138  grep -v '^ *+' conftest.er1 >conftest.err
14139  rm -f conftest.er1
14140  cat conftest.err >&5
14141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142  (exit $ac_status); } && {
14143	 test -z "$ac_c_werror_flag" ||
14144	 test ! -s conftest.err
14145       } && test -s conftest.$ac_objext; then
14146  ac_header_compiler=yes
14147else
14148  echo "$as_me: failed program was:" >&5
14149sed 's/^/| /' conftest.$ac_ext >&5
14150
14151	ac_header_compiler=no
14152fi
14153
14154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14156echo "${ECHO_T}$ac_header_compiler" >&6; }
14157
14158# Is the header present?
14159{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14161cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h.  */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
14166/* end confdefs.h.  */
14167#include <$ac_header>
14168_ACEOF
14169if { (ac_try="$ac_cpp conftest.$ac_ext"
14170case "(($ac_try" in
14171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172  *) ac_try_echo=$ac_try;;
14173esac
14174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14176  ac_status=$?
14177  grep -v '^ *+' conftest.er1 >conftest.err
14178  rm -f conftest.er1
14179  cat conftest.err >&5
14180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181  (exit $ac_status); } >/dev/null && {
14182	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14183	 test ! -s conftest.err
14184       }; then
14185  ac_header_preproc=yes
14186else
14187  echo "$as_me: failed program was:" >&5
14188sed 's/^/| /' conftest.$ac_ext >&5
14189
14190  ac_header_preproc=no
14191fi
14192
14193rm -f conftest.err conftest.$ac_ext
14194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14195echo "${ECHO_T}$ac_header_preproc" >&6; }
14196
14197# So?  What about this header?
14198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14199  yes:no: )
14200    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14204    ac_header_preproc=yes
14205    ;;
14206  no:yes:* )
14207    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14209    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14210echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14211    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14213    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14214echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14215    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14217    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14219
14220    ;;
14221esac
14222{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225  echo $ECHO_N "(cached) $ECHO_C" >&6
14226else
14227  eval "$as_ac_Header=\$ac_header_preproc"
14228fi
14229ac_res=`eval echo '${'$as_ac_Header'}'`
14230	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14231echo "${ECHO_T}$ac_res" >&6; }
14232
14233fi
14234if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235  cat >>confdefs.h <<_ACEOF
14236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14237_ACEOF
14238 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_SIGNAL_H"
14239fi
14240
14241done
14242
14243
14244for ac_func in setbuf
14245do
14246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14247{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14249if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14250  echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252  cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h.  */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h.  */
14258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14259   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14260#define $ac_func innocuous_$ac_func
14261
14262/* System header to define __stub macros and hopefully few prototypes,
14263    which can conflict with char $ac_func (); below.
14264    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14265    <limits.h> exists even on freestanding compilers.  */
14266
14267#ifdef __STDC__
14268# include <limits.h>
14269#else
14270# include <assert.h>
14271#endif
14272
14273#undef $ac_func
14274
14275/* Override any GCC internal prototype to avoid an error.
14276   Use char because int might match the return type of a GCC
14277   builtin and then its argument prototype would still apply.  */
14278#ifdef __cplusplus
14279extern "C"
14280#endif
14281char $ac_func ();
14282/* The GNU C library defines this for functions which it implements
14283    to always fail with ENOSYS.  Some functions are actually named
14284    something starting with __ and the normal name is an alias.  */
14285#if defined __stub_$ac_func || defined __stub___$ac_func
14286choke me
14287#endif
14288
14289int
14290main ()
14291{
14292return $ac_func ();
14293  ;
14294  return 0;
14295}
14296_ACEOF
14297rm -f conftest.$ac_objext conftest$ac_exeext
14298if { (ac_try="$ac_link"
14299case "(($ac_try" in
14300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301  *) ac_try_echo=$ac_try;;
14302esac
14303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304  (eval "$ac_link") 2>conftest.er1
14305  ac_status=$?
14306  grep -v '^ *+' conftest.er1 >conftest.err
14307  rm -f conftest.er1
14308  cat conftest.err >&5
14309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310  (exit $ac_status); } && {
14311	 test -z "$ac_c_werror_flag" ||
14312	 test ! -s conftest.err
14313       } && test -s conftest$ac_exeext &&
14314       $as_test_x conftest$ac_exeext; then
14315  eval "$as_ac_var=yes"
14316else
14317  echo "$as_me: failed program was:" >&5
14318sed 's/^/| /' conftest.$ac_ext >&5
14319
14320	eval "$as_ac_var=no"
14321fi
14322
14323rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14324      conftest$ac_exeext conftest.$ac_ext
14325fi
14326ac_res=`eval echo '${'$as_ac_var'}'`
14327	       { echo "$as_me:$LINENO: result: $ac_res" >&5
14328echo "${ECHO_T}$ac_res" >&6; }
14329if test `eval echo '${'$as_ac_var'}'` = yes; then
14330  cat >>confdefs.h <<_ACEOF
14331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332_ACEOF
14333 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_SETBUF"
14334fi
14335done
14336
14337
14338# Check whether --enable-music-mp3 was given.
14339if test "${enable_music_mp3+set}" = set; then
14340  enableval=$enable_music_mp3;
14341else
14342  enable_music_mp3=yes
14343fi
14344
14345# Check whether --enable-music-mp3-shared was given.
14346if test "${enable_music_mp3_shared+set}" = set; then
14347  enableval=$enable_music_mp3_shared;
14348else
14349  enable_music_mp3_shared=yes
14350fi
14351
14352if test x$enable_music_mp3 = xyes; then
14353    SMPEG_VERSION=0.4.3
14354
14355# Check whether --with-smpeg-prefix was given.
14356if test "${with_smpeg_prefix+set}" = set; then
14357  withval=$with_smpeg_prefix; smpeg_prefix="$withval"
14358else
14359  smpeg_prefix=""
14360fi
14361
14362
14363# Check whether --with-smpeg-exec-prefix was given.
14364if test "${with_smpeg_exec_prefix+set}" = set; then
14365  withval=$with_smpeg_exec_prefix; smpeg_exec_prefix="$withval"
14366else
14367  smpeg_exec_prefix=""
14368fi
14369
14370# Check whether --enable-smpegtest was given.
14371if test "${enable_smpegtest+set}" = set; then
14372  enableval=$enable_smpegtest;
14373else
14374  enable_smpegtest=yes
14375fi
14376
14377
14378  if test x$smpeg_exec_prefix != x ; then
14379     smpeg_args="$smpeg_args --exec-prefix=$smpeg_exec_prefix"
14380     if test x${SMPEG_CONFIG+set} != xset ; then
14381        SMPEG_CONFIG=$smpeg_exec_prefix/bin/smpeg-config
14382     fi
14383  fi
14384  if test x$smpeg_prefix != x ; then
14385     smpeg_args="$smpeg_args --prefix=$smpeg_prefix"
14386     if test x${SMPEG_CONFIG+set} != xset ; then
14387        SMPEG_CONFIG=$smpeg_prefix/bin/smpeg-config
14388     fi
14389  fi
14390
14391  # Extract the first word of "smpeg-config", so it can be a program name with args.
14392set dummy smpeg-config; ac_word=$2
14393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14395if test "${ac_cv_path_SMPEG_CONFIG+set}" = set; then
14396  echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398  case $SMPEG_CONFIG in
14399  [\\/]* | ?:[\\/]*)
14400  ac_cv_path_SMPEG_CONFIG="$SMPEG_CONFIG" # Let the user override the test with a path.
14401  ;;
14402  *)
14403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404for as_dir in $PATH
14405do
14406  IFS=$as_save_IFS
14407  test -z "$as_dir" && as_dir=.
14408  for ac_exec_ext in '' $ac_executable_extensions; do
14409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14410    ac_cv_path_SMPEG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14412    break 2
14413  fi
14414done
14415done
14416IFS=$as_save_IFS
14417
14418  test -z "$ac_cv_path_SMPEG_CONFIG" && ac_cv_path_SMPEG_CONFIG="no"
14419  ;;
14420esac
14421fi
14422SMPEG_CONFIG=$ac_cv_path_SMPEG_CONFIG
14423if test -n "$SMPEG_CONFIG"; then
14424  { echo "$as_me:$LINENO: result: $SMPEG_CONFIG" >&5
14425echo "${ECHO_T}$SMPEG_CONFIG" >&6; }
14426else
14427  { echo "$as_me:$LINENO: result: no" >&5
14428echo "${ECHO_T}no" >&6; }
14429fi
14430
14431
14432  min_smpeg_version=$SMPEG_VERSION
14433  { echo "$as_me:$LINENO: checking for SMPEG - version >= $min_smpeg_version" >&5
14434echo $ECHO_N "checking for SMPEG - version >= $min_smpeg_version... $ECHO_C" >&6; }
14435  no_smpeg=""
14436  if test "$SMPEG_CONFIG" = "no" ; then
14437    no_smpeg=yes
14438  else
14439    SMPEG_CFLAGS=`$SMPEG_CONFIG $smpegconf_args --cflags`
14440    SMPEG_LIBS=`$SMPEG_CONFIG $smpegconf_args --libs`
14441
14442    smpeg_major_version=`$SMPEG_CONFIG $smpeg_args --version | \
14443           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
14444    smpeg_minor_version=`$SMPEG_CONFIG $smpeg_args --version | \
14445           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
14446    smpeg_micro_version=`$SMPEG_CONFIG $smpeg_config_args --version | \
14447           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
14448    if test "x$enable_smpegtest" = "xyes" ; then
14449      ac_save_CFLAGS="$CFLAGS"
14450      ac_save_LIBS="$LIBS"
14451      CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS"
14452      LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS"
14453      rm -f conf.smpegtest
14454      if test "$cross_compiling" = yes; then
14455  echo $ac_n "cross compiling; assumed OK... $ac_c"
14456else
14457  cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h.  */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h.  */
14463
14464#include <stdio.h>
14465#include <stdlib.h>
14466#include <string.h>
14467#include "smpeg.h"
14468
14469char*
14470my_strdup (char *str)
14471{
14472  char *new_str;
14473
14474  if (str)
14475    {
14476      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
14477      strcpy (new_str, str);
14478    }
14479  else
14480    new_str = NULL;
14481
14482  return new_str;
14483}
14484
14485int main (int argc, char *argv[])
14486{
14487  int major, minor, micro;
14488  char *tmp_version;
14489
14490  /* This hangs on some systems (?)
14491  system ("touch conf.smpegtest");
14492  */
14493  { FILE *fp = fopen("conf.smpegtest", "a"); if ( fp ) fclose(fp); }
14494
14495  /* HP/UX 9 (%@#!) writes to sscanf strings */
14496  tmp_version = my_strdup("$min_smpeg_version");
14497  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
14498     printf("%s, bad version string\n", "$min_smpeg_version");
14499     exit(1);
14500   }
14501
14502   if (($smpeg_major_version > major) ||
14503      (($smpeg_major_version == major) && ($smpeg_minor_version > minor)) ||
14504      (($smpeg_major_version == major) && ($smpeg_minor_version == minor) && ($smpeg_micro_version >= micro)))
14505    {
14506      return 0;
14507    }
14508  else
14509    {
14510      printf("\n*** 'smpeg-config --version' returned %d.%d.%d, but the minimum version\n", $smpeg_major_version, $smpeg_minor_version, $smpeg_micro_version);
14511      printf("*** of SMPEG required is %d.%d.%d. If smpeg-config is correct, then it is\n", major, minor, micro);
14512      printf("*** best to upgrade to the required version.\n");
14513      printf("*** If smpeg-config was wrong, set the environment variable SMPEG_CONFIG\n");
14514      printf("*** to point to the correct copy of smpeg-config, and remove the file\n");
14515      printf("*** config.cache before re-running configure\n");
14516      return 1;
14517    }
14518}
14519
14520
14521_ACEOF
14522rm -f conftest$ac_exeext
14523if { (ac_try="$ac_link"
14524case "(($ac_try" in
14525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14526  *) ac_try_echo=$ac_try;;
14527esac
14528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529  (eval "$ac_link") 2>&5
14530  ac_status=$?
14531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14533  { (case "(($ac_try" in
14534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535  *) ac_try_echo=$ac_try;;
14536esac
14537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538  (eval "$ac_try") 2>&5
14539  ac_status=$?
14540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541  (exit $ac_status); }; }; then
14542  :
14543else
14544  echo "$as_me: program exited with status $ac_status" >&5
14545echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548( exit $ac_status )
14549no_smpeg=yes
14550fi
14551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14552fi
14553
14554
14555       CFLAGS="$ac_save_CFLAGS"
14556       LIBS="$ac_save_LIBS"
14557     fi
14558  fi
14559  if test "x$no_smpeg" = x ; then
14560     { echo "$as_me:$LINENO: result: yes" >&5
14561echo "${ECHO_T}yes" >&6; }
14562     have_smpeg=yes
14563  else
14564     { echo "$as_me:$LINENO: result: no" >&5
14565echo "${ECHO_T}no" >&6; }
14566     if test "$SMPEG_CONFIG" = "no" ; then
14567       echo "*** The smpeg-config script installed by SMPEG could not be found"
14568       echo "*** If SMPEG was installed in PREFIX, make sure PREFIX/bin is in"
14569       echo "*** your path, or set the SMPEG_CONFIG environment variable to the"
14570       echo "*** full path to smpeg-config."
14571     else
14572       if test -f conf.smpegtest ; then
14573        :
14574       else
14575          echo "*** Could not run SMPEG test program, checking why..."
14576          CFLAGS="$CFLAGS $SMPEG_CFLAGS $SDL_CFLAGS"
14577          LIBS="$LIBS $SMPEG_LIBS $SDL_LIBS"
14578          cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h.  */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h.  */
14584
14585#include <stdio.h>
14586#include "smpeg.h"
14587
14588int
14589main ()
14590{
14591 return 0;
14592  ;
14593  return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext conftest$ac_exeext
14597if { (ac_try="$ac_link"
14598case "(($ac_try" in
14599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600  *) ac_try_echo=$ac_try;;
14601esac
14602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603  (eval "$ac_link") 2>conftest.er1
14604  ac_status=$?
14605  grep -v '^ *+' conftest.er1 >conftest.err
14606  rm -f conftest.er1
14607  cat conftest.err >&5
14608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609  (exit $ac_status); } && {
14610	 test -z "$ac_c_werror_flag" ||
14611	 test ! -s conftest.err
14612       } && test -s conftest$ac_exeext &&
14613       $as_test_x conftest$ac_exeext; then
14614   echo "*** The test program compiled, but did not run. This usually means"
14615          echo "*** that the run-time linker is not finding SMPEG or finding the wrong"
14616          echo "*** version of SMPEG. If it is not finding SMPEG, you'll need to set your"
14617          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14618          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14619          echo "*** is required on your system"
14620          echo "***"
14621          echo "*** If you have an old version installed, it is best to remove it, although"
14622          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14623else
14624  echo "$as_me: failed program was:" >&5
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
14627	 echo "*** The test program failed to compile or link. See the file config.log for the"
14628          echo "*** exact error that occured. This usually means SMPEG was incorrectly installed"
14629          echo "*** or that you have moved SMPEG since it was installed. In the latter case, you"
14630          echo "*** may want to edit the smpeg-config script: $SMPEG_CONFIG"
14631fi
14632
14633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14634      conftest$ac_exeext conftest.$ac_ext
14635          CFLAGS="$ac_save_CFLAGS"
14636          LIBS="$ac_save_LIBS"
14637       fi
14638     fi
14639     SMPEG_CFLAGS=""
14640     SMPEG_LIBS=""
14641     have_smpeg=no
14642  fi
14643
14644
14645  rm -f conf.smpegtest
14646
14647    if test x$have_smpeg = xyes; then
14648        case "$host" in
14649            *-*-darwin*)
14650                smpeg_lib=`find_lib libsmpeg.dylib`
14651                ;;
14652            *-*-cygwin* | *-*-mingw32*)
14653                smpeg_lib=`find_lib "smpeg*.dll"`
14654                ;;
14655            *)
14656                smpeg_lib=`find_lib "libsmpeg*.so.[0-9]"`
14657                if test x$smpeg_lib = x; then
14658                    smpeg_lib=`find_lib "libsmpeg*.so.[0-9]*"`
14659                fi
14660                ;;
14661        esac
14662        SOURCES="$SOURCES $srcdir/*_mp3.c"
14663        EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MUSIC $SMPEG_CFLAGS"
14664        if test x$enable_music_mp3_shared = xyes && test x$smpeg_lib != x; then
14665            echo "-- dynamic libsmpeg -> $smpeg_lib"
14666            EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_DYNAMIC=\\\"$smpeg_lib\\\""
14667        else
14668            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SMPEG_LIBS"
14669        fi
14670    else
14671        { echo "$as_me:$LINENO: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&5
14672echo "$as_me: WARNING: *** Unable to find SMPEG library (http://icculus.org/smpeg/)" >&2;}
14673    fi
14674fi
14675
14676# Check whether --enable-music-mp3-mad-gpl was given.
14677if test "${enable_music_mp3_mad_gpl+set}" = set; then
14678  enableval=$enable_music_mp3_mad_gpl;
14679else
14680  enable_music_mp3_mad_gpl=no
14681fi
14682
14683if test x$enable_music_mp3_mad_gpl = xyes; then
14684    { echo "$as_me:$LINENO: checking for libmad headers" >&5
14685echo $ECHO_N "checking for libmad headers... $ECHO_C" >&6; }
14686    have_libmad=no
14687    cat >conftest.$ac_ext <<_ACEOF
14688/* confdefs.h.  */
14689_ACEOF
14690cat confdefs.h >>conftest.$ac_ext
14691cat >>conftest.$ac_ext <<_ACEOF
14692/* end confdefs.h.  */
14693
14694     #include "mad.h"
14695
14696int
14697main ()
14698{
14699
14700
14701  ;
14702  return 0;
14703}
14704_ACEOF
14705rm -f conftest.$ac_objext
14706if { (ac_try="$ac_compile"
14707case "(($ac_try" in
14708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709  *) ac_try_echo=$ac_try;;
14710esac
14711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712  (eval "$ac_compile") 2>conftest.er1
14713  ac_status=$?
14714  grep -v '^ *+' conftest.er1 >conftest.err
14715  rm -f conftest.er1
14716  cat conftest.err >&5
14717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718  (exit $ac_status); } && {
14719	 test -z "$ac_c_werror_flag" ||
14720	 test ! -s conftest.err
14721       } && test -s conftest.$ac_objext; then
14722
14723    have_libmad=yes
14724
14725else
14726  echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729
14730fi
14731
14732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733    { echo "$as_me:$LINENO: result: $have_libmad" >&5
14734echo "${ECHO_T}$have_libmad" >&6; }
14735    if test x$have_libmad = xyes; then
14736        SOURCES="$SOURCES $srcdir/music_mad.c"
14737        EXTRA_CFLAGS="$EXTRA_CFLAGS -DMP3_MAD_MUSIC"
14738        EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad"
14739    else
14740        { echo "$as_me:$LINENO: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&5
14741echo "$as_me: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&2;}
14742    fi
14743fi
14744
14745if test x$have_smpeg != xyes -a x$have_libmad != xyes; then
14746    { echo "$as_me:$LINENO: WARNING: MP3 support disabled" >&5
14747echo "$as_me: WARNING: MP3 support disabled" >&2;}
14748fi
14749
14750EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBM"
14751
14752OBJECTS=`echo $SOURCES`
14753DEPENDS=`echo $SOURCES`
14754OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
14755DEPENDS=`echo "$DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
14756$(objects)/\2.lo: \1/\2.c\\
14757	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
14758
14759OBJECTS_CXX=`echo $SOURCES_CXX`
14760DEPENDS_CXX=`echo $SOURCES_CXX`
14761OBJECTS_CXX=`echo "$OBJECTS_CXX" | sed 's,[^ ]*/\([^ ]*\)\.cpp,$(objects)/\1.lo,g'`
14762DEPENDS_CXX=`echo "$DEPENDS_CXX" | sed 's,\([^ ]*\)/\([^ ]*\)\.cpp,\\
14763$(objects)/\2.lo: \1/\2.cpp\\
14764	\$(LIBTOOL) --mode=compile \$(CXX) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
14765OBJECTS="$OBJECTS $OBJECTS_CXX"
14766DEPENDS="$DEPENDS $DEPENDS_CXX"
14767DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'`
14768
14769VERSION_OBJECTS=`echo $VERSION_SOURCES`
14770VERSION_DEPENDS=`echo $VERSION_SOURCES`
14771VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
14772VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.rc,\\
14773$(objects)/\2.o: \1/\2.rc\\
14774	\$(WINDRES) \$< \$@,g'`
14775VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'`
14776
14777PLAYWAVE_SOURCES="$srcdir/playwave.c"
14778PLAYWAVE_OBJECTS=`echo $PLAYWAVE_SOURCES`
14779PLAYWAVE_DEPENDS=`echo $PLAYWAVE_SOURCES`
14780PLAYWAVE_OBJECTS=`echo "$PLAYWAVE_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
14781PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
14782$(objects)/\2.lo: \1/\2.c\\
14783	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
14784PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\\$,\\\\$,g'`
14785
14786PLAYMUS_SOURCES="$srcdir/playmus.c"
14787PLAYMUS_OBJECTS=`echo $PLAYMUS_SOURCES`
14788PLAYMUS_DEPENDS=`echo $PLAYMUS_SOURCES`
14789PLAYMUS_OBJECTS=`echo "$PLAYMUS_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
14790PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\
14791$(objects)/\2.lo: \1/\2.c\\
14792	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'`
14793PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\\$,\\\\$,g'`
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810ac_config_files="$ac_config_files "
14811
14812cat >confcache <<\_ACEOF
14813# This file is a shell script that caches the results of configure
14814# tests run on this system so they can be shared between configure
14815# scripts and configure runs, see configure's option --config-cache.
14816# It is not useful on other systems.  If it contains results you don't
14817# want to keep, you may remove or edit it.
14818#
14819# config.status only pays attention to the cache file if you give it
14820# the --recheck option to rerun configure.
14821#
14822# `ac_cv_env_foo' variables (set or unset) will be overridden when
14823# loading this file, other *unset* `ac_cv_foo' will be assigned the
14824# following values.
14825
14826_ACEOF
14827
14828# The following way of writing the cache mishandles newlines in values,
14829# but we know of no workaround that is simple, portable, and efficient.
14830# So, we kill variables containing newlines.
14831# Ultrix sh set writes to stderr and can't be redirected directly,
14832# and sets the high bit in the cache file unless we assign to the vars.
14833(
14834  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14835    eval ac_val=\$$ac_var
14836    case $ac_val in #(
14837    *${as_nl}*)
14838      case $ac_var in #(
14839      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14840echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14841      esac
14842      case $ac_var in #(
14843      _ | IFS | as_nl) ;; #(
14844      *) $as_unset $ac_var ;;
14845      esac ;;
14846    esac
14847  done
14848
14849  (set) 2>&1 |
14850    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14851    *${as_nl}ac_space=\ *)
14852      # `set' does not quote correctly, so add quotes (double-quote
14853      # substitution turns \\\\ into \\, and sed turns \\ into \).
14854      sed -n \
14855	"s/'/'\\\\''/g;
14856	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14857      ;; #(
14858    *)
14859      # `set' quotes correctly as required by POSIX, so do not add quotes.
14860      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14861      ;;
14862    esac |
14863    sort
14864) |
14865  sed '
14866     /^ac_cv_env_/b end
14867     t clear
14868     :clear
14869     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14870     t end
14871     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14872     :end' >>confcache
14873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14874  if test -w "$cache_file"; then
14875    test "x$cache_file" != "x/dev/null" &&
14876      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14877echo "$as_me: updating cache $cache_file" >&6;}
14878    cat confcache >$cache_file
14879  else
14880    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14881echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14882  fi
14883fi
14884rm -f confcache
14885
14886test "x$prefix" = xNONE && prefix=$ac_default_prefix
14887# Let make expand exec_prefix.
14888test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14889
14890# Transform confdefs.h into DEFS.
14891# Protect against shell expansion while executing Makefile rules.
14892# Protect against Makefile macro expansion.
14893#
14894# If the first sed substitution is executed (which looks for macros that
14895# take arguments), then branch to the quote section.  Otherwise,
14896# look for a macro that doesn't take arguments.
14897ac_script='
14898t clear
14899:clear
14900s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
14901t quote
14902s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
14903t quote
14904b any
14905:quote
14906s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14907s/\[/\\&/g
14908s/\]/\\&/g
14909s/\$/$$/g
14910H
14911:any
14912${
14913	g
14914	s/^\n//
14915	s/\n/ /g
14916	p
14917}
14918'
14919DEFS=`sed -n "$ac_script" confdefs.h`
14920
14921
14922ac_libobjs=
14923ac_ltlibobjs=
14924for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14925  # 1. Remove the extension, and $U if already installed.
14926  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14927  ac_i=`echo "$ac_i" | sed "$ac_script"`
14928  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14929  #    will be set to the directory where LIBOBJS objects are built.
14930  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14931  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14932done
14933LIBOBJS=$ac_libobjs
14934
14935LTLIBOBJS=$ac_ltlibobjs
14936
14937
14938
14939: ${CONFIG_STATUS=./config.status}
14940ac_clean_files_save=$ac_clean_files
14941ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14942{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14943echo "$as_me: creating $CONFIG_STATUS" >&6;}
14944cat >$CONFIG_STATUS <<_ACEOF
14945#! $SHELL
14946# Generated by $as_me.
14947# Run this file to recreate the current configuration.
14948# Compiler output produced by configure, useful for debugging
14949# configure, is in config.log if it exists.
14950
14951debug=false
14952ac_cs_recheck=false
14953ac_cs_silent=false
14954SHELL=\${CONFIG_SHELL-$SHELL}
14955_ACEOF
14956
14957cat >>$CONFIG_STATUS <<\_ACEOF
14958## --------------------- ##
14959## M4sh Initialization.  ##
14960## --------------------- ##
14961
14962# Be more Bourne compatible
14963DUALCASE=1; export DUALCASE # for MKS sh
14964if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14965  emulate sh
14966  NULLCMD=:
14967  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14968  # is contrary to our usage.  Disable this feature.
14969  alias -g '${1+"$@"}'='"$@"'
14970  setopt NO_GLOB_SUBST
14971else
14972  case `(set -o) 2>/dev/null` in
14973  *posix*) set -o posix ;;
14974esac
14975
14976fi
14977
14978
14979
14980
14981# PATH needs CR
14982# Avoid depending upon Character Ranges.
14983as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14984as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14985as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14986as_cr_digits='0123456789'
14987as_cr_alnum=$as_cr_Letters$as_cr_digits
14988
14989# The user is always right.
14990if test "${PATH_SEPARATOR+set}" != set; then
14991  echo "#! /bin/sh" >conf$$.sh
14992  echo  "exit 0"   >>conf$$.sh
14993  chmod +x conf$$.sh
14994  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14995    PATH_SEPARATOR=';'
14996  else
14997    PATH_SEPARATOR=:
14998  fi
14999  rm -f conf$$.sh
15000fi
15001
15002# Support unset when possible.
15003if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15004  as_unset=unset
15005else
15006  as_unset=false
15007fi
15008
15009
15010# IFS
15011# We need space, tab and new line, in precisely that order.  Quoting is
15012# there to prevent editors from complaining about space-tab.
15013# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15014# splitting by setting IFS to empty value.)
15015as_nl='
15016'
15017IFS=" ""	$as_nl"
15018
15019# Find who we are.  Look in the path if we contain no directory separator.
15020case $0 in
15021  *[\\/]* ) as_myself=$0 ;;
15022  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023for as_dir in $PATH
15024do
15025  IFS=$as_save_IFS
15026  test -z "$as_dir" && as_dir=.
15027  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15028done
15029IFS=$as_save_IFS
15030
15031     ;;
15032esac
15033# We did not find ourselves, most probably we were run as `sh COMMAND'
15034# in which case we are not to be found in the path.
15035if test "x$as_myself" = x; then
15036  as_myself=$0
15037fi
15038if test ! -f "$as_myself"; then
15039  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15040  { (exit 1); exit 1; }
15041fi
15042
15043# Work around bugs in pre-3.0 UWIN ksh.
15044for as_var in ENV MAIL MAILPATH
15045do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15046done
15047PS1='$ '
15048PS2='> '
15049PS4='+ '
15050
15051# NLS nuisances.
15052for as_var in \
15053  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15054  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15055  LC_TELEPHONE LC_TIME
15056do
15057  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15058    eval $as_var=C; export $as_var
15059  else
15060    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15061  fi
15062done
15063
15064# Required to use basename.
15065if expr a : '\(a\)' >/dev/null 2>&1 &&
15066   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15067  as_expr=expr
15068else
15069  as_expr=false
15070fi
15071
15072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15073  as_basename=basename
15074else
15075  as_basename=false
15076fi
15077
15078
15079# Name of the executable.
15080as_me=`$as_basename -- "$0" ||
15081$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15082	 X"$0" : 'X\(//\)$' \| \
15083	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15084echo X/"$0" |
15085    sed '/^.*\/\([^/][^/]*\)\/*$/{
15086	    s//\1/
15087	    q
15088	  }
15089	  /^X\/\(\/\/\)$/{
15090	    s//\1/
15091	    q
15092	  }
15093	  /^X\/\(\/\).*/{
15094	    s//\1/
15095	    q
15096	  }
15097	  s/.*/./; q'`
15098
15099# CDPATH.
15100$as_unset CDPATH
15101
15102
15103
15104  as_lineno_1=$LINENO
15105  as_lineno_2=$LINENO
15106  test "x$as_lineno_1" != "x$as_lineno_2" &&
15107  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15108
15109  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15110  # uniformly replaced by the line number.  The first 'sed' inserts a
15111  # line-number line after each line using $LINENO; the second 'sed'
15112  # does the real work.  The second script uses 'N' to pair each
15113  # line-number line with the line containing $LINENO, and appends
15114  # trailing '-' during substitution so that $LINENO is not a special
15115  # case at line end.
15116  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15117  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15118  # E. McMahon (1931-1989) for sed's syntax.  :-)
15119  sed -n '
15120    p
15121    /[$]LINENO/=
15122  ' <$as_myself |
15123    sed '
15124      s/[$]LINENO.*/&-/
15125      t lineno
15126      b
15127      :lineno
15128      N
15129      :loop
15130      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15131      t loop
15132      s/-\n.*//
15133    ' >$as_me.lineno &&
15134  chmod +x "$as_me.lineno" ||
15135    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15136   { (exit 1); exit 1; }; }
15137
15138  # Don't try to exec as it changes $[0], causing all sort of problems
15139  # (the dirname of $[0] is not the place where we might find the
15140  # original and so on.  Autoconf is especially sensitive to this).
15141  . "./$as_me.lineno"
15142  # Exit status is that of the last command.
15143  exit
15144}
15145
15146
15147if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15148  as_dirname=dirname
15149else
15150  as_dirname=false
15151fi
15152
15153ECHO_C= ECHO_N= ECHO_T=
15154case `echo -n x` in
15155-n*)
15156  case `echo 'x\c'` in
15157  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15158  *)   ECHO_C='\c';;
15159  esac;;
15160*)
15161  ECHO_N='-n';;
15162esac
15163
15164if expr a : '\(a\)' >/dev/null 2>&1 &&
15165   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15166  as_expr=expr
15167else
15168  as_expr=false
15169fi
15170
15171rm -f conf$$ conf$$.exe conf$$.file
15172if test -d conf$$.dir; then
15173  rm -f conf$$.dir/conf$$.file
15174else
15175  rm -f conf$$.dir
15176  mkdir conf$$.dir
15177fi
15178echo >conf$$.file
15179if ln -s conf$$.file conf$$ 2>/dev/null; then
15180  as_ln_s='ln -s'
15181  # ... but there are two gotchas:
15182  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15183  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15184  # In both cases, we have to default to `cp -p'.
15185  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15186    as_ln_s='cp -p'
15187elif ln conf$$.file conf$$ 2>/dev/null; then
15188  as_ln_s=ln
15189else
15190  as_ln_s='cp -p'
15191fi
15192rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15193rmdir conf$$.dir 2>/dev/null
15194
15195if mkdir -p . 2>/dev/null; then
15196  as_mkdir_p=:
15197else
15198  test -d ./-p && rmdir ./-p
15199  as_mkdir_p=false
15200fi
15201
15202if test -x / >/dev/null 2>&1; then
15203  as_test_x='test -x'
15204else
15205  if ls -dL / >/dev/null 2>&1; then
15206    as_ls_L_option=L
15207  else
15208    as_ls_L_option=
15209  fi
15210  as_test_x='
15211    eval sh -c '\''
15212      if test -d "$1"; then
15213        test -d "$1/.";
15214      else
15215	case $1 in
15216        -*)set "./$1";;
15217	esac;
15218	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15219	???[sx]*):;;*)false;;esac;fi
15220    '\'' sh
15221  '
15222fi
15223as_executable_p=$as_test_x
15224
15225# Sed expression to map a string onto a valid CPP name.
15226as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15227
15228# Sed expression to map a string onto a valid variable name.
15229as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15230
15231
15232exec 6>&1
15233
15234# Save the log message, to keep $[0] and so on meaningful, and to
15235# report actual input values of CONFIG_FILES etc. instead of their
15236# values after options handling.
15237ac_log="
15238This file was extended by $as_me, which was
15239generated by GNU Autoconf 2.61.  Invocation command line was
15240
15241  CONFIG_FILES    = $CONFIG_FILES
15242  CONFIG_HEADERS  = $CONFIG_HEADERS
15243  CONFIG_LINKS    = $CONFIG_LINKS
15244  CONFIG_COMMANDS = $CONFIG_COMMANDS
15245  $ $0 $@
15246
15247on `(hostname || uname -n) 2>/dev/null | sed 1q`
15248"
15249
15250_ACEOF
15251
15252cat >>$CONFIG_STATUS <<_ACEOF
15253# Files that config.status was made for.
15254config_files="$ac_config_files"
15255config_commands="$ac_config_commands"
15256
15257_ACEOF
15258
15259cat >>$CONFIG_STATUS <<\_ACEOF
15260ac_cs_usage="\
15261\`$as_me' instantiates files from templates according to the
15262current configuration.
15263
15264Usage: $0 [OPTIONS] [FILE]...
15265
15266  -h, --help       print this help, then exit
15267  -V, --version    print version number and configuration settings, then exit
15268  -q, --quiet      do not print progress messages
15269  -d, --debug      don't remove temporary files
15270      --recheck    update $as_me by reconfiguring in the same conditions
15271  --file=FILE[:TEMPLATE]
15272		   instantiate the configuration file FILE
15273
15274Configuration files:
15275$config_files
15276
15277Configuration commands:
15278$config_commands
15279
15280Report bugs to <bug-autoconf@gnu.org>."
15281
15282_ACEOF
15283cat >>$CONFIG_STATUS <<_ACEOF
15284ac_cs_version="\\
15285config.status
15286configured by $0, generated by GNU Autoconf 2.61,
15287  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15288
15289Copyright (C) 2006 Free Software Foundation, Inc.
15290This config.status script is free software; the Free Software Foundation
15291gives unlimited permission to copy, distribute and modify it."
15292
15293ac_pwd='$ac_pwd'
15294srcdir='$srcdir'
15295INSTALL='$INSTALL'
15296_ACEOF
15297
15298cat >>$CONFIG_STATUS <<\_ACEOF
15299# If no file are specified by the user, then we need to provide default
15300# value.  By we need to know if files were specified by the user.
15301ac_need_defaults=:
15302while test $# != 0
15303do
15304  case $1 in
15305  --*=*)
15306    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15307    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15308    ac_shift=:
15309    ;;
15310  *)
15311    ac_option=$1
15312    ac_optarg=$2
15313    ac_shift=shift
15314    ;;
15315  esac
15316
15317  case $ac_option in
15318  # Handling of the options.
15319  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15320    ac_cs_recheck=: ;;
15321  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15322    echo "$ac_cs_version"; exit ;;
15323  --debug | --debu | --deb | --de | --d | -d )
15324    debug=: ;;
15325  --file | --fil | --fi | --f )
15326    $ac_shift
15327    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15328    ac_need_defaults=false;;
15329  --he | --h |  --help | --hel | -h )
15330    echo "$ac_cs_usage"; exit ;;
15331  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15332  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15333    ac_cs_silent=: ;;
15334
15335  # This is an error.
15336  -*) { echo "$as_me: error: unrecognized option: $1
15337Try \`$0 --help' for more information." >&2
15338   { (exit 1); exit 1; }; } ;;
15339
15340  *) ac_config_targets="$ac_config_targets $1"
15341     ac_need_defaults=false ;;
15342
15343  esac
15344  shift
15345done
15346
15347ac_configure_extra_args=
15348
15349if $ac_cs_silent; then
15350  exec 6>/dev/null
15351  ac_configure_extra_args="$ac_configure_extra_args --silent"
15352fi
15353
15354_ACEOF
15355cat >>$CONFIG_STATUS <<_ACEOF
15356if \$ac_cs_recheck; then
15357  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15358  CONFIG_SHELL=$SHELL
15359  export CONFIG_SHELL
15360  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15361fi
15362
15363_ACEOF
15364cat >>$CONFIG_STATUS <<\_ACEOF
15365exec 5>>config.log
15366{
15367  echo
15368  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15369## Running $as_me. ##
15370_ASBOX
15371  echo "$ac_log"
15372} >&5
15373
15374_ACEOF
15375cat >>$CONFIG_STATUS <<_ACEOF
15376#
15377# INIT-COMMANDS
15378#
15379
15380
15381# The HP-UX ksh and POSIX shell print the target directory to stdout
15382# if CDPATH is set.
15383(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15384
15385sed_quote_subst='$sed_quote_subst'
15386double_quote_subst='$double_quote_subst'
15387delay_variable_subst='$delay_variable_subst'
15388macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15389macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15390AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15391DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15392OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15393enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15394enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15395pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15396enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15397host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15398host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15399host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15400build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15401build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15402build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15403SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15404Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15405GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15406EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15407FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15408LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15409NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15410LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15411max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15412ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15413exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15414lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15415lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15416lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15417reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15418reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15419deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15420file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15421AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15422AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15423STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15424RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15425old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15426old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15427old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15428CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15429CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15430compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15431GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15432lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15433lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15434lt_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"`'
15435lt_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"`'
15436objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15437SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15438ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15439MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15440lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15441lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15442lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15443lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15444lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15445need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15446DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15447NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15448LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15449OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15450OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15451libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15452shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15453extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15454archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15455enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15456export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15457whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15458compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15459old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15460old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15461archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15462archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15463module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15464module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15465with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15466allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15467no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15468hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15469hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15470hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15471hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15472hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15473hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15474hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15475hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15476inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15477link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15478fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15479always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15480export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15481exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15482include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15483prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15484file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15485variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15486need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15487need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15488version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15489runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15490shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15491shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15492libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15493library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15494soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15495postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15496postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15497finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15498finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15499hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15500sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15501sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15502hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15503enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15504enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15505enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15506old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15507striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15508
15509LTCC='$LTCC'
15510LTCFLAGS='$LTCFLAGS'
15511compiler='$compiler_DEFAULT'
15512
15513# Quote evaled strings.
15514for var in SED \
15515GREP \
15516EGREP \
15517FGREP \
15518LD \
15519NM \
15520LN_S \
15521lt_SP2NL \
15522lt_NL2SP \
15523reload_flag \
15524deplibs_check_method \
15525file_magic_cmd \
15526AR \
15527AR_FLAGS \
15528STRIP \
15529RANLIB \
15530CC \
15531CFLAGS \
15532compiler \
15533lt_cv_sys_global_symbol_pipe \
15534lt_cv_sys_global_symbol_to_cdecl \
15535lt_cv_sys_global_symbol_to_c_name_address \
15536lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15537SHELL \
15538ECHO \
15539lt_prog_compiler_no_builtin_flag \
15540lt_prog_compiler_wl \
15541lt_prog_compiler_pic \
15542lt_prog_compiler_static \
15543lt_cv_prog_compiler_c_o \
15544need_locks \
15545DSYMUTIL \
15546NMEDIT \
15547LIPO \
15548OTOOL \
15549OTOOL64 \
15550shrext_cmds \
15551export_dynamic_flag_spec \
15552whole_archive_flag_spec \
15553compiler_needs_object \
15554with_gnu_ld \
15555allow_undefined_flag \
15556no_undefined_flag \
15557hardcode_libdir_flag_spec \
15558hardcode_libdir_flag_spec_ld \
15559hardcode_libdir_separator \
15560fix_srcfile_path \
15561exclude_expsyms \
15562include_expsyms \
15563file_list_spec \
15564variables_saved_for_relink \
15565libname_spec \
15566library_names_spec \
15567soname_spec \
15568finish_eval \
15569old_striplib \
15570striplib; do
15571    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15572    *[\\\\\\\`\\"\\\$]*)
15573      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15574      ;;
15575    *)
15576      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15577      ;;
15578    esac
15579done
15580
15581# Double-quote double-evaled strings.
15582for var in reload_cmds \
15583old_postinstall_cmds \
15584old_postuninstall_cmds \
15585old_archive_cmds \
15586extract_expsyms_cmds \
15587old_archive_from_new_cmds \
15588old_archive_from_expsyms_cmds \
15589archive_cmds \
15590archive_expsym_cmds \
15591module_cmds \
15592module_expsym_cmds \
15593export_symbols_cmds \
15594prelink_cmds \
15595postinstall_cmds \
15596postuninstall_cmds \
15597finish_cmds \
15598sys_lib_search_path_spec \
15599sys_lib_dlsearch_path_spec; do
15600    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15601    *[\\\\\\\`\\"\\\$]*)
15602      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15603      ;;
15604    *)
15605      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15606      ;;
15607    esac
15608done
15609
15610# Fix-up fallback echo if it was mangled by the above quoting rules.
15611case \$lt_ECHO in
15612*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15613  ;;
15614esac
15615
15616ac_aux_dir='$ac_aux_dir'
15617xsi_shell='$xsi_shell'
15618lt_shell_append='$lt_shell_append'
15619
15620# See if we are running on zsh, and set the options which allow our
15621# commands through without removal of \ escapes INIT.
15622if test -n "\${ZSH_VERSION+set}" ; then
15623   setopt NO_GLOB_SUBST
15624fi
15625
15626
15627    PACKAGE='$PACKAGE'
15628    VERSION='$VERSION'
15629    TIMESTAMP='$TIMESTAMP'
15630    RM='$RM'
15631    ofile='$ofile'
15632
15633
15634
15635
15636_ACEOF
15637
15638cat >>$CONFIG_STATUS <<\_ACEOF
15639
15640# Handling of arguments.
15641for ac_config_target in $ac_config_targets
15642do
15643  case $ac_config_target in
15644    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15645
15646  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15647echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15648   { (exit 1); exit 1; }; };;
15649  esac
15650done
15651
15652
15653# If the user did not use the arguments to specify the items to instantiate,
15654# then the envvar interface is used.  Set only those that are not.
15655# We use the long form for the default assignment because of an extremely
15656# bizarre bug on SunOS 4.1.3.
15657if $ac_need_defaults; then
15658  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15659  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15660fi
15661
15662# Have a temporary directory for convenience.  Make it in the build tree
15663# simply because there is no reason against having it here, and in addition,
15664# creating and moving files from /tmp can sometimes cause problems.
15665# Hook for its removal unless debugging.
15666# Note that there is a small window in which the directory will not be cleaned:
15667# after its creation but before its name has been assigned to `$tmp'.
15668$debug ||
15669{
15670  tmp=
15671  trap 'exit_status=$?
15672  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15673' 0
15674  trap '{ (exit 1); exit 1; }' 1 2 13 15
15675}
15676# Create a (secure) tmp directory for tmp files.
15677
15678{
15679  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15680  test -n "$tmp" && test -d "$tmp"
15681}  ||
15682{
15683  tmp=./conf$$-$RANDOM
15684  (umask 077 && mkdir "$tmp")
15685} ||
15686{
15687   echo "$me: cannot create a temporary directory in ." >&2
15688   { (exit 1); exit 1; }
15689}
15690
15691#
15692# Set up the sed scripts for CONFIG_FILES section.
15693#
15694
15695# No need to generate the scripts if there are no CONFIG_FILES.
15696# This happens for instance when ./config.status config.h
15697if test -n "$CONFIG_FILES"; then
15698
15699_ACEOF
15700
15701
15702
15703ac_delim='%!_!# '
15704for ac_last_try in false false false false false :; do
15705  cat >conf$$subs.sed <<_ACEOF
15706SHELL!$SHELL$ac_delim
15707PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15708PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15709PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15710PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15711PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15712PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15713exec_prefix!$exec_prefix$ac_delim
15714prefix!$prefix$ac_delim
15715program_transform_name!$program_transform_name$ac_delim
15716bindir!$bindir$ac_delim
15717sbindir!$sbindir$ac_delim
15718libexecdir!$libexecdir$ac_delim
15719datarootdir!$datarootdir$ac_delim
15720datadir!$datadir$ac_delim
15721sysconfdir!$sysconfdir$ac_delim
15722sharedstatedir!$sharedstatedir$ac_delim
15723localstatedir!$localstatedir$ac_delim
15724includedir!$includedir$ac_delim
15725oldincludedir!$oldincludedir$ac_delim
15726docdir!$docdir$ac_delim
15727infodir!$infodir$ac_delim
15728htmldir!$htmldir$ac_delim
15729dvidir!$dvidir$ac_delim
15730pdfdir!$pdfdir$ac_delim
15731psdir!$psdir$ac_delim
15732libdir!$libdir$ac_delim
15733localedir!$localedir$ac_delim
15734mandir!$mandir$ac_delim
15735DEFS!$DEFS$ac_delim
15736ECHO_C!$ECHO_C$ac_delim
15737ECHO_N!$ECHO_N$ac_delim
15738ECHO_T!$ECHO_T$ac_delim
15739LIBS!$LIBS$ac_delim
15740build_alias!$build_alias$ac_delim
15741host_alias!$host_alias$ac_delim
15742target_alias!$target_alias$ac_delim
15743MAJOR_VERSION!$MAJOR_VERSION$ac_delim
15744MINOR_VERSION!$MINOR_VERSION$ac_delim
15745MICRO_VERSION!$MICRO_VERSION$ac_delim
15746INTERFACE_AGE!$INTERFACE_AGE$ac_delim
15747BINARY_AGE!$BINARY_AGE$ac_delim
15748VERSION!$VERSION$ac_delim
15749AS!$AS$ac_delim
15750DLLTOOL!$DLLTOOL$ac_delim
15751OBJDUMP!$OBJDUMP$ac_delim
15752LIBTOOL!$LIBTOOL$ac_delim
15753build!$build$ac_delim
15754build_cpu!$build_cpu$ac_delim
15755build_vendor!$build_vendor$ac_delim
15756build_os!$build_os$ac_delim
15757host!$host$ac_delim
15758host_cpu!$host_cpu$ac_delim
15759host_vendor!$host_vendor$ac_delim
15760host_os!$host_os$ac_delim
15761CC!$CC$ac_delim
15762CFLAGS!$CFLAGS$ac_delim
15763LDFLAGS!$LDFLAGS$ac_delim
15764CPPFLAGS!$CPPFLAGS$ac_delim
15765ac_ct_CC!$ac_ct_CC$ac_delim
15766EXEEXT!$EXEEXT$ac_delim
15767OBJEXT!$OBJEXT$ac_delim
15768SED!$SED$ac_delim
15769GREP!$GREP$ac_delim
15770EGREP!$EGREP$ac_delim
15771FGREP!$FGREP$ac_delim
15772LD!$LD$ac_delim
15773DUMPBIN!$DUMPBIN$ac_delim
15774ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
15775NM!$NM$ac_delim
15776LN_S!$LN_S$ac_delim
15777AR!$AR$ac_delim
15778STRIP!$STRIP$ac_delim
15779RANLIB!$RANLIB$ac_delim
15780lt_ECHO!$lt_ECHO$ac_delim
15781DSYMUTIL!$DSYMUTIL$ac_delim
15782NMEDIT!$NMEDIT$ac_delim
15783LIPO!$LIPO$ac_delim
15784OTOOL!$OTOOL$ac_delim
15785OTOOL64!$OTOOL64$ac_delim
15786CPP!$CPP$ac_delim
15787LT_RELEASE!$LT_RELEASE$ac_delim
15788LT_CURRENT!$LT_CURRENT$ac_delim
15789LT_REVISION!$LT_REVISION$ac_delim
15790LT_AGE!$LT_AGE$ac_delim
15791INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15792INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15793INSTALL_DATA!$INSTALL_DATA$ac_delim
15794SET_MAKE!$SET_MAKE$ac_delim
15795WINDRES!$WINDRES$ac_delim
15796PKG_CONFIG!$PKG_CONFIG$ac_delim
15797SDL_CFLAGS!$SDL_CFLAGS$ac_delim
15798SDL_LIBS!$SDL_LIBS$ac_delim
15799SDL_CONFIG!$SDL_CONFIG$ac_delim
15800LIBMIKMOD_CONFIG!$LIBMIKMOD_CONFIG$ac_delim
15801MODPLUG_CFLAGS!$MODPLUG_CFLAGS$ac_delim
15802MODPLUG_LIBS!$MODPLUG_LIBS$ac_delim
15803_ACEOF
15804
15805  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15806    break
15807  elif $ac_last_try; then
15808    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15809echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15810   { (exit 1); exit 1; }; }
15811  else
15812    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15813  fi
15814done
15815
15816ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15817if test -n "$ac_eof"; then
15818  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15819  ac_eof=`expr $ac_eof + 1`
15820fi
15821
15822cat >>$CONFIG_STATUS <<_ACEOF
15823cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15825_ACEOF
15826sed '
15827s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15828s/^/s,@/; s/!/@,|#_!!_#|/
15829:n
15830t n
15831s/'"$ac_delim"'$/,g/; t
15832s/$/\\/; p
15833N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15834' >>$CONFIG_STATUS <conf$$subs.sed
15835rm -f conf$$subs.sed
15836cat >>$CONFIG_STATUS <<_ACEOF
15837CEOF$ac_eof
15838_ACEOF
15839
15840
15841ac_delim='%!_!# '
15842for ac_last_try in false false false false false :; do
15843  cat >conf$$subs.sed <<_ACEOF
15844SMPEG_CONFIG!$SMPEG_CONFIG$ac_delim
15845SMPEG_CFLAGS!$SMPEG_CFLAGS$ac_delim
15846SMPEG_LIBS!$SMPEG_LIBS$ac_delim
15847ac_aux_dir!$ac_aux_dir$ac_delim
15848OBJECTS!$OBJECTS$ac_delim
15849VERSION_OBJECTS!$VERSION_OBJECTS$ac_delim
15850PLAYWAVE_OBJECTS!$PLAYWAVE_OBJECTS$ac_delim
15851PLAYMUS_OBJECTS!$PLAYMUS_OBJECTS$ac_delim
15852BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15853EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
15854BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15855EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
15856EXE!$EXE$ac_delim
15857SDL_VERSION!$SDL_VERSION$ac_delim
15858LIBOBJS!$LIBOBJS$ac_delim
15859LTLIBOBJS!$LTLIBOBJS$ac_delim
15860_ACEOF
15861
15862  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
15863    break
15864  elif $ac_last_try; then
15865    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15866echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15867   { (exit 1); exit 1; }; }
15868  else
15869    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15870  fi
15871done
15872
15873ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15874if test -n "$ac_eof"; then
15875  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15876  ac_eof=`expr $ac_eof + 1`
15877fi
15878
15879cat >>$CONFIG_STATUS <<_ACEOF
15880cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15882_ACEOF
15883sed '
15884s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15885s/^/s,@/; s/!/@,|#_!!_#|/
15886:n
15887t n
15888s/'"$ac_delim"'$/,g/; t
15889s/$/\\/; p
15890N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15891' >>$CONFIG_STATUS <conf$$subs.sed
15892rm -f conf$$subs.sed
15893cat >>$CONFIG_STATUS <<_ACEOF
15894:end
15895s/|#_!!_#|//g
15896CEOF$ac_eof
15897_ACEOF
15898
15899
15900# VPATH may cause trouble with some makes, so we remove $(srcdir),
15901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15902# trailing colons and then remove the whole line if VPATH becomes empty
15903# (actually we leave an empty line to preserve line numbers).
15904if test "x$srcdir" = x.; then
15905  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15906s/:*\$(srcdir):*/:/
15907s/:*\${srcdir}:*/:/
15908s/:*@srcdir@:*/:/
15909s/^\([^=]*=[	 ]*\):*/\1/
15910s/:*$//
15911s/^[^=]*=[	 ]*$//
15912}'
15913fi
15914
15915cat >>$CONFIG_STATUS <<\_ACEOF
15916fi # test -n "$CONFIG_FILES"
15917
15918
15919for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
15920do
15921  case $ac_tag in
15922  :[FHLC]) ac_mode=$ac_tag; continue;;
15923  esac
15924  case $ac_mode$ac_tag in
15925  :[FHL]*:*);;
15926  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15927echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15928   { (exit 1); exit 1; }; };;
15929  :[FH]-) ac_tag=-:-;;
15930  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15931  esac
15932  ac_save_IFS=$IFS
15933  IFS=:
15934  set x $ac_tag
15935  IFS=$ac_save_IFS
15936  shift
15937  ac_file=$1
15938  shift
15939
15940  case $ac_mode in
15941  :L) ac_source=$1;;
15942  :[FH])
15943    ac_file_inputs=
15944    for ac_f
15945    do
15946      case $ac_f in
15947      -) ac_f="$tmp/stdin";;
15948      *) # Look for the file first in the build tree, then in the source tree
15949	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15950	 # because $ac_f cannot contain `:'.
15951	 test -f "$ac_f" ||
15952	   case $ac_f in
15953	   [\\/$]*) false;;
15954	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15955	   esac ||
15956	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15957echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15958   { (exit 1); exit 1; }; };;
15959      esac
15960      ac_file_inputs="$ac_file_inputs $ac_f"
15961    done
15962
15963    # Let's still pretend it is `configure' which instantiates (i.e., don't
15964    # use $as_me), people would be surprised to read:
15965    #    /* config.h.  Generated by config.status.  */
15966    configure_input="Generated from "`IFS=:
15967	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15968    if test x"$ac_file" != x-; then
15969      configure_input="$ac_file.  $configure_input"
15970      { echo "$as_me:$LINENO: creating $ac_file" >&5
15971echo "$as_me: creating $ac_file" >&6;}
15972    fi
15973
15974    case $ac_tag in
15975    *:-:* | *:-) cat >"$tmp/stdin";;
15976    esac
15977    ;;
15978  esac
15979
15980  ac_dir=`$as_dirname -- "$ac_file" ||
15981$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15982	 X"$ac_file" : 'X\(//\)[^/]' \| \
15983	 X"$ac_file" : 'X\(//\)$' \| \
15984	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15985echo X"$ac_file" |
15986    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15987	    s//\1/
15988	    q
15989	  }
15990	  /^X\(\/\/\)[^/].*/{
15991	    s//\1/
15992	    q
15993	  }
15994	  /^X\(\/\/\)$/{
15995	    s//\1/
15996	    q
15997	  }
15998	  /^X\(\/\).*/{
15999	    s//\1/
16000	    q
16001	  }
16002	  s/.*/./; q'`
16003  { as_dir="$ac_dir"
16004  case $as_dir in #(
16005  -*) as_dir=./$as_dir;;
16006  esac
16007  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16008    as_dirs=
16009    while :; do
16010      case $as_dir in #(
16011      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16012      *) as_qdir=$as_dir;;
16013      esac
16014      as_dirs="'$as_qdir' $as_dirs"
16015      as_dir=`$as_dirname -- "$as_dir" ||
16016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16017	 X"$as_dir" : 'X\(//\)[^/]' \| \
16018	 X"$as_dir" : 'X\(//\)$' \| \
16019	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16020echo X"$as_dir" |
16021    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16022	    s//\1/
16023	    q
16024	  }
16025	  /^X\(\/\/\)[^/].*/{
16026	    s//\1/
16027	    q
16028	  }
16029	  /^X\(\/\/\)$/{
16030	    s//\1/
16031	    q
16032	  }
16033	  /^X\(\/\).*/{
16034	    s//\1/
16035	    q
16036	  }
16037	  s/.*/./; q'`
16038      test -d "$as_dir" && break
16039    done
16040    test -z "$as_dirs" || eval "mkdir $as_dirs"
16041  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16042echo "$as_me: error: cannot create directory $as_dir" >&2;}
16043   { (exit 1); exit 1; }; }; }
16044  ac_builddir=.
16045
16046case "$ac_dir" in
16047.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16048*)
16049  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16050  # A ".." for each directory in $ac_dir_suffix.
16051  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16052  case $ac_top_builddir_sub in
16053  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16054  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16055  esac ;;
16056esac
16057ac_abs_top_builddir=$ac_pwd
16058ac_abs_builddir=$ac_pwd$ac_dir_suffix
16059# for backward compatibility:
16060ac_top_builddir=$ac_top_build_prefix
16061
16062case $srcdir in
16063  .)  # We are building in place.
16064    ac_srcdir=.
16065    ac_top_srcdir=$ac_top_builddir_sub
16066    ac_abs_top_srcdir=$ac_pwd ;;
16067  [\\/]* | ?:[\\/]* )  # Absolute name.
16068    ac_srcdir=$srcdir$ac_dir_suffix;
16069    ac_top_srcdir=$srcdir
16070    ac_abs_top_srcdir=$srcdir ;;
16071  *) # Relative name.
16072    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16073    ac_top_srcdir=$ac_top_build_prefix$srcdir
16074    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16075esac
16076ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16077
16078
16079  case $ac_mode in
16080  :F)
16081  #
16082  # CONFIG_FILE
16083  #
16084
16085  case $INSTALL in
16086  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16087  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16088  esac
16089_ACEOF
16090
16091cat >>$CONFIG_STATUS <<\_ACEOF
16092# If the template does not know about datarootdir, expand it.
16093# FIXME: This hack should be removed a few years after 2.60.
16094ac_datarootdir_hack=; ac_datarootdir_seen=
16095
16096case `sed -n '/datarootdir/ {
16097  p
16098  q
16099}
16100/@datadir@/p
16101/@docdir@/p
16102/@infodir@/p
16103/@localedir@/p
16104/@mandir@/p
16105' $ac_file_inputs` in
16106*datarootdir*) ac_datarootdir_seen=yes;;
16107*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16108  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16109echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16110_ACEOF
16111cat >>$CONFIG_STATUS <<_ACEOF
16112  ac_datarootdir_hack='
16113  s&@datadir@&$datadir&g
16114  s&@docdir@&$docdir&g
16115  s&@infodir@&$infodir&g
16116  s&@localedir@&$localedir&g
16117  s&@mandir@&$mandir&g
16118    s&\\\${datarootdir}&$datarootdir&g' ;;
16119esac
16120_ACEOF
16121
16122# Neutralize VPATH when `$srcdir' = `.'.
16123# Shell code in configure.ac might set extrasub.
16124# FIXME: do we really want to maintain this feature?
16125cat >>$CONFIG_STATUS <<_ACEOF
16126  sed "$ac_vpsub
16127$extrasub
16128_ACEOF
16129cat >>$CONFIG_STATUS <<\_ACEOF
16130:t
16131/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16132s&@configure_input@&$configure_input&;t t
16133s&@top_builddir@&$ac_top_builddir_sub&;t t
16134s&@srcdir@&$ac_srcdir&;t t
16135s&@abs_srcdir@&$ac_abs_srcdir&;t t
16136s&@top_srcdir@&$ac_top_srcdir&;t t
16137s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16138s&@builddir@&$ac_builddir&;t t
16139s&@abs_builddir@&$ac_abs_builddir&;t t
16140s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16141s&@INSTALL@&$ac_INSTALL&;t t
16142$ac_datarootdir_hack
16143" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16144
16145test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16146  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16147  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16148  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16149which seems to be undefined.  Please make sure it is defined." >&5
16150echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16151which seems to be undefined.  Please make sure it is defined." >&2;}
16152
16153  rm -f "$tmp/stdin"
16154  case $ac_file in
16155  -) cat "$tmp/out"; rm -f "$tmp/out";;
16156  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16157  esac
16158 ;;
16159
16160
16161  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16162echo "$as_me: executing $ac_file commands" >&6;}
16163 ;;
16164  esac
16165
16166
16167  case $ac_file$ac_mode in
16168    "libtool":C)
16169
16170    # See if we are running on zsh, and set the options which allow our
16171    # commands through without removal of \ escapes.
16172    if test -n "${ZSH_VERSION+set}" ; then
16173      setopt NO_GLOB_SUBST
16174    fi
16175
16176    cfgfile="${ofile}T"
16177    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16178    $RM "$cfgfile"
16179
16180    cat <<_LT_EOF >> "$cfgfile"
16181#! $SHELL
16182
16183# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16184# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16186# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16187#
16188#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16189#                 2006, 2007, 2008 Free Software Foundation, Inc.
16190#   Written by Gordon Matzigkeit, 1996
16191#
16192#   This file is part of GNU Libtool.
16193#
16194# GNU Libtool is free software; you can redistribute it and/or
16195# modify it under the terms of the GNU General Public License as
16196# published by the Free Software Foundation; either version 2 of
16197# the License, or (at your option) any later version.
16198#
16199# As a special exception to the GNU General Public License,
16200# if you distribute this file as part of a program or library that
16201# is built using GNU Libtool, you may include this file under the
16202# same distribution terms that you use for the rest of that program.
16203#
16204# GNU Libtool is distributed in the hope that it will be useful,
16205# but WITHOUT ANY WARRANTY; without even the implied warranty of
16206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16207# GNU General Public License for more details.
16208#
16209# You should have received a copy of the GNU General Public License
16210# along with GNU Libtool; see the file COPYING.  If not, a copy
16211# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16212# obtained by writing to the Free Software Foundation, Inc.,
16213# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16214
16215
16216# The names of the tagged configurations supported by this script.
16217available_tags=""
16218
16219# ### BEGIN LIBTOOL CONFIG
16220
16221# Which release of libtool.m4 was used?
16222macro_version=$macro_version
16223macro_revision=$macro_revision
16224
16225# Assembler program.
16226AS=$AS
16227
16228# DLL creation program.
16229DLLTOOL=$DLLTOOL
16230
16231# Object dumper program.
16232OBJDUMP=$OBJDUMP
16233
16234# Whether or not to build shared libraries.
16235build_libtool_libs=$enable_shared
16236
16237# Whether or not to build static libraries.
16238build_old_libs=$enable_static
16239
16240# What type of objects to build.
16241pic_mode=$pic_mode
16242
16243# Whether or not to optimize for fast installation.
16244fast_install=$enable_fast_install
16245
16246# The host system.
16247host_alias=$host_alias
16248host=$host
16249host_os=$host_os
16250
16251# The build system.
16252build_alias=$build_alias
16253build=$build
16254build_os=$build_os
16255
16256# A sed program that does not truncate output.
16257SED=$lt_SED
16258
16259# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16260Xsed="\$SED -e 1s/^X//"
16261
16262# A grep program that handles long lines.
16263GREP=$lt_GREP
16264
16265# An ERE matcher.
16266EGREP=$lt_EGREP
16267
16268# A literal string matcher.
16269FGREP=$lt_FGREP
16270
16271# A BSD- or MS-compatible name lister.
16272NM=$lt_NM
16273
16274# Whether we need soft or hard links.
16275LN_S=$lt_LN_S
16276
16277# What is the maximum length of a command?
16278max_cmd_len=$max_cmd_len
16279
16280# Object file suffix (normally "o").
16281objext=$ac_objext
16282
16283# Executable file suffix (normally "").
16284exeext=$exeext
16285
16286# whether the shell understands "unset".
16287lt_unset=$lt_unset
16288
16289# turn spaces into newlines.
16290SP2NL=$lt_lt_SP2NL
16291
16292# turn newlines into spaces.
16293NL2SP=$lt_lt_NL2SP
16294
16295# How to create reloadable object files.
16296reload_flag=$lt_reload_flag
16297reload_cmds=$lt_reload_cmds
16298
16299# Method to check whether dependent libraries are shared objects.
16300deplibs_check_method=$lt_deplibs_check_method
16301
16302# Command to use when deplibs_check_method == "file_magic".
16303file_magic_cmd=$lt_file_magic_cmd
16304
16305# The archiver.
16306AR=$lt_AR
16307AR_FLAGS=$lt_AR_FLAGS
16308
16309# A symbol stripping program.
16310STRIP=$lt_STRIP
16311
16312# Commands used to install an old-style archive.
16313RANLIB=$lt_RANLIB
16314old_postinstall_cmds=$lt_old_postinstall_cmds
16315old_postuninstall_cmds=$lt_old_postuninstall_cmds
16316
16317# A C compiler.
16318LTCC=$lt_CC
16319
16320# LTCC compiler flags.
16321LTCFLAGS=$lt_CFLAGS
16322
16323# Take the output of nm and produce a listing of raw symbols and C names.
16324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16325
16326# Transform the output of nm in a proper C declaration.
16327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16328
16329# Transform the output of nm in a C name address pair.
16330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16331
16332# Transform the output of nm in a C name address pair when lib prefix is needed.
16333global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16334
16335# The name of the directory that contains temporary libtool files.
16336objdir=$objdir
16337
16338# Shell to use when invoking shell scripts.
16339SHELL=$lt_SHELL
16340
16341# An echo program that does not interpret backslashes.
16342ECHO=$lt_ECHO
16343
16344# Used to examine libraries when file_magic_cmd begins with "file".
16345MAGIC_CMD=$MAGIC_CMD
16346
16347# Must we lock files when doing compilation?
16348need_locks=$lt_need_locks
16349
16350# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16351DSYMUTIL=$lt_DSYMUTIL
16352
16353# Tool to change global to local symbols on Mac OS X.
16354NMEDIT=$lt_NMEDIT
16355
16356# Tool to manipulate fat objects and archives on Mac OS X.
16357LIPO=$lt_LIPO
16358
16359# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16360OTOOL=$lt_OTOOL
16361
16362# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16363OTOOL64=$lt_OTOOL64
16364
16365# Old archive suffix (normally "a").
16366libext=$libext
16367
16368# Shared library suffix (normally ".so").
16369shrext_cmds=$lt_shrext_cmds
16370
16371# The commands to extract the exported symbol list from a shared archive.
16372extract_expsyms_cmds=$lt_extract_expsyms_cmds
16373
16374# Variables whose values should be saved in libtool wrapper scripts and
16375# restored at link time.
16376variables_saved_for_relink=$lt_variables_saved_for_relink
16377
16378# Do we need the "lib" prefix for modules?
16379need_lib_prefix=$need_lib_prefix
16380
16381# Do we need a version for libraries?
16382need_version=$need_version
16383
16384# Library versioning type.
16385version_type=$version_type
16386
16387# Shared library runtime path variable.
16388runpath_var=$runpath_var
16389
16390# Shared library path variable.
16391shlibpath_var=$shlibpath_var
16392
16393# Is shlibpath searched before the hard-coded library search path?
16394shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16395
16396# Format of library name prefix.
16397libname_spec=$lt_libname_spec
16398
16399# List of archive names.  First name is the real one, the rest are links.
16400# The last name is the one that the linker finds with -lNAME
16401library_names_spec=$lt_library_names_spec
16402
16403# The coded name of the library, if different from the real name.
16404soname_spec=$lt_soname_spec
16405
16406# Command to use after installation of a shared archive.
16407postinstall_cmds=$lt_postinstall_cmds
16408
16409# Command to use after uninstallation of a shared archive.
16410postuninstall_cmds=$lt_postuninstall_cmds
16411
16412# Commands used to finish a libtool library installation in a directory.
16413finish_cmds=$lt_finish_cmds
16414
16415# As "finish_cmds", except a single script fragment to be evaled but
16416# not shown.
16417finish_eval=$lt_finish_eval
16418
16419# Whether we should hardcode library paths into libraries.
16420hardcode_into_libs=$hardcode_into_libs
16421
16422# Compile-time system search path for libraries.
16423sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16424
16425# Run-time system search path for libraries.
16426sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16427
16428# Whether dlopen is supported.
16429dlopen_support=$enable_dlopen
16430
16431# Whether dlopen of programs is supported.
16432dlopen_self=$enable_dlopen_self
16433
16434# Whether dlopen of statically linked programs is supported.
16435dlopen_self_static=$enable_dlopen_self_static
16436
16437# Commands to strip libraries.
16438old_striplib=$lt_old_striplib
16439striplib=$lt_striplib
16440
16441
16442# The linker used to build libraries.
16443LD=$lt_LD
16444
16445# Commands used to build an old-style archive.
16446old_archive_cmds=$lt_old_archive_cmds
16447
16448# A language specific compiler.
16449CC=$lt_compiler
16450
16451# Is the compiler the GNU compiler?
16452with_gcc=$GCC
16453
16454# Compiler flag to turn off builtin functions.
16455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16456
16457# How to pass a linker flag through the compiler.
16458wl=$lt_lt_prog_compiler_wl
16459
16460# Additional compiler flags for building library objects.
16461pic_flag=$lt_lt_prog_compiler_pic
16462
16463# Compiler flag to prevent dynamic linking.
16464link_static_flag=$lt_lt_prog_compiler_static
16465
16466# Does compiler simultaneously support -c and -o options?
16467compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16468
16469# Whether or not to add -lc for building shared libraries.
16470build_libtool_need_lc=$archive_cmds_need_lc
16471
16472# Whether or not to disallow shared libs when runtime libs are static.
16473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16474
16475# Compiler flag to allow reflexive dlopens.
16476export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16477
16478# Compiler flag to generate shared objects directly from archives.
16479whole_archive_flag_spec=$lt_whole_archive_flag_spec
16480
16481# Whether the compiler copes with passing no objects directly.
16482compiler_needs_object=$lt_compiler_needs_object
16483
16484# Create an old-style archive from a shared archive.
16485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16486
16487# Create a temporary old-style archive to link instead of a shared archive.
16488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16489
16490# Commands used to build a shared archive.
16491archive_cmds=$lt_archive_cmds
16492archive_expsym_cmds=$lt_archive_expsym_cmds
16493
16494# Commands used to build a loadable module if different from building
16495# a shared archive.
16496module_cmds=$lt_module_cmds
16497module_expsym_cmds=$lt_module_expsym_cmds
16498
16499# Whether we are building with GNU ld or not.
16500with_gnu_ld=$lt_with_gnu_ld
16501
16502# Flag that allows shared libraries with undefined symbols to be built.
16503allow_undefined_flag=$lt_allow_undefined_flag
16504
16505# Flag that enforces no undefined symbols.
16506no_undefined_flag=$lt_no_undefined_flag
16507
16508# Flag to hardcode \$libdir into a binary during linking.
16509# This must work even if \$libdir does not exist
16510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16511
16512# If ld is used when linking, flag to hardcode \$libdir into a binary
16513# during linking.  This must work even if \$libdir does not exist.
16514hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16515
16516# Whether we need a single "-rpath" flag with a separated argument.
16517hardcode_libdir_separator=$lt_hardcode_libdir_separator
16518
16519# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16520# DIR into the resulting binary.
16521hardcode_direct=$hardcode_direct
16522
16523# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16524# DIR into the resulting binary and the resulting library dependency is
16525# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16526# library is relocated.
16527hardcode_direct_absolute=$hardcode_direct_absolute
16528
16529# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16530# into the resulting binary.
16531hardcode_minus_L=$hardcode_minus_L
16532
16533# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16534# into the resulting binary.
16535hardcode_shlibpath_var=$hardcode_shlibpath_var
16536
16537# Set to "yes" if building a shared library automatically hardcodes DIR
16538# into the library and all subsequent libraries and executables linked
16539# against it.
16540hardcode_automatic=$hardcode_automatic
16541
16542# Set to yes if linker adds runtime paths of dependent libraries
16543# to runtime path list.
16544inherit_rpath=$inherit_rpath
16545
16546# Whether libtool must link a program against all its dependency libraries.
16547link_all_deplibs=$link_all_deplibs
16548
16549# Fix the shell variable \$srcfile for the compiler.
16550fix_srcfile_path=$lt_fix_srcfile_path
16551
16552# Set to "yes" if exported symbols are required.
16553always_export_symbols=$always_export_symbols
16554
16555# The commands to list exported symbols.
16556export_symbols_cmds=$lt_export_symbols_cmds
16557
16558# Symbols that should not be listed in the preloaded symbols.
16559exclude_expsyms=$lt_exclude_expsyms
16560
16561# Symbols that must always be exported.
16562include_expsyms=$lt_include_expsyms
16563
16564# Commands necessary for linking programs (against libraries) with templates.
16565prelink_cmds=$lt_prelink_cmds
16566
16567# Specify filename containing input files.
16568file_list_spec=$lt_file_list_spec
16569
16570# How to hardcode a shared library path into an executable.
16571hardcode_action=$hardcode_action
16572
16573# ### END LIBTOOL CONFIG
16574
16575_LT_EOF
16576
16577  case $host_os in
16578  aix3*)
16579    cat <<\_LT_EOF >> "$cfgfile"
16580# AIX sometimes has problems with the GCC collect2 program.  For some
16581# reason, if we set the COLLECT_NAMES environment variable, the problems
16582# vanish in a puff of smoke.
16583if test "X${COLLECT_NAMES+set}" != Xset; then
16584  COLLECT_NAMES=
16585  export COLLECT_NAMES
16586fi
16587_LT_EOF
16588    ;;
16589  esac
16590
16591
16592ltmain="$ac_aux_dir/ltmain.sh"
16593
16594
16595  # We use sed instead of cat because bash on DJGPP gets confused if
16596  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16597  # text mode, it properly converts lines to CR/LF.  This bash problem
16598  # is reportedly fixed, but why not run on old versions too?
16599  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16600    || (rm -f "$cfgfile"; exit 1)
16601
16602  case $xsi_shell in
16603  yes)
16604    cat << \_LT_EOF >> "$cfgfile"
16605
16606# func_dirname file append nondir_replacement
16607# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16608# otherwise set result to NONDIR_REPLACEMENT.
16609func_dirname ()
16610{
16611  case ${1} in
16612    */*) func_dirname_result="${1%/*}${2}" ;;
16613    *  ) func_dirname_result="${3}" ;;
16614  esac
16615}
16616
16617# func_basename file
16618func_basename ()
16619{
16620  func_basename_result="${1##*/}"
16621}
16622
16623# func_dirname_and_basename file append nondir_replacement
16624# perform func_basename and func_dirname in a single function
16625# call:
16626#   dirname:  Compute the dirname of FILE.  If nonempty,
16627#             add APPEND to the result, otherwise set result
16628#             to NONDIR_REPLACEMENT.
16629#             value returned in "$func_dirname_result"
16630#   basename: Compute filename of FILE.
16631#             value retuned in "$func_basename_result"
16632# Implementation must be kept synchronized with func_dirname
16633# and func_basename. For efficiency, we do not delegate to
16634# those functions but instead duplicate the functionality here.
16635func_dirname_and_basename ()
16636{
16637  case ${1} in
16638    */*) func_dirname_result="${1%/*}${2}" ;;
16639    *  ) func_dirname_result="${3}" ;;
16640  esac
16641  func_basename_result="${1##*/}"
16642}
16643
16644# func_stripname prefix suffix name
16645# strip PREFIX and SUFFIX off of NAME.
16646# PREFIX and SUFFIX must not contain globbing or regex special
16647# characters, hashes, percent signs, but SUFFIX may contain a leading
16648# dot (in which case that matches only a dot).
16649func_stripname ()
16650{
16651  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16652  # positional parameters, so assign one to ordinary parameter first.
16653  func_stripname_result=${3}
16654  func_stripname_result=${func_stripname_result#"${1}"}
16655  func_stripname_result=${func_stripname_result%"${2}"}
16656}
16657
16658# func_opt_split
16659func_opt_split ()
16660{
16661  func_opt_split_opt=${1%%=*}
16662  func_opt_split_arg=${1#*=}
16663}
16664
16665# func_lo2o object
16666func_lo2o ()
16667{
16668  case ${1} in
16669    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16670    *)    func_lo2o_result=${1} ;;
16671  esac
16672}
16673
16674# func_xform libobj-or-source
16675func_xform ()
16676{
16677  func_xform_result=${1%.*}.lo
16678}
16679
16680# func_arith arithmetic-term...
16681func_arith ()
16682{
16683  func_arith_result=$(( $* ))
16684}
16685
16686# func_len string
16687# STRING may not start with a hyphen.
16688func_len ()
16689{
16690  func_len_result=${#1}
16691}
16692
16693_LT_EOF
16694    ;;
16695  *) # Bourne compatible functions.
16696    cat << \_LT_EOF >> "$cfgfile"
16697
16698# func_dirname file append nondir_replacement
16699# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16700# otherwise set result to NONDIR_REPLACEMENT.
16701func_dirname ()
16702{
16703  # Extract subdirectory from the argument.
16704  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16705  if test "X$func_dirname_result" = "X${1}"; then
16706    func_dirname_result="${3}"
16707  else
16708    func_dirname_result="$func_dirname_result${2}"
16709  fi
16710}
16711
16712# func_basename file
16713func_basename ()
16714{
16715  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16716}
16717
16718
16719# func_stripname prefix suffix name
16720# strip PREFIX and SUFFIX off of NAME.
16721# PREFIX and SUFFIX must not contain globbing or regex special
16722# characters, hashes, percent signs, but SUFFIX may contain a leading
16723# dot (in which case that matches only a dot).
16724# func_strip_suffix prefix name
16725func_stripname ()
16726{
16727  case ${2} in
16728    .*) func_stripname_result=`$ECHO "X${3}" \
16729           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16730    *)  func_stripname_result=`$ECHO "X${3}" \
16731           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16732  esac
16733}
16734
16735# sed scripts:
16736my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16737my_sed_long_arg='1s/^-[^=]*=//'
16738
16739# func_opt_split
16740func_opt_split ()
16741{
16742  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16743  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16744}
16745
16746# func_lo2o object
16747func_lo2o ()
16748{
16749  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16750}
16751
16752# func_xform libobj-or-source
16753func_xform ()
16754{
16755  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16756}
16757
16758# func_arith arithmetic-term...
16759func_arith ()
16760{
16761  func_arith_result=`expr "$@"`
16762}
16763
16764# func_len string
16765# STRING may not start with a hyphen.
16766func_len ()
16767{
16768  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16769}
16770
16771_LT_EOF
16772esac
16773
16774case $lt_shell_append in
16775  yes)
16776    cat << \_LT_EOF >> "$cfgfile"
16777
16778# func_append var value
16779# Append VALUE to the end of shell variable VAR.
16780func_append ()
16781{
16782  eval "$1+=\$2"
16783}
16784_LT_EOF
16785    ;;
16786  *)
16787    cat << \_LT_EOF >> "$cfgfile"
16788
16789# func_append var value
16790# Append VALUE to the end of shell variable VAR.
16791func_append ()
16792{
16793  eval "$1=\$$1\$2"
16794}
16795
16796_LT_EOF
16797    ;;
16798  esac
16799
16800
16801  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16802    || (rm -f "$cfgfile"; exit 1)
16803
16804  mv -f "$cfgfile" "$ofile" ||
16805    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16806  chmod +x "$ofile"
16807
16808 ;;
16809
16810  esac
16811done # for ac_tag
16812
16813
16814{ (exit 0); exit 0; }
16815_ACEOF
16816chmod +x $CONFIG_STATUS
16817ac_clean_files=$ac_clean_files_save
16818
16819
16820# configure is writing to config.log, and then calls config.status.
16821# config.status does its own redirection, appending to config.log.
16822# Unfortunately, on DOS this fails, as config.log is still kept open
16823# by configure, so config.status won't be able to write to it; its
16824# output is simply discarded.  So we exec the FD to /dev/null,
16825# effectively closing config.log, so it can be properly (re)opened and
16826# appended to by config.status.  When coming back to configure, we
16827# need to make the FD available again.
16828if test "$no_create" != yes; then
16829  ac_cs_success=:
16830  ac_config_status_args=
16831  test "$silent" = yes &&
16832    ac_config_status_args="$ac_config_status_args --quiet"
16833  exec 5>/dev/null
16834  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16835  exec 5>>config.log
16836  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16837  # would make configure fail if this is the last instruction.
16838  $ac_cs_success || { (exit 1); exit 1; }
16839fi
16840
16841ac_config_files="$ac_config_files Makefile SDL_mixer.spec SDL_mixer.qpg SDL_mixer.pc"
16842
16843ac_config_commands="$ac_config_commands default"
16844
16845cat >confcache <<\_ACEOF
16846# This file is a shell script that caches the results of configure
16847# tests run on this system so they can be shared between configure
16848# scripts and configure runs, see configure's option --config-cache.
16849# It is not useful on other systems.  If it contains results you don't
16850# want to keep, you may remove or edit it.
16851#
16852# config.status only pays attention to the cache file if you give it
16853# the --recheck option to rerun configure.
16854#
16855# `ac_cv_env_foo' variables (set or unset) will be overridden when
16856# loading this file, other *unset* `ac_cv_foo' will be assigned the
16857# following values.
16858
16859_ACEOF
16860
16861# The following way of writing the cache mishandles newlines in values,
16862# but we know of no workaround that is simple, portable, and efficient.
16863# So, we kill variables containing newlines.
16864# Ultrix sh set writes to stderr and can't be redirected directly,
16865# and sets the high bit in the cache file unless we assign to the vars.
16866(
16867  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16868    eval ac_val=\$$ac_var
16869    case $ac_val in #(
16870    *${as_nl}*)
16871      case $ac_var in #(
16872      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16873echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16874      esac
16875      case $ac_var in #(
16876      _ | IFS | as_nl) ;; #(
16877      *) $as_unset $ac_var ;;
16878      esac ;;
16879    esac
16880  done
16881
16882  (set) 2>&1 |
16883    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16884    *${as_nl}ac_space=\ *)
16885      # `set' does not quote correctly, so add quotes (double-quote
16886      # substitution turns \\\\ into \\, and sed turns \\ into \).
16887      sed -n \
16888	"s/'/'\\\\''/g;
16889	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16890      ;; #(
16891    *)
16892      # `set' quotes correctly as required by POSIX, so do not add quotes.
16893      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16894      ;;
16895    esac |
16896    sort
16897) |
16898  sed '
16899     /^ac_cv_env_/b end
16900     t clear
16901     :clear
16902     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16903     t end
16904     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16905     :end' >>confcache
16906if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16907  if test -w "$cache_file"; then
16908    test "x$cache_file" != "x/dev/null" &&
16909      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16910echo "$as_me: updating cache $cache_file" >&6;}
16911    cat confcache >$cache_file
16912  else
16913    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16914echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16915  fi
16916fi
16917rm -f confcache
16918
16919test "x$prefix" = xNONE && prefix=$ac_default_prefix
16920# Let make expand exec_prefix.
16921test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16922
16923# Transform confdefs.h into DEFS.
16924# Protect against shell expansion while executing Makefile rules.
16925# Protect against Makefile macro expansion.
16926#
16927# If the first sed substitution is executed (which looks for macros that
16928# take arguments), then branch to the quote section.  Otherwise,
16929# look for a macro that doesn't take arguments.
16930ac_script='
16931t clear
16932:clear
16933s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
16934t quote
16935s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
16936t quote
16937b any
16938:quote
16939s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16940s/\[/\\&/g
16941s/\]/\\&/g
16942s/\$/$$/g
16943H
16944:any
16945${
16946	g
16947	s/^\n//
16948	s/\n/ /g
16949	p
16950}
16951'
16952DEFS=`sed -n "$ac_script" confdefs.h`
16953
16954
16955ac_libobjs=
16956ac_ltlibobjs=
16957for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16958  # 1. Remove the extension, and $U if already installed.
16959  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16960  ac_i=`echo "$ac_i" | sed "$ac_script"`
16961  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16962  #    will be set to the directory where LIBOBJS objects are built.
16963  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16964  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16965done
16966LIBOBJS=$ac_libobjs
16967
16968LTLIBOBJS=$ac_ltlibobjs
16969
16970
16971
16972: ${CONFIG_STATUS=./config.status}
16973ac_clean_files_save=$ac_clean_files
16974ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16975{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16976echo "$as_me: creating $CONFIG_STATUS" >&6;}
16977cat >$CONFIG_STATUS <<_ACEOF
16978#! $SHELL
16979# Generated by $as_me.
16980# Run this file to recreate the current configuration.
16981# Compiler output produced by configure, useful for debugging
16982# configure, is in config.log if it exists.
16983
16984debug=false
16985ac_cs_recheck=false
16986ac_cs_silent=false
16987SHELL=\${CONFIG_SHELL-$SHELL}
16988_ACEOF
16989
16990cat >>$CONFIG_STATUS <<\_ACEOF
16991## --------------------- ##
16992## M4sh Initialization.  ##
16993## --------------------- ##
16994
16995# Be more Bourne compatible
16996DUALCASE=1; export DUALCASE # for MKS sh
16997if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16998  emulate sh
16999  NULLCMD=:
17000  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17001  # is contrary to our usage.  Disable this feature.
17002  alias -g '${1+"$@"}'='"$@"'
17003  setopt NO_GLOB_SUBST
17004else
17005  case `(set -o) 2>/dev/null` in
17006  *posix*) set -o posix ;;
17007esac
17008
17009fi
17010
17011
17012
17013
17014# PATH needs CR
17015# Avoid depending upon Character Ranges.
17016as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17017as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17018as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17019as_cr_digits='0123456789'
17020as_cr_alnum=$as_cr_Letters$as_cr_digits
17021
17022# The user is always right.
17023if test "${PATH_SEPARATOR+set}" != set; then
17024  echo "#! /bin/sh" >conf$$.sh
17025  echo  "exit 0"   >>conf$$.sh
17026  chmod +x conf$$.sh
17027  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17028    PATH_SEPARATOR=';'
17029  else
17030    PATH_SEPARATOR=:
17031  fi
17032  rm -f conf$$.sh
17033fi
17034
17035# Support unset when possible.
17036if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17037  as_unset=unset
17038else
17039  as_unset=false
17040fi
17041
17042
17043# IFS
17044# We need space, tab and new line, in precisely that order.  Quoting is
17045# there to prevent editors from complaining about space-tab.
17046# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17047# splitting by setting IFS to empty value.)
17048as_nl='
17049'
17050IFS=" ""	$as_nl"
17051
17052# Find who we are.  Look in the path if we contain no directory separator.
17053case $0 in
17054  *[\\/]* ) as_myself=$0 ;;
17055  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17056for as_dir in $PATH
17057do
17058  IFS=$as_save_IFS
17059  test -z "$as_dir" && as_dir=.
17060  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17061done
17062IFS=$as_save_IFS
17063
17064     ;;
17065esac
17066# We did not find ourselves, most probably we were run as `sh COMMAND'
17067# in which case we are not to be found in the path.
17068if test "x$as_myself" = x; then
17069  as_myself=$0
17070fi
17071if test ! -f "$as_myself"; then
17072  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17073  { (exit 1); exit 1; }
17074fi
17075
17076# Work around bugs in pre-3.0 UWIN ksh.
17077for as_var in ENV MAIL MAILPATH
17078do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17079done
17080PS1='$ '
17081PS2='> '
17082PS4='+ '
17083
17084# NLS nuisances.
17085for as_var in \
17086  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17087  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17088  LC_TELEPHONE LC_TIME
17089do
17090  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17091    eval $as_var=C; export $as_var
17092  else
17093    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17094  fi
17095done
17096
17097# Required to use basename.
17098if expr a : '\(a\)' >/dev/null 2>&1 &&
17099   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17100  as_expr=expr
17101else
17102  as_expr=false
17103fi
17104
17105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17106  as_basename=basename
17107else
17108  as_basename=false
17109fi
17110
17111
17112# Name of the executable.
17113as_me=`$as_basename -- "$0" ||
17114$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17115	 X"$0" : 'X\(//\)$' \| \
17116	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17117echo X/"$0" |
17118    sed '/^.*\/\([^/][^/]*\)\/*$/{
17119	    s//\1/
17120	    q
17121	  }
17122	  /^X\/\(\/\/\)$/{
17123	    s//\1/
17124	    q
17125	  }
17126	  /^X\/\(\/\).*/{
17127	    s//\1/
17128	    q
17129	  }
17130	  s/.*/./; q'`
17131
17132# CDPATH.
17133$as_unset CDPATH
17134
17135
17136
17137  as_lineno_1=$LINENO
17138  as_lineno_2=$LINENO
17139  test "x$as_lineno_1" != "x$as_lineno_2" &&
17140  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17141
17142  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17143  # uniformly replaced by the line number.  The first 'sed' inserts a
17144  # line-number line after each line using $LINENO; the second 'sed'
17145  # does the real work.  The second script uses 'N' to pair each
17146  # line-number line with the line containing $LINENO, and appends
17147  # trailing '-' during substitution so that $LINENO is not a special
17148  # case at line end.
17149  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17150  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17151  # E. McMahon (1931-1989) for sed's syntax.  :-)
17152  sed -n '
17153    p
17154    /[$]LINENO/=
17155  ' <$as_myself |
17156    sed '
17157      s/[$]LINENO.*/&-/
17158      t lineno
17159      b
17160      :lineno
17161      N
17162      :loop
17163      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17164      t loop
17165      s/-\n.*//
17166    ' >$as_me.lineno &&
17167  chmod +x "$as_me.lineno" ||
17168    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17169   { (exit 1); exit 1; }; }
17170
17171  # Don't try to exec as it changes $[0], causing all sort of problems
17172  # (the dirname of $[0] is not the place where we might find the
17173  # original and so on.  Autoconf is especially sensitive to this).
17174  . "./$as_me.lineno"
17175  # Exit status is that of the last command.
17176  exit
17177}
17178
17179
17180if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17181  as_dirname=dirname
17182else
17183  as_dirname=false
17184fi
17185
17186ECHO_C= ECHO_N= ECHO_T=
17187case `echo -n x` in
17188-n*)
17189  case `echo 'x\c'` in
17190  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17191  *)   ECHO_C='\c';;
17192  esac;;
17193*)
17194  ECHO_N='-n';;
17195esac
17196
17197if expr a : '\(a\)' >/dev/null 2>&1 &&
17198   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17199  as_expr=expr
17200else
17201  as_expr=false
17202fi
17203
17204rm -f conf$$ conf$$.exe conf$$.file
17205if test -d conf$$.dir; then
17206  rm -f conf$$.dir/conf$$.file
17207else
17208  rm -f conf$$.dir
17209  mkdir conf$$.dir
17210fi
17211echo >conf$$.file
17212if ln -s conf$$.file conf$$ 2>/dev/null; then
17213  as_ln_s='ln -s'
17214  # ... but there are two gotchas:
17215  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17216  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17217  # In both cases, we have to default to `cp -p'.
17218  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17219    as_ln_s='cp -p'
17220elif ln conf$$.file conf$$ 2>/dev/null; then
17221  as_ln_s=ln
17222else
17223  as_ln_s='cp -p'
17224fi
17225rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17226rmdir conf$$.dir 2>/dev/null
17227
17228if mkdir -p . 2>/dev/null; then
17229  as_mkdir_p=:
17230else
17231  test -d ./-p && rmdir ./-p
17232  as_mkdir_p=false
17233fi
17234
17235if test -x / >/dev/null 2>&1; then
17236  as_test_x='test -x'
17237else
17238  if ls -dL / >/dev/null 2>&1; then
17239    as_ls_L_option=L
17240  else
17241    as_ls_L_option=
17242  fi
17243  as_test_x='
17244    eval sh -c '\''
17245      if test -d "$1"; then
17246        test -d "$1/.";
17247      else
17248	case $1 in
17249        -*)set "./$1";;
17250	esac;
17251	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17252	???[sx]*):;;*)false;;esac;fi
17253    '\'' sh
17254  '
17255fi
17256as_executable_p=$as_test_x
17257
17258# Sed expression to map a string onto a valid CPP name.
17259as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17260
17261# Sed expression to map a string onto a valid variable name.
17262as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17263
17264
17265exec 6>&1
17266
17267# Save the log message, to keep $[0] and so on meaningful, and to
17268# report actual input values of CONFIG_FILES etc. instead of their
17269# values after options handling.
17270ac_log="
17271This file was extended by $as_me, which was
17272generated by GNU Autoconf 2.61.  Invocation command line was
17273
17274  CONFIG_FILES    = $CONFIG_FILES
17275  CONFIG_HEADERS  = $CONFIG_HEADERS
17276  CONFIG_LINKS    = $CONFIG_LINKS
17277  CONFIG_COMMANDS = $CONFIG_COMMANDS
17278  $ $0 $@
17279
17280on `(hostname || uname -n) 2>/dev/null | sed 1q`
17281"
17282
17283_ACEOF
17284
17285cat >>$CONFIG_STATUS <<_ACEOF
17286# Files that config.status was made for.
17287config_files="$ac_config_files"
17288config_commands="$ac_config_commands"
17289
17290_ACEOF
17291
17292cat >>$CONFIG_STATUS <<\_ACEOF
17293ac_cs_usage="\
17294\`$as_me' instantiates files from templates according to the
17295current configuration.
17296
17297Usage: $0 [OPTIONS] [FILE]...
17298
17299  -h, --help       print this help, then exit
17300  -V, --version    print version number and configuration settings, then exit
17301  -q, --quiet      do not print progress messages
17302  -d, --debug      don't remove temporary files
17303      --recheck    update $as_me by reconfiguring in the same conditions
17304  --file=FILE[:TEMPLATE]
17305		   instantiate the configuration file FILE
17306
17307Configuration files:
17308$config_files
17309
17310Configuration commands:
17311$config_commands
17312
17313Report bugs to <bug-autoconf@gnu.org>."
17314
17315_ACEOF
17316cat >>$CONFIG_STATUS <<_ACEOF
17317ac_cs_version="\\
17318config.status
17319configured by $0, generated by GNU Autoconf 2.61,
17320  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17321
17322Copyright (C) 2006 Free Software Foundation, Inc.
17323This config.status script is free software; the Free Software Foundation
17324gives unlimited permission to copy, distribute and modify it."
17325
17326ac_pwd='$ac_pwd'
17327srcdir='$srcdir'
17328INSTALL='$INSTALL'
17329_ACEOF
17330
17331cat >>$CONFIG_STATUS <<\_ACEOF
17332# If no file are specified by the user, then we need to provide default
17333# value.  By we need to know if files were specified by the user.
17334ac_need_defaults=:
17335while test $# != 0
17336do
17337  case $1 in
17338  --*=*)
17339    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17340    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17341    ac_shift=:
17342    ;;
17343  *)
17344    ac_option=$1
17345    ac_optarg=$2
17346    ac_shift=shift
17347    ;;
17348  esac
17349
17350  case $ac_option in
17351  # Handling of the options.
17352  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17353    ac_cs_recheck=: ;;
17354  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17355    echo "$ac_cs_version"; exit ;;
17356  --debug | --debu | --deb | --de | --d | -d )
17357    debug=: ;;
17358  --file | --fil | --fi | --f )
17359    $ac_shift
17360    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17361    ac_need_defaults=false;;
17362  --he | --h |  --help | --hel | -h )
17363    echo "$ac_cs_usage"; exit ;;
17364  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17365  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17366    ac_cs_silent=: ;;
17367
17368  # This is an error.
17369  -*) { echo "$as_me: error: unrecognized option: $1
17370Try \`$0 --help' for more information." >&2
17371   { (exit 1); exit 1; }; } ;;
17372
17373  *) ac_config_targets="$ac_config_targets $1"
17374     ac_need_defaults=false ;;
17375
17376  esac
17377  shift
17378done
17379
17380ac_configure_extra_args=
17381
17382if $ac_cs_silent; then
17383  exec 6>/dev/null
17384  ac_configure_extra_args="$ac_configure_extra_args --silent"
17385fi
17386
17387_ACEOF
17388cat >>$CONFIG_STATUS <<_ACEOF
17389if \$ac_cs_recheck; then
17390  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17391  CONFIG_SHELL=$SHELL
17392  export CONFIG_SHELL
17393  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17394fi
17395
17396_ACEOF
17397cat >>$CONFIG_STATUS <<\_ACEOF
17398exec 5>>config.log
17399{
17400  echo
17401  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17402## Running $as_me. ##
17403_ASBOX
17404  echo "$ac_log"
17405} >&5
17406
17407_ACEOF
17408cat >>$CONFIG_STATUS <<_ACEOF
17409#
17410# INIT-COMMANDS
17411#
17412
17413
17414# The HP-UX ksh and POSIX shell print the target directory to stdout
17415# if CDPATH is set.
17416(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17417
17418sed_quote_subst='$sed_quote_subst'
17419double_quote_subst='$double_quote_subst'
17420delay_variable_subst='$delay_variable_subst'
17421macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17422macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17423AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
17424DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17425OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17426enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17427enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17428pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17429enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17430host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17431host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17432host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17433build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17434build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17435build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17436SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17437Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17438GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17439EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17440FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17441LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17442NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17443LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17444max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17445ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17446exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17447lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17448lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17449lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17450reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17451reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17452deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17453file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17454AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17455AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17456STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17457RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17458old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17459old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17460old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17461CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17462CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17463compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17464GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17465lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17466lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17467lt_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"`'
17468lt_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"`'
17469objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17470SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17471ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17472MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17473lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17474lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17475lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17476lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17477lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17478need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17479DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17480NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17481LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17482OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17483OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17484libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17485shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17486extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17487archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17488enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17489export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17490whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17491compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17492old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17493old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17494archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17495archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17496module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17497module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17498with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17499allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17500no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17501hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17502hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17503hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17504hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17505hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17506hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17507hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17508hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17509inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17510link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17511fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17512always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17513export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17514exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17515include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17516prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17517file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17518variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17519need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17520need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17521version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17522runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17523shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17524shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17525libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17526library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17527soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17528postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17529postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17530finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17531finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17532hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17533sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17534sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17535hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17536enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17537enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17538enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17539old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17540striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17541
17542LTCC='$LTCC'
17543LTCFLAGS='$LTCFLAGS'
17544compiler='$compiler_DEFAULT'
17545
17546# Quote evaled strings.
17547for var in SED \
17548GREP \
17549EGREP \
17550FGREP \
17551LD \
17552NM \
17553LN_S \
17554lt_SP2NL \
17555lt_NL2SP \
17556reload_flag \
17557deplibs_check_method \
17558file_magic_cmd \
17559AR \
17560AR_FLAGS \
17561STRIP \
17562RANLIB \
17563CC \
17564CFLAGS \
17565compiler \
17566lt_cv_sys_global_symbol_pipe \
17567lt_cv_sys_global_symbol_to_cdecl \
17568lt_cv_sys_global_symbol_to_c_name_address \
17569lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17570SHELL \
17571ECHO \
17572lt_prog_compiler_no_builtin_flag \
17573lt_prog_compiler_wl \
17574lt_prog_compiler_pic \
17575lt_prog_compiler_static \
17576lt_cv_prog_compiler_c_o \
17577need_locks \
17578DSYMUTIL \
17579NMEDIT \
17580LIPO \
17581OTOOL \
17582OTOOL64 \
17583shrext_cmds \
17584export_dynamic_flag_spec \
17585whole_archive_flag_spec \
17586compiler_needs_object \
17587with_gnu_ld \
17588allow_undefined_flag \
17589no_undefined_flag \
17590hardcode_libdir_flag_spec \
17591hardcode_libdir_flag_spec_ld \
17592hardcode_libdir_separator \
17593fix_srcfile_path \
17594exclude_expsyms \
17595include_expsyms \
17596file_list_spec \
17597variables_saved_for_relink \
17598libname_spec \
17599library_names_spec \
17600soname_spec \
17601finish_eval \
17602old_striplib \
17603striplib; do
17604    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17605    *[\\\\\\\`\\"\\\$]*)
17606      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17607      ;;
17608    *)
17609      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17610      ;;
17611    esac
17612done
17613
17614# Double-quote double-evaled strings.
17615for var in reload_cmds \
17616old_postinstall_cmds \
17617old_postuninstall_cmds \
17618old_archive_cmds \
17619extract_expsyms_cmds \
17620old_archive_from_new_cmds \
17621old_archive_from_expsyms_cmds \
17622archive_cmds \
17623archive_expsym_cmds \
17624module_cmds \
17625module_expsym_cmds \
17626export_symbols_cmds \
17627prelink_cmds \
17628postinstall_cmds \
17629postuninstall_cmds \
17630finish_cmds \
17631sys_lib_search_path_spec \
17632sys_lib_dlsearch_path_spec; do
17633    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17634    *[\\\\\\\`\\"\\\$]*)
17635      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17636      ;;
17637    *)
17638      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17639      ;;
17640    esac
17641done
17642
17643# Fix-up fallback echo if it was mangled by the above quoting rules.
17644case \$lt_ECHO in
17645*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17646  ;;
17647esac
17648
17649ac_aux_dir='$ac_aux_dir'
17650xsi_shell='$xsi_shell'
17651lt_shell_append='$lt_shell_append'
17652
17653# See if we are running on zsh, and set the options which allow our
17654# commands through without removal of \ escapes INIT.
17655if test -n "\${ZSH_VERSION+set}" ; then
17656   setopt NO_GLOB_SUBST
17657fi
17658
17659
17660    PACKAGE='$PACKAGE'
17661    VERSION='$VERSION'
17662    TIMESTAMP='$TIMESTAMP'
17663    RM='$RM'
17664    ofile='$ofile'
17665
17666ac_aux_dir='$ac_aux_dir'
17667
17668
17669
17670DEPENDS="$DEPENDS"
17671VERSION_DEPENDS="$VERSION_DEPENDS"
17672PLAYWAVE_DEPENDS="$PLAYWAVE_DEPENDS"
17673PLAYMUS_DEPENDS="$PLAYMUS_DEPENDS"
17674
17675
17676_ACEOF
17677
17678cat >>$CONFIG_STATUS <<\_ACEOF
17679
17680# Handling of arguments.
17681for ac_config_target in $ac_config_targets
17682do
17683  case $ac_config_target in
17684    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17685    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17686    "SDL_mixer.spec") CONFIG_FILES="$CONFIG_FILES SDL_mixer.spec" ;;
17687    "SDL_mixer.qpg") CONFIG_FILES="$CONFIG_FILES SDL_mixer.qpg" ;;
17688    "SDL_mixer.pc") CONFIG_FILES="$CONFIG_FILES SDL_mixer.pc" ;;
17689    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17690
17691  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17692echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17693   { (exit 1); exit 1; }; };;
17694  esac
17695done
17696
17697
17698# If the user did not use the arguments to specify the items to instantiate,
17699# then the envvar interface is used.  Set only those that are not.
17700# We use the long form for the default assignment because of an extremely
17701# bizarre bug on SunOS 4.1.3.
17702if $ac_need_defaults; then
17703  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17704  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17705fi
17706
17707# Have a temporary directory for convenience.  Make it in the build tree
17708# simply because there is no reason against having it here, and in addition,
17709# creating and moving files from /tmp can sometimes cause problems.
17710# Hook for its removal unless debugging.
17711# Note that there is a small window in which the directory will not be cleaned:
17712# after its creation but before its name has been assigned to `$tmp'.
17713$debug ||
17714{
17715  tmp=
17716  trap 'exit_status=$?
17717  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17718' 0
17719  trap '{ (exit 1); exit 1; }' 1 2 13 15
17720}
17721# Create a (secure) tmp directory for tmp files.
17722
17723{
17724  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17725  test -n "$tmp" && test -d "$tmp"
17726}  ||
17727{
17728  tmp=./conf$$-$RANDOM
17729  (umask 077 && mkdir "$tmp")
17730} ||
17731{
17732   echo "$me: cannot create a temporary directory in ." >&2
17733   { (exit 1); exit 1; }
17734}
17735
17736#
17737# Set up the sed scripts for CONFIG_FILES section.
17738#
17739
17740# No need to generate the scripts if there are no CONFIG_FILES.
17741# This happens for instance when ./config.status config.h
17742if test -n "$CONFIG_FILES"; then
17743
17744_ACEOF
17745
17746
17747
17748ac_delim='%!_!# '
17749for ac_last_try in false false false false false :; do
17750  cat >conf$$subs.sed <<_ACEOF
17751SHELL!$SHELL$ac_delim
17752PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17753PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17754PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17755PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17756PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17757PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17758exec_prefix!$exec_prefix$ac_delim
17759prefix!$prefix$ac_delim
17760program_transform_name!$program_transform_name$ac_delim
17761bindir!$bindir$ac_delim
17762sbindir!$sbindir$ac_delim
17763libexecdir!$libexecdir$ac_delim
17764datarootdir!$datarootdir$ac_delim
17765datadir!$datadir$ac_delim
17766sysconfdir!$sysconfdir$ac_delim
17767sharedstatedir!$sharedstatedir$ac_delim
17768localstatedir!$localstatedir$ac_delim
17769includedir!$includedir$ac_delim
17770oldincludedir!$oldincludedir$ac_delim
17771docdir!$docdir$ac_delim
17772infodir!$infodir$ac_delim
17773htmldir!$htmldir$ac_delim
17774dvidir!$dvidir$ac_delim
17775pdfdir!$pdfdir$ac_delim
17776psdir!$psdir$ac_delim
17777libdir!$libdir$ac_delim
17778localedir!$localedir$ac_delim
17779mandir!$mandir$ac_delim
17780DEFS!$DEFS$ac_delim
17781ECHO_C!$ECHO_C$ac_delim
17782ECHO_N!$ECHO_N$ac_delim
17783ECHO_T!$ECHO_T$ac_delim
17784LIBS!$LIBS$ac_delim
17785build_alias!$build_alias$ac_delim
17786host_alias!$host_alias$ac_delim
17787target_alias!$target_alias$ac_delim
17788MAJOR_VERSION!$MAJOR_VERSION$ac_delim
17789MINOR_VERSION!$MINOR_VERSION$ac_delim
17790MICRO_VERSION!$MICRO_VERSION$ac_delim
17791INTERFACE_AGE!$INTERFACE_AGE$ac_delim
17792BINARY_AGE!$BINARY_AGE$ac_delim
17793VERSION!$VERSION$ac_delim
17794AS!$AS$ac_delim
17795DLLTOOL!$DLLTOOL$ac_delim
17796OBJDUMP!$OBJDUMP$ac_delim
17797LIBTOOL!$LIBTOOL$ac_delim
17798build!$build$ac_delim
17799build_cpu!$build_cpu$ac_delim
17800build_vendor!$build_vendor$ac_delim
17801build_os!$build_os$ac_delim
17802host!$host$ac_delim
17803host_cpu!$host_cpu$ac_delim
17804host_vendor!$host_vendor$ac_delim
17805host_os!$host_os$ac_delim
17806CC!$CC$ac_delim
17807CFLAGS!$CFLAGS$ac_delim
17808LDFLAGS!$LDFLAGS$ac_delim
17809CPPFLAGS!$CPPFLAGS$ac_delim
17810ac_ct_CC!$ac_ct_CC$ac_delim
17811EXEEXT!$EXEEXT$ac_delim
17812OBJEXT!$OBJEXT$ac_delim
17813SED!$SED$ac_delim
17814GREP!$GREP$ac_delim
17815EGREP!$EGREP$ac_delim
17816FGREP!$FGREP$ac_delim
17817LD!$LD$ac_delim
17818DUMPBIN!$DUMPBIN$ac_delim
17819ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
17820NM!$NM$ac_delim
17821LN_S!$LN_S$ac_delim
17822AR!$AR$ac_delim
17823STRIP!$STRIP$ac_delim
17824RANLIB!$RANLIB$ac_delim
17825lt_ECHO!$lt_ECHO$ac_delim
17826DSYMUTIL!$DSYMUTIL$ac_delim
17827NMEDIT!$NMEDIT$ac_delim
17828LIPO!$LIPO$ac_delim
17829OTOOL!$OTOOL$ac_delim
17830OTOOL64!$OTOOL64$ac_delim
17831CPP!$CPP$ac_delim
17832LT_RELEASE!$LT_RELEASE$ac_delim
17833LT_CURRENT!$LT_CURRENT$ac_delim
17834LT_REVISION!$LT_REVISION$ac_delim
17835LT_AGE!$LT_AGE$ac_delim
17836INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17837INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17838INSTALL_DATA!$INSTALL_DATA$ac_delim
17839SET_MAKE!$SET_MAKE$ac_delim
17840WINDRES!$WINDRES$ac_delim
17841PKG_CONFIG!$PKG_CONFIG$ac_delim
17842SDL_CFLAGS!$SDL_CFLAGS$ac_delim
17843SDL_LIBS!$SDL_LIBS$ac_delim
17844SDL_CONFIG!$SDL_CONFIG$ac_delim
17845LIBMIKMOD_CONFIG!$LIBMIKMOD_CONFIG$ac_delim
17846MODPLUG_CFLAGS!$MODPLUG_CFLAGS$ac_delim
17847MODPLUG_LIBS!$MODPLUG_LIBS$ac_delim
17848_ACEOF
17849
17850  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17851    break
17852  elif $ac_last_try; then
17853    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17854echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17855   { (exit 1); exit 1; }; }
17856  else
17857    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17858  fi
17859done
17860
17861ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17862if test -n "$ac_eof"; then
17863  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17864  ac_eof=`expr $ac_eof + 1`
17865fi
17866
17867cat >>$CONFIG_STATUS <<_ACEOF
17868cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17870_ACEOF
17871sed '
17872s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17873s/^/s,@/; s/!/@,|#_!!_#|/
17874:n
17875t n
17876s/'"$ac_delim"'$/,g/; t
17877s/$/\\/; p
17878N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17879' >>$CONFIG_STATUS <conf$$subs.sed
17880rm -f conf$$subs.sed
17881cat >>$CONFIG_STATUS <<_ACEOF
17882CEOF$ac_eof
17883_ACEOF
17884
17885
17886ac_delim='%!_!# '
17887for ac_last_try in false false false false false :; do
17888  cat >conf$$subs.sed <<_ACEOF
17889SMPEG_CONFIG!$SMPEG_CONFIG$ac_delim
17890SMPEG_CFLAGS!$SMPEG_CFLAGS$ac_delim
17891SMPEG_LIBS!$SMPEG_LIBS$ac_delim
17892ac_aux_dir!$ac_aux_dir$ac_delim
17893OBJECTS!$OBJECTS$ac_delim
17894VERSION_OBJECTS!$VERSION_OBJECTS$ac_delim
17895PLAYWAVE_OBJECTS!$PLAYWAVE_OBJECTS$ac_delim
17896PLAYMUS_OBJECTS!$PLAYMUS_OBJECTS$ac_delim
17897BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
17898EXTRA_CFLAGS!$EXTRA_CFLAGS$ac_delim
17899BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
17900EXTRA_LDFLAGS!$EXTRA_LDFLAGS$ac_delim
17901EXE!$EXE$ac_delim
17902SDL_VERSION!$SDL_VERSION$ac_delim
17903LIBOBJS!$LIBOBJS$ac_delim
17904LTLIBOBJS!$LTLIBOBJS$ac_delim
17905_ACEOF
17906
17907  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
17908    break
17909  elif $ac_last_try; then
17910    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17911echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17912   { (exit 1); exit 1; }; }
17913  else
17914    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17915  fi
17916done
17917
17918ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17919if test -n "$ac_eof"; then
17920  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17921  ac_eof=`expr $ac_eof + 1`
17922fi
17923
17924cat >>$CONFIG_STATUS <<_ACEOF
17925cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17927_ACEOF
17928sed '
17929s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17930s/^/s,@/; s/!/@,|#_!!_#|/
17931:n
17932t n
17933s/'"$ac_delim"'$/,g/; t
17934s/$/\\/; p
17935N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17936' >>$CONFIG_STATUS <conf$$subs.sed
17937rm -f conf$$subs.sed
17938cat >>$CONFIG_STATUS <<_ACEOF
17939:end
17940s/|#_!!_#|//g
17941CEOF$ac_eof
17942_ACEOF
17943
17944
17945# VPATH may cause trouble with some makes, so we remove $(srcdir),
17946# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17947# trailing colons and then remove the whole line if VPATH becomes empty
17948# (actually we leave an empty line to preserve line numbers).
17949if test "x$srcdir" = x.; then
17950  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17951s/:*\$(srcdir):*/:/
17952s/:*\${srcdir}:*/:/
17953s/:*@srcdir@:*/:/
17954s/^\([^=]*=[	 ]*\):*/\1/
17955s/:*$//
17956s/^[^=]*=[	 ]*$//
17957}'
17958fi
17959
17960cat >>$CONFIG_STATUS <<\_ACEOF
17961fi # test -n "$CONFIG_FILES"
17962
17963
17964for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
17965do
17966  case $ac_tag in
17967  :[FHLC]) ac_mode=$ac_tag; continue;;
17968  esac
17969  case $ac_mode$ac_tag in
17970  :[FHL]*:*);;
17971  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17972echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17973   { (exit 1); exit 1; }; };;
17974  :[FH]-) ac_tag=-:-;;
17975  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17976  esac
17977  ac_save_IFS=$IFS
17978  IFS=:
17979  set x $ac_tag
17980  IFS=$ac_save_IFS
17981  shift
17982  ac_file=$1
17983  shift
17984
17985  case $ac_mode in
17986  :L) ac_source=$1;;
17987  :[FH])
17988    ac_file_inputs=
17989    for ac_f
17990    do
17991      case $ac_f in
17992      -) ac_f="$tmp/stdin";;
17993      *) # Look for the file first in the build tree, then in the source tree
17994	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
17995	 # because $ac_f cannot contain `:'.
17996	 test -f "$ac_f" ||
17997	   case $ac_f in
17998	   [\\/$]*) false;;
17999	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18000	   esac ||
18001	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18002echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18003   { (exit 1); exit 1; }; };;
18004      esac
18005      ac_file_inputs="$ac_file_inputs $ac_f"
18006    done
18007
18008    # Let's still pretend it is `configure' which instantiates (i.e., don't
18009    # use $as_me), people would be surprised to read:
18010    #    /* config.h.  Generated by config.status.  */
18011    configure_input="Generated from "`IFS=:
18012	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18013    if test x"$ac_file" != x-; then
18014      configure_input="$ac_file.  $configure_input"
18015      { echo "$as_me:$LINENO: creating $ac_file" >&5
18016echo "$as_me: creating $ac_file" >&6;}
18017    fi
18018
18019    case $ac_tag in
18020    *:-:* | *:-) cat >"$tmp/stdin";;
18021    esac
18022    ;;
18023  esac
18024
18025  ac_dir=`$as_dirname -- "$ac_file" ||
18026$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18027	 X"$ac_file" : 'X\(//\)[^/]' \| \
18028	 X"$ac_file" : 'X\(//\)$' \| \
18029	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18030echo X"$ac_file" |
18031    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18032	    s//\1/
18033	    q
18034	  }
18035	  /^X\(\/\/\)[^/].*/{
18036	    s//\1/
18037	    q
18038	  }
18039	  /^X\(\/\/\)$/{
18040	    s//\1/
18041	    q
18042	  }
18043	  /^X\(\/\).*/{
18044	    s//\1/
18045	    q
18046	  }
18047	  s/.*/./; q'`
18048  { as_dir="$ac_dir"
18049  case $as_dir in #(
18050  -*) as_dir=./$as_dir;;
18051  esac
18052  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18053    as_dirs=
18054    while :; do
18055      case $as_dir in #(
18056      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18057      *) as_qdir=$as_dir;;
18058      esac
18059      as_dirs="'$as_qdir' $as_dirs"
18060      as_dir=`$as_dirname -- "$as_dir" ||
18061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18062	 X"$as_dir" : 'X\(//\)[^/]' \| \
18063	 X"$as_dir" : 'X\(//\)$' \| \
18064	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18065echo X"$as_dir" |
18066    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18067	    s//\1/
18068	    q
18069	  }
18070	  /^X\(\/\/\)[^/].*/{
18071	    s//\1/
18072	    q
18073	  }
18074	  /^X\(\/\/\)$/{
18075	    s//\1/
18076	    q
18077	  }
18078	  /^X\(\/\).*/{
18079	    s//\1/
18080	    q
18081	  }
18082	  s/.*/./; q'`
18083      test -d "$as_dir" && break
18084    done
18085    test -z "$as_dirs" || eval "mkdir $as_dirs"
18086  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18087echo "$as_me: error: cannot create directory $as_dir" >&2;}
18088   { (exit 1); exit 1; }; }; }
18089  ac_builddir=.
18090
18091case "$ac_dir" in
18092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18093*)
18094  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18095  # A ".." for each directory in $ac_dir_suffix.
18096  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18097  case $ac_top_builddir_sub in
18098  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18099  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18100  esac ;;
18101esac
18102ac_abs_top_builddir=$ac_pwd
18103ac_abs_builddir=$ac_pwd$ac_dir_suffix
18104# for backward compatibility:
18105ac_top_builddir=$ac_top_build_prefix
18106
18107case $srcdir in
18108  .)  # We are building in place.
18109    ac_srcdir=.
18110    ac_top_srcdir=$ac_top_builddir_sub
18111    ac_abs_top_srcdir=$ac_pwd ;;
18112  [\\/]* | ?:[\\/]* )  # Absolute name.
18113    ac_srcdir=$srcdir$ac_dir_suffix;
18114    ac_top_srcdir=$srcdir
18115    ac_abs_top_srcdir=$srcdir ;;
18116  *) # Relative name.
18117    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18118    ac_top_srcdir=$ac_top_build_prefix$srcdir
18119    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18120esac
18121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18122
18123
18124  case $ac_mode in
18125  :F)
18126  #
18127  # CONFIG_FILE
18128  #
18129
18130  case $INSTALL in
18131  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18132  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18133  esac
18134_ACEOF
18135
18136cat >>$CONFIG_STATUS <<\_ACEOF
18137# If the template does not know about datarootdir, expand it.
18138# FIXME: This hack should be removed a few years after 2.60.
18139ac_datarootdir_hack=; ac_datarootdir_seen=
18140
18141case `sed -n '/datarootdir/ {
18142  p
18143  q
18144}
18145/@datadir@/p
18146/@docdir@/p
18147/@infodir@/p
18148/@localedir@/p
18149/@mandir@/p
18150' $ac_file_inputs` in
18151*datarootdir*) ac_datarootdir_seen=yes;;
18152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18153  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18154echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18155_ACEOF
18156cat >>$CONFIG_STATUS <<_ACEOF
18157  ac_datarootdir_hack='
18158  s&@datadir@&$datadir&g
18159  s&@docdir@&$docdir&g
18160  s&@infodir@&$infodir&g
18161  s&@localedir@&$localedir&g
18162  s&@mandir@&$mandir&g
18163    s&\\\${datarootdir}&$datarootdir&g' ;;
18164esac
18165_ACEOF
18166
18167# Neutralize VPATH when `$srcdir' = `.'.
18168# Shell code in configure.ac might set extrasub.
18169# FIXME: do we really want to maintain this feature?
18170cat >>$CONFIG_STATUS <<_ACEOF
18171  sed "$ac_vpsub
18172$extrasub
18173_ACEOF
18174cat >>$CONFIG_STATUS <<\_ACEOF
18175:t
18176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18177s&@configure_input@&$configure_input&;t t
18178s&@top_builddir@&$ac_top_builddir_sub&;t t
18179s&@srcdir@&$ac_srcdir&;t t
18180s&@abs_srcdir@&$ac_abs_srcdir&;t t
18181s&@top_srcdir@&$ac_top_srcdir&;t t
18182s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18183s&@builddir@&$ac_builddir&;t t
18184s&@abs_builddir@&$ac_abs_builddir&;t t
18185s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18186s&@INSTALL@&$ac_INSTALL&;t t
18187$ac_datarootdir_hack
18188" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18189
18190test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18191  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18192  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18193  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18194which seems to be undefined.  Please make sure it is defined." >&5
18195echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18196which seems to be undefined.  Please make sure it is defined." >&2;}
18197
18198  rm -f "$tmp/stdin"
18199  case $ac_file in
18200  -) cat "$tmp/out"; rm -f "$tmp/out";;
18201  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18202  esac
18203 ;;
18204
18205
18206  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18207echo "$as_me: executing $ac_file commands" >&6;}
18208 ;;
18209  esac
18210
18211
18212  case $ac_file$ac_mode in
18213    "libtool":C)
18214
18215    # See if we are running on zsh, and set the options which allow our
18216    # commands through without removal of \ escapes.
18217    if test -n "${ZSH_VERSION+set}" ; then
18218      setopt NO_GLOB_SUBST
18219    fi
18220
18221    cfgfile="${ofile}T"
18222    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18223    $RM "$cfgfile"
18224
18225    cat <<_LT_EOF >> "$cfgfile"
18226#! $SHELL
18227
18228# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18229# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18230# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18231# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18232#
18233#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18234#                 2006, 2007, 2008 Free Software Foundation, Inc.
18235#   Written by Gordon Matzigkeit, 1996
18236#
18237#   This file is part of GNU Libtool.
18238#
18239# GNU Libtool is free software; you can redistribute it and/or
18240# modify it under the terms of the GNU General Public License as
18241# published by the Free Software Foundation; either version 2 of
18242# the License, or (at your option) any later version.
18243#
18244# As a special exception to the GNU General Public License,
18245# if you distribute this file as part of a program or library that
18246# is built using GNU Libtool, you may include this file under the
18247# same distribution terms that you use for the rest of that program.
18248#
18249# GNU Libtool is distributed in the hope that it will be useful,
18250# but WITHOUT ANY WARRANTY; without even the implied warranty of
18251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18252# GNU General Public License for more details.
18253#
18254# You should have received a copy of the GNU General Public License
18255# along with GNU Libtool; see the file COPYING.  If not, a copy
18256# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18257# obtained by writing to the Free Software Foundation, Inc.,
18258# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18259
18260
18261# The names of the tagged configurations supported by this script.
18262available_tags=""
18263
18264# ### BEGIN LIBTOOL CONFIG
18265
18266# Which release of libtool.m4 was used?
18267macro_version=$macro_version
18268macro_revision=$macro_revision
18269
18270# Assembler program.
18271AS=$AS
18272
18273# DLL creation program.
18274DLLTOOL=$DLLTOOL
18275
18276# Object dumper program.
18277OBJDUMP=$OBJDUMP
18278
18279# Whether or not to build shared libraries.
18280build_libtool_libs=$enable_shared
18281
18282# Whether or not to build static libraries.
18283build_old_libs=$enable_static
18284
18285# What type of objects to build.
18286pic_mode=$pic_mode
18287
18288# Whether or not to optimize for fast installation.
18289fast_install=$enable_fast_install
18290
18291# The host system.
18292host_alias=$host_alias
18293host=$host
18294host_os=$host_os
18295
18296# The build system.
18297build_alias=$build_alias
18298build=$build
18299build_os=$build_os
18300
18301# A sed program that does not truncate output.
18302SED=$lt_SED
18303
18304# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18305Xsed="\$SED -e 1s/^X//"
18306
18307# A grep program that handles long lines.
18308GREP=$lt_GREP
18309
18310# An ERE matcher.
18311EGREP=$lt_EGREP
18312
18313# A literal string matcher.
18314FGREP=$lt_FGREP
18315
18316# A BSD- or MS-compatible name lister.
18317NM=$lt_NM
18318
18319# Whether we need soft or hard links.
18320LN_S=$lt_LN_S
18321
18322# What is the maximum length of a command?
18323max_cmd_len=$max_cmd_len
18324
18325# Object file suffix (normally "o").
18326objext=$ac_objext
18327
18328# Executable file suffix (normally "").
18329exeext=$exeext
18330
18331# whether the shell understands "unset".
18332lt_unset=$lt_unset
18333
18334# turn spaces into newlines.
18335SP2NL=$lt_lt_SP2NL
18336
18337# turn newlines into spaces.
18338NL2SP=$lt_lt_NL2SP
18339
18340# How to create reloadable object files.
18341reload_flag=$lt_reload_flag
18342reload_cmds=$lt_reload_cmds
18343
18344# Method to check whether dependent libraries are shared objects.
18345deplibs_check_method=$lt_deplibs_check_method
18346
18347# Command to use when deplibs_check_method == "file_magic".
18348file_magic_cmd=$lt_file_magic_cmd
18349
18350# The archiver.
18351AR=$lt_AR
18352AR_FLAGS=$lt_AR_FLAGS
18353
18354# A symbol stripping program.
18355STRIP=$lt_STRIP
18356
18357# Commands used to install an old-style archive.
18358RANLIB=$lt_RANLIB
18359old_postinstall_cmds=$lt_old_postinstall_cmds
18360old_postuninstall_cmds=$lt_old_postuninstall_cmds
18361
18362# A C compiler.
18363LTCC=$lt_CC
18364
18365# LTCC compiler flags.
18366LTCFLAGS=$lt_CFLAGS
18367
18368# Take the output of nm and produce a listing of raw symbols and C names.
18369global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18370
18371# Transform the output of nm in a proper C declaration.
18372global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18373
18374# Transform the output of nm in a C name address pair.
18375global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18376
18377# Transform the output of nm in a C name address pair when lib prefix is needed.
18378global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18379
18380# The name of the directory that contains temporary libtool files.
18381objdir=$objdir
18382
18383# Shell to use when invoking shell scripts.
18384SHELL=$lt_SHELL
18385
18386# An echo program that does not interpret backslashes.
18387ECHO=$lt_ECHO
18388
18389# Used to examine libraries when file_magic_cmd begins with "file".
18390MAGIC_CMD=$MAGIC_CMD
18391
18392# Must we lock files when doing compilation?
18393need_locks=$lt_need_locks
18394
18395# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18396DSYMUTIL=$lt_DSYMUTIL
18397
18398# Tool to change global to local symbols on Mac OS X.
18399NMEDIT=$lt_NMEDIT
18400
18401# Tool to manipulate fat objects and archives on Mac OS X.
18402LIPO=$lt_LIPO
18403
18404# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18405OTOOL=$lt_OTOOL
18406
18407# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18408OTOOL64=$lt_OTOOL64
18409
18410# Old archive suffix (normally "a").
18411libext=$libext
18412
18413# Shared library suffix (normally ".so").
18414shrext_cmds=$lt_shrext_cmds
18415
18416# The commands to extract the exported symbol list from a shared archive.
18417extract_expsyms_cmds=$lt_extract_expsyms_cmds
18418
18419# Variables whose values should be saved in libtool wrapper scripts and
18420# restored at link time.
18421variables_saved_for_relink=$lt_variables_saved_for_relink
18422
18423# Do we need the "lib" prefix for modules?
18424need_lib_prefix=$need_lib_prefix
18425
18426# Do we need a version for libraries?
18427need_version=$need_version
18428
18429# Library versioning type.
18430version_type=$version_type
18431
18432# Shared library runtime path variable.
18433runpath_var=$runpath_var
18434
18435# Shared library path variable.
18436shlibpath_var=$shlibpath_var
18437
18438# Is shlibpath searched before the hard-coded library search path?
18439shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18440
18441# Format of library name prefix.
18442libname_spec=$lt_libname_spec
18443
18444# List of archive names.  First name is the real one, the rest are links.
18445# The last name is the one that the linker finds with -lNAME
18446library_names_spec=$lt_library_names_spec
18447
18448# The coded name of the library, if different from the real name.
18449soname_spec=$lt_soname_spec
18450
18451# Command to use after installation of a shared archive.
18452postinstall_cmds=$lt_postinstall_cmds
18453
18454# Command to use after uninstallation of a shared archive.
18455postuninstall_cmds=$lt_postuninstall_cmds
18456
18457# Commands used to finish a libtool library installation in a directory.
18458finish_cmds=$lt_finish_cmds
18459
18460# As "finish_cmds", except a single script fragment to be evaled but
18461# not shown.
18462finish_eval=$lt_finish_eval
18463
18464# Whether we should hardcode library paths into libraries.
18465hardcode_into_libs=$hardcode_into_libs
18466
18467# Compile-time system search path for libraries.
18468sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18469
18470# Run-time system search path for libraries.
18471sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18472
18473# Whether dlopen is supported.
18474dlopen_support=$enable_dlopen
18475
18476# Whether dlopen of programs is supported.
18477dlopen_self=$enable_dlopen_self
18478
18479# Whether dlopen of statically linked programs is supported.
18480dlopen_self_static=$enable_dlopen_self_static
18481
18482# Commands to strip libraries.
18483old_striplib=$lt_old_striplib
18484striplib=$lt_striplib
18485
18486
18487# The linker used to build libraries.
18488LD=$lt_LD
18489
18490# Commands used to build an old-style archive.
18491old_archive_cmds=$lt_old_archive_cmds
18492
18493# A language specific compiler.
18494CC=$lt_compiler
18495
18496# Is the compiler the GNU compiler?
18497with_gcc=$GCC
18498
18499# Compiler flag to turn off builtin functions.
18500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18501
18502# How to pass a linker flag through the compiler.
18503wl=$lt_lt_prog_compiler_wl
18504
18505# Additional compiler flags for building library objects.
18506pic_flag=$lt_lt_prog_compiler_pic
18507
18508# Compiler flag to prevent dynamic linking.
18509link_static_flag=$lt_lt_prog_compiler_static
18510
18511# Does compiler simultaneously support -c and -o options?
18512compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18513
18514# Whether or not to add -lc for building shared libraries.
18515build_libtool_need_lc=$archive_cmds_need_lc
18516
18517# Whether or not to disallow shared libs when runtime libs are static.
18518allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18519
18520# Compiler flag to allow reflexive dlopens.
18521export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18522
18523# Compiler flag to generate shared objects directly from archives.
18524whole_archive_flag_spec=$lt_whole_archive_flag_spec
18525
18526# Whether the compiler copes with passing no objects directly.
18527compiler_needs_object=$lt_compiler_needs_object
18528
18529# Create an old-style archive from a shared archive.
18530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18531
18532# Create a temporary old-style archive to link instead of a shared archive.
18533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18534
18535# Commands used to build a shared archive.
18536archive_cmds=$lt_archive_cmds
18537archive_expsym_cmds=$lt_archive_expsym_cmds
18538
18539# Commands used to build a loadable module if different from building
18540# a shared archive.
18541module_cmds=$lt_module_cmds
18542module_expsym_cmds=$lt_module_expsym_cmds
18543
18544# Whether we are building with GNU ld or not.
18545with_gnu_ld=$lt_with_gnu_ld
18546
18547# Flag that allows shared libraries with undefined symbols to be built.
18548allow_undefined_flag=$lt_allow_undefined_flag
18549
18550# Flag that enforces no undefined symbols.
18551no_undefined_flag=$lt_no_undefined_flag
18552
18553# Flag to hardcode \$libdir into a binary during linking.
18554# This must work even if \$libdir does not exist
18555hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18556
18557# If ld is used when linking, flag to hardcode \$libdir into a binary
18558# during linking.  This must work even if \$libdir does not exist.
18559hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18560
18561# Whether we need a single "-rpath" flag with a separated argument.
18562hardcode_libdir_separator=$lt_hardcode_libdir_separator
18563
18564# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18565# DIR into the resulting binary.
18566hardcode_direct=$hardcode_direct
18567
18568# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18569# DIR into the resulting binary and the resulting library dependency is
18570# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18571# library is relocated.
18572hardcode_direct_absolute=$hardcode_direct_absolute
18573
18574# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18575# into the resulting binary.
18576hardcode_minus_L=$hardcode_minus_L
18577
18578# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18579# into the resulting binary.
18580hardcode_shlibpath_var=$hardcode_shlibpath_var
18581
18582# Set to "yes" if building a shared library automatically hardcodes DIR
18583# into the library and all subsequent libraries and executables linked
18584# against it.
18585hardcode_automatic=$hardcode_automatic
18586
18587# Set to yes if linker adds runtime paths of dependent libraries
18588# to runtime path list.
18589inherit_rpath=$inherit_rpath
18590
18591# Whether libtool must link a program against all its dependency libraries.
18592link_all_deplibs=$link_all_deplibs
18593
18594# Fix the shell variable \$srcfile for the compiler.
18595fix_srcfile_path=$lt_fix_srcfile_path
18596
18597# Set to "yes" if exported symbols are required.
18598always_export_symbols=$always_export_symbols
18599
18600# The commands to list exported symbols.
18601export_symbols_cmds=$lt_export_symbols_cmds
18602
18603# Symbols that should not be listed in the preloaded symbols.
18604exclude_expsyms=$lt_exclude_expsyms
18605
18606# Symbols that must always be exported.
18607include_expsyms=$lt_include_expsyms
18608
18609# Commands necessary for linking programs (against libraries) with templates.
18610prelink_cmds=$lt_prelink_cmds
18611
18612# Specify filename containing input files.
18613file_list_spec=$lt_file_list_spec
18614
18615# How to hardcode a shared library path into an executable.
18616hardcode_action=$hardcode_action
18617
18618# ### END LIBTOOL CONFIG
18619
18620_LT_EOF
18621
18622  case $host_os in
18623  aix3*)
18624    cat <<\_LT_EOF >> "$cfgfile"
18625# AIX sometimes has problems with the GCC collect2 program.  For some
18626# reason, if we set the COLLECT_NAMES environment variable, the problems
18627# vanish in a puff of smoke.
18628if test "X${COLLECT_NAMES+set}" != Xset; then
18629  COLLECT_NAMES=
18630  export COLLECT_NAMES
18631fi
18632_LT_EOF
18633    ;;
18634  esac
18635
18636
18637ltmain="$ac_aux_dir/ltmain.sh"
18638
18639
18640  # We use sed instead of cat because bash on DJGPP gets confused if
18641  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18642  # text mode, it properly converts lines to CR/LF.  This bash problem
18643  # is reportedly fixed, but why not run on old versions too?
18644  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18645    || (rm -f "$cfgfile"; exit 1)
18646
18647  case $xsi_shell in
18648  yes)
18649    cat << \_LT_EOF >> "$cfgfile"
18650
18651# func_dirname file append nondir_replacement
18652# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18653# otherwise set result to NONDIR_REPLACEMENT.
18654func_dirname ()
18655{
18656  case ${1} in
18657    */*) func_dirname_result="${1%/*}${2}" ;;
18658    *  ) func_dirname_result="${3}" ;;
18659  esac
18660}
18661
18662# func_basename file
18663func_basename ()
18664{
18665  func_basename_result="${1##*/}"
18666}
18667
18668# func_dirname_and_basename file append nondir_replacement
18669# perform func_basename and func_dirname in a single function
18670# call:
18671#   dirname:  Compute the dirname of FILE.  If nonempty,
18672#             add APPEND to the result, otherwise set result
18673#             to NONDIR_REPLACEMENT.
18674#             value returned in "$func_dirname_result"
18675#   basename: Compute filename of FILE.
18676#             value retuned in "$func_basename_result"
18677# Implementation must be kept synchronized with func_dirname
18678# and func_basename. For efficiency, we do not delegate to
18679# those functions but instead duplicate the functionality here.
18680func_dirname_and_basename ()
18681{
18682  case ${1} in
18683    */*) func_dirname_result="${1%/*}${2}" ;;
18684    *  ) func_dirname_result="${3}" ;;
18685  esac
18686  func_basename_result="${1##*/}"
18687}
18688
18689# func_stripname prefix suffix name
18690# strip PREFIX and SUFFIX off of NAME.
18691# PREFIX and SUFFIX must not contain globbing or regex special
18692# characters, hashes, percent signs, but SUFFIX may contain a leading
18693# dot (in which case that matches only a dot).
18694func_stripname ()
18695{
18696  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18697  # positional parameters, so assign one to ordinary parameter first.
18698  func_stripname_result=${3}
18699  func_stripname_result=${func_stripname_result#"${1}"}
18700  func_stripname_result=${func_stripname_result%"${2}"}
18701}
18702
18703# func_opt_split
18704func_opt_split ()
18705{
18706  func_opt_split_opt=${1%%=*}
18707  func_opt_split_arg=${1#*=}
18708}
18709
18710# func_lo2o object
18711func_lo2o ()
18712{
18713  case ${1} in
18714    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18715    *)    func_lo2o_result=${1} ;;
18716  esac
18717}
18718
18719# func_xform libobj-or-source
18720func_xform ()
18721{
18722  func_xform_result=${1%.*}.lo
18723}
18724
18725# func_arith arithmetic-term...
18726func_arith ()
18727{
18728  func_arith_result=$(( $* ))
18729}
18730
18731# func_len string
18732# STRING may not start with a hyphen.
18733func_len ()
18734{
18735  func_len_result=${#1}
18736}
18737
18738_LT_EOF
18739    ;;
18740  *) # Bourne compatible functions.
18741    cat << \_LT_EOF >> "$cfgfile"
18742
18743# func_dirname file append nondir_replacement
18744# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18745# otherwise set result to NONDIR_REPLACEMENT.
18746func_dirname ()
18747{
18748  # Extract subdirectory from the argument.
18749  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18750  if test "X$func_dirname_result" = "X${1}"; then
18751    func_dirname_result="${3}"
18752  else
18753    func_dirname_result="$func_dirname_result${2}"
18754  fi
18755}
18756
18757# func_basename file
18758func_basename ()
18759{
18760  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18761}
18762
18763
18764# func_stripname prefix suffix name
18765# strip PREFIX and SUFFIX off of NAME.
18766# PREFIX and SUFFIX must not contain globbing or regex special
18767# characters, hashes, percent signs, but SUFFIX may contain a leading
18768# dot (in which case that matches only a dot).
18769# func_strip_suffix prefix name
18770func_stripname ()
18771{
18772  case ${2} in
18773    .*) func_stripname_result=`$ECHO "X${3}" \
18774           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18775    *)  func_stripname_result=`$ECHO "X${3}" \
18776           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18777  esac
18778}
18779
18780# sed scripts:
18781my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18782my_sed_long_arg='1s/^-[^=]*=//'
18783
18784# func_opt_split
18785func_opt_split ()
18786{
18787  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18788  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18789}
18790
18791# func_lo2o object
18792func_lo2o ()
18793{
18794  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18795}
18796
18797# func_xform libobj-or-source
18798func_xform ()
18799{
18800  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18801}
18802
18803# func_arith arithmetic-term...
18804func_arith ()
18805{
18806  func_arith_result=`expr "$@"`
18807}
18808
18809# func_len string
18810# STRING may not start with a hyphen.
18811func_len ()
18812{
18813  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18814}
18815
18816_LT_EOF
18817esac
18818
18819case $lt_shell_append in
18820  yes)
18821    cat << \_LT_EOF >> "$cfgfile"
18822
18823# func_append var value
18824# Append VALUE to the end of shell variable VAR.
18825func_append ()
18826{
18827  eval "$1+=\$2"
18828}
18829_LT_EOF
18830    ;;
18831  *)
18832    cat << \_LT_EOF >> "$cfgfile"
18833
18834# func_append var value
18835# Append VALUE to the end of shell variable VAR.
18836func_append ()
18837{
18838  eval "$1=\$$1\$2"
18839}
18840
18841_LT_EOF
18842    ;;
18843  esac
18844
18845
18846  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18847    || (rm -f "$cfgfile"; exit 1)
18848
18849  mv -f "$cfgfile" "$ofile" ||
18850    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18851  chmod +x "$ofile"
18852
18853 ;;
18854    "default":C) cat >>Makefile <<__EOF__
18855
18856# Build rules for objects
18857-include \$(OBJECTS:.lo=.d)
18858$DEPENDS
18859$VERSION_DEPENDS
18860
18861-include \$(PLAYWAVE_OBJECTS:.lo=.d)
18862$PLAYWAVE_DEPENDS
18863
18864-include \$(PLAYMUS_OBJECTS:.lo=.d)
18865$PLAYMUS_DEPENDS
18866__EOF__
18867 ;;
18868
18869  esac
18870done # for ac_tag
18871
18872
18873{ (exit 0); exit 0; }
18874_ACEOF
18875chmod +x $CONFIG_STATUS
18876ac_clean_files=$ac_clean_files_save
18877
18878
18879# configure is writing to config.log, and then calls config.status.
18880# config.status does its own redirection, appending to config.log.
18881# Unfortunately, on DOS this fails, as config.log is still kept open
18882# by configure, so config.status won't be able to write to it; its
18883# output is simply discarded.  So we exec the FD to /dev/null,
18884# effectively closing config.log, so it can be properly (re)opened and
18885# appended to by config.status.  When coming back to configure, we
18886# need to make the FD available again.
18887if test "$no_create" != yes; then
18888  ac_cs_success=:
18889  ac_config_status_args=
18890  test "$silent" = yes &&
18891    ac_config_status_args="$ac_config_status_args --quiet"
18892  exec 5>/dev/null
18893  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18894  exec 5>>config.log
18895  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18896  # would make configure fail if this is the last instruction.
18897  $ac_cs_success || { (exit 1); exit 1; }
18898fi
18899
18900