1#! /bin/sh
2# From configure.ac Id: configure.ac,v 1.10 2003/06/05 02:48:13 rob Exp .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57 for ID3 Tag 0.15.0b.
5#
6# Report bugs to <support@underbit.com>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24  set -o posix
25fi
26
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Find the correct PATH separator.  Usually this is `:', but
247# DJGPP uses `;' like DOS.
248if test "X${PATH_SEPARATOR+set}" != Xset; then
249  UNAME=${UNAME-`uname 2>/dev/null`}
250  case X$UNAME in
251    *-DOS) lt_cv_sys_path_separator=';' ;;
252    *)     lt_cv_sys_path_separator=':' ;;
253  esac
254  PATH_SEPARATOR=$lt_cv_sys_path_separator
255fi
256
257
258# Check that we are running under the correct shell.
259SHELL=${CONFIG_SHELL-/bin/sh}
260
261case X$ECHO in
262X*--fallback-echo)
263  # Remove one level of quotation (which was required for Make).
264  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
265  ;;
266esac
267
268echo=${ECHO-echo}
269if test "X$1" = X--no-reexec; then
270  # Discard the --no-reexec flag, and continue.
271  shift
272elif test "X$1" = X--fallback-echo; then
273  # Avoid inline document here, it may be left over
274  :
275elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
276  # Yippee, $echo works!
277  :
278else
279  # Restart under the correct shell.
280  exec $SHELL "$0" --no-reexec ${1+"$@"}
281fi
282
283if test "X$1" = X--fallback-echo; then
284  # used as fallback echo
285  shift
286  cat <<EOF
287
288EOF
289  exit 0
290fi
291
292# The HP-UX ksh and POSIX shell print the target directory to stdout
293# if CDPATH is set.
294if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
295
296if test -z "$ECHO"; then
297if test "X${echo_test_string+set}" != Xset; then
298# find a string as large as possible, as long as the shell can cope with it
299  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
300    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
301    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
302       echo_test_string="`eval $cmd`" &&
303       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
304    then
305      break
306    fi
307  done
308fi
309
310if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
311   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
312   test "X$echo_testing_string" = "X$echo_test_string"; then
313  :
314else
315  # The Solaris, AIX, and Digital Unix default echo programs unquote
316  # backslashes.  This makes it impossible to quote backslashes using
317  #   echo "$something" | sed 's/\\/\\\\/g'
318  #
319  # So, first we look for a working echo in the user's PATH.
320
321  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
322  for dir in $PATH /usr/ucb; do
323    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
324       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
325       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
326       test "X$echo_testing_string" = "X$echo_test_string"; then
327      echo="$dir/echo"
328      break
329    fi
330  done
331  IFS="$save_ifs"
332
333  if test "X$echo" = Xecho; then
334    # We didn't find a better echo, so look for alternatives.
335    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
336       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
337       test "X$echo_testing_string" = "X$echo_test_string"; then
338      # This shell has a builtin print -r that does the trick.
339      echo='print -r'
340    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
341	 test "X$CONFIG_SHELL" != X/bin/ksh; then
342      # If we have ksh, try running configure again with it.
343      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
344      export ORIGINAL_CONFIG_SHELL
345      CONFIG_SHELL=/bin/ksh
346      export CONFIG_SHELL
347      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
348    else
349      # Try using printf.
350      echo='printf %s\n'
351      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
352	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
353	 test "X$echo_testing_string" = "X$echo_test_string"; then
354	# Cool, printf works
355	:
356      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357	   test "X$echo_testing_string" = 'X\t' &&
358	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359	   test "X$echo_testing_string" = "X$echo_test_string"; then
360	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
361	export CONFIG_SHELL
362	SHELL="$CONFIG_SHELL"
363	export SHELL
364	echo="$CONFIG_SHELL $0 --fallback-echo"
365      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
366	   test "X$echo_testing_string" = 'X\t' &&
367	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
368	   test "X$echo_testing_string" = "X$echo_test_string"; then
369	echo="$CONFIG_SHELL $0 --fallback-echo"
370      else
371	# maybe with a smaller string...
372	prev=:
373
374	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
375	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376	  then
377	    break
378	  fi
379	  prev="$cmd"
380	done
381
382	if test "$prev" != 'sed 50q "$0"'; then
383	  echo_test_string=`eval $prev`
384	  export echo_test_string
385	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
386	else
387	  # Oops.  We lost completely, so just stick with echo.
388	  echo=echo
389	fi
390      fi
391    fi
392  fi
393fi
394fi
395
396# Copy echo and quote the copy suitably for passing to libtool from
397# the Makefile, instead of quoting the original, which is used later.
398ECHO=$echo
399if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
400   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
401fi
402
403
404
405# Name of the host.
406# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407# so uname gets run too.
408ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410exec 6>&1
411
412#
413# Initializations.
414#
415ac_default_prefix=/usr/local
416ac_config_libobj_dir=.
417cross_compiling=no
418subdirs=
419MFLAGS=
420MAKEFLAGS=
421SHELL=${CONFIG_SHELL-/bin/sh}
422
423# Maximum number of lines to put in a shell here document.
424# This variable seems obsolete.  It should probably be removed, and
425# only ac_max_sed_lines should be used.
426: ${ac_max_here_lines=38}
427
428# Identity of this package.
429PACKAGE_NAME='ID3 Tag'
430PACKAGE_TARNAME='libid3tag'
431PACKAGE_VERSION='0.15.0b'
432PACKAGE_STRING='ID3 Tag 0.15.0b'
433PACKAGE_BUGREPORT='support@underbit.com'
434
435ac_unique_file="id3tag.h"
436# Factoring default headers for most tests.
437ac_includes_default="\
438#include <stdio.h>
439#if HAVE_SYS_TYPES_H
440# include <sys/types.h>
441#endif
442#if HAVE_SYS_STAT_H
443# include <sys/stat.h>
444#endif
445#if STDC_HEADERS
446# include <stdlib.h>
447# include <stddef.h>
448#else
449# if HAVE_STDLIB_H
450#  include <stdlib.h>
451# endif
452#endif
453#if HAVE_STRING_H
454# if !STDC_HEADERS && HAVE_MEMORY_H
455#  include <memory.h>
456# endif
457# include <string.h>
458#endif
459#if HAVE_STRINGS_H
460# include <strings.h>
461#endif
462#if HAVE_INTTYPES_H
463# include <inttypes.h>
464#else
465# if HAVE_STDINT_H
466#  include <stdint.h>
467# endif
468#endif
469#if HAVE_UNISTD_H
470# include <unistd.h>
471#endif"
472
473ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBTOOL_DEPS DEBUG_TRUE DEBUG_FALSE LIBOBJS LTLIBOBJS'
474ac_subst_files=''
475
476# Initialize some variables set by options.
477ac_init_help=
478ac_init_version=false
479# The variables have the same names as the options, with
480# dashes changed to underlines.
481cache_file=/dev/null
482exec_prefix=NONE
483no_create=
484no_recursion=
485prefix=NONE
486program_prefix=NONE
487program_suffix=NONE
488program_transform_name=s,x,x,
489silent=
490site=
491srcdir=
492verbose=
493x_includes=NONE
494x_libraries=NONE
495
496# Installation directory options.
497# These are left unexpanded so users can "make install exec_prefix=/foo"
498# and all the variables that are supposed to be based on exec_prefix
499# by default will actually change.
500# Use braces instead of parens because sh, perl, etc. also accept them.
501bindir='${exec_prefix}/bin'
502sbindir='${exec_prefix}/sbin'
503libexecdir='${exec_prefix}/libexec'
504datadir='${prefix}/share'
505sysconfdir='${prefix}/etc'
506sharedstatedir='${prefix}/com'
507localstatedir='${prefix}/var'
508libdir='${exec_prefix}/lib'
509includedir='${prefix}/include'
510oldincludedir='/usr/include'
511infodir='${prefix}/info'
512mandir='${prefix}/man'
513
514ac_prev=
515for ac_option
516do
517  # If the previous option needs an argument, assign it.
518  if test -n "$ac_prev"; then
519    eval "$ac_prev=\$ac_option"
520    ac_prev=
521    continue
522  fi
523
524  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
525
526  # Accept the important Cygnus configure options, so we can diagnose typos.
527
528  case $ac_option in
529
530  -bindir | --bindir | --bindi | --bind | --bin | --bi)
531    ac_prev=bindir ;;
532  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533    bindir=$ac_optarg ;;
534
535  -build | --build | --buil | --bui | --bu)
536    ac_prev=build_alias ;;
537  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538    build_alias=$ac_optarg ;;
539
540  -cache-file | --cache-file | --cache-fil | --cache-fi \
541  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542    ac_prev=cache_file ;;
543  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545    cache_file=$ac_optarg ;;
546
547  --config-cache | -C)
548    cache_file=config.cache ;;
549
550  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
551    ac_prev=datadir ;;
552  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
553  | --da=*)
554    datadir=$ac_optarg ;;
555
556  -disable-* | --disable-*)
557    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558    # Reject names that are not valid shell variable names.
559    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561   { (exit 1); exit 1; }; }
562    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563    eval "enable_$ac_feature=no" ;;
564
565  -enable-* | --enable-*)
566    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567    # Reject names that are not valid shell variable names.
568    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570   { (exit 1); exit 1; }; }
571    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572    case $ac_option in
573      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574      *) ac_optarg=yes ;;
575    esac
576    eval "enable_$ac_feature='$ac_optarg'" ;;
577
578  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580  | --exec | --exe | --ex)
581    ac_prev=exec_prefix ;;
582  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584  | --exec=* | --exe=* | --ex=*)
585    exec_prefix=$ac_optarg ;;
586
587  -gas | --gas | --ga | --g)
588    # Obsolete; use --with-gas.
589    with_gas=yes ;;
590
591  -help | --help | --hel | --he | -h)
592    ac_init_help=long ;;
593  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594    ac_init_help=recursive ;;
595  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596    ac_init_help=short ;;
597
598  -host | --host | --hos | --ho)
599    ac_prev=host_alias ;;
600  -host=* | --host=* | --hos=* | --ho=*)
601    host_alias=$ac_optarg ;;
602
603  -includedir | --includedir | --includedi | --included | --include \
604  | --includ | --inclu | --incl | --inc)
605    ac_prev=includedir ;;
606  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607  | --includ=* | --inclu=* | --incl=* | --inc=*)
608    includedir=$ac_optarg ;;
609
610  -infodir | --infodir | --infodi | --infod | --info | --inf)
611    ac_prev=infodir ;;
612  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613    infodir=$ac_optarg ;;
614
615  -libdir | --libdir | --libdi | --libd)
616    ac_prev=libdir ;;
617  -libdir=* | --libdir=* | --libdi=* | --libd=*)
618    libdir=$ac_optarg ;;
619
620  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621  | --libexe | --libex | --libe)
622    ac_prev=libexecdir ;;
623  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624  | --libexe=* | --libex=* | --libe=*)
625    libexecdir=$ac_optarg ;;
626
627  -localstatedir | --localstatedir | --localstatedi | --localstated \
628  | --localstate | --localstat | --localsta | --localst \
629  | --locals | --local | --loca | --loc | --lo)
630    ac_prev=localstatedir ;;
631  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634    localstatedir=$ac_optarg ;;
635
636  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
637    ac_prev=mandir ;;
638  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639    mandir=$ac_optarg ;;
640
641  -nfp | --nfp | --nf)
642    # Obsolete; use --without-fp.
643    with_fp=no ;;
644
645  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646  | --no-cr | --no-c | -n)
647    no_create=yes ;;
648
649  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651    no_recursion=yes ;;
652
653  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655  | --oldin | --oldi | --old | --ol | --o)
656    ac_prev=oldincludedir ;;
657  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660    oldincludedir=$ac_optarg ;;
661
662  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
663    ac_prev=prefix ;;
664  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665    prefix=$ac_optarg ;;
666
667  -program-prefix | --program-prefix | --program-prefi | --program-pref \
668  | --program-pre | --program-pr | --program-p)
669    ac_prev=program_prefix ;;
670  -program-prefix=* | --program-prefix=* | --program-prefi=* \
671  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672    program_prefix=$ac_optarg ;;
673
674  -program-suffix | --program-suffix | --program-suffi | --program-suff \
675  | --program-suf | --program-su | --program-s)
676    ac_prev=program_suffix ;;
677  -program-suffix=* | --program-suffix=* | --program-suffi=* \
678  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679    program_suffix=$ac_optarg ;;
680
681  -program-transform-name | --program-transform-name \
682  | --program-transform-nam | --program-transform-na \
683  | --program-transform-n | --program-transform- \
684  | --program-transform | --program-transfor \
685  | --program-transfo | --program-transf \
686  | --program-trans | --program-tran \
687  | --progr-tra | --program-tr | --program-t)
688    ac_prev=program_transform_name ;;
689  -program-transform-name=* | --program-transform-name=* \
690  | --program-transform-nam=* | --program-transform-na=* \
691  | --program-transform-n=* | --program-transform-=* \
692  | --program-transform=* | --program-transfor=* \
693  | --program-transfo=* | --program-transf=* \
694  | --program-trans=* | --program-tran=* \
695  | --progr-tra=* | --program-tr=* | --program-t=*)
696    program_transform_name=$ac_optarg ;;
697
698  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699  | -silent | --silent | --silen | --sile | --sil)
700    silent=yes ;;
701
702  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
703    ac_prev=sbindir ;;
704  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
705  | --sbi=* | --sb=*)
706    sbindir=$ac_optarg ;;
707
708  -sharedstatedir | --sharedstatedir | --sharedstatedi \
709  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710  | --sharedst | --shareds | --shared | --share | --shar \
711  | --sha | --sh)
712    ac_prev=sharedstatedir ;;
713  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
716  | --sha=* | --sh=*)
717    sharedstatedir=$ac_optarg ;;
718
719  -site | --site | --sit)
720    ac_prev=site ;;
721  -site=* | --site=* | --sit=*)
722    site=$ac_optarg ;;
723
724  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
725    ac_prev=srcdir ;;
726  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727    srcdir=$ac_optarg ;;
728
729  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730  | --syscon | --sysco | --sysc | --sys | --sy)
731    ac_prev=sysconfdir ;;
732  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734    sysconfdir=$ac_optarg ;;
735
736  -target | --target | --targe | --targ | --tar | --ta | --t)
737    ac_prev=target_alias ;;
738  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739    target_alias=$ac_optarg ;;
740
741  -v | -verbose | --verbose | --verbos | --verbo | --verb)
742    verbose=yes ;;
743
744  -version | --version | --versio | --versi | --vers | -V)
745    ac_init_version=: ;;
746
747  -with-* | --with-*)
748    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749    # Reject names that are not valid shell variable names.
750    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751      { echo "$as_me: error: invalid package name: $ac_package" >&2
752   { (exit 1); exit 1; }; }
753    ac_package=`echo $ac_package| sed 's/-/_/g'`
754    case $ac_option in
755      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756      *) ac_optarg=yes ;;
757    esac
758    eval "with_$ac_package='$ac_optarg'" ;;
759
760  -without-* | --without-*)
761    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package | sed 's/-/_/g'`
767    eval "with_$ac_package=no" ;;
768
769  --x)
770    # Obsolete; use --with-x.
771    with_x=yes ;;
772
773  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774  | --x-incl | --x-inc | --x-in | --x-i)
775    ac_prev=x_includes ;;
776  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778    x_includes=$ac_optarg ;;
779
780  -x-libraries | --x-libraries | --x-librarie | --x-librari \
781  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782    ac_prev=x_libraries ;;
783  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785    x_libraries=$ac_optarg ;;
786
787  -*) { echo "$as_me: error: unrecognized option: $ac_option
788Try \`$0 --help' for more information." >&2
789   { (exit 1); exit 1; }; }
790    ;;
791
792  *=*)
793    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794    # Reject names that are not valid shell variable names.
795    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797   { (exit 1); exit 1; }; }
798    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799    eval "$ac_envvar='$ac_optarg'"
800    export $ac_envvar ;;
801
802  *)
803    # FIXME: should be removed in autoconf 3.0.
804    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808    ;;
809
810  esac
811done
812
813if test -n "$ac_prev"; then
814  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815  { echo "$as_me: error: missing argument to $ac_option" >&2
816   { (exit 1); exit 1; }; }
817fi
818
819# Be sure to have absolute paths.
820for ac_var in exec_prefix prefix
821do
822  eval ac_val=$`echo $ac_var`
823  case $ac_val in
824    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826   { (exit 1); exit 1; }; };;
827  esac
828done
829
830# Be sure to have absolute paths.
831for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832              localstatedir libdir includedir oldincludedir infodir mandir
833do
834  eval ac_val=$`echo $ac_var`
835  case $ac_val in
836    [\\/$]* | ?:[\\/]* ) ;;
837    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838   { (exit 1); exit 1; }; };;
839  esac
840done
841
842# There might be people who depend on the old broken behavior: `$host'
843# used to hold the argument of --host etc.
844# FIXME: To remove some day.
845build=$build_alias
846host=$host_alias
847target=$target_alias
848
849# FIXME: To remove some day.
850if test "x$host_alias" != x; then
851  if test "x$build_alias" = x; then
852    cross_compiling=maybe
853    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854    If a cross compiler is detected then cross compile mode will be used." >&2
855  elif test "x$build_alias" != "x$host_alias"; then
856    cross_compiling=yes
857  fi
858fi
859
860ac_tool_prefix=
861test -n "$host_alias" && ac_tool_prefix=$host_alias-
862
863test "$silent" = yes && exec 6>/dev/null
864
865
866# Find the source files, if location was not specified.
867if test -z "$srcdir"; then
868  ac_srcdir_defaulted=yes
869  # Try the directory containing this script, then its parent.
870  ac_confdir=`(dirname "$0") 2>/dev/null ||
871$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872         X"$0" : 'X\(//\)[^/]' \| \
873         X"$0" : 'X\(//\)$' \| \
874         X"$0" : 'X\(/\)' \| \
875         .     : '\(.\)' 2>/dev/null ||
876echo X"$0" |
877    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879  	  /^X\(\/\/\)$/{ s//\1/; q; }
880  	  /^X\(\/\).*/{ s//\1/; q; }
881  	  s/.*/./; q'`
882  srcdir=$ac_confdir
883  if test ! -r $srcdir/$ac_unique_file; then
884    srcdir=..
885  fi
886else
887  ac_srcdir_defaulted=no
888fi
889if test ! -r $srcdir/$ac_unique_file; then
890  if test "$ac_srcdir_defaulted" = yes; then
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892   { (exit 1); exit 1; }; }
893  else
894    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895   { (exit 1); exit 1; }; }
896  fi
897fi
898(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900   { (exit 1); exit 1; }; }
901srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902ac_env_build_alias_set=${build_alias+set}
903ac_env_build_alias_value=$build_alias
904ac_cv_env_build_alias_set=${build_alias+set}
905ac_cv_env_build_alias_value=$build_alias
906ac_env_host_alias_set=${host_alias+set}
907ac_env_host_alias_value=$host_alias
908ac_cv_env_host_alias_set=${host_alias+set}
909ac_cv_env_host_alias_value=$host_alias
910ac_env_target_alias_set=${target_alias+set}
911ac_env_target_alias_value=$target_alias
912ac_cv_env_target_alias_set=${target_alias+set}
913ac_cv_env_target_alias_value=$target_alias
914ac_env_CC_set=${CC+set}
915ac_env_CC_value=$CC
916ac_cv_env_CC_set=${CC+set}
917ac_cv_env_CC_value=$CC
918ac_env_CFLAGS_set=${CFLAGS+set}
919ac_env_CFLAGS_value=$CFLAGS
920ac_cv_env_CFLAGS_set=${CFLAGS+set}
921ac_cv_env_CFLAGS_value=$CFLAGS
922ac_env_LDFLAGS_set=${LDFLAGS+set}
923ac_env_LDFLAGS_value=$LDFLAGS
924ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925ac_cv_env_LDFLAGS_value=$LDFLAGS
926ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927ac_env_CPPFLAGS_value=$CPPFLAGS
928ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930ac_env_CPP_set=${CPP+set}
931ac_env_CPP_value=$CPP
932ac_cv_env_CPP_set=${CPP+set}
933ac_cv_env_CPP_value=$CPP
934
935#
936# Report the --help message.
937#
938if test "$ac_init_help" = "long"; then
939  # Omit some internal or obsolete options to make the list less imposing.
940  # This message is too long to be a string in the A/UX 3.1 sh.
941  cat <<_ACEOF
942\`configure' configures ID3 Tag 0.15.0b to adapt to many kinds of systems.
943
944Usage: $0 [OPTION]... [VAR=VALUE]...
945
946To assign environment variables (e.g., CC, CFLAGS...), specify them as
947VAR=VALUE.  See below for descriptions of some of the useful variables.
948
949Defaults for the options are specified in brackets.
950
951Configuration:
952  -h, --help              display this help and exit
953      --help=short        display options specific to this package
954      --help=recursive    display the short help of all the included packages
955  -V, --version           display version information and exit
956  -q, --quiet, --silent   do not print \`checking...' messages
957      --cache-file=FILE   cache test results in FILE [disabled]
958  -C, --config-cache      alias for \`--cache-file=config.cache'
959  -n, --no-create         do not create output files
960      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
961
962_ACEOF
963
964  cat <<_ACEOF
965Installation directories:
966  --prefix=PREFIX         install architecture-independent files in PREFIX
967                          [$ac_default_prefix]
968  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969                          [PREFIX]
970
971By default, \`make install' will install all the files in
972\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
973an installation prefix other than \`$ac_default_prefix' using \`--prefix',
974for instance \`--prefix=\$HOME'.
975
976For better control, use the options below.
977
978Fine tuning of the installation directories:
979  --bindir=DIR           user executables [EPREFIX/bin]
980  --sbindir=DIR          system admin executables [EPREFIX/sbin]
981  --libexecdir=DIR       program executables [EPREFIX/libexec]
982  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
983  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
984  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
985  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
986  --libdir=DIR           object code libraries [EPREFIX/lib]
987  --includedir=DIR       C header files [PREFIX/include]
988  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
989  --infodir=DIR          info documentation [PREFIX/info]
990  --mandir=DIR           man documentation [PREFIX/man]
991_ACEOF
992
993  cat <<\_ACEOF
994
995Program names:
996  --program-prefix=PREFIX            prepend PREFIX to installed program names
997  --program-suffix=SUFFIX            append SUFFIX to installed program names
998  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
1000System types:
1001  --build=BUILD     configure for building on BUILD [guessed]
1002  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003_ACEOF
1004fi
1005
1006if test -n "$ac_init_help"; then
1007  case $ac_init_help in
1008     short | recursive ) echo "Configuration of ID3 Tag 0.15.0b:";;
1009   esac
1010  cat <<\_ACEOF
1011
1012Optional Features:
1013  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1014  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1015  --disable-dependency-tracking Speeds up one-time builds
1016  --enable-dependency-tracking  Do not reject slow dependency extractors
1017  --enable-shared=PKGS  build shared libraries default=yes
1018  --enable-static=PKGS  build static libraries default=yes
1019  --enable-fast-install=PKGS  optimize for fast installation default=yes
1020  --disable-libtool-lock  avoid locking (might break parallel builds)
1021  --enable-profiling      generate profiling code
1022  --enable-debugging      enable diagnostic debugging support
1023  --disable-debugging     do not enable debugging and use more optimization
1024
1025Optional Packages:
1026  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1027  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1028  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1029  --with-pic              try to use only PIC/non-PIC objects default=use both
1030
1031Some influential environment variables:
1032  CC          C compiler command
1033  CFLAGS      C compiler flags
1034  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1035              nonstandard directory <lib dir>
1036  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037              headers in a nonstandard directory <include dir>
1038  CPP         C preprocessor
1039
1040Use these variables to override the choices made by `configure' or to help
1041it to find libraries and programs with nonstandard names/locations.
1042
1043Report bugs to <support@underbit.com>.
1044_ACEOF
1045fi
1046
1047if test "$ac_init_help" = "recursive"; then
1048  # If there are subdirs, report their specific --help.
1049  ac_popdir=`pwd`
1050  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1051    test -d $ac_dir || continue
1052    ac_builddir=.
1053
1054if test "$ac_dir" != .; then
1055  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1056  # A "../" for each directory in $ac_dir_suffix.
1057  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1058else
1059  ac_dir_suffix= ac_top_builddir=
1060fi
1061
1062case $srcdir in
1063  .)  # No --srcdir option.  We are building in place.
1064    ac_srcdir=.
1065    if test -z "$ac_top_builddir"; then
1066       ac_top_srcdir=.
1067    else
1068       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1069    fi ;;
1070  [\\/]* | ?:[\\/]* )  # Absolute path.
1071    ac_srcdir=$srcdir$ac_dir_suffix;
1072    ac_top_srcdir=$srcdir ;;
1073  *) # Relative path.
1074    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1075    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1076esac
1077# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1078# absolute.
1079ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1080ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1081ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1082ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1083
1084    cd $ac_dir
1085    # Check for guested configure; otherwise get Cygnus style configure.
1086    if test -f $ac_srcdir/configure.gnu; then
1087      echo
1088      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1089    elif test -f $ac_srcdir/configure; then
1090      echo
1091      $SHELL $ac_srcdir/configure  --help=recursive
1092    elif test -f $ac_srcdir/configure.ac ||
1093           test -f $ac_srcdir/configure.in; then
1094      echo
1095      $ac_configure --help
1096    else
1097      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1098    fi
1099    cd $ac_popdir
1100  done
1101fi
1102
1103test -n "$ac_init_help" && exit 0
1104if $ac_init_version; then
1105  cat <<\_ACEOF
1106ID3 Tag configure 0.15.0b
1107generated by GNU Autoconf 2.57
1108
1109Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1110Free Software Foundation, Inc.
1111This configure script is free software; the Free Software Foundation
1112gives unlimited permission to copy, distribute and modify it.
1113_ACEOF
1114  exit 0
1115fi
1116exec 5>config.log
1117cat >&5 <<_ACEOF
1118This file contains any messages produced by compilers while
1119running configure, to aid debugging if configure makes a mistake.
1120
1121It was created by ID3 Tag $as_me 0.15.0b, which was
1122generated by GNU Autoconf 2.57.  Invocation command line was
1123
1124  $ $0 $@
1125
1126_ACEOF
1127{
1128cat <<_ASUNAME
1129## --------- ##
1130## Platform. ##
1131## --------- ##
1132
1133hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1134uname -m = `(uname -m) 2>/dev/null || echo unknown`
1135uname -r = `(uname -r) 2>/dev/null || echo unknown`
1136uname -s = `(uname -s) 2>/dev/null || echo unknown`
1137uname -v = `(uname -v) 2>/dev/null || echo unknown`
1138
1139/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1140/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1141
1142/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1143/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1144/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1145hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1146/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1147/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1148/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1149
1150_ASUNAME
1151
1152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1153for as_dir in $PATH
1154do
1155  IFS=$as_save_IFS
1156  test -z "$as_dir" && as_dir=.
1157  echo "PATH: $as_dir"
1158done
1159
1160} >&5
1161
1162cat >&5 <<_ACEOF
1163
1164
1165## ----------- ##
1166## Core tests. ##
1167## ----------- ##
1168
1169_ACEOF
1170
1171
1172# Keep a trace of the command line.
1173# Strip out --no-create and --no-recursion so they do not pile up.
1174# Strip out --silent because we don't want to record it for future runs.
1175# Also quote any args containing shell meta-characters.
1176# Make two passes to allow for proper duplicate-argument suppression.
1177ac_configure_args=
1178ac_configure_args0=
1179ac_configure_args1=
1180ac_sep=
1181ac_must_keep_next=false
1182for ac_pass in 1 2
1183do
1184  for ac_arg
1185  do
1186    case $ac_arg in
1187    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1188    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189    | -silent | --silent | --silen | --sile | --sil)
1190      continue ;;
1191    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1192      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1193    esac
1194    case $ac_pass in
1195    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1196    2)
1197      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1198      if test $ac_must_keep_next = true; then
1199        ac_must_keep_next=false # Got value, back to normal.
1200      else
1201        case $ac_arg in
1202          *=* | --config-cache | -C | -disable-* | --disable-* \
1203          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1204          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1205          | -with-* | --with-* | -without-* | --without-* | --x)
1206            case "$ac_configure_args0 " in
1207              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1208            esac
1209            ;;
1210          -* ) ac_must_keep_next=true ;;
1211        esac
1212      fi
1213      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1214      # Get rid of the leading space.
1215      ac_sep=" "
1216      ;;
1217    esac
1218  done
1219done
1220$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1221$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1222
1223# When interrupted or exit'd, cleanup temporary files, and complete
1224# config.log.  We remove comments because anyway the quotes in there
1225# would cause problems or look ugly.
1226# WARNING: Be sure not to use single quotes in there, as some shells,
1227# such as our DU 5.0 friend, will then `close' the trap.
1228trap 'exit_status=$?
1229  # Save into config.log some information that might help in debugging.
1230  {
1231    echo
1232
1233    cat <<\_ASBOX
1234## ---------------- ##
1235## Cache variables. ##
1236## ---------------- ##
1237_ASBOX
1238    echo
1239    # The following way of writing the cache mishandles newlines in values,
1240{
1241  (set) 2>&1 |
1242    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1243    *ac_space=\ *)
1244      sed -n \
1245        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1246    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1247      ;;
1248    *)
1249      sed -n \
1250        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1251      ;;
1252    esac;
1253}
1254    echo
1255
1256    cat <<\_ASBOX
1257## ----------------- ##
1258## Output variables. ##
1259## ----------------- ##
1260_ASBOX
1261    echo
1262    for ac_var in $ac_subst_vars
1263    do
1264      eval ac_val=$`echo $ac_var`
1265      echo "$ac_var='"'"'$ac_val'"'"'"
1266    done | sort
1267    echo
1268
1269    if test -n "$ac_subst_files"; then
1270      cat <<\_ASBOX
1271## ------------- ##
1272## Output files. ##
1273## ------------- ##
1274_ASBOX
1275      echo
1276      for ac_var in $ac_subst_files
1277      do
1278	eval ac_val=$`echo $ac_var`
1279        echo "$ac_var='"'"'$ac_val'"'"'"
1280      done | sort
1281      echo
1282    fi
1283
1284    if test -s confdefs.h; then
1285      cat <<\_ASBOX
1286## ----------- ##
1287## confdefs.h. ##
1288## ----------- ##
1289_ASBOX
1290      echo
1291      sed "/^$/d" confdefs.h | sort
1292      echo
1293    fi
1294    test "$ac_signal" != 0 &&
1295      echo "$as_me: caught signal $ac_signal"
1296    echo "$as_me: exit $exit_status"
1297  } >&5
1298  rm -f core core.* *.core &&
1299  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1300    exit $exit_status
1301     ' 0
1302for ac_signal in 1 2 13 15; do
1303  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1304done
1305ac_signal=0
1306
1307# confdefs.h avoids OS command line length limits that DEFS can exceed.
1308rm -rf conftest* confdefs.h
1309# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1310echo >confdefs.h
1311
1312# Predefined preprocessor variables.
1313
1314cat >>confdefs.h <<_ACEOF
1315#define PACKAGE_NAME "$PACKAGE_NAME"
1316_ACEOF
1317
1318
1319cat >>confdefs.h <<_ACEOF
1320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1321_ACEOF
1322
1323
1324cat >>confdefs.h <<_ACEOF
1325#define PACKAGE_VERSION "$PACKAGE_VERSION"
1326_ACEOF
1327
1328
1329cat >>confdefs.h <<_ACEOF
1330#define PACKAGE_STRING "$PACKAGE_STRING"
1331_ACEOF
1332
1333
1334cat >>confdefs.h <<_ACEOF
1335#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1336_ACEOF
1337
1338
1339# Let the site file select an alternate cache file if it wants to.
1340# Prefer explicitly selected file to automatically selected ones.
1341if test -z "$CONFIG_SITE"; then
1342  if test "x$prefix" != xNONE; then
1343    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1344  else
1345    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1346  fi
1347fi
1348for ac_site_file in $CONFIG_SITE; do
1349  if test -r "$ac_site_file"; then
1350    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1351echo "$as_me: loading site script $ac_site_file" >&6;}
1352    sed 's/^/| /' "$ac_site_file" >&5
1353    . "$ac_site_file"
1354  fi
1355done
1356
1357if test -r "$cache_file"; then
1358  # Some versions of bash will fail to source /dev/null (special
1359  # files actually), so we avoid doing that.
1360  if test -f "$cache_file"; then
1361    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1362echo "$as_me: loading cache $cache_file" >&6;}
1363    case $cache_file in
1364      [\\/]* | ?:[\\/]* ) . $cache_file;;
1365      *)                      . ./$cache_file;;
1366    esac
1367  fi
1368else
1369  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1370echo "$as_me: creating cache $cache_file" >&6;}
1371  >$cache_file
1372fi
1373
1374# Check that the precious variables saved in the cache have kept the same
1375# value.
1376ac_cache_corrupted=false
1377for ac_var in `(set) 2>&1 |
1378               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1379  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1380  eval ac_new_set=\$ac_env_${ac_var}_set
1381  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1382  eval ac_new_val="\$ac_env_${ac_var}_value"
1383  case $ac_old_set,$ac_new_set in
1384    set,)
1385      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1386echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1387      ac_cache_corrupted=: ;;
1388    ,set)
1389      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1390echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1391      ac_cache_corrupted=: ;;
1392    ,);;
1393    *)
1394      if test "x$ac_old_val" != "x$ac_new_val"; then
1395        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1396echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1397        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1398echo "$as_me:   former value:  $ac_old_val" >&2;}
1399        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1400echo "$as_me:   current value: $ac_new_val" >&2;}
1401        ac_cache_corrupted=:
1402      fi;;
1403  esac
1404  # Pass precious variables to config.status.
1405  if test "$ac_new_set" = set; then
1406    case $ac_new_val in
1407    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1408      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1409    *) ac_arg=$ac_var=$ac_new_val ;;
1410    esac
1411    case " $ac_configure_args " in
1412      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1413      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1414    esac
1415  fi
1416done
1417if $ac_cache_corrupted; then
1418  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1419echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1420  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1421echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1422   { (exit 1); exit 1; }; }
1423fi
1424
1425ac_ext=c
1426ac_cpp='$CPP $CPPFLAGS'
1427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461am__api_version="1.7"
1462ac_aux_dir=
1463for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1464  if test -f $ac_dir/install-sh; then
1465    ac_aux_dir=$ac_dir
1466    ac_install_sh="$ac_aux_dir/install-sh -c"
1467    break
1468  elif test -f $ac_dir/install.sh; then
1469    ac_aux_dir=$ac_dir
1470    ac_install_sh="$ac_aux_dir/install.sh -c"
1471    break
1472  elif test -f $ac_dir/shtool; then
1473    ac_aux_dir=$ac_dir
1474    ac_install_sh="$ac_aux_dir/shtool install -c"
1475    break
1476  fi
1477done
1478if test -z "$ac_aux_dir"; then
1479  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1480echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1481   { (exit 1); exit 1; }; }
1482fi
1483ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1484ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1485ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1486
1487# Find a good install program.  We prefer a C program (faster),
1488# so one script is as good as another.  But avoid the broken or
1489# incompatible versions:
1490# SysV /etc/install, /usr/sbin/install
1491# SunOS /usr/etc/install
1492# IRIX /sbin/install
1493# AIX /bin/install
1494# AmigaOS /C/install, which installs bootblocks on floppy discs
1495# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498# ./install, which can be erroneously created by make from ./install.sh.
1499echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1500echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1501if test -z "$INSTALL"; then
1502if test "${ac_cv_path_install+set}" = set; then
1503  echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
1505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506for as_dir in $PATH
1507do
1508  IFS=$as_save_IFS
1509  test -z "$as_dir" && as_dir=.
1510  # Account for people who put trailing slashes in PATH elements.
1511case $as_dir/ in
1512  ./ | .// | /cC/* | \
1513  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1514  /usr/ucb/* ) ;;
1515  *)
1516    # OSF1 and SCO ODT 3.0 have their own names for install.
1517    # Don't use installbsd from OSF since it installs stuff as root
1518    # by default.
1519    for ac_prog in ginstall scoinst install; do
1520      for ac_exec_ext in '' $ac_executable_extensions; do
1521        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1522          if test $ac_prog = install &&
1523            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524            # AIX install.  It has an incompatible calling convention.
1525            :
1526          elif test $ac_prog = install &&
1527            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1528            # program-specific install script used by HP pwplus--don't use.
1529            :
1530          else
1531            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1532            break 3
1533          fi
1534        fi
1535      done
1536    done
1537    ;;
1538esac
1539done
1540
1541
1542fi
1543  if test "${ac_cv_path_install+set}" = set; then
1544    INSTALL=$ac_cv_path_install
1545  else
1546    # As a last resort, use the slow shell script.  We don't cache a
1547    # path for INSTALL within a source directory, because that will
1548    # break other packages using the cache if that directory is
1549    # removed, or if the path is relative.
1550    INSTALL=$ac_install_sh
1551  fi
1552fi
1553echo "$as_me:$LINENO: result: $INSTALL" >&5
1554echo "${ECHO_T}$INSTALL" >&6
1555
1556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557# It thinks the first close brace ends the variable substitution.
1558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1559
1560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1561
1562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1563
1564echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1565echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1566# Just in case
1567sleep 1
1568echo timestamp > conftest.file
1569# Do `set' in a subshell so we don't clobber the current shell's
1570# arguments.  Must try -L first in case configure is actually a
1571# symlink; some systems play weird games with the mod time of symlinks
1572# (eg FreeBSD returns the mod time of the symlink's containing
1573# directory).
1574if (
1575   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1576   if test "$*" = "X"; then
1577      # -L didn't work.
1578      set X `ls -t $srcdir/configure conftest.file`
1579   fi
1580   rm -f conftest.file
1581   if test "$*" != "X $srcdir/configure conftest.file" \
1582      && test "$*" != "X conftest.file $srcdir/configure"; then
1583
1584      # If neither matched, then we have a broken ls.  This can happen
1585      # if, for instance, CONFIG_SHELL is bash and it inherits a
1586      # broken ls alias from the environment.  This has actually
1587      # happened.  Such a system could not be considered "sane".
1588      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1589alias in your environment" >&5
1590echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1591alias in your environment" >&2;}
1592   { (exit 1); exit 1; }; }
1593   fi
1594
1595   test "$2" = conftest.file
1596   )
1597then
1598   # Ok.
1599   :
1600else
1601   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1602Check your system clock" >&5
1603echo "$as_me: error: newly created file is older than distributed files!
1604Check your system clock" >&2;}
1605   { (exit 1); exit 1; }; }
1606fi
1607echo "$as_me:$LINENO: result: yes" >&5
1608echo "${ECHO_T}yes" >&6
1609test "$program_prefix" != NONE &&
1610  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1611# Use a double $ so make ignores it.
1612test "$program_suffix" != NONE &&
1613  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614# Double any \ or $.  echo might interpret backslashes.
1615# By default was `s,x,x', remove it if useless.
1616cat <<\_ACEOF >conftest.sed
1617s/[\\$]/&&/g;s/;s,x,x,$//
1618_ACEOF
1619program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1620rm conftest.sed
1621
1622
1623# expand $ac_aux_dir to an absolute path
1624am_aux_dir=`cd $ac_aux_dir && pwd`
1625
1626test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1627# Use eval to expand $SHELL
1628if eval "$MISSING --run true"; then
1629  am_missing_run="$MISSING --run "
1630else
1631  am_missing_run=
1632  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1633echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1634fi
1635
1636for ac_prog in gawk mawk nawk awk
1637do
1638  # Extract the first word of "$ac_prog", so it can be a program name with args.
1639set dummy $ac_prog; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_AWK+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  if test -n "$AWK"; then
1646  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_prog_AWK="$ac_prog"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662fi
1663fi
1664AWK=$ac_cv_prog_AWK
1665if test -n "$AWK"; then
1666  echo "$as_me:$LINENO: result: $AWK" >&5
1667echo "${ECHO_T}$AWK" >&6
1668else
1669  echo "$as_me:$LINENO: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673  test -n "$AWK" && break
1674done
1675
1676echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1677echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1678set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1679if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1680  echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682  cat >conftest.make <<\_ACEOF
1683all:
1684	@echo 'ac_maketemp="$(MAKE)"'
1685_ACEOF
1686# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1687eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1688if test -n "$ac_maketemp"; then
1689  eval ac_cv_prog_make_${ac_make}_set=yes
1690else
1691  eval ac_cv_prog_make_${ac_make}_set=no
1692fi
1693rm -f conftest.make
1694fi
1695if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1696  echo "$as_me:$LINENO: result: yes" >&5
1697echo "${ECHO_T}yes" >&6
1698  SET_MAKE=
1699else
1700  echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702  SET_MAKE="MAKE=${MAKE-make}"
1703fi
1704
1705rm -rf .tst 2>/dev/null
1706mkdir .tst 2>/dev/null
1707if test -d .tst; then
1708  am__leading_dot=.
1709else
1710  am__leading_dot=_
1711fi
1712rmdir .tst 2>/dev/null
1713
1714 # test to see if srcdir already configured
1715if test "`cd $srcdir && pwd`" != "`pwd`" &&
1716   test -f $srcdir/config.status; then
1717  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1718echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1719   { (exit 1); exit 1; }; }
1720fi
1721
1722# test whether we have cygpath
1723if test -z "$CYGPATH_W"; then
1724  if (cygpath --version) >/dev/null 2>/dev/null; then
1725    CYGPATH_W='cygpath -w'
1726  else
1727    CYGPATH_W=echo
1728  fi
1729fi
1730
1731
1732# Define the identity of the package.
1733 PACKAGE='libid3tag'
1734 VERSION='0.15.0b'
1735
1736
1737cat >>confdefs.h <<_ACEOF
1738#define PACKAGE "$PACKAGE"
1739_ACEOF
1740
1741
1742cat >>confdefs.h <<_ACEOF
1743#define VERSION "$VERSION"
1744_ACEOF
1745
1746# Some tools Automake needs.
1747
1748ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1749
1750
1751AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1752
1753
1754AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1755
1756
1757AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1758
1759
1760MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1761
1762
1763AMTAR=${AMTAR-"${am_missing_run}tar"}
1764
1765install_sh=${install_sh-"$am_aux_dir/install-sh"}
1766
1767# Installed binaries are usually stripped using `strip' when the user
1768# run `make install-strip'.  However `strip' might not be the right
1769# tool to use in cross-compilation environments, therefore Automake
1770# will honor the `STRIP' environment variable to overrule this program.
1771if test "$cross_compiling" != no; then
1772  if test -n "$ac_tool_prefix"; then
1773  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1774set dummy ${ac_tool_prefix}strip; ac_word=$2
1775echo "$as_me:$LINENO: checking for $ac_word" >&5
1776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1777if test "${ac_cv_prog_STRIP+set}" = set; then
1778  echo $ECHO_N "(cached) $ECHO_C" >&6
1779else
1780  if test -n "$STRIP"; then
1781  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1782else
1783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784for as_dir in $PATH
1785do
1786  IFS=$as_save_IFS
1787  test -z "$as_dir" && as_dir=.
1788  for ac_exec_ext in '' $ac_executable_extensions; do
1789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1790    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792    break 2
1793  fi
1794done
1795done
1796
1797fi
1798fi
1799STRIP=$ac_cv_prog_STRIP
1800if test -n "$STRIP"; then
1801  echo "$as_me:$LINENO: result: $STRIP" >&5
1802echo "${ECHO_T}$STRIP" >&6
1803else
1804  echo "$as_me:$LINENO: result: no" >&5
1805echo "${ECHO_T}no" >&6
1806fi
1807
1808fi
1809if test -z "$ac_cv_prog_STRIP"; then
1810  ac_ct_STRIP=$STRIP
1811  # Extract the first word of "strip", so it can be a program name with args.
1812set dummy strip; ac_word=$2
1813echo "$as_me:$LINENO: checking for $ac_word" >&5
1814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1816  echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818  if test -n "$ac_ct_STRIP"; then
1819  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1820else
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824  IFS=$as_save_IFS
1825  test -z "$as_dir" && as_dir=.
1826  for ac_exec_ext in '' $ac_executable_extensions; do
1827  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1828    ac_cv_prog_ac_ct_STRIP="strip"
1829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830    break 2
1831  fi
1832done
1833done
1834
1835  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1836fi
1837fi
1838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1839if test -n "$ac_ct_STRIP"; then
1840  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1841echo "${ECHO_T}$ac_ct_STRIP" >&6
1842else
1843  echo "$as_me:$LINENO: result: no" >&5
1844echo "${ECHO_T}no" >&6
1845fi
1846
1847  STRIP=$ac_ct_STRIP
1848else
1849  STRIP="$ac_cv_prog_STRIP"
1850fi
1851
1852fi
1853INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1854
1855# We need awk for the "check" target.  The system "awk" is bad on
1856# some platforms.
1857
1858
1859
1860
1861          ac_config_headers="$ac_config_headers config.h"
1862
1863
1864
1865# Make sure we can run config.sub.
1866$ac_config_sub sun4 >/dev/null 2>&1 ||
1867  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1868echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1869   { (exit 1); exit 1; }; }
1870
1871echo "$as_me:$LINENO: checking build system type" >&5
1872echo $ECHO_N "checking build system type... $ECHO_C" >&6
1873if test "${ac_cv_build+set}" = set; then
1874  echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876  ac_cv_build_alias=$build_alias
1877test -z "$ac_cv_build_alias" &&
1878  ac_cv_build_alias=`$ac_config_guess`
1879test -z "$ac_cv_build_alias" &&
1880  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1881echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1882   { (exit 1); exit 1; }; }
1883ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1884  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1885echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1886   { (exit 1); exit 1; }; }
1887
1888fi
1889echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1890echo "${ECHO_T}$ac_cv_build" >&6
1891build=$ac_cv_build
1892build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1893build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1894build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1895
1896
1897echo "$as_me:$LINENO: checking host system type" >&5
1898echo $ECHO_N "checking host system type... $ECHO_C" >&6
1899if test "${ac_cv_host+set}" = set; then
1900  echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902  ac_cv_host_alias=$host_alias
1903test -z "$ac_cv_host_alias" &&
1904  ac_cv_host_alias=$ac_cv_build_alias
1905ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1906  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1907echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1908   { (exit 1); exit 1; }; }
1909
1910fi
1911echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6
1913host=$ac_cv_host
1914host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1915host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1916host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1917
1918
1919
1920
1921ac_ext=c
1922ac_cpp='$CPP $CPPFLAGS'
1923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926if test -n "$ac_tool_prefix"; then
1927  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1928set dummy ${ac_tool_prefix}gcc; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_CC+set}" = set; then
1932  echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934  if test -n "$CC"; then
1935  ac_cv_prog_CC="$CC" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946    break 2
1947  fi
1948done
1949done
1950
1951fi
1952fi
1953CC=$ac_cv_prog_CC
1954if test -n "$CC"; then
1955  echo "$as_me:$LINENO: result: $CC" >&5
1956echo "${ECHO_T}$CC" >&6
1957else
1958  echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962fi
1963if test -z "$ac_cv_prog_CC"; then
1964  ac_ct_CC=$CC
1965  # Extract the first word of "gcc", so it can be a program name with args.
1966set dummy gcc; ac_word=$2
1967echo "$as_me:$LINENO: checking for $ac_word" >&5
1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1970  echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972  if test -n "$ac_ct_CC"; then
1973  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1974else
1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976for as_dir in $PATH
1977do
1978  IFS=$as_save_IFS
1979  test -z "$as_dir" && as_dir=.
1980  for ac_exec_ext in '' $ac_executable_extensions; do
1981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982    ac_cv_prog_ac_ct_CC="gcc"
1983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984    break 2
1985  fi
1986done
1987done
1988
1989fi
1990fi
1991ac_ct_CC=$ac_cv_prog_ac_ct_CC
1992if test -n "$ac_ct_CC"; then
1993  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1994echo "${ECHO_T}$ac_ct_CC" >&6
1995else
1996  echo "$as_me:$LINENO: result: no" >&5
1997echo "${ECHO_T}no" >&6
1998fi
1999
2000  CC=$ac_ct_CC
2001else
2002  CC="$ac_cv_prog_CC"
2003fi
2004
2005if test -z "$CC"; then
2006  if test -n "$ac_tool_prefix"; then
2007  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2008set dummy ${ac_tool_prefix}cc; ac_word=$2
2009echo "$as_me:$LINENO: checking for $ac_word" >&5
2010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011if test "${ac_cv_prog_CC+set}" = set; then
2012  echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
2014  if test -n "$CC"; then
2015  ac_cv_prog_CC="$CC" # Let the user override the test.
2016else
2017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018for as_dir in $PATH
2019do
2020  IFS=$as_save_IFS
2021  test -z "$as_dir" && as_dir=.
2022  for ac_exec_ext in '' $ac_executable_extensions; do
2023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024    ac_cv_prog_CC="${ac_tool_prefix}cc"
2025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    break 2
2027  fi
2028done
2029done
2030
2031fi
2032fi
2033CC=$ac_cv_prog_CC
2034if test -n "$CC"; then
2035  echo "$as_me:$LINENO: result: $CC" >&5
2036echo "${ECHO_T}$CC" >&6
2037else
2038  echo "$as_me:$LINENO: result: no" >&5
2039echo "${ECHO_T}no" >&6
2040fi
2041
2042fi
2043if test -z "$ac_cv_prog_CC"; then
2044  ac_ct_CC=$CC
2045  # Extract the first word of "cc", so it can be a program name with args.
2046set dummy cc; ac_word=$2
2047echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  if test -n "$ac_ct_CC"; then
2053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2054else
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058  IFS=$as_save_IFS
2059  test -z "$as_dir" && as_dir=.
2060  for ac_exec_ext in '' $ac_executable_extensions; do
2061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062    ac_cv_prog_ac_ct_CC="cc"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069fi
2070fi
2071ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072if test -n "$ac_ct_CC"; then
2073  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074echo "${ECHO_T}$ac_ct_CC" >&6
2075else
2076  echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6
2078fi
2079
2080  CC=$ac_ct_CC
2081else
2082  CC="$ac_cv_prog_CC"
2083fi
2084
2085fi
2086if test -z "$CC"; then
2087  # Extract the first word of "cc", so it can be a program name with args.
2088set dummy cc; ac_word=$2
2089echo "$as_me:$LINENO: checking for $ac_word" >&5
2090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091if test "${ac_cv_prog_CC+set}" = set; then
2092  echo $ECHO_N "(cached) $ECHO_C" >&6
2093else
2094  if test -n "$CC"; then
2095  ac_cv_prog_CC="$CC" # Let the user override the test.
2096else
2097  ac_prog_rejected=no
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2106       ac_prog_rejected=yes
2107       continue
2108     fi
2109    ac_cv_prog_CC="cc"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116if test $ac_prog_rejected = yes; then
2117  # We found a bogon in the path, so make sure we never use it.
2118  set dummy $ac_cv_prog_CC
2119  shift
2120  if test $# != 0; then
2121    # We chose a different compiler from the bogus one.
2122    # However, it has the same basename, so the bogon will be chosen
2123    # first if we set CC to just the basename; use the full file name.
2124    shift
2125    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2126  fi
2127fi
2128fi
2129fi
2130CC=$ac_cv_prog_CC
2131if test -n "$CC"; then
2132  echo "$as_me:$LINENO: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6
2134else
2135  echo "$as_me:$LINENO: result: no" >&5
2136echo "${ECHO_T}no" >&6
2137fi
2138
2139fi
2140if test -z "$CC"; then
2141  if test -n "$ac_tool_prefix"; then
2142  for ac_prog in cl
2143  do
2144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2146echo "$as_me:$LINENO: checking for $ac_word" >&5
2147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148if test "${ac_cv_prog_CC+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  if test -n "$CC"; then
2152  ac_cv_prog_CC="$CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159  for ac_exec_ext in '' $ac_executable_extensions; do
2160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    break 2
2164  fi
2165done
2166done
2167
2168fi
2169fi
2170CC=$ac_cv_prog_CC
2171if test -n "$CC"; then
2172  echo "$as_me:$LINENO: result: $CC" >&5
2173echo "${ECHO_T}$CC" >&6
2174else
2175  echo "$as_me:$LINENO: result: no" >&5
2176echo "${ECHO_T}no" >&6
2177fi
2178
2179    test -n "$CC" && break
2180  done
2181fi
2182if test -z "$CC"; then
2183  ac_ct_CC=$CC
2184  for ac_prog in cl
2185do
2186  # Extract the first word of "$ac_prog", so it can be a program name with args.
2187set dummy $ac_prog; ac_word=$2
2188echo "$as_me:$LINENO: checking for $ac_word" >&5
2189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191  echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193  if test -n "$ac_ct_CC"; then
2194  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195else
2196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197for as_dir in $PATH
2198do
2199  IFS=$as_save_IFS
2200  test -z "$as_dir" && as_dir=.
2201  for ac_exec_ext in '' $ac_executable_extensions; do
2202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203    ac_cv_prog_ac_ct_CC="$ac_prog"
2204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205    break 2
2206  fi
2207done
2208done
2209
2210fi
2211fi
2212ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213if test -n "$ac_ct_CC"; then
2214  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215echo "${ECHO_T}$ac_ct_CC" >&6
2216else
2217  echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6
2219fi
2220
2221  test -n "$ac_ct_CC" && break
2222done
2223
2224  CC=$ac_ct_CC
2225fi
2226
2227fi
2228
2229
2230test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: no acceptable C compiler found in \$PATH
2233See \`config.log' for more details." >&2;}
2234   { (exit 1); exit 1; }; }
2235
2236# Provide some information about the compiler.
2237echo "$as_me:$LINENO:" \
2238     "checking for C compiler version" >&5
2239ac_compiler=`set X $ac_compile; echo $2`
2240{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2241  (eval $ac_compiler --version </dev/null >&5) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }
2245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2246  (eval $ac_compiler -v </dev/null >&5) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }
2250{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2251  (eval $ac_compiler -V </dev/null >&5) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }
2255
2256cat >conftest.$ac_ext <<_ACEOF
2257#line $LINENO "configure"
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272ac_clean_files_save=$ac_clean_files
2273ac_clean_files="$ac_clean_files a.out a.exe b.out"
2274# Try to create an executable without -o first, disregard a.out.
2275# It will help us diagnose broken compilers, and finding out an intuition
2276# of exeext.
2277echo "$as_me:$LINENO: checking for C compiler default output" >&5
2278echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2279ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2280if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2281  (eval $ac_link_default) 2>&5
2282  ac_status=$?
2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284  (exit $ac_status); }; then
2285  # Find the output, starting from the most likely.  This scheme is
2286# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2287# resort.
2288
2289# Be careful to initialize this variable, since it used to be cached.
2290# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2291ac_cv_exeext=
2292# b.out is created by i960 compilers.
2293for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2294do
2295  test -f "$ac_file" || continue
2296  case $ac_file in
2297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2298        ;;
2299    conftest.$ac_ext )
2300        # This is the source file.
2301        ;;
2302    [ab].out )
2303        # We found the default executable, but exeext='' is most
2304        # certainly right.
2305        break;;
2306    *.* )
2307        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2308        # FIXME: I believe we export ac_cv_exeext for Libtool,
2309        # but it would be cool to find out if it's true.  Does anybody
2310        # maintain Libtool? --akim.
2311        export ac_cv_exeext
2312        break;;
2313    * )
2314        break;;
2315  esac
2316done
2317else
2318  echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: C compiler cannot create executables
2324See \`config.log' for more details." >&2;}
2325   { (exit 77); exit 77; }; }
2326fi
2327
2328ac_exeext=$ac_cv_exeext
2329echo "$as_me:$LINENO: result: $ac_file" >&5
2330echo "${ECHO_T}$ac_file" >&6
2331
2332# Check the compiler produces executables we can run.  If not, either
2333# the compiler is broken, or we cross compile.
2334echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2336# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337# If not cross compiling, check that we can run a simple program.
2338if test "$cross_compiling" != yes; then
2339  if { ac_try='./$ac_file'
2340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344  (exit $ac_status); }; }; then
2345    cross_compiling=no
2346  else
2347    if test "$cross_compiling" = maybe; then
2348	cross_compiling=yes
2349    else
2350	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2351If you meant to cross compile, use \`--host'.
2352See \`config.log' for more details." >&5
2353echo "$as_me: error: cannot run C compiled programs.
2354If you meant to cross compile, use \`--host'.
2355See \`config.log' for more details." >&2;}
2356   { (exit 1); exit 1; }; }
2357    fi
2358  fi
2359fi
2360echo "$as_me:$LINENO: result: yes" >&5
2361echo "${ECHO_T}yes" >&6
2362
2363rm -f a.out a.exe conftest$ac_cv_exeext b.out
2364ac_clean_files=$ac_clean_files_save
2365# Check the compiler produces executables we can run.  If not, either
2366# the compiler is broken, or we cross compile.
2367echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2368echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2369echo "$as_me:$LINENO: result: $cross_compiling" >&5
2370echo "${ECHO_T}$cross_compiling" >&6
2371
2372echo "$as_me:$LINENO: checking for suffix of executables" >&5
2373echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2375  (eval $ac_link) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2380# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2381# work properly (i.e., refer to `conftest.exe'), while it won't with
2382# `rm'.
2383for ac_file in conftest.exe conftest conftest.*; do
2384  test -f "$ac_file" || continue
2385  case $ac_file in
2386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2387    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2388          export ac_cv_exeext
2389          break;;
2390    * ) break;;
2391  esac
2392done
2393else
2394  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2395See \`config.log' for more details." >&5
2396echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2397See \`config.log' for more details." >&2;}
2398   { (exit 1); exit 1; }; }
2399fi
2400
2401rm -f conftest$ac_cv_exeext
2402echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2403echo "${ECHO_T}$ac_cv_exeext" >&6
2404
2405rm -f conftest.$ac_ext
2406EXEEXT=$ac_cv_exeext
2407ac_exeext=$EXEEXT
2408echo "$as_me:$LINENO: checking for suffix of object files" >&5
2409echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2410if test "${ac_cv_objext+set}" = set; then
2411  echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413  cat >conftest.$ac_ext <<_ACEOF
2414#line $LINENO "configure"
2415/* confdefs.h.  */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h.  */
2420
2421int
2422main ()
2423{
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.o conftest.obj
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431  (eval $ac_compile) 2>&5
2432  ac_status=$?
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); }; then
2435  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2436  case $ac_file in
2437    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2438    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2439       break;;
2440  esac
2441done
2442else
2443  echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2447See \`config.log' for more details." >&5
2448echo "$as_me: error: cannot compute suffix of object files: cannot compile
2449See \`config.log' for more details." >&2;}
2450   { (exit 1); exit 1; }; }
2451fi
2452
2453rm -f conftest.$ac_cv_objext conftest.$ac_ext
2454fi
2455echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2456echo "${ECHO_T}$ac_cv_objext" >&6
2457OBJEXT=$ac_cv_objext
2458ac_objext=$OBJEXT
2459echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2460echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2461if test "${ac_cv_c_compiler_gnu+set}" = set; then
2462  echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464  cat >conftest.$ac_ext <<_ACEOF
2465#line $LINENO "configure"
2466/* confdefs.h.  */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h.  */
2471
2472int
2473main ()
2474{
2475#ifndef __GNUC__
2476       choke me
2477#endif
2478
2479  ;
2480  return 0;
2481}
2482_ACEOF
2483rm -f conftest.$ac_objext
2484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485  (eval $ac_compile) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); } &&
2489         { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  ac_compiler_gnu=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500ac_compiler_gnu=no
2501fi
2502rm -f conftest.$ac_objext conftest.$ac_ext
2503ac_cv_c_compiler_gnu=$ac_compiler_gnu
2504
2505fi
2506echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2508GCC=`test $ac_compiler_gnu = yes && echo yes`
2509ac_test_CFLAGS=${CFLAGS+set}
2510ac_save_CFLAGS=$CFLAGS
2511CFLAGS="-g"
2512echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2513echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2514if test "${ac_cv_prog_cc_g+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  cat >conftest.$ac_ext <<_ACEOF
2518#line $LINENO "configure"
2519/* confdefs.h.  */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h.  */
2524
2525int
2526main ()
2527{
2528
2529  ;
2530  return 0;
2531}
2532_ACEOF
2533rm -f conftest.$ac_objext
2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535  (eval $ac_compile) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); } &&
2539         { ac_try='test -s conftest.$ac_objext'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; }; then
2545  ac_cv_prog_cc_g=yes
2546else
2547  echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550ac_cv_prog_cc_g=no
2551fi
2552rm -f conftest.$ac_objext conftest.$ac_ext
2553fi
2554echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2555echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2556if test "$ac_test_CFLAGS" = set; then
2557  CFLAGS=$ac_save_CFLAGS
2558elif test $ac_cv_prog_cc_g = yes; then
2559  if test "$GCC" = yes; then
2560    CFLAGS="-g -O2"
2561  else
2562    CFLAGS="-g"
2563  fi
2564else
2565  if test "$GCC" = yes; then
2566    CFLAGS="-O2"
2567  else
2568    CFLAGS=
2569  fi
2570fi
2571echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2572echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2573if test "${ac_cv_prog_cc_stdc+set}" = set; then
2574  echo $ECHO_N "(cached) $ECHO_C" >&6
2575else
2576  ac_cv_prog_cc_stdc=no
2577ac_save_CC=$CC
2578cat >conftest.$ac_ext <<_ACEOF
2579#line $LINENO "configure"
2580/* confdefs.h.  */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h.  */
2585#include <stdarg.h>
2586#include <stdio.h>
2587#include <sys/types.h>
2588#include <sys/stat.h>
2589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2590struct buf { int x; };
2591FILE * (*rcsopen) (struct buf *, struct stat *, int);
2592static char *e (p, i)
2593     char **p;
2594     int i;
2595{
2596  return p[i];
2597}
2598static char *f (char * (*g) (char **, int), char **p, ...)
2599{
2600  char *s;
2601  va_list v;
2602  va_start (v,p);
2603  s = g (p, va_arg (v,int));
2604  va_end (v);
2605  return s;
2606}
2607int test (int i, double x);
2608struct s1 {int (*f) (int a);};
2609struct s2 {int (*f) (double a);};
2610int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2611int argc;
2612char **argv;
2613int
2614main ()
2615{
2616return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621# Don't try gcc -ansi; that turns off useful extensions and
2622# breaks some systems' header files.
2623# AIX			-qlanglvl=ansi
2624# Ultrix and OSF/1	-std1
2625# HP-UX 10.20 and later	-Ae
2626# HP-UX older versions	-Aa -D_HPUX_SOURCE
2627# SVR4			-Xc -D__EXTENSIONS__
2628for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2629do
2630  CC="$ac_save_CC $ac_arg"
2631  rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); } &&
2637         { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  ac_cv_prog_cc_stdc=$ac_arg
2644break
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649fi
2650rm -f conftest.$ac_objext
2651done
2652rm -f conftest.$ac_ext conftest.$ac_objext
2653CC=$ac_save_CC
2654
2655fi
2656
2657case "x$ac_cv_prog_cc_stdc" in
2658  x|xno)
2659    echo "$as_me:$LINENO: result: none needed" >&5
2660echo "${ECHO_T}none needed" >&6 ;;
2661  *)
2662    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2663echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2664    CC="$CC $ac_cv_prog_cc_stdc" ;;
2665esac
2666
2667# Some people use a C++ compiler to compile C.  Since we use `exit',
2668# in C++ we need to declare it.  In case someone uses the same compiler
2669# for both compiling C and C++ we need to have the C++ compiler decide
2670# the declaration of exit, since it's the most demanding environment.
2671cat >conftest.$ac_ext <<_ACEOF
2672#ifndef __cplusplus
2673  choke me
2674#endif
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); } &&
2682         { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  for ac_declaration in \
2689   ''\
2690   'extern "C" void std::exit (int) throw (); using std::exit;' \
2691   'extern "C" void std::exit (int); using std::exit;' \
2692   'extern "C" void exit (int) throw ();' \
2693   'extern "C" void exit (int);' \
2694   'void exit (int);' \
2695   '#include <stdlib.h>'
2696do
2697  cat >conftest.$ac_ext <<_ACEOF
2698#line $LINENO "configure"
2699/* confdefs.h.  */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h.  */
2704#include <stdlib.h>
2705$ac_declaration
2706int
2707main ()
2708{
2709exit (42);
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext
2715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716  (eval $ac_compile) 2>&5
2717  ac_status=$?
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -s conftest.$ac_objext'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; }; then
2726  :
2727else
2728  echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731continue
2732fi
2733rm -f conftest.$ac_objext conftest.$ac_ext
2734  cat >conftest.$ac_ext <<_ACEOF
2735#line $LINENO "configure"
2736/* confdefs.h.  */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h.  */
2741$ac_declaration
2742int
2743main ()
2744{
2745exit (42);
2746  ;
2747  return 0;
2748}
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); } &&
2756         { ac_try='test -s conftest.$ac_objext'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; }; then
2762  break
2763else
2764  echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767fi
2768rm -f conftest.$ac_objext conftest.$ac_ext
2769done
2770rm -f conftest*
2771if test -n "$ac_declaration"; then
2772  echo '#ifdef __cplusplus' >>confdefs.h
2773  echo $ac_declaration      >>confdefs.h
2774  echo '#endif'             >>confdefs.h
2775fi
2776
2777else
2778  echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781fi
2782rm -f conftest.$ac_objext conftest.$ac_ext
2783ac_ext=c
2784ac_cpp='$CPP $CPPFLAGS'
2785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788DEPDIR="${am__leading_dot}deps"
2789
2790          ac_config_commands="$ac_config_commands depfiles"
2791
2792
2793am_make=${MAKE-make}
2794cat > confinc << 'END'
2795am__doit:
2796	@echo done
2797.PHONY: am__doit
2798END
2799# If we don't find an include directive, just comment out the code.
2800echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2801echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2802am__include="#"
2803am__quote=
2804_am_result=none
2805# First try GNU make style include.
2806echo "include confinc" > confmf
2807# We grep out `Entering directory' and `Leaving directory'
2808# messages which can occur if `w' ends up in MAKEFLAGS.
2809# In particular we don't look at `^make:' because GNU make might
2810# be invoked under some other name (usually "gmake"), in which
2811# case it prints its new name instead of `make'.
2812if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2813   am__include=include
2814   am__quote=
2815   _am_result=GNU
2816fi
2817# Now try BSD make style include.
2818if test "$am__include" = "#"; then
2819   echo '.include "confinc"' > confmf
2820   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2821      am__include=.include
2822      am__quote="\""
2823      _am_result=BSD
2824   fi
2825fi
2826
2827
2828echo "$as_me:$LINENO: result: $_am_result" >&5
2829echo "${ECHO_T}$_am_result" >&6
2830rm -f confinc confmf
2831
2832# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2833if test "${enable_dependency_tracking+set}" = set; then
2834  enableval="$enable_dependency_tracking"
2835
2836fi;
2837if test "x$enable_dependency_tracking" != xno; then
2838  am_depcomp="$ac_aux_dir/depcomp"
2839  AMDEPBACKSLASH='\'
2840fi
2841
2842
2843if test "x$enable_dependency_tracking" != xno; then
2844  AMDEP_TRUE=
2845  AMDEP_FALSE='#'
2846else
2847  AMDEP_TRUE='#'
2848  AMDEP_FALSE=
2849fi
2850
2851
2852
2853
2854depcc="$CC"   am_compiler_list=
2855
2856echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2857echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2858if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2859  echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2862  # We make a subdir and do the tests there.  Otherwise we can end up
2863  # making bogus files that we don't know about and never remove.  For
2864  # instance it was reported that on HP-UX the gcc test will end up
2865  # making a dummy file named `D' -- because `-MD' means `put the output
2866  # in D'.
2867  mkdir conftest.dir
2868  # Copy depcomp to subdir because otherwise we won't find it if we're
2869  # using a relative directory.
2870  cp "$am_depcomp" conftest.dir
2871  cd conftest.dir
2872
2873  am_cv_CC_dependencies_compiler_type=none
2874  if test "$am_compiler_list" = ""; then
2875     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2876  fi
2877  for depmode in $am_compiler_list; do
2878    # We need to recreate these files for each test, as the compiler may
2879    # overwrite some of them when testing with obscure command lines.
2880    # This happens at least with the AIX C compiler.
2881    echo '#include "conftest.h"' > conftest.c
2882    echo 'int i;' > conftest.h
2883    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2884
2885    case $depmode in
2886    nosideeffect)
2887      # after this tag, mechanisms are not by side-effect, so they'll
2888      # only be used when explicitly requested
2889      if test "x$enable_dependency_tracking" = xyes; then
2890	continue
2891      else
2892	break
2893      fi
2894      ;;
2895    none) break ;;
2896    esac
2897    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2898    # mode.  It turns out that the SunPro C++ compiler does not properly
2899    # handle `-M -o', and we need to detect this.
2900    if depmode=$depmode \
2901       source=conftest.c object=conftest.o \
2902       depfile=conftest.Po tmpdepfile=conftest.TPo \
2903       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2904         >/dev/null 2>conftest.err &&
2905       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2906       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2907      # icc doesn't choke on unknown options, it will just issue warnings
2908      # (even with -Werror).  So we grep stderr for any message
2909      # that says an option was ignored.
2910      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2911        am_cv_CC_dependencies_compiler_type=$depmode
2912        break
2913      fi
2914    fi
2915  done
2916
2917  cd ..
2918  rm -rf conftest.dir
2919else
2920  am_cv_CC_dependencies_compiler_type=none
2921fi
2922
2923fi
2924echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2925echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2926CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2927
2928
2929
2930if
2931  test "x$enable_dependency_tracking" != xno \
2932  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2933  am__fastdepCC_TRUE=
2934  am__fastdepCC_FALSE='#'
2935else
2936  am__fastdepCC_TRUE='#'
2937  am__fastdepCC_FALSE=
2938fi
2939
2940
2941
2942if test "$GCC" = yes
2943then
2944    case "$host" in
2945	*-*-mingw*)
2946	    case "$build" in
2947		*-*-cygwin*)
2948		    CPPFLAGS="$CPPFLAGS -mno-cygwin"
2949		    LDFLAGS="$LDFLAGS -mno-cygwin"
2950		    ;;
2951	    esac
2952    esac
2953
2954fi
2955
2956
2957# Check whether --enable-shared or --disable-shared was given.
2958if test "${enable_shared+set}" = set; then
2959  enableval="$enable_shared"
2960  p=${PACKAGE-default}
2961case $enableval in
2962yes) enable_shared=yes ;;
2963no) enable_shared=no ;;
2964*)
2965  enable_shared=no
2966  # Look at the argument we got.  We use all the common list separators.
2967  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2968  for pkg in $enableval; do
2969    if test "X$pkg" = "X$p"; then
2970      enable_shared=yes
2971    fi
2972  done
2973  IFS="$ac_save_ifs"
2974  ;;
2975esac
2976else
2977  enable_shared=yes
2978fi;
2979# Check whether --enable-static or --disable-static was given.
2980if test "${enable_static+set}" = set; then
2981  enableval="$enable_static"
2982  p=${PACKAGE-default}
2983case $enableval in
2984yes) enable_static=yes ;;
2985no) enable_static=no ;;
2986*)
2987  enable_static=no
2988  # Look at the argument we got.  We use all the common list separators.
2989  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2990  for pkg in $enableval; do
2991    if test "X$pkg" = "X$p"; then
2992      enable_static=yes
2993    fi
2994  done
2995  IFS="$ac_save_ifs"
2996  ;;
2997esac
2998else
2999  enable_static=yes
3000fi;
3001# Check whether --enable-fast-install or --disable-fast-install was given.
3002if test "${enable_fast_install+set}" = set; then
3003  enableval="$enable_fast_install"
3004  p=${PACKAGE-default}
3005case $enableval in
3006yes) enable_fast_install=yes ;;
3007no) enable_fast_install=no ;;
3008*)
3009  enable_fast_install=no
3010  # Look at the argument we got.  We use all the common list separators.
3011  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3012  for pkg in $enableval; do
3013    if test "X$pkg" = "X$p"; then
3014      enable_fast_install=yes
3015    fi
3016  done
3017  IFS="$ac_save_ifs"
3018  ;;
3019esac
3020else
3021  enable_fast_install=yes
3022fi;
3023# Find the correct PATH separator.  Usually this is `:', but
3024# DJGPP uses `;' like DOS.
3025if test "X${PATH_SEPARATOR+set}" != Xset; then
3026  UNAME=${UNAME-`uname 2>/dev/null`}
3027  case X$UNAME in
3028    *-DOS) lt_cv_sys_path_separator=';' ;;
3029    *)     lt_cv_sys_path_separator=':' ;;
3030  esac
3031  PATH_SEPARATOR=$lt_cv_sys_path_separator
3032fi
3033
3034
3035# Check whether --with-gnu-ld or --without-gnu-ld was given.
3036if test "${with_gnu_ld+set}" = set; then
3037  withval="$with_gnu_ld"
3038  test "$withval" = no || with_gnu_ld=yes
3039else
3040  with_gnu_ld=no
3041fi;
3042ac_prog=ld
3043if test "$GCC" = yes; then
3044  # Check if gcc -print-prog-name=ld gives a path.
3045  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3046echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3047  case $host in
3048  *-*-mingw*)
3049    # gcc leaves a trailing carriage return which upsets mingw
3050    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3051  *)
3052    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3053  esac
3054  case $ac_prog in
3055    # Accept absolute paths.
3056    [\\/]* | [A-Za-z]:[\\/]*)
3057      re_direlt='/[^/][^/]*/\.\./'
3058      # Canonicalize the path of ld
3059      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3060      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3061	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3062      done
3063      test -z "$LD" && LD="$ac_prog"
3064      ;;
3065  "")
3066    # If it fails, then pretend we aren't using GCC.
3067    ac_prog=ld
3068    ;;
3069  *)
3070    # If it is relative, then search for the first ld in PATH.
3071    with_gnu_ld=unknown
3072    ;;
3073  esac
3074elif test "$with_gnu_ld" = yes; then
3075  echo "$as_me:$LINENO: checking for GNU ld" >&5
3076echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3077else
3078  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3079echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3080fi
3081if test "${lt_cv_path_LD+set}" = set; then
3082  echo $ECHO_N "(cached) $ECHO_C" >&6
3083else
3084  if test -z "$LD"; then
3085  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3086  for ac_dir in $PATH; do
3087    test -z "$ac_dir" && ac_dir=.
3088    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3089      lt_cv_path_LD="$ac_dir/$ac_prog"
3090      # Check to see if the program is GNU ld.  I'd rather use --version,
3091      # but apparently some GNU ld's only accept -v.
3092      # Break only if it was the GNU/non-GNU ld that we prefer.
3093      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3094	test "$with_gnu_ld" != no && break
3095      else
3096	test "$with_gnu_ld" != yes && break
3097      fi
3098    fi
3099  done
3100  IFS="$ac_save_ifs"
3101else
3102  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3103fi
3104fi
3105
3106LD="$lt_cv_path_LD"
3107if test -n "$LD"; then
3108  echo "$as_me:$LINENO: result: $LD" >&5
3109echo "${ECHO_T}$LD" >&6
3110else
3111  echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3115echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3116   { (exit 1); exit 1; }; }
3117echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3118echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3119if test "${lt_cv_prog_gnu_ld+set}" = set; then
3120  echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
3122  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3123if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3124  lt_cv_prog_gnu_ld=yes
3125else
3126  lt_cv_prog_gnu_ld=no
3127fi
3128fi
3129echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3130echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3131with_gnu_ld=$lt_cv_prog_gnu_ld
3132
3133
3134echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3135echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3136if test "${lt_cv_ld_reload_flag+set}" = set; then
3137  echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139  lt_cv_ld_reload_flag='-r'
3140fi
3141echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3142echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3143reload_flag=$lt_cv_ld_reload_flag
3144test -n "$reload_flag" && reload_flag=" $reload_flag"
3145
3146echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3147echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3148if test "${lt_cv_path_NM+set}" = set; then
3149  echo $ECHO_N "(cached) $ECHO_C" >&6
3150else
3151  if test -n "$NM"; then
3152  # Let the user override the test.
3153  lt_cv_path_NM="$NM"
3154else
3155  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3156  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3157    test -z "$ac_dir" && ac_dir=.
3158    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3159    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3160      # Check to see if the nm accepts a BSD-compat flag.
3161      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3162      #   nm: unknown option "B" ignored
3163      # Tru64's nm complains that /dev/null is an invalid object file
3164      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3165	lt_cv_path_NM="$tmp_nm -B"
3166	break
3167      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3168	lt_cv_path_NM="$tmp_nm -p"
3169	break
3170      else
3171	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3172	continue # so that we can try to find one that supports BSD flags
3173      fi
3174    fi
3175  done
3176  IFS="$ac_save_ifs"
3177  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3178fi
3179fi
3180
3181NM="$lt_cv_path_NM"
3182echo "$as_me:$LINENO: result: $NM" >&5
3183echo "${ECHO_T}$NM" >&6
3184
3185echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3186echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3187if test "${lt_cv_path_SED+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  # Loop through the user's path and test for sed and gsed.
3191# Then use that list of sed's as ones to test for truncation.
3192as_executable_p="test -f"
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198  for ac_prog in sed gsed; do
3199    for ac_exec_ext in '' $ac_executable_extensions; do
3200      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3201        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3202      fi
3203    done
3204  done
3205done
3206
3207  # Create a temporary directory, and hook for its removal unless debugging.
3208$debug ||
3209{
3210  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3211  trap '{ (exit 1); exit 1; }' 1 2 13 15
3212}
3213
3214# Create a (secure) tmp directory for tmp files.
3215: ${TMPDIR=/tmp}
3216{
3217  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3218  test -n "$tmp" && test -d "$tmp"
3219}  ||
3220{
3221  tmp=$TMPDIR/sed$$-$RANDOM
3222  (umask 077 && mkdir $tmp)
3223} ||
3224{
3225   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3226   { (exit 1); exit 1; }
3227}
3228  _max=0
3229  _count=0
3230  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3231  # along with /bin/sed that truncates output.
3232  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3233    test ! -f ${_sed} && break
3234    cat /dev/null > "$tmp/sed.in"
3235    _count=0
3236    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3237    # Check for GNU sed and select it if it is found.
3238    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3239      lt_cv_path_SED=${_sed}
3240      break
3241    fi
3242    while true; do
3243      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3244      mv "$tmp/sed.tmp" "$tmp/sed.in"
3245      cp "$tmp/sed.in" "$tmp/sed.nl"
3246      echo >>"$tmp/sed.nl"
3247      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3248      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3249      # 40000 chars as input seems more than enough
3250      test $_count -gt 10 && break
3251      _count=`expr $_count + 1`
3252      if test $_count -gt $_max; then
3253        _max=$_count
3254        lt_cv_path_SED=$_sed
3255      fi
3256    done
3257  done
3258  rm -rf "$tmp"
3259
3260fi
3261
3262if test "X$SED" != "X"; then
3263  lt_cv_path_SED=$SED
3264else
3265  SED=$lt_cv_path_SED
3266fi
3267echo "$as_me:$LINENO: result: $SED" >&5
3268echo "${ECHO_T}$SED" >&6
3269
3270echo "$as_me:$LINENO: checking whether ln -s works" >&5
3271echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3272LN_S=$as_ln_s
3273if test "$LN_S" = "ln -s"; then
3274  echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
3276else
3277  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3278echo "${ECHO_T}no, using $LN_S" >&6
3279fi
3280
3281echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3282echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3283if test "${lt_cv_deplibs_check_method+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  lt_cv_file_magic_cmd='$MAGIC_CMD'
3287lt_cv_file_magic_test_file=
3288lt_cv_deplibs_check_method='unknown'
3289# Need to set the preceding variable on all platforms that support
3290# interlibrary dependencies.
3291# 'none' -- dependencies not supported.
3292# `unknown' -- same as none, but documents that we really don't know.
3293# 'pass_all' -- all dependencies passed with no checks.
3294# 'test_compile' -- check by making test program.
3295# 'file_magic [[regex]]' -- check by looking for files in library path
3296# which responds to the $file_magic_cmd with a given egrep regex.
3297# If you have `file' or equivalent on your system and you're not sure
3298# whether `pass_all' will *always* work, you probably want this one.
3299
3300case $host_os in
3301aix4* | aix5*)
3302  lt_cv_deplibs_check_method=pass_all
3303  ;;
3304
3305beos*)
3306  lt_cv_deplibs_check_method=pass_all
3307  ;;
3308
3309bsdi4*)
3310  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3311  lt_cv_file_magic_cmd='/usr/bin/file -L'
3312  lt_cv_file_magic_test_file=/shlib/libc.so
3313  ;;
3314
3315cygwin* | mingw* | pw32*)
3316  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3317  lt_cv_file_magic_cmd='$OBJDUMP -f'
3318  ;;
3319
3320darwin* | rhapsody*)
3321  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3322  lt_cv_file_magic_cmd='/usr/bin/file -L'
3323  case "$host_os" in
3324  rhapsody* | darwin1.[012])
3325    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3326    ;;
3327  *) # Darwin 1.3 on
3328    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3329    ;;
3330  esac
3331  ;;
3332
3333freebsd*)
3334  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3335    case $host_cpu in
3336    i*86 )
3337      # Not sure whether the presence of OpenBSD here was a mistake.
3338      # Let's accept both of them until this is cleared up.
3339      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3340      lt_cv_file_magic_cmd=/usr/bin/file
3341      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3342      ;;
3343    esac
3344  else
3345    lt_cv_deplibs_check_method=pass_all
3346  fi
3347  ;;
3348
3349gnu*)
3350  lt_cv_deplibs_check_method=pass_all
3351  ;;
3352
3353hpux10.20*|hpux11*)
3354  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3355  lt_cv_file_magic_cmd=/usr/bin/file
3356  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3357  ;;
3358
3359irix5* | irix6* | nonstopux*)
3360  case $host_os in
3361  irix5* | nonstopux*)
3362    # this will be overridden with pass_all, but let us keep it just in case
3363    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3364    ;;
3365  *)
3366    case $LD in
3367    *-32|*"-32 ") libmagic=32-bit;;
3368    *-n32|*"-n32 ") libmagic=N32;;
3369    *-64|*"-64 ") libmagic=64-bit;;
3370    *) libmagic=never-match;;
3371    esac
3372    # this will be overridden with pass_all, but let us keep it just in case
3373    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3374    ;;
3375  esac
3376  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3377  lt_cv_deplibs_check_method=pass_all
3378  ;;
3379
3380# This must be Linux ELF.
3381linux-gnu*)
3382  case $host_cpu in
3383  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
3384    lt_cv_deplibs_check_method=pass_all ;;
3385  *)
3386    # glibc up to 2.1.1 does not perform some relocations on ARM
3387    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3388  esac
3389  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3390  ;;
3391
3392netbsd*)
3393  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3394    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3395  else
3396    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3397  fi
3398  ;;
3399
3400newos6*)
3401  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3402  lt_cv_file_magic_cmd=/usr/bin/file
3403  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3404  ;;
3405
3406openbsd*)
3407  lt_cv_file_magic_cmd=/usr/bin/file
3408  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3409  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3410    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3411  else
3412    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3413  fi
3414  ;;
3415
3416osf3* | osf4* | osf5*)
3417  # this will be overridden with pass_all, but let us keep it just in case
3418  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3419  lt_cv_file_magic_test_file=/shlib/libc.so
3420  lt_cv_deplibs_check_method=pass_all
3421  ;;
3422
3423sco3.2v5*)
3424  lt_cv_deplibs_check_method=pass_all
3425  ;;
3426
3427solaris*)
3428  lt_cv_deplibs_check_method=pass_all
3429  lt_cv_file_magic_test_file=/lib/libc.so
3430  ;;
3431
3432sysv5uw[78]* | sysv4*uw2*)
3433  lt_cv_deplibs_check_method=pass_all
3434  ;;
3435
3436sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3437  case $host_vendor in
3438  motorola)
3439    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]'
3440    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3441    ;;
3442  ncr)
3443    lt_cv_deplibs_check_method=pass_all
3444    ;;
3445  sequent)
3446    lt_cv_file_magic_cmd='/bin/file'
3447    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3448    ;;
3449  sni)
3450    lt_cv_file_magic_cmd='/bin/file'
3451    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3452    lt_cv_file_magic_test_file=/lib/libc.so
3453    ;;
3454  siemens)
3455    lt_cv_deplibs_check_method=pass_all
3456    ;;
3457  esac
3458  ;;
3459esac
3460
3461fi
3462echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3463echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3464file_magic_cmd=$lt_cv_file_magic_cmd
3465deplibs_check_method=$lt_cv_deplibs_check_method
3466
3467
3468
3469
3470
3471
3472
3473
3474# Check for command to grab the raw symbol name followed by C symbol from nm.
3475echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3476echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3477if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3478  echo $ECHO_N "(cached) $ECHO_C" >&6
3479else
3480
3481# These are sane defaults that work on at least a few old systems.
3482# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3483
3484# Character class describing NM global symbol codes.
3485symcode='[BCDEGRST]'
3486
3487# Regexp to match symbols that can be accessed directly from C.
3488sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3489
3490# Transform the above into a raw symbol and a C symbol.
3491symxfrm='\1 \2\3 \3'
3492
3493# Transform an extracted symbol line into a proper C declaration
3494lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3495
3496# Transform an extracted symbol line into symbol name and symbol address
3497lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3498
3499# Define system-specific variables.
3500case $host_os in
3501aix*)
3502  symcode='[BCDT]'
3503  ;;
3504cygwin* | mingw* | pw32*)
3505  symcode='[ABCDGISTW]'
3506  ;;
3507hpux*) # Its linker distinguishes data from code symbols
3508  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3509  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3510  ;;
3511irix* | nonstopux*)
3512  symcode='[BCDEGRST]'
3513  ;;
3514osf*)
3515  symcode='[BCDEGQRST]'
3516  ;;
3517solaris* | sysv5*)
3518  symcode='[BDT]'
3519  ;;
3520sysv4)
3521  symcode='[DFNSTU]'
3522  ;;
3523esac
3524
3525# Handle CRLF in mingw tool chain
3526opt_cr=
3527case $host_os in
3528mingw*)
3529  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3530  ;;
3531esac
3532
3533# If we're using GNU nm, then use its standard symbol codes.
3534if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3535  symcode='[ABCDGISTW]'
3536fi
3537
3538# Try without a prefix undercore, then with it.
3539for ac_symprfx in "" "_"; do
3540
3541  # Write the raw and C identifiers.
3542lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3543
3544  # Check to see that the pipe works correctly.
3545  pipe_works=no
3546  rm -f conftest*
3547  cat > conftest.$ac_ext <<EOF
3548#ifdef __cplusplus
3549extern "C" {
3550#endif
3551char nm_test_var;
3552void nm_test_func(){}
3553#ifdef __cplusplus
3554}
3555#endif
3556int main(){nm_test_var='a';nm_test_func();return(0);}
3557EOF
3558
3559  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560  (eval $ac_compile) 2>&5
3561  ac_status=$?
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); }; then
3564    # Now try to grab the symbols.
3565    nlist=conftest.nm
3566    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3567  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); } && test -s "$nlist"; then
3571      # Try sorting and uniquifying the output.
3572      if sort "$nlist" | uniq > "$nlist"T; then
3573	mv -f "$nlist"T "$nlist"
3574      else
3575	rm -f "$nlist"T
3576      fi
3577
3578      # Make sure that we snagged all the symbols we need.
3579      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3580	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3581	  cat <<EOF > conftest.$ac_ext
3582#ifdef __cplusplus
3583extern "C" {
3584#endif
3585
3586EOF
3587	  # Now generate the symbol file.
3588	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3589
3590	  cat <<EOF >> conftest.$ac_ext
3591#if defined (__STDC__) && __STDC__
3592# define lt_ptr void *
3593#else
3594# define lt_ptr char *
3595# define const
3596#endif
3597
3598/* The mapping between symbol names and symbols. */
3599const struct {
3600  const char *name;
3601  lt_ptr address;
3602}
3603lt_preloaded_symbols[] =
3604{
3605EOF
3606	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3607	  cat <<\EOF >> conftest.$ac_ext
3608  {0, (lt_ptr) 0}
3609};
3610
3611#ifdef __cplusplus
3612}
3613#endif
3614EOF
3615	  # Now try linking the two files.
3616	  mv conftest.$ac_objext conftstm.$ac_objext
3617	  save_LIBS="$LIBS"
3618	  save_CFLAGS="$CFLAGS"
3619	  LIBS="conftstm.$ac_objext"
3620	  CFLAGS="$CFLAGS$no_builtin_flag"
3621	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622  (eval $ac_link) 2>&5
3623  ac_status=$?
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } && test -s conftest$ac_exeext; then
3626	    pipe_works=yes
3627	  fi
3628	  LIBS="$save_LIBS"
3629	  CFLAGS="$save_CFLAGS"
3630	else
3631	  echo "cannot find nm_test_func in $nlist" >&5
3632	fi
3633      else
3634	echo "cannot find nm_test_var in $nlist" >&5
3635      fi
3636    else
3637      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3638    fi
3639  else
3640    echo "$progname: failed program was:" >&5
3641    cat conftest.$ac_ext >&5
3642  fi
3643  rm -f conftest* conftst*
3644
3645  # Do not use the global_symbol_pipe unless it works.
3646  if test "$pipe_works" = yes; then
3647    break
3648  else
3649    lt_cv_sys_global_symbol_pipe=
3650  fi
3651done
3652
3653fi
3654
3655global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3656if test -z "$lt_cv_sys_global_symbol_pipe"; then
3657  global_symbol_to_cdecl=
3658  global_symbol_to_c_name_address=
3659else
3660  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3661  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3662fi
3663if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3664then
3665  echo "$as_me:$LINENO: result: failed" >&5
3666echo "${ECHO_T}failed" >&6
3667else
3668  echo "$as_me:$LINENO: result: ok" >&5
3669echo "${ECHO_T}ok" >&6
3670fi
3671
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679# On Suns, sometimes $CPP names a directory.
3680if test -n "$CPP" && test -d "$CPP"; then
3681  CPP=
3682fi
3683if test -z "$CPP"; then
3684  if test "${ac_cv_prog_CPP+set}" = set; then
3685  echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687      # Double quotes because CPP needs to be expanded
3688    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689    do
3690      ac_preproc_ok=false
3691for ac_c_preproc_warn_flag in '' yes
3692do
3693  # Use a header file that comes with gcc, so configuring glibc
3694  # with a fresh cross-compiler works.
3695  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696  # <limits.h> exists even on freestanding compilers.
3697  # On the NeXT, cc -E runs the code through the compiler's parser,
3698  # not just through cpp. "Syntax error" is here to catch this case.
3699  cat >conftest.$ac_ext <<_ACEOF
3700#line $LINENO "configure"
3701/* confdefs.h.  */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h.  */
3706#ifdef __STDC__
3707# include <limits.h>
3708#else
3709# include <assert.h>
3710#endif
3711                     Syntax error
3712_ACEOF
3713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715  ac_status=$?
3716  grep -v '^ *+' conftest.er1 >conftest.err
3717  rm -f conftest.er1
3718  cat conftest.err >&5
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); } >/dev/null; then
3721  if test -s conftest.err; then
3722    ac_cpp_err=$ac_c_preproc_warn_flag
3723  else
3724    ac_cpp_err=
3725  fi
3726else
3727  ac_cpp_err=yes
3728fi
3729if test -z "$ac_cpp_err"; then
3730  :
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735  # Broken: fails on valid input.
3736continue
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739
3740  # OK, works on sane cases.  Now check whether non-existent headers
3741  # can be detected and how.
3742  cat >conftest.$ac_ext <<_ACEOF
3743#line $LINENO "configure"
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749#include <ac_nonexistent.h>
3750_ACEOF
3751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } >/dev/null; then
3759  if test -s conftest.err; then
3760    ac_cpp_err=$ac_c_preproc_warn_flag
3761  else
3762    ac_cpp_err=
3763  fi
3764else
3765  ac_cpp_err=yes
3766fi
3767if test -z "$ac_cpp_err"; then
3768  # Broken: success on invalid input.
3769continue
3770else
3771  echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774  # Passes both tests.
3775ac_preproc_ok=:
3776break
3777fi
3778rm -f conftest.err conftest.$ac_ext
3779
3780done
3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782rm -f conftest.err conftest.$ac_ext
3783if $ac_preproc_ok; then
3784  break
3785fi
3786
3787    done
3788    ac_cv_prog_CPP=$CPP
3789
3790fi
3791  CPP=$ac_cv_prog_CPP
3792else
3793  ac_cv_prog_CPP=$CPP
3794fi
3795echo "$as_me:$LINENO: result: $CPP" >&5
3796echo "${ECHO_T}$CPP" >&6
3797ac_preproc_ok=false
3798for ac_c_preproc_warn_flag in '' yes
3799do
3800  # Use a header file that comes with gcc, so configuring glibc
3801  # with a fresh cross-compiler works.
3802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803  # <limits.h> exists even on freestanding compilers.
3804  # On the NeXT, cc -E runs the code through the compiler's parser,
3805  # not just through cpp. "Syntax error" is here to catch this case.
3806  cat >conftest.$ac_ext <<_ACEOF
3807#line $LINENO "configure"
3808/* confdefs.h.  */
3809_ACEOF
3810cat confdefs.h >>conftest.$ac_ext
3811cat >>conftest.$ac_ext <<_ACEOF
3812/* end confdefs.h.  */
3813#ifdef __STDC__
3814# include <limits.h>
3815#else
3816# include <assert.h>
3817#endif
3818                     Syntax error
3819_ACEOF
3820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822  ac_status=$?
3823  grep -v '^ *+' conftest.er1 >conftest.err
3824  rm -f conftest.er1
3825  cat conftest.err >&5
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); } >/dev/null; then
3828  if test -s conftest.err; then
3829    ac_cpp_err=$ac_c_preproc_warn_flag
3830  else
3831    ac_cpp_err=
3832  fi
3833else
3834  ac_cpp_err=yes
3835fi
3836if test -z "$ac_cpp_err"; then
3837  :
3838else
3839  echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842  # Broken: fails on valid input.
3843continue
3844fi
3845rm -f conftest.err conftest.$ac_ext
3846
3847  # OK, works on sane cases.  Now check whether non-existent headers
3848  # can be detected and how.
3849  cat >conftest.$ac_ext <<_ACEOF
3850#line $LINENO "configure"
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856#include <ac_nonexistent.h>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } >/dev/null; then
3866  if test -s conftest.err; then
3867    ac_cpp_err=$ac_c_preproc_warn_flag
3868  else
3869    ac_cpp_err=
3870  fi
3871else
3872  ac_cpp_err=yes
3873fi
3874if test -z "$ac_cpp_err"; then
3875  # Broken: success on invalid input.
3876continue
3877else
3878  echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881  # Passes both tests.
3882ac_preproc_ok=:
3883break
3884fi
3885rm -f conftest.err conftest.$ac_ext
3886
3887done
3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889rm -f conftest.err conftest.$ac_ext
3890if $ac_preproc_ok; then
3891  :
3892else
3893  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894See \`config.log' for more details." >&5
3895echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896See \`config.log' for more details." >&2;}
3897   { (exit 1); exit 1; }; }
3898fi
3899
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906
3907echo "$as_me:$LINENO: checking for egrep" >&5
3908echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3909if test "${ac_cv_prog_egrep+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3913    then ac_cv_prog_egrep='grep -E'
3914    else ac_cv_prog_egrep='egrep'
3915    fi
3916fi
3917echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3918echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3919 EGREP=$ac_cv_prog_egrep
3920
3921
3922echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3924if test "${ac_cv_header_stdc+set}" = set; then
3925  echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927  cat >conftest.$ac_ext <<_ACEOF
3928#line $LINENO "configure"
3929/* confdefs.h.  */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h.  */
3934#include <stdlib.h>
3935#include <stdarg.h>
3936#include <string.h>
3937#include <float.h>
3938
3939int
3940main ()
3941{
3942
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext
3948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3949  (eval $ac_compile) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); } &&
3953         { ac_try='test -s conftest.$ac_objext'
3954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955  (eval $ac_try) 2>&5
3956  ac_status=$?
3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958  (exit $ac_status); }; }; then
3959  ac_cv_header_stdc=yes
3960else
3961  echo "$as_me: failed program was:" >&5
3962sed 's/^/| /' conftest.$ac_ext >&5
3963
3964ac_cv_header_stdc=no
3965fi
3966rm -f conftest.$ac_objext conftest.$ac_ext
3967
3968if test $ac_cv_header_stdc = yes; then
3969  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3970  cat >conftest.$ac_ext <<_ACEOF
3971#line $LINENO "configure"
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977#include <string.h>
3978
3979_ACEOF
3980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3981  $EGREP "memchr" >/dev/null 2>&1; then
3982  :
3983else
3984  ac_cv_header_stdc=no
3985fi
3986rm -f conftest*
3987
3988fi
3989
3990if test $ac_cv_header_stdc = yes; then
3991  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3992  cat >conftest.$ac_ext <<_ACEOF
3993#line $LINENO "configure"
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999#include <stdlib.h>
4000
4001_ACEOF
4002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4003  $EGREP "free" >/dev/null 2>&1; then
4004  :
4005else
4006  ac_cv_header_stdc=no
4007fi
4008rm -f conftest*
4009
4010fi
4011
4012if test $ac_cv_header_stdc = yes; then
4013  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4014  if test "$cross_compiling" = yes; then
4015  :
4016else
4017  cat >conftest.$ac_ext <<_ACEOF
4018#line $LINENO "configure"
4019/* confdefs.h.  */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h.  */
4024#include <ctype.h>
4025#if ((' ' & 0x0FF) == 0x020)
4026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4028#else
4029# define ISLOWER(c) \
4030                   (('a' <= (c) && (c) <= 'i') \
4031                     || ('j' <= (c) && (c) <= 'r') \
4032                     || ('s' <= (c) && (c) <= 'z'))
4033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4034#endif
4035
4036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4037int
4038main ()
4039{
4040  int i;
4041  for (i = 0; i < 256; i++)
4042    if (XOR (islower (i), ISLOWER (i))
4043        || toupper (i) != TOUPPER (i))
4044      exit(2);
4045  exit (0);
4046}
4047_ACEOF
4048rm -f conftest$ac_exeext
4049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050  (eval $ac_link) 2>&5
4051  ac_status=$?
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; }; then
4059  :
4060else
4061  echo "$as_me: program exited with status $ac_status" >&5
4062echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065( exit $ac_status )
4066ac_cv_header_stdc=no
4067fi
4068rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069fi
4070fi
4071fi
4072echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4073echo "${ECHO_T}$ac_cv_header_stdc" >&6
4074if test $ac_cv_header_stdc = yes; then
4075
4076cat >>confdefs.h <<\_ACEOF
4077#define STDC_HEADERS 1
4078_ACEOF
4079
4080fi
4081
4082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093                  inttypes.h stdint.h unistd.h
4094do
4095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4096echo "$as_me:$LINENO: checking for $ac_header" >&5
4097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4098if eval "test \"\${$as_ac_Header+set}\" = set"; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101  cat >conftest.$ac_ext <<_ACEOF
4102#line $LINENO "configure"
4103/* confdefs.h.  */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h.  */
4108$ac_includes_default
4109
4110#include <$ac_header>
4111_ACEOF
4112rm -f conftest.$ac_objext
4113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114  (eval $ac_compile) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); } &&
4118         { ac_try='test -s conftest.$ac_objext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  eval "$as_ac_Header=yes"
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129eval "$as_ac_Header=no"
4130fi
4131rm -f conftest.$ac_objext conftest.$ac_ext
4132fi
4133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4135if test `eval echo '${'$as_ac_Header'}'` = yes; then
4136  cat >>confdefs.h <<_ACEOF
4137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4138_ACEOF
4139
4140fi
4141
4142done
4143
4144
4145
4146for ac_header in dlfcn.h
4147do
4148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4149if eval "test \"\${$as_ac_Header+set}\" = set"; then
4150  echo "$as_me:$LINENO: checking for $ac_header" >&5
4151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4152if eval "test \"\${$as_ac_Header+set}\" = set"; then
4153  echo $ECHO_N "(cached) $ECHO_C" >&6
4154fi
4155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4157else
4158  # Is the header compilable?
4159echo "$as_me:$LINENO: checking $ac_header usability" >&5
4160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4161cat >conftest.$ac_ext <<_ACEOF
4162#line $LINENO "configure"
4163/* confdefs.h.  */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h.  */
4168$ac_includes_default
4169#include <$ac_header>
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173  (eval $ac_compile) 2>&5
4174  ac_status=$?
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); } &&
4177         { ac_try='test -s conftest.$ac_objext'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; }; then
4183  ac_header_compiler=yes
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188ac_header_compiler=no
4189fi
4190rm -f conftest.$ac_objext conftest.$ac_ext
4191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4192echo "${ECHO_T}$ac_header_compiler" >&6
4193
4194# Is the header present?
4195echo "$as_me:$LINENO: checking $ac_header presence" >&5
4196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4197cat >conftest.$ac_ext <<_ACEOF
4198#line $LINENO "configure"
4199/* confdefs.h.  */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h.  */
4204#include <$ac_header>
4205_ACEOF
4206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4207  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4208  ac_status=$?
4209  grep -v '^ *+' conftest.er1 >conftest.err
4210  rm -f conftest.er1
4211  cat conftest.err >&5
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } >/dev/null; then
4214  if test -s conftest.err; then
4215    ac_cpp_err=$ac_c_preproc_warn_flag
4216  else
4217    ac_cpp_err=
4218  fi
4219else
4220  ac_cpp_err=yes
4221fi
4222if test -z "$ac_cpp_err"; then
4223  ac_header_preproc=yes
4224else
4225  echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228  ac_header_preproc=no
4229fi
4230rm -f conftest.err conftest.$ac_ext
4231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4232echo "${ECHO_T}$ac_header_preproc" >&6
4233
4234# So?  What about this header?
4235case $ac_header_compiler:$ac_header_preproc in
4236  yes:no )
4237    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4239    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4241    (
4242      cat <<\_ASBOX
4243## ------------------------------------ ##
4244## Report this to bug-autoconf@gnu.org. ##
4245## ------------------------------------ ##
4246_ASBOX
4247    ) |
4248      sed "s/^/$as_me: WARNING:     /" >&2
4249    ;;
4250  no:yes )
4251    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4253    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4257    (
4258      cat <<\_ASBOX
4259## ------------------------------------ ##
4260## Report this to bug-autoconf@gnu.org. ##
4261## ------------------------------------ ##
4262_ASBOX
4263    ) |
4264      sed "s/^/$as_me: WARNING:     /" >&2
4265    ;;
4266esac
4267echo "$as_me:$LINENO: checking for $ac_header" >&5
4268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4269if eval "test \"\${$as_ac_Header+set}\" = set"; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  eval "$as_ac_Header=$ac_header_preproc"
4273fi
4274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4276
4277fi
4278if test `eval echo '${'$as_ac_Header'}'` = yes; then
4279  cat >>confdefs.h <<_ACEOF
4280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4281_ACEOF
4282
4283fi
4284
4285done
4286
4287
4288
4289
4290
4291
4292# Only perform the check for file, if the check method requires it
4293case $deplibs_check_method in
4294file_magic*)
4295  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4296    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4297echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4298if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4299  echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301  case $MAGIC_CMD in
4302  /*)
4303  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4304  ;;
4305  ?:/*)
4306  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4307  ;;
4308  *)
4309  ac_save_MAGIC_CMD="$MAGIC_CMD"
4310  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4311  ac_dummy="/usr/bin:$PATH"
4312  for ac_dir in $ac_dummy; do
4313    test -z "$ac_dir" && ac_dir=.
4314    if test -f $ac_dir/${ac_tool_prefix}file; then
4315      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4316      if test -n "$file_magic_test_file"; then
4317	case $deplibs_check_method in
4318	"file_magic "*)
4319	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4320	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4321	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4322	    egrep "$file_magic_regex" > /dev/null; then
4323	    :
4324	  else
4325	    cat <<EOF 1>&2
4326
4327*** Warning: the command libtool uses to detect shared libraries,
4328*** $file_magic_cmd, produces output that libtool cannot recognize.
4329*** The result is that libtool may fail to recognize shared libraries
4330*** as such.  This will affect the creation of libtool libraries that
4331*** depend on shared libraries, but programs linked with such libtool
4332*** libraries will work regardless of this problem.  Nevertheless, you
4333*** may want to report the problem to your system manager and/or to
4334*** bug-libtool@gnu.org
4335
4336EOF
4337	  fi ;;
4338	esac
4339      fi
4340      break
4341    fi
4342  done
4343  IFS="$ac_save_ifs"
4344  MAGIC_CMD="$ac_save_MAGIC_CMD"
4345  ;;
4346esac
4347fi
4348
4349MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4350if test -n "$MAGIC_CMD"; then
4351  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4352echo "${ECHO_T}$MAGIC_CMD" >&6
4353else
4354  echo "$as_me:$LINENO: result: no" >&5
4355echo "${ECHO_T}no" >&6
4356fi
4357
4358if test -z "$lt_cv_path_MAGIC_CMD"; then
4359  if test -n "$ac_tool_prefix"; then
4360    echo "$as_me:$LINENO: checking for file" >&5
4361echo $ECHO_N "checking for file... $ECHO_C" >&6
4362if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  case $MAGIC_CMD in
4366  /*)
4367  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4368  ;;
4369  ?:/*)
4370  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4371  ;;
4372  *)
4373  ac_save_MAGIC_CMD="$MAGIC_CMD"
4374  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4375  ac_dummy="/usr/bin:$PATH"
4376  for ac_dir in $ac_dummy; do
4377    test -z "$ac_dir" && ac_dir=.
4378    if test -f $ac_dir/file; then
4379      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4380      if test -n "$file_magic_test_file"; then
4381	case $deplibs_check_method in
4382	"file_magic "*)
4383	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4384	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4385	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4386	    egrep "$file_magic_regex" > /dev/null; then
4387	    :
4388	  else
4389	    cat <<EOF 1>&2
4390
4391*** Warning: the command libtool uses to detect shared libraries,
4392*** $file_magic_cmd, produces output that libtool cannot recognize.
4393*** The result is that libtool may fail to recognize shared libraries
4394*** as such.  This will affect the creation of libtool libraries that
4395*** depend on shared libraries, but programs linked with such libtool
4396*** libraries will work regardless of this problem.  Nevertheless, you
4397*** may want to report the problem to your system manager and/or to
4398*** bug-libtool@gnu.org
4399
4400EOF
4401	  fi ;;
4402	esac
4403      fi
4404      break
4405    fi
4406  done
4407  IFS="$ac_save_ifs"
4408  MAGIC_CMD="$ac_save_MAGIC_CMD"
4409  ;;
4410esac
4411fi
4412
4413MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4414if test -n "$MAGIC_CMD"; then
4415  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4416echo "${ECHO_T}$MAGIC_CMD" >&6
4417else
4418  echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
4420fi
4421
4422  else
4423    MAGIC_CMD=:
4424  fi
4425fi
4426
4427  fi
4428  ;;
4429esac
4430
4431if test -n "$ac_tool_prefix"; then
4432  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4434echo "$as_me:$LINENO: checking for $ac_word" >&5
4435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436if test "${ac_cv_prog_RANLIB+set}" = set; then
4437  echo $ECHO_N "(cached) $ECHO_C" >&6
4438else
4439  if test -n "$RANLIB"; then
4440  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4441else
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445  IFS=$as_save_IFS
4446  test -z "$as_dir" && as_dir=.
4447  for ac_exec_ext in '' $ac_executable_extensions; do
4448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451    break 2
4452  fi
4453done
4454done
4455
4456fi
4457fi
4458RANLIB=$ac_cv_prog_RANLIB
4459if test -n "$RANLIB"; then
4460  echo "$as_me:$LINENO: result: $RANLIB" >&5
4461echo "${ECHO_T}$RANLIB" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466
4467fi
4468if test -z "$ac_cv_prog_RANLIB"; then
4469  ac_ct_RANLIB=$RANLIB
4470  # Extract the first word of "ranlib", so it can be a program name with args.
4471set dummy ranlib; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477  if test -n "$ac_ct_RANLIB"; then
4478  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483  IFS=$as_save_IFS
4484  test -z "$as_dir" && as_dir=.
4485  for ac_exec_ext in '' $ac_executable_extensions; do
4486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487    ac_cv_prog_ac_ct_RANLIB="ranlib"
4488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489    break 2
4490  fi
4491done
4492done
4493
4494  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4495fi
4496fi
4497ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4498if test -n "$ac_ct_RANLIB"; then
4499  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4500echo "${ECHO_T}$ac_ct_RANLIB" >&6
4501else
4502  echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504fi
4505
4506  RANLIB=$ac_ct_RANLIB
4507else
4508  RANLIB="$ac_cv_prog_RANLIB"
4509fi
4510
4511if test -n "$ac_tool_prefix"; then
4512  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4513set dummy ${ac_tool_prefix}strip; ac_word=$2
4514echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516if test "${ac_cv_prog_STRIP+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  if test -n "$STRIP"; then
4520  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527  for ac_exec_ext in '' $ac_executable_extensions; do
4528  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534done
4535
4536fi
4537fi
4538STRIP=$ac_cv_prog_STRIP
4539if test -n "$STRIP"; then
4540  echo "$as_me:$LINENO: result: $STRIP" >&5
4541echo "${ECHO_T}$STRIP" >&6
4542else
4543  echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
4545fi
4546
4547fi
4548if test -z "$ac_cv_prog_STRIP"; then
4549  ac_ct_STRIP=$STRIP
4550  # Extract the first word of "strip", so it can be a program name with args.
4551set dummy strip; ac_word=$2
4552echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  if test -n "$ac_ct_STRIP"; then
4558  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565  for ac_exec_ext in '' $ac_executable_extensions; do
4566  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567    ac_cv_prog_ac_ct_STRIP="strip"
4568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572done
4573
4574  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4575fi
4576fi
4577ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4578if test -n "$ac_ct_STRIP"; then
4579  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4580echo "${ECHO_T}$ac_ct_STRIP" >&6
4581else
4582  echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
4584fi
4585
4586  STRIP=$ac_ct_STRIP
4587else
4588  STRIP="$ac_cv_prog_STRIP"
4589fi
4590
4591
4592enable_dlopen=no
4593enable_win32_dll=no
4594
4595# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4596if test "${enable_libtool_lock+set}" = set; then
4597  enableval="$enable_libtool_lock"
4598
4599fi;
4600test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4601
4602# Some flags need to be propagated to the compiler or linker for good
4603# libtool support.
4604case $host in
4605*-*-irix6*)
4606  # Find out which ABI we are using.
4607  echo '#line 4607 "configure"' > conftest.$ac_ext
4608  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609  (eval $ac_compile) 2>&5
4610  ac_status=$?
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); }; then
4613    case `/usr/bin/file conftest.$ac_objext` in
4614    *32-bit*)
4615      LD="${LD-ld} -32"
4616      ;;
4617    *N32*)
4618      LD="${LD-ld} -n32"
4619      ;;
4620    *64-bit*)
4621      LD="${LD-ld} -64"
4622      ;;
4623    esac
4624  fi
4625  rm -rf conftest*
4626  ;;
4627
4628*-*-sco3.2v5*)
4629  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4630  SAVE_CFLAGS="$CFLAGS"
4631  CFLAGS="$CFLAGS -belf"
4632  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4633echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4634if test "${lt_cv_cc_needs_belf+set}" = set; then
4635  echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637
4638
4639     ac_ext=c
4640ac_cpp='$CPP $CPPFLAGS'
4641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645     cat >conftest.$ac_ext <<_ACEOF
4646#line $LINENO "configure"
4647/* confdefs.h.  */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h.  */
4652
4653int
4654main ()
4655{
4656
4657  ;
4658  return 0;
4659}
4660_ACEOF
4661rm -f conftest.$ac_objext conftest$ac_exeext
4662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663  (eval $ac_link) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } &&
4667         { ac_try='test -s conftest$ac_exeext'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; }; then
4673  lt_cv_cc_needs_belf=yes
4674else
4675  echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678lt_cv_cc_needs_belf=no
4679fi
4680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4681     ac_ext=c
4682ac_cpp='$CPP $CPPFLAGS'
4683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686
4687fi
4688echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4689echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4690  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4691    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4692    CFLAGS="$SAVE_CFLAGS"
4693  fi
4694  ;;
4695
4696
4697esac
4698
4699# Sed substitution that helps us do robust quoting.  It backslashifies
4700# metacharacters that are still active within double-quoted strings.
4701Xsed='sed -e s/^X//'
4702sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4703
4704# Same as above, but do not quote variable references.
4705double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4706
4707# Sed substitution to delay expansion of an escaped shell variable in a
4708# double_quote_subst'ed string.
4709delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4710
4711# Constants:
4712rm="rm -f"
4713
4714# Global variables:
4715default_ofile=libtool
4716can_build_shared=yes
4717
4718# All known linkers require a `.a' archive for static linking (except M$VC,
4719# which needs '.lib').
4720libext=a
4721ltmain="$ac_aux_dir/ltmain.sh"
4722ofile="$default_ofile"
4723with_gnu_ld="$lt_cv_prog_gnu_ld"
4724need_locks="$enable_libtool_lock"
4725
4726old_CC="$CC"
4727old_CFLAGS="$CFLAGS"
4728
4729# Set sane defaults for various variables
4730test -z "$AR" && AR=ar
4731test -z "$AR_FLAGS" && AR_FLAGS=cru
4732test -z "$AS" && AS=as
4733test -z "$CC" && CC=cc
4734test -z "$DLLTOOL" && DLLTOOL=dlltool
4735test -z "$LD" && LD=ld
4736test -z "$LN_S" && LN_S="ln -s"
4737test -z "$MAGIC_CMD" && MAGIC_CMD=file
4738test -z "$NM" && NM=nm
4739test -z "$OBJDUMP" && OBJDUMP=objdump
4740test -z "$RANLIB" && RANLIB=:
4741test -z "$STRIP" && STRIP=:
4742test -z "$ac_objext" && ac_objext=o
4743
4744if test x"$host" != x"$build"; then
4745  ac_tool_prefix=${host_alias}-
4746else
4747  ac_tool_prefix=
4748fi
4749
4750# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4751case $host_os in
4752linux-gnu*) ;;
4753linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4754esac
4755
4756case $host_os in
4757aix3*)
4758  # AIX sometimes has problems with the GCC collect2 program.  For some
4759  # reason, if we set the COLLECT_NAMES environment variable, the problems
4760  # vanish in a puff of smoke.
4761  if test "X${COLLECT_NAMES+set}" != Xset; then
4762    COLLECT_NAMES=
4763    export COLLECT_NAMES
4764  fi
4765  ;;
4766esac
4767
4768# Determine commands to create old-style static archives.
4769old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4770old_postinstall_cmds='chmod 644 $oldlib'
4771old_postuninstall_cmds=
4772
4773if test -n "$RANLIB"; then
4774  case $host_os in
4775  openbsd*)
4776    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4777    ;;
4778  *)
4779    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4780    ;;
4781  esac
4782  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4783fi
4784
4785# Allow CC to be a program name with arguments.
4786set dummy $CC
4787compiler="$2"
4788
4789echo "$as_me:$LINENO: checking for objdir" >&5
4790echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4791rm -f .libs 2>/dev/null
4792mkdir .libs 2>/dev/null
4793if test -d .libs; then
4794  objdir=.libs
4795else
4796  # MS-DOS does not allow filenames that begin with a dot.
4797  objdir=_libs
4798fi
4799rmdir .libs 2>/dev/null
4800echo "$as_me:$LINENO: result: $objdir" >&5
4801echo "${ECHO_T}$objdir" >&6
4802
4803
4804
4805# Check whether --with-pic or --without-pic was given.
4806if test "${with_pic+set}" = set; then
4807  withval="$with_pic"
4808  pic_mode="$withval"
4809else
4810  pic_mode=default
4811fi;
4812test -z "$pic_mode" && pic_mode=default
4813
4814# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4815# in isolation, and that seeing it set (from the cache) indicates that
4816# the associated values are set (in the cache) correctly too.
4817echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4818echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4819if test "${lt_cv_prog_cc_pic+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822   lt_cv_prog_cc_pic=
4823  lt_cv_prog_cc_shlib=
4824  lt_cv_prog_cc_wl=
4825  lt_cv_prog_cc_static=
4826  lt_cv_prog_cc_no_builtin=
4827  lt_cv_prog_cc_can_build_shared=$can_build_shared
4828
4829  if test "$GCC" = yes; then
4830    lt_cv_prog_cc_wl='-Wl,'
4831    lt_cv_prog_cc_static='-static'
4832
4833    case $host_os in
4834    aix*)
4835      # Below there is a dirty hack to force normal static linking with -ldl
4836      # The problem is because libdl dynamically linked with both libc and
4837      # libC (AIX C++ library), which obviously doesn't included in libraries
4838      # list by gcc. This cause undefined symbols with -static flags.
4839      # This hack allows C programs to be linked with "-static -ldl", but
4840      # not sure about C++ programs.
4841      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4842      ;;
4843    amigaos*)
4844      # FIXME: we need at least 68020 code to build shared libraries, but
4845      # adding the `-m68020' flag to GCC prevents building anything better,
4846      # like `-m68040'.
4847      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4848      ;;
4849    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4850      # PIC is the default for these OSes.
4851      ;;
4852    darwin* | rhapsody*)
4853      # PIC is the default on this platform
4854      # Common symbols not allowed in MH_DYLIB files
4855      lt_cv_prog_cc_pic='-fno-common'
4856      ;;
4857    cygwin* | mingw* | pw32* | os2*)
4858      # This hack is so that the source file can tell whether it is being
4859      # built for inclusion in a dll (and should export symbols for example).
4860      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4861      ;;
4862    sysv4*MP*)
4863      if test -d /usr/nec; then
4864	 lt_cv_prog_cc_pic=-Kconform_pic
4865      fi
4866      ;;
4867    *)
4868      lt_cv_prog_cc_pic='-fPIC'
4869      ;;
4870    esac
4871  else
4872    # PORTME Check for PIC flags for the system compiler.
4873    case $host_os in
4874    aix3* | aix4* | aix5*)
4875      lt_cv_prog_cc_wl='-Wl,'
4876      # All AIX code is PIC.
4877      if test "$host_cpu" = ia64; then
4878	# AIX 5 now supports IA64 processor
4879	lt_cv_prog_cc_static='-Bstatic'
4880      else
4881	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4882      fi
4883      ;;
4884
4885    hpux9* | hpux10* | hpux11*)
4886      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4887      lt_cv_prog_cc_wl='-Wl,'
4888      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4889      lt_cv_prog_cc_pic='+Z'
4890      ;;
4891
4892    irix5* | irix6* | nonstopux*)
4893      lt_cv_prog_cc_wl='-Wl,'
4894      lt_cv_prog_cc_static='-non_shared'
4895      # PIC (with -KPIC) is the default.
4896      ;;
4897
4898    cygwin* | mingw* | pw32* | os2*)
4899      # This hack is so that the source file can tell whether it is being
4900      # built for inclusion in a dll (and should export symbols for example).
4901      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4902      ;;
4903
4904    newsos6)
4905      lt_cv_prog_cc_pic='-KPIC'
4906      lt_cv_prog_cc_static='-Bstatic'
4907      ;;
4908
4909    osf3* | osf4* | osf5*)
4910      # All OSF/1 code is PIC.
4911      lt_cv_prog_cc_wl='-Wl,'
4912      lt_cv_prog_cc_static='-non_shared'
4913      ;;
4914
4915    sco3.2v5*)
4916      lt_cv_prog_cc_pic='-Kpic'
4917      lt_cv_prog_cc_static='-dn'
4918      lt_cv_prog_cc_shlib='-belf'
4919      ;;
4920
4921    solaris*)
4922      lt_cv_prog_cc_pic='-KPIC'
4923      lt_cv_prog_cc_static='-Bstatic'
4924      lt_cv_prog_cc_wl='-Wl,'
4925      ;;
4926
4927    sunos4*)
4928      lt_cv_prog_cc_pic='-PIC'
4929      lt_cv_prog_cc_static='-Bstatic'
4930      lt_cv_prog_cc_wl='-Qoption ld '
4931      ;;
4932
4933    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4934      lt_cv_prog_cc_pic='-KPIC'
4935      lt_cv_prog_cc_static='-Bstatic'
4936      lt_cv_prog_cc_wl='-Wl,'
4937      ;;
4938
4939    uts4*)
4940      lt_cv_prog_cc_pic='-pic'
4941      lt_cv_prog_cc_static='-Bstatic'
4942      ;;
4943
4944    sysv4*MP*)
4945      if test -d /usr/nec ;then
4946	lt_cv_prog_cc_pic='-Kconform_pic'
4947	lt_cv_prog_cc_static='-Bstatic'
4948      fi
4949      ;;
4950
4951    *)
4952      lt_cv_prog_cc_can_build_shared=no
4953      ;;
4954    esac
4955  fi
4956
4957fi
4958
4959if test -z "$lt_cv_prog_cc_pic"; then
4960  echo "$as_me:$LINENO: result: none" >&5
4961echo "${ECHO_T}none" >&6
4962else
4963  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4964echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4965
4966  # Check to make sure the pic_flag actually works.
4967  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4968echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4969  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972      save_CFLAGS="$CFLAGS"
4973    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4974    cat >conftest.$ac_ext <<_ACEOF
4975#line $LINENO "configure"
4976/* confdefs.h.  */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h.  */
4981
4982int
4983main ()
4984{
4985
4986  ;
4987  return 0;
4988}
4989_ACEOF
4990rm -f conftest.$ac_objext
4991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4992  (eval $ac_compile) 2>&5
4993  ac_status=$?
4994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995  (exit $ac_status); } &&
4996         { ac_try='test -s conftest.$ac_objext'
4997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998  (eval $ac_try) 2>&5
4999  ac_status=$?
5000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001  (exit $ac_status); }; }; then
5002        case $host_os in
5003      hpux9* | hpux10* | hpux11*)
5004	# On HP-UX, both CC and GCC only warn that PIC is supported... then
5005	# they create non-PIC objects.  So, if there were any warnings, we
5006	# assume that PIC is not supported.
5007	if test -s conftest.err; then
5008	  lt_cv_prog_cc_pic_works=no
5009	else
5010	  lt_cv_prog_cc_pic_works=yes
5011	fi
5012	;;
5013      *)
5014	lt_cv_prog_cc_pic_works=yes
5015	;;
5016      esac
5017
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022      lt_cv_prog_cc_pic_works=no
5023
5024fi
5025rm -f conftest.$ac_objext conftest.$ac_ext
5026    CFLAGS="$save_CFLAGS"
5027
5028fi
5029
5030
5031  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5032    lt_cv_prog_cc_pic=
5033    lt_cv_prog_cc_can_build_shared=no
5034  else
5035    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5036  fi
5037
5038  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5039echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5040fi
5041
5042# Check for any special shared library compilation flags.
5043if test -n "$lt_cv_prog_cc_shlib"; then
5044  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5045echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5046  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
5047  else
5048   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5049echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5050    lt_cv_prog_cc_can_build_shared=no
5051  fi
5052fi
5053
5054echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5055echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5056if test "${lt_cv_prog_cc_static_works+set}" = set; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059    lt_cv_prog_cc_static_works=no
5060  save_LDFLAGS="$LDFLAGS"
5061  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5062  cat >conftest.$ac_ext <<_ACEOF
5063#line $LINENO "configure"
5064/* confdefs.h.  */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h.  */
5069
5070int
5071main ()
5072{
5073
5074  ;
5075  return 0;
5076}
5077_ACEOF
5078rm -f conftest.$ac_objext conftest$ac_exeext
5079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5080  (eval $ac_link) 2>&5
5081  ac_status=$?
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } &&
5084         { ac_try='test -s conftest$ac_exeext'
5085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086  (eval $ac_try) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); }; }; then
5090  lt_cv_prog_cc_static_works=yes
5091else
5092  echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095fi
5096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5097  LDFLAGS="$save_LDFLAGS"
5098
5099fi
5100
5101
5102# Belt *and* braces to stop my trousers falling down:
5103test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5104echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5105echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5106
5107pic_flag="$lt_cv_prog_cc_pic"
5108special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5109wl="$lt_cv_prog_cc_wl"
5110link_static_flag="$lt_cv_prog_cc_static"
5111no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5112can_build_shared="$lt_cv_prog_cc_can_build_shared"
5113
5114
5115# Check to see if options -o and -c are simultaneously supported by compiler
5116echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5117echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5118if test "${lt_cv_compiler_c_o+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121
5122$rm -r conftest 2>/dev/null
5123mkdir conftest
5124cd conftest
5125echo "int some_variable = 0;" > conftest.$ac_ext
5126mkdir out
5127# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5128# that will create temporary files in the current directory regardless of
5129# the output directory.  Thus, making CWD read-only will cause this test
5130# to fail, enabling locking or at least warning the user not to do parallel
5131# builds.
5132chmod -w .
5133save_CFLAGS="$CFLAGS"
5134CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5135compiler_c_o=no
5136if { (eval echo configure:5136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5137  # The compiler can only warn and ignore the option if not recognized
5138  # So say no if there are warnings
5139  if test -s out/conftest.err; then
5140    lt_cv_compiler_c_o=no
5141  else
5142    lt_cv_compiler_c_o=yes
5143  fi
5144else
5145  # Append any errors to the config.log.
5146  cat out/conftest.err 1>&5
5147  lt_cv_compiler_c_o=no
5148fi
5149CFLAGS="$save_CFLAGS"
5150chmod u+w .
5151$rm conftest* out/*
5152rmdir out
5153cd ..
5154rmdir conftest
5155$rm -r conftest 2>/dev/null
5156
5157fi
5158
5159compiler_c_o=$lt_cv_compiler_c_o
5160echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5161echo "${ECHO_T}$compiler_c_o" >&6
5162
5163if test x"$compiler_c_o" = x"yes"; then
5164  # Check to see if we can write to a .lo
5165  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5166echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5167  if test "${lt_cv_compiler_o_lo+set}" = set; then
5168  echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170
5171  lt_cv_compiler_o_lo=no
5172  save_CFLAGS="$CFLAGS"
5173  CFLAGS="$CFLAGS -c -o conftest.lo"
5174  save_objext="$ac_objext"
5175  ac_objext=lo
5176  cat >conftest.$ac_ext <<_ACEOF
5177#line $LINENO "configure"
5178/* confdefs.h.  */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h.  */
5183
5184int
5185main ()
5186{
5187int some_variable = 0;
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192rm -f conftest.$ac_objext
5193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194  (eval $ac_compile) 2>&5
5195  ac_status=$?
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } &&
5198         { ac_try='test -s conftest.$ac_objext'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; }; then
5204      # The compiler can only warn and ignore the option if not recognized
5205    # So say no if there are warnings
5206    if test -s conftest.err; then
5207      lt_cv_compiler_o_lo=no
5208    else
5209      lt_cv_compiler_o_lo=yes
5210    fi
5211
5212else
5213  echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216fi
5217rm -f conftest.$ac_objext conftest.$ac_ext
5218  ac_objext="$save_objext"
5219  CFLAGS="$save_CFLAGS"
5220
5221fi
5222
5223  compiler_o_lo=$lt_cv_compiler_o_lo
5224  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5225echo "${ECHO_T}$compiler_o_lo" >&6
5226else
5227  compiler_o_lo=no
5228fi
5229
5230# Check to see if we can do hard links to lock some files if needed
5231hard_links="nottested"
5232if test "$compiler_c_o" = no && test "$need_locks" != no; then
5233  # do not overwrite the value of need_locks provided by the user
5234  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5235echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5236  hard_links=yes
5237  $rm conftest*
5238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5239  touch conftest.a
5240  ln conftest.a conftest.b 2>&5 || hard_links=no
5241  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5242  echo "$as_me:$LINENO: result: $hard_links" >&5
5243echo "${ECHO_T}$hard_links" >&6
5244  if test "$hard_links" = no; then
5245    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5246echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5247    need_locks=warn
5248  fi
5249else
5250  need_locks=no
5251fi
5252
5253if test "$GCC" = yes; then
5254  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5255  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5256echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5257  echo "int some_variable = 0;" > conftest.$ac_ext
5258  save_CFLAGS="$CFLAGS"
5259  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5260  compiler_rtti_exceptions=no
5261  cat >conftest.$ac_ext <<_ACEOF
5262#line $LINENO "configure"
5263/* confdefs.h.  */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h.  */
5268
5269int
5270main ()
5271{
5272int some_variable = 0;
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277rm -f conftest.$ac_objext
5278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5279  (eval $ac_compile) 2>&5
5280  ac_status=$?
5281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282  (exit $ac_status); } &&
5283         { ac_try='test -s conftest.$ac_objext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289      # The compiler can only warn and ignore the option if not recognized
5290    # So say no if there are warnings
5291    if test -s conftest.err; then
5292      compiler_rtti_exceptions=no
5293    else
5294      compiler_rtti_exceptions=yes
5295    fi
5296
5297else
5298  echo "$as_me: failed program was:" >&5
5299sed 's/^/| /' conftest.$ac_ext >&5
5300
5301fi
5302rm -f conftest.$ac_objext conftest.$ac_ext
5303  CFLAGS="$save_CFLAGS"
5304  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5305echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5306
5307  if test "$compiler_rtti_exceptions" = "yes"; then
5308    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5309  else
5310    no_builtin_flag=' -fno-builtin'
5311  fi
5312fi
5313
5314# See if the linker supports building shared libraries.
5315echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5316echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5317
5318allow_undefined_flag=
5319no_undefined_flag=
5320need_lib_prefix=unknown
5321need_version=unknown
5322# when you set need_version to no, make sure it does not cause -set_version
5323# flags to be left without arguments
5324archive_cmds=
5325archive_expsym_cmds=
5326old_archive_from_new_cmds=
5327old_archive_from_expsyms_cmds=
5328export_dynamic_flag_spec=
5329whole_archive_flag_spec=
5330thread_safe_flag_spec=
5331hardcode_into_libs=no
5332hardcode_libdir_flag_spec=
5333hardcode_libdir_separator=
5334hardcode_direct=no
5335hardcode_minus_L=no
5336hardcode_shlibpath_var=unsupported
5337runpath_var=
5338link_all_deplibs=unknown
5339always_export_symbols=no
5340export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5341# include_expsyms should be a list of space-separated symbols to be *always*
5342# included in the symbol list
5343include_expsyms=
5344# exclude_expsyms can be an egrep regular expression of symbols to exclude
5345# it will be wrapped by ` (' and `)$', so one must not match beginning or
5346# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5347# as well as any symbol that contains `d'.
5348exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5349# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5350# platforms (ab)use it in PIC code, but their linkers get confused if
5351# the symbol is explicitly referenced.  Since portable code cannot
5352# rely on this symbol name, it's probably fine to never include it in
5353# preloaded symbol tables.
5354extract_expsyms_cmds=
5355
5356case $host_os in
5357cygwin* | mingw* | pw32*)
5358  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5359  # When not using gcc, we currently assume that we are using
5360  # Microsoft Visual C++.
5361  if test "$GCC" != yes; then
5362    with_gnu_ld=no
5363  fi
5364  ;;
5365openbsd*)
5366  with_gnu_ld=no
5367  ;;
5368esac
5369
5370ld_shlibs=yes
5371if test "$with_gnu_ld" = yes; then
5372  # If archive_cmds runs LD, not CC, wlarc should be empty
5373  wlarc='${wl}'
5374
5375  # See if GNU ld supports shared libraries.
5376  case $host_os in
5377  aix3* | aix4* | aix5*)
5378    # On AIX, the GNU linker is very broken
5379    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5380    ld_shlibs=no
5381    cat <<EOF 1>&2
5382
5383*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5384*** to be unable to reliably create shared libraries on AIX.
5385*** Therefore, libtool is disabling shared libraries support.  If you
5386*** really care for shared libraries, you may want to modify your PATH
5387*** so that a non-GNU linker is found, and then restart.
5388
5389EOF
5390    ;;
5391
5392  amigaos*)
5393    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)'
5394    hardcode_libdir_flag_spec='-L$libdir'
5395    hardcode_minus_L=yes
5396
5397    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5398    # that the semantics of dynamic libraries on AmigaOS, at least up
5399    # to version 4, is to share data among multiple programs linked
5400    # with the same dynamic library.  Since this doesn't match the
5401    # behavior of shared libraries on other platforms, we can use
5402    # them.
5403    ld_shlibs=no
5404    ;;
5405
5406  beos*)
5407    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5408      allow_undefined_flag=unsupported
5409      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5410      # support --undefined.  This deserves some investigation.  FIXME
5411      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5412    else
5413      ld_shlibs=no
5414    fi
5415    ;;
5416
5417  cygwin* | mingw* | pw32*)
5418    # hardcode_libdir_flag_spec is actually meaningless, as there is
5419    # no search path for DLLs.
5420    hardcode_libdir_flag_spec='-L$libdir'
5421    allow_undefined_flag=unsupported
5422    always_export_symbols=yes
5423
5424    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5425      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5426      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5427      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5428      else $CC -o impgen impgen.c ; fi)~
5429      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5430
5431    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5432
5433    # cygwin and mingw dlls have different entry points and sets of symbols
5434    # to exclude.
5435    # FIXME: what about values for MSVC?
5436    dll_entry=__cygwin_dll_entry@12
5437    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5438    case $host_os in
5439    mingw*)
5440      # mingw values
5441      dll_entry=_DllMainCRTStartup@12
5442      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5443      ;;
5444    esac
5445
5446    # mingw and cygwin differ, and it's simplest to just exclude the union
5447    # of the two symbol sets.
5448    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5449
5450    # recent cygwin and mingw systems supply a stub DllMain which the user
5451    # can override, but on older systems we have to supply one (in ltdll.c)
5452    if test "x$lt_cv_need_dllmain" = "xyes"; then
5453      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5454      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5455	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5456    else
5457      ltdll_obj=
5458      ltdll_cmds=
5459    fi
5460
5461    # Extract the symbol export list from an `--export-all' def file,
5462    # then regenerate the def file from the symbol export list, so that
5463    # the compiled dll only exports the symbol export list.
5464    # Be careful not to strip the DATA tag left be newer dlltools.
5465    export_symbols_cmds="$ltdll_cmds"'
5466      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5467      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5468
5469    # If the export-symbols file already is a .def file (1st line
5470    # is EXPORTS), use it as is.
5471    # If DATA tags from a recent dlltool are present, honour them!
5472    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5473	cp $export_symbols $output_objdir/$soname-def;
5474      else
5475	echo EXPORTS > $output_objdir/$soname-def;
5476	_lt_hint=1;
5477	cat $export_symbols | while read symbol; do
5478	 set dummy \$symbol;
5479	 case \$# in
5480	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5481	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5482	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5483	 esac;
5484	 _lt_hint=`expr 1 + \$_lt_hint`;
5485	done;
5486      fi~
5487      '"$ltdll_cmds"'
5488      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5489      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5490      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5491      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5492      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5493    ;;
5494
5495  netbsd*)
5496    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5497      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5498      wlarc=
5499    else
5500      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5501      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5502    fi
5503    ;;
5504
5505  solaris* | sysv5*)
5506    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5507      ld_shlibs=no
5508      cat <<EOF 1>&2
5509
5510*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5511*** create shared libraries on Solaris systems.  Therefore, libtool
5512*** is disabling shared libraries support.  We urge you to upgrade GNU
5513*** binutils to release 2.9.1 or newer.  Another option is to modify
5514*** your PATH or compiler configuration so that the native linker is
5515*** used, and then restart.
5516
5517EOF
5518    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5519      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5520      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5521    else
5522      ld_shlibs=no
5523    fi
5524    ;;
5525
5526  sunos4*)
5527    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5528    wlarc=
5529    hardcode_direct=yes
5530    hardcode_shlibpath_var=no
5531    ;;
5532
5533  *)
5534    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5535      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5537    else
5538      ld_shlibs=no
5539    fi
5540    ;;
5541  esac
5542
5543  if test "$ld_shlibs" = yes; then
5544    runpath_var=LD_RUN_PATH
5545    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5546    export_dynamic_flag_spec='${wl}--export-dynamic'
5547    case $host_os in
5548    cygwin* | mingw* | pw32*)
5549      # dlltool doesn't understand --whole-archive et. al.
5550      whole_archive_flag_spec=
5551      ;;
5552    *)
5553      # ancient GNU ld didn't support --whole-archive et. al.
5554      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5555	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5556      else
5557	whole_archive_flag_spec=
5558      fi
5559      ;;
5560    esac
5561  fi
5562else
5563  # PORTME fill in a description of your system's linker (not GNU ld)
5564  case $host_os in
5565  aix3*)
5566    allow_undefined_flag=unsupported
5567    always_export_symbols=yes
5568    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'
5569    # Note: this linker hardcodes the directories in LIBPATH if there
5570    # are no directories specified by -L.
5571    hardcode_minus_L=yes
5572    if test "$GCC" = yes && test -z "$link_static_flag"; then
5573      # Neither direct hardcoding nor static linking is supported with a
5574      # broken collect2.
5575      hardcode_direct=unsupported
5576    fi
5577    ;;
5578
5579  aix4* | aix5*)
5580    if test "$host_cpu" = ia64; then
5581      # On IA64, the linker does run time linking by default, so we don't
5582      # have to do anything special.
5583      aix_use_runtimelinking=no
5584      exp_sym_flag='-Bexport'
5585      no_entry_flag=""
5586    else
5587      aix_use_runtimelinking=no
5588
5589      # Test if we are trying to use run time linking or normal
5590      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5591      # need to do runtime linking.
5592      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5593	for ld_flag in $LDFLAGS; do
5594	  case $ld_flag in
5595	  *-brtl*)
5596	    aix_use_runtimelinking=yes
5597	    break
5598	  ;;
5599	  esac
5600	done
5601      esac
5602
5603      exp_sym_flag='-bexport'
5604      no_entry_flag='-bnoentry'
5605    fi
5606
5607    # When large executables or shared objects are built, AIX ld can
5608    # have problems creating the table of contents.  If linking a library
5609    # or program results in "error TOC overflow" add -mminimal-toc to
5610    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5611    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5612
5613    hardcode_direct=yes
5614    archive_cmds=''
5615    hardcode_libdir_separator=':'
5616    if test "$GCC" = yes; then
5617      case $host_os in aix4.[012]|aix4.[012].*)
5618	collect2name=`${CC} -print-prog-name=collect2`
5619	if test -f "$collect2name" && \
5620	  strings "$collect2name" | grep resolve_lib_name >/dev/null
5621	then
5622	  # We have reworked collect2
5623	  hardcode_direct=yes
5624	else
5625	  # We have old collect2
5626	  hardcode_direct=unsupported
5627	  # It fails to find uninstalled libraries when the uninstalled
5628	  # path is not listed in the libpath.  Setting hardcode_minus_L
5629	  # to unsupported forces relinking
5630	  hardcode_minus_L=yes
5631	  hardcode_libdir_flag_spec='-L$libdir'
5632	  hardcode_libdir_separator=
5633	fi
5634      esac
5635
5636      shared_flag='-shared'
5637    else
5638      # not using gcc
5639      if test "$host_cpu" = ia64; then
5640	shared_flag='${wl}-G'
5641      else
5642	if test "$aix_use_runtimelinking" = yes; then
5643	  shared_flag='${wl}-G'
5644	else
5645	  shared_flag='${wl}-bM:SRE'
5646	fi
5647      fi
5648    fi
5649
5650    # It seems that -bexpall can do strange things, so it is better to
5651    # generate a list of symbols to export.
5652    always_export_symbols=yes
5653    if test "$aix_use_runtimelinking" = yes; then
5654      # Warning - without using the other runtime loading flags (-brtl),
5655      # -berok will link without error, but may produce a broken library.
5656      allow_undefined_flag='-berok'
5657      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5658      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5659    else
5660      if test "$host_cpu" = ia64; then
5661	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5662	allow_undefined_flag="-z nodefs"
5663	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5664      else
5665	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5666	# Warning - without using the other run time loading flags,
5667	# -berok will link without error, but may produce a broken library.
5668	allow_undefined_flag='${wl}-berok'
5669	# This is a bit strange, but is similar to how AIX traditionally builds
5670	# it's shared libraries.
5671	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
5672      fi
5673    fi
5674    ;;
5675
5676  amigaos*)
5677    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)'
5678    hardcode_libdir_flag_spec='-L$libdir'
5679    hardcode_minus_L=yes
5680    # see comment about different semantics on the GNU ld section
5681    ld_shlibs=no
5682    ;;
5683
5684  cygwin* | mingw* | pw32*)
5685    # When not using gcc, we currently assume that we are using
5686    # Microsoft Visual C++.
5687    # hardcode_libdir_flag_spec is actually meaningless, as there is
5688    # no search path for DLLs.
5689    hardcode_libdir_flag_spec=' '
5690    allow_undefined_flag=unsupported
5691    # Tell ltmain to make .lib files, not .a files.
5692    libext=lib
5693    # FIXME: Setting linknames here is a bad hack.
5694    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5695    # The linker will automatically build a .lib file if we build a DLL.
5696    old_archive_from_new_cmds='true'
5697    # FIXME: Should let the user specify the lib program.
5698    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5699    fix_srcfile_path='`cygpath -w "$srcfile"`'
5700    ;;
5701
5702  darwin* | rhapsody*)
5703    case "$host_os" in
5704    rhapsody* | darwin1.[012])
5705      allow_undefined_flag='-undefined suppress'
5706      ;;
5707    *) # Darwin 1.3 on
5708      allow_undefined_flag='-flat_namespace -undefined suppress'
5709      ;;
5710    esac
5711    # FIXME: Relying on posixy $() will cause problems for
5712    #        cross-compilation, but unfortunately the echo tests do not
5713    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5714    #	     `"' quotes if we put them in here... so don't!
5715    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5716    # We need to add '_' to the symbols in $export_symbols first
5717    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5718    hardcode_direct=yes
5719    hardcode_shlibpath_var=no
5720    whole_archive_flag_spec='-all_load $convenience'
5721    ;;
5722
5723  freebsd1*)
5724    ld_shlibs=no
5725    ;;
5726
5727  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5728  # support.  Future versions do this automatically, but an explicit c++rt0.o
5729  # does not break anything, and helps significantly (at the cost of a little
5730  # extra space).
5731  freebsd2.2*)
5732    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5733    hardcode_libdir_flag_spec='-R$libdir'
5734    hardcode_direct=yes
5735    hardcode_shlibpath_var=no
5736    ;;
5737
5738  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5739  freebsd2*)
5740    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5741    hardcode_direct=yes
5742    hardcode_minus_L=yes
5743    hardcode_shlibpath_var=no
5744    ;;
5745
5746  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5747  freebsd*)
5748    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5749    hardcode_libdir_flag_spec='-R$libdir'
5750    hardcode_direct=yes
5751    hardcode_shlibpath_var=no
5752    ;;
5753
5754  hpux9* | hpux10* | hpux11*)
5755    case $host_os in
5756    hpux9*) 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' ;;
5757    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5758    esac
5759    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5760    hardcode_libdir_separator=:
5761    hardcode_direct=yes
5762    hardcode_minus_L=yes # Not in the search PATH, but as the default
5763			 # location of the library.
5764    export_dynamic_flag_spec='${wl}-E'
5765    ;;
5766
5767  irix5* | irix6* | nonstopux*)
5768    if test "$GCC" = yes; then
5769      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5770      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5771    else
5772      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5773      hardcode_libdir_flag_spec='-rpath $libdir'
5774    fi
5775    hardcode_libdir_separator=:
5776    link_all_deplibs=yes
5777    ;;
5778
5779  netbsd*)
5780    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5781      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5782    else
5783      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5784    fi
5785    hardcode_libdir_flag_spec='-R$libdir'
5786    hardcode_direct=yes
5787    hardcode_shlibpath_var=no
5788    ;;
5789
5790  newsos6)
5791    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5792    hardcode_direct=yes
5793    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5794    hardcode_libdir_separator=:
5795    hardcode_shlibpath_var=no
5796    ;;
5797
5798  openbsd*)
5799    hardcode_direct=yes
5800    hardcode_shlibpath_var=no
5801    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5803      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5804      export_dynamic_flag_spec='${wl}-E'
5805    else
5806      case "$host_os" in
5807      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5808	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5809	hardcode_libdir_flag_spec='-R$libdir'
5810        ;;
5811      *)
5812        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5813        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5814        ;;
5815      esac
5816    fi
5817    ;;
5818
5819  os2*)
5820    hardcode_libdir_flag_spec='-L$libdir'
5821    hardcode_minus_L=yes
5822    allow_undefined_flag=unsupported
5823    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'
5824    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5825    ;;
5826
5827  osf3*)
5828    if test "$GCC" = yes; then
5829      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5830      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5831    else
5832      allow_undefined_flag=' -expect_unresolved \*'
5833      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5834    fi
5835    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5836    hardcode_libdir_separator=:
5837    ;;
5838
5839  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5840    if test "$GCC" = yes; then
5841      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5842      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5843      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5844    else
5845      allow_undefined_flag=' -expect_unresolved \*'
5846      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5847      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5848      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5849
5850      #Both c and cxx compiler support -rpath directly
5851      hardcode_libdir_flag_spec='-rpath $libdir'
5852    fi
5853    hardcode_libdir_separator=:
5854    ;;
5855
5856  sco3.2v5*)
5857    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5858    hardcode_shlibpath_var=no
5859    runpath_var=LD_RUN_PATH
5860    hardcode_runpath_var=yes
5861    export_dynamic_flag_spec='${wl}-Bexport'
5862    ;;
5863
5864  solaris*)
5865    # gcc --version < 3.0 without binutils cannot create self contained
5866    # shared libraries reliably, requiring libgcc.a to resolve some of
5867    # the object symbols generated in some cases.  Libraries that use
5868    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5869    # a copy of libgcc.a into every shared library to guarantee resolving
5870    # such symbols causes other problems:  According to Tim Van Holder
5871    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5872    # (to the application) exception stack for one thing.
5873    no_undefined_flag=' -z defs'
5874    if test "$GCC" = yes; then
5875      case `$CC --version 2>/dev/null` in
5876      [12].*)
5877	cat <<EOF 1>&2
5878
5879*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5880*** create self contained shared libraries on Solaris systems, without
5881*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5882*** -no-undefined support, which will at least allow you to build shared
5883*** libraries.  However, you may find that when you link such libraries
5884*** into an application without using GCC, you have to manually add
5885*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5886*** upgrade to a newer version of GCC.  Another option is to rebuild your
5887*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5888
5889EOF
5890        no_undefined_flag=
5891	;;
5892      esac
5893    fi
5894    # $CC -shared without GNU ld will not create a library from C++
5895    # object files and a static libstdc++, better avoid it by now
5896    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5897    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5898		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5899    hardcode_libdir_flag_spec='-R$libdir'
5900    hardcode_shlibpath_var=no
5901    case $host_os in
5902    solaris2.[0-5] | solaris2.[0-5].*) ;;
5903    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5904      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5905    esac
5906    link_all_deplibs=yes
5907    ;;
5908
5909  sunos4*)
5910    if test "x$host_vendor" = xsequent; then
5911      # Use $CC to link under sequent, because it throws in some extra .o
5912      # files that make .init and .fini sections work.
5913      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5914    else
5915      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5916    fi
5917    hardcode_libdir_flag_spec='-L$libdir'
5918    hardcode_direct=yes
5919    hardcode_minus_L=yes
5920    hardcode_shlibpath_var=no
5921    ;;
5922
5923  sysv4)
5924    case $host_vendor in
5925      sni)
5926        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5927        hardcode_direct=yes # is this really true???
5928        ;;
5929      siemens)
5930        ## LD is ld it makes a PLAMLIB
5931        ## CC just makes a GrossModule.
5932        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5933        reload_cmds='$CC -r -o $output$reload_objs'
5934        hardcode_direct=no
5935        ;;
5936      motorola)
5937        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5938        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5939        ;;
5940    esac
5941    runpath_var='LD_RUN_PATH'
5942    hardcode_shlibpath_var=no
5943    ;;
5944
5945  sysv4.3*)
5946    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5947    hardcode_shlibpath_var=no
5948    export_dynamic_flag_spec='-Bexport'
5949    ;;
5950
5951  sysv5*)
5952    no_undefined_flag=' -z text'
5953    # $CC -shared without GNU ld will not create a library from C++
5954    # object files and a static libstdc++, better avoid it by now
5955    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5956    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5957		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5958    hardcode_libdir_flag_spec=
5959    hardcode_shlibpath_var=no
5960    runpath_var='LD_RUN_PATH'
5961    ;;
5962
5963  uts4*)
5964    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965    hardcode_libdir_flag_spec='-L$libdir'
5966    hardcode_shlibpath_var=no
5967    ;;
5968
5969  dgux*)
5970    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5971    hardcode_libdir_flag_spec='-L$libdir'
5972    hardcode_shlibpath_var=no
5973    ;;
5974
5975  sysv4*MP*)
5976    if test -d /usr/nec; then
5977      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978      hardcode_shlibpath_var=no
5979      runpath_var=LD_RUN_PATH
5980      hardcode_runpath_var=yes
5981      ld_shlibs=yes
5982    fi
5983    ;;
5984
5985  sysv4.2uw2*)
5986    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5987    hardcode_direct=yes
5988    hardcode_minus_L=no
5989    hardcode_shlibpath_var=no
5990    hardcode_runpath_var=yes
5991    runpath_var=LD_RUN_PATH
5992    ;;
5993
5994  sysv5uw7* | unixware7*)
5995    no_undefined_flag='${wl}-z ${wl}text'
5996    if test "$GCC" = yes; then
5997      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5998    else
5999      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6000    fi
6001    runpath_var='LD_RUN_PATH'
6002    hardcode_shlibpath_var=no
6003    ;;
6004
6005  *)
6006    ld_shlibs=no
6007    ;;
6008  esac
6009fi
6010echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6011echo "${ECHO_T}$ld_shlibs" >&6
6012test "$ld_shlibs" = no && can_build_shared=no
6013
6014# Check hardcoding attributes.
6015echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6016echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6017hardcode_action=
6018if test -n "$hardcode_libdir_flag_spec" || \
6019   test -n "$runpath_var"; then
6020
6021  # We can hardcode non-existant directories.
6022  if test "$hardcode_direct" != no &&
6023     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6024     # have to relink, otherwise we might link with an installed library
6025     # when we should be linking with a yet-to-be-installed one
6026     ## test "$hardcode_shlibpath_var" != no &&
6027     test "$hardcode_minus_L" != no; then
6028    # Linking always hardcodes the temporary library directory.
6029    hardcode_action=relink
6030  else
6031    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6032    hardcode_action=immediate
6033  fi
6034else
6035  # We cannot hardcode anything, or else we can only hardcode existing
6036  # directories.
6037  hardcode_action=unsupported
6038fi
6039echo "$as_me:$LINENO: result: $hardcode_action" >&5
6040echo "${ECHO_T}$hardcode_action" >&6
6041
6042striplib=
6043old_striplib=
6044echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6045echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6046if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6047  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6048  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6049  echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051else
6052  echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054fi
6055
6056reload_cmds='$LD$reload_flag -o $output$reload_objs'
6057test -z "$deplibs_check_method" && deplibs_check_method=unknown
6058
6059# PORTME Fill in your ld.so characteristics
6060echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6061echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6062library_names_spec=
6063libname_spec='lib$name'
6064soname_spec=
6065postinstall_cmds=
6066postuninstall_cmds=
6067finish_cmds=
6068finish_eval=
6069shlibpath_var=
6070shlibpath_overrides_runpath=unknown
6071version_type=none
6072dynamic_linker="$host_os ld.so"
6073sys_lib_dlsearch_path_spec="/lib /usr/lib"
6074sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6075
6076case $host_os in
6077aix3*)
6078  version_type=linux
6079  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6080  shlibpath_var=LIBPATH
6081
6082  # AIX has no versioning support, so we append a major version to the name.
6083  soname_spec='${libname}${release}.so$major'
6084  ;;
6085
6086aix4* | aix5*)
6087  version_type=linux
6088  need_lib_prefix=no
6089  need_version=no
6090  hardcode_into_libs=yes
6091  if test "$host_cpu" = ia64; then
6092    # AIX 5 supports IA64
6093    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6094    shlibpath_var=LD_LIBRARY_PATH
6095  else
6096    # With GCC up to 2.95.x, collect2 would create an import file
6097    # for dependence libraries.  The import file would start with
6098    # the line `#! .'.  This would cause the generated library to
6099    # depend on `.', always an invalid library.  This was fixed in
6100    # development snapshots of GCC prior to 3.0.
6101    case $host_os in
6102      aix4 | aix4.[01] | aix4.[01].*)
6103	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6104	     echo ' yes '
6105	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6106	  :
6107	else
6108	  can_build_shared=no
6109	fi
6110	;;
6111    esac
6112    # AIX (on Power*) has no versioning support, so currently we can
6113    # not hardcode correct soname into executable. Probably we can
6114    # add versioning support to collect2, so additional links can
6115    # be useful in future.
6116    if test "$aix_use_runtimelinking" = yes; then
6117      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6118      # instead of lib<name>.a to let people know that these are not
6119      # typical AIX shared libraries.
6120      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6121    else
6122      # We preserve .a as extension for shared libraries through AIX4.2
6123      # and later when we are not doing run time linking.
6124      library_names_spec='${libname}${release}.a $libname.a'
6125      soname_spec='${libname}${release}.so$major'
6126    fi
6127    shlibpath_var=LIBPATH
6128  fi
6129  hardcode_into_libs=yes
6130  ;;
6131
6132amigaos*)
6133  library_names_spec='$libname.ixlibrary $libname.a'
6134  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6135  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'
6136  ;;
6137
6138beos*)
6139  library_names_spec='${libname}.so'
6140  dynamic_linker="$host_os ld.so"
6141  shlibpath_var=LIBRARY_PATH
6142  ;;
6143
6144bsdi4*)
6145  version_type=linux
6146  need_version=no
6147  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6148  soname_spec='${libname}${release}.so$major'
6149  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6150  shlibpath_var=LD_LIBRARY_PATH
6151  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6152  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6153  export_dynamic_flag_spec=-rdynamic
6154  # the default ld.so.conf also contains /usr/contrib/lib and
6155  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6156  # libtool to hard-code these into programs
6157  ;;
6158
6159cygwin* | mingw* | pw32*)
6160  version_type=windows
6161  need_version=no
6162  need_lib_prefix=no
6163  case $GCC,$host_os in
6164  yes,cygwin*)
6165    library_names_spec='$libname.dll.a'
6166    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6167    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6168      dldir=$destdir/`dirname \$dlpath`~
6169      test -d \$dldir || mkdir -p \$dldir~
6170      $install_prog .libs/$dlname \$dldir/$dlname'
6171    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6172      dlpath=$dir/\$dldll~
6173       $rm \$dlpath'
6174    ;;
6175  yes,mingw*)
6176    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6177    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6178    ;;
6179  yes,pw32*)
6180    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6181    ;;
6182  *)
6183    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6184    ;;
6185  esac
6186  dynamic_linker='Win32 ld.exe'
6187  # FIXME: first we should search . and the directory the executable is in
6188  shlibpath_var=PATH
6189  ;;
6190
6191darwin* | rhapsody*)
6192  dynamic_linker="$host_os dyld"
6193  version_type=darwin
6194  need_lib_prefix=no
6195  need_version=no
6196  # FIXME: Relying on posixy $() will cause problems for
6197  #        cross-compilation, but unfortunately the echo tests do not
6198  #        yet detect zsh echo's removal of \ escapes.
6199  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6200  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6201  shlibpath_overrides_runpath=yes
6202  shlibpath_var=DYLD_LIBRARY_PATH
6203  ;;
6204
6205freebsd1*)
6206  dynamic_linker=no
6207  ;;
6208
6209freebsd*-gnu*)
6210  version_type=linux
6211  need_lib_prefix=no
6212  need_version=no
6213  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6214  soname_spec='${libname}${release}.so$major'
6215  shlibpath_var=LD_LIBRARY_PATH
6216  shlibpath_overrides_runpath=no
6217  hardcode_into_libs=yes
6218  dynamic_linker='GNU/FreeBSD ld.so'
6219  ;;
6220
6221freebsd*)
6222  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6223  version_type=freebsd-$objformat
6224  case $version_type in
6225    freebsd-elf*)
6226      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6227      need_version=no
6228      need_lib_prefix=no
6229      ;;
6230    freebsd-*)
6231      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6232      need_version=yes
6233      ;;
6234  esac
6235  shlibpath_var=LD_LIBRARY_PATH
6236  case $host_os in
6237  freebsd2*)
6238    shlibpath_overrides_runpath=yes
6239    ;;
6240  *)
6241    shlibpath_overrides_runpath=no
6242    hardcode_into_libs=yes
6243    ;;
6244  esac
6245  ;;
6246
6247gnu*)
6248  version_type=linux
6249  need_lib_prefix=no
6250  need_version=no
6251  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6252  soname_spec='${libname}${release}.so$major'
6253  shlibpath_var=LD_LIBRARY_PATH
6254  hardcode_into_libs=yes
6255  ;;
6256
6257hpux9* | hpux10* | hpux11*)
6258  # Give a soname corresponding to the major version so that dld.sl refuses to
6259  # link against other versions.
6260  dynamic_linker="$host_os dld.sl"
6261  version_type=sunos
6262  need_lib_prefix=no
6263  need_version=no
6264  shlibpath_var=SHLIB_PATH
6265  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6266  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6267  soname_spec='${libname}${release}.sl$major'
6268  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6269  postinstall_cmds='chmod 555 $lib'
6270  ;;
6271
6272irix5* | irix6* | nonstopux*)
6273  case $host_os in
6274    nonstopux*) version_type=nonstopux ;;
6275    *)          version_type=irix ;;
6276  esac
6277  need_lib_prefix=no
6278  need_version=no
6279  soname_spec='${libname}${release}.so$major'
6280  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6281  case $host_os in
6282  irix5* | nonstopux*)
6283    libsuff= shlibsuff=
6284    ;;
6285  *)
6286    case $LD in # libtool.m4 will add one of these switches to LD
6287    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6288    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6289    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6290    *) libsuff= shlibsuff= libmagic=never-match;;
6291    esac
6292    ;;
6293  esac
6294  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6295  shlibpath_overrides_runpath=no
6296  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6297  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6298  ;;
6299
6300# No shared lib support for Linux oldld, aout, or coff.
6301linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6302  dynamic_linker=no
6303  ;;
6304
6305# This must be Linux ELF.
6306linux-gnu*)
6307  version_type=linux
6308  need_lib_prefix=no
6309  need_version=no
6310  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6311  soname_spec='${libname}${release}.so$major'
6312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6313  shlibpath_var=LD_LIBRARY_PATH
6314  shlibpath_overrides_runpath=no
6315  # This implies no fast_install, which is unacceptable.
6316  # Some rework will be needed to allow for fast_install
6317  # before this can be enabled.
6318  hardcode_into_libs=yes
6319
6320  # We used to test for /lib/ld.so.1 and disable shared libraries on
6321  # powerpc, because MkLinux only supported shared libraries with the
6322  # GNU dynamic linker.  Since this was broken with cross compilers,
6323  # most powerpc-linux boxes support dynamic linking these days and
6324  # people can always --disable-shared, the test was removed, and we
6325  # assume the GNU/Linux dynamic linker is in use.
6326  dynamic_linker='GNU/Linux ld.so'
6327  ;;
6328
6329netbsd*)
6330  version_type=sunos
6331  need_lib_prefix=no
6332  need_version=no
6333  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6334    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6335    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6336    dynamic_linker='NetBSD (a.out) ld.so'
6337  else
6338    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6339    soname_spec='${libname}${release}.so$major'
6340    dynamic_linker='NetBSD ld.elf_so'
6341  fi
6342  shlibpath_var=LD_LIBRARY_PATH
6343  shlibpath_overrides_runpath=yes
6344  hardcode_into_libs=yes
6345  ;;
6346
6347newsos6)
6348  version_type=linux
6349  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6350  shlibpath_var=LD_LIBRARY_PATH
6351  shlibpath_overrides_runpath=yes
6352  ;;
6353
6354openbsd*)
6355  version_type=sunos
6356  need_lib_prefix=no
6357  need_version=no
6358  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6359    case "$host_os" in
6360    openbsd2.[89] | openbsd2.[89].*)
6361      shlibpath_overrides_runpath=no
6362      ;;
6363    *)
6364      shlibpath_overrides_runpath=yes
6365      ;;
6366    esac
6367  else
6368    shlibpath_overrides_runpath=yes
6369  fi
6370  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6371  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372  shlibpath_var=LD_LIBRARY_PATH
6373  ;;
6374
6375os2*)
6376  libname_spec='$name'
6377  need_lib_prefix=no
6378  library_names_spec='$libname.dll $libname.a'
6379  dynamic_linker='OS/2 ld.exe'
6380  shlibpath_var=LIBPATH
6381  ;;
6382
6383osf3* | osf4* | osf5*)
6384  version_type=osf
6385  need_version=no
6386  need_lib_prefix=no
6387  soname_spec='${libname}${release}.so$major'
6388  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6389  shlibpath_var=LD_LIBRARY_PATH
6390  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6391  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6392  hardcode_into_libs=yes
6393  ;;
6394
6395sco3.2v5*)
6396  version_type=osf
6397  soname_spec='${libname}${release}.so$major'
6398  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6399  shlibpath_var=LD_LIBRARY_PATH
6400  ;;
6401
6402solaris*)
6403  version_type=linux
6404  need_lib_prefix=no
6405  need_version=no
6406  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6407  soname_spec='${libname}${release}.so$major'
6408  shlibpath_var=LD_LIBRARY_PATH
6409  shlibpath_overrides_runpath=yes
6410  hardcode_into_libs=yes
6411  # ldd complains unless libraries are executable
6412  postinstall_cmds='chmod +x $lib'
6413  ;;
6414
6415sunos4*)
6416  version_type=sunos
6417  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6418  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6419  shlibpath_var=LD_LIBRARY_PATH
6420  shlibpath_overrides_runpath=yes
6421  if test "$with_gnu_ld" = yes; then
6422    need_lib_prefix=no
6423  fi
6424  need_version=yes
6425  ;;
6426
6427sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6428  version_type=linux
6429  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6430  soname_spec='${libname}${release}.so$major'
6431  shlibpath_var=LD_LIBRARY_PATH
6432  case $host_vendor in
6433    sni)
6434      shlibpath_overrides_runpath=no
6435      need_lib_prefix=no
6436      export_dynamic_flag_spec='${wl}-Blargedynsym'
6437      runpath_var=LD_RUN_PATH
6438      ;;
6439    siemens)
6440      need_lib_prefix=no
6441      ;;
6442    motorola)
6443      need_lib_prefix=no
6444      need_version=no
6445      shlibpath_overrides_runpath=no
6446      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6447      ;;
6448  esac
6449  ;;
6450
6451uts4*)
6452  version_type=linux
6453  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6454  soname_spec='${libname}${release}.so$major'
6455  shlibpath_var=LD_LIBRARY_PATH
6456  ;;
6457
6458dgux*)
6459  version_type=linux
6460  need_lib_prefix=no
6461  need_version=no
6462  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6463  soname_spec='${libname}${release}.so$major'
6464  shlibpath_var=LD_LIBRARY_PATH
6465  ;;
6466
6467sysv4*MP*)
6468  if test -d /usr/nec ;then
6469    version_type=linux
6470    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6471    soname_spec='$libname.so.$major'
6472    shlibpath_var=LD_LIBRARY_PATH
6473  fi
6474  ;;
6475
6476*)
6477  dynamic_linker=no
6478  ;;
6479esac
6480echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6481echo "${ECHO_T}$dynamic_linker" >&6
6482test "$dynamic_linker" = no && can_build_shared=no
6483
6484# Report the final consequences.
6485echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6486echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6487echo "$as_me:$LINENO: result: $can_build_shared" >&5
6488echo "${ECHO_T}$can_build_shared" >&6
6489
6490echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6491echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6492test "$can_build_shared" = "no" && enable_shared=no
6493
6494# On AIX, shared libraries and static libraries use the same namespace, and
6495# are all built from PIC.
6496case "$host_os" in
6497aix3*)
6498  test "$enable_shared" = yes && enable_static=no
6499  if test -n "$RANLIB"; then
6500    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6501    postinstall_cmds='$RANLIB $lib'
6502  fi
6503  ;;
6504
6505aix4*)
6506  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6507    test "$enable_shared" = yes && enable_static=no
6508  fi
6509  ;;
6510esac
6511echo "$as_me:$LINENO: result: $enable_shared" >&5
6512echo "${ECHO_T}$enable_shared" >&6
6513
6514echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6515echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6516# Make sure either enable_shared or enable_static is yes.
6517test "$enable_shared" = yes || enable_static=yes
6518echo "$as_me:$LINENO: result: $enable_static" >&5
6519echo "${ECHO_T}$enable_static" >&6
6520
6521if test "$hardcode_action" = relink; then
6522  # Fast installation is not supported
6523  enable_fast_install=no
6524elif test "$shlibpath_overrides_runpath" = yes ||
6525     test "$enable_shared" = no; then
6526  # Fast installation is not necessary
6527  enable_fast_install=needless
6528fi
6529
6530variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6531if test "$GCC" = yes; then
6532  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6533fi
6534
6535if test "x$enable_dlopen" != xyes; then
6536  enable_dlopen=unknown
6537  enable_dlopen_self=unknown
6538  enable_dlopen_self_static=unknown
6539else
6540  lt_cv_dlopen=no
6541  lt_cv_dlopen_libs=
6542
6543  case $host_os in
6544  beos*)
6545    lt_cv_dlopen="load_add_on"
6546    lt_cv_dlopen_libs=
6547    lt_cv_dlopen_self=yes
6548    ;;
6549
6550  cygwin* | mingw* | pw32*)
6551    lt_cv_dlopen="LoadLibrary"
6552    lt_cv_dlopen_libs=
6553   ;;
6554
6555  *)
6556    echo "$as_me:$LINENO: checking for shl_load" >&5
6557echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6558if test "${ac_cv_func_shl_load+set}" = set; then
6559  echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561  cat >conftest.$ac_ext <<_ACEOF
6562#line $LINENO "configure"
6563/* confdefs.h.  */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h.  */
6568/* System header to define __stub macros and hopefully few prototypes,
6569    which can conflict with char shl_load (); below.
6570    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571    <limits.h> exists even on freestanding compilers.  */
6572#ifdef __STDC__
6573# include <limits.h>
6574#else
6575# include <assert.h>
6576#endif
6577/* Override any gcc2 internal prototype to avoid an error.  */
6578#ifdef __cplusplus
6579extern "C"
6580{
6581#endif
6582/* We use char because int might match the return type of a gcc2
6583   builtin and then its argument prototype would still apply.  */
6584char shl_load ();
6585/* The GNU C library defines this for functions which it implements
6586    to always fail with ENOSYS.  Some functions are actually named
6587    something starting with __ and the normal name is an alias.  */
6588#if defined (__stub_shl_load) || defined (__stub___shl_load)
6589choke me
6590#else
6591char (*f) () = shl_load;
6592#endif
6593#ifdef __cplusplus
6594}
6595#endif
6596
6597int
6598main ()
6599{
6600return f != shl_load;
6601  ;
6602  return 0;
6603}
6604_ACEOF
6605rm -f conftest.$ac_objext conftest$ac_exeext
6606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607  (eval $ac_link) 2>&5
6608  ac_status=$?
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); } &&
6611         { ac_try='test -s conftest$ac_exeext'
6612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613  (eval $ac_try) 2>&5
6614  ac_status=$?
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); }; }; then
6617  ac_cv_func_shl_load=yes
6618else
6619  echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622ac_cv_func_shl_load=no
6623fi
6624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6625fi
6626echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6627echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6628if test $ac_cv_func_shl_load = yes; then
6629  lt_cv_dlopen="shl_load"
6630else
6631  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6632echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6633if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6634  echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636  ac_check_lib_save_LIBS=$LIBS
6637LIBS="-ldld  $LIBS"
6638cat >conftest.$ac_ext <<_ACEOF
6639#line $LINENO "configure"
6640/* confdefs.h.  */
6641_ACEOF
6642cat confdefs.h >>conftest.$ac_ext
6643cat >>conftest.$ac_ext <<_ACEOF
6644/* end confdefs.h.  */
6645
6646/* Override any gcc2 internal prototype to avoid an error.  */
6647#ifdef __cplusplus
6648extern "C"
6649#endif
6650/* We use char because int might match the return type of a gcc2
6651   builtin and then its argument prototype would still apply.  */
6652char shl_load ();
6653int
6654main ()
6655{
6656shl_load ();
6657  ;
6658  return 0;
6659}
6660_ACEOF
6661rm -f conftest.$ac_objext conftest$ac_exeext
6662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663  (eval $ac_link) 2>&5
6664  ac_status=$?
6665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666  (exit $ac_status); } &&
6667         { ac_try='test -s conftest$ac_exeext'
6668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669  (eval $ac_try) 2>&5
6670  ac_status=$?
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); }; }; then
6673  ac_cv_lib_dld_shl_load=yes
6674else
6675  echo "$as_me: failed program was:" >&5
6676sed 's/^/| /' conftest.$ac_ext >&5
6677
6678ac_cv_lib_dld_shl_load=no
6679fi
6680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6681LIBS=$ac_check_lib_save_LIBS
6682fi
6683echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6684echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6685if test $ac_cv_lib_dld_shl_load = yes; then
6686  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6687else
6688  echo "$as_me:$LINENO: checking for dlopen" >&5
6689echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6690if test "${ac_cv_func_dlopen+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693  cat >conftest.$ac_ext <<_ACEOF
6694#line $LINENO "configure"
6695/* confdefs.h.  */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h.  */
6700/* System header to define __stub macros and hopefully few prototypes,
6701    which can conflict with char dlopen (); below.
6702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703    <limits.h> exists even on freestanding compilers.  */
6704#ifdef __STDC__
6705# include <limits.h>
6706#else
6707# include <assert.h>
6708#endif
6709/* Override any gcc2 internal prototype to avoid an error.  */
6710#ifdef __cplusplus
6711extern "C"
6712{
6713#endif
6714/* We use char because int might match the return type of a gcc2
6715   builtin and then its argument prototype would still apply.  */
6716char dlopen ();
6717/* The GNU C library defines this for functions which it implements
6718    to always fail with ENOSYS.  Some functions are actually named
6719    something starting with __ and the normal name is an alias.  */
6720#if defined (__stub_dlopen) || defined (__stub___dlopen)
6721choke me
6722#else
6723char (*f) () = dlopen;
6724#endif
6725#ifdef __cplusplus
6726}
6727#endif
6728
6729int
6730main ()
6731{
6732return f != dlopen;
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737rm -f conftest.$ac_objext conftest$ac_exeext
6738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739  (eval $ac_link) 2>&5
6740  ac_status=$?
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); } &&
6743         { ac_try='test -s conftest$ac_exeext'
6744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745  (eval $ac_try) 2>&5
6746  ac_status=$?
6747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748  (exit $ac_status); }; }; then
6749  ac_cv_func_dlopen=yes
6750else
6751  echo "$as_me: failed program was:" >&5
6752sed 's/^/| /' conftest.$ac_ext >&5
6753
6754ac_cv_func_dlopen=no
6755fi
6756rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6757fi
6758echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6759echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6760if test $ac_cv_func_dlopen = yes; then
6761  lt_cv_dlopen="dlopen"
6762else
6763  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6764echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6765if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768  ac_check_lib_save_LIBS=$LIBS
6769LIBS="-ldl  $LIBS"
6770cat >conftest.$ac_ext <<_ACEOF
6771#line $LINENO "configure"
6772/* confdefs.h.  */
6773_ACEOF
6774cat confdefs.h >>conftest.$ac_ext
6775cat >>conftest.$ac_ext <<_ACEOF
6776/* end confdefs.h.  */
6777
6778/* Override any gcc2 internal prototype to avoid an error.  */
6779#ifdef __cplusplus
6780extern "C"
6781#endif
6782/* We use char because int might match the return type of a gcc2
6783   builtin and then its argument prototype would still apply.  */
6784char dlopen ();
6785int
6786main ()
6787{
6788dlopen ();
6789  ;
6790  return 0;
6791}
6792_ACEOF
6793rm -f conftest.$ac_objext conftest$ac_exeext
6794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795  (eval $ac_link) 2>&5
6796  ac_status=$?
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } &&
6799         { ac_try='test -s conftest$ac_exeext'
6800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801  (eval $ac_try) 2>&5
6802  ac_status=$?
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); }; }; then
6805  ac_cv_lib_dl_dlopen=yes
6806else
6807  echo "$as_me: failed program was:" >&5
6808sed 's/^/| /' conftest.$ac_ext >&5
6809
6810ac_cv_lib_dl_dlopen=no
6811fi
6812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6813LIBS=$ac_check_lib_save_LIBS
6814fi
6815echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6816echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6817if test $ac_cv_lib_dl_dlopen = yes; then
6818  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6819else
6820  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6821echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6822if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6823  echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825  ac_check_lib_save_LIBS=$LIBS
6826LIBS="-lsvld  $LIBS"
6827cat >conftest.$ac_ext <<_ACEOF
6828#line $LINENO "configure"
6829/* confdefs.h.  */
6830_ACEOF
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h.  */
6834
6835/* Override any gcc2 internal prototype to avoid an error.  */
6836#ifdef __cplusplus
6837extern "C"
6838#endif
6839/* We use char because int might match the return type of a gcc2
6840   builtin and then its argument prototype would still apply.  */
6841char dlopen ();
6842int
6843main ()
6844{
6845dlopen ();
6846  ;
6847  return 0;
6848}
6849_ACEOF
6850rm -f conftest.$ac_objext conftest$ac_exeext
6851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6852  (eval $ac_link) 2>&5
6853  ac_status=$?
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); } &&
6856         { ac_try='test -s conftest$ac_exeext'
6857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858  (eval $ac_try) 2>&5
6859  ac_status=$?
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); }; }; then
6862  ac_cv_lib_svld_dlopen=yes
6863else
6864  echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867ac_cv_lib_svld_dlopen=no
6868fi
6869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6870LIBS=$ac_check_lib_save_LIBS
6871fi
6872echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6873echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6874if test $ac_cv_lib_svld_dlopen = yes; then
6875  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6876else
6877  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6878echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6879if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6880  echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882  ac_check_lib_save_LIBS=$LIBS
6883LIBS="-ldld  $LIBS"
6884cat >conftest.$ac_ext <<_ACEOF
6885#line $LINENO "configure"
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891
6892/* Override any gcc2 internal prototype to avoid an error.  */
6893#ifdef __cplusplus
6894extern "C"
6895#endif
6896/* We use char because int might match the return type of a gcc2
6897   builtin and then its argument prototype would still apply.  */
6898char dld_link ();
6899int
6900main ()
6901{
6902dld_link ();
6903  ;
6904  return 0;
6905}
6906_ACEOF
6907rm -f conftest.$ac_objext conftest$ac_exeext
6908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909  (eval $ac_link) 2>&5
6910  ac_status=$?
6911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912  (exit $ac_status); } &&
6913         { ac_try='test -s conftest$ac_exeext'
6914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915  (eval $ac_try) 2>&5
6916  ac_status=$?
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); }; }; then
6919  ac_cv_lib_dld_dld_link=yes
6920else
6921  echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5
6923
6924ac_cv_lib_dld_dld_link=no
6925fi
6926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927LIBS=$ac_check_lib_save_LIBS
6928fi
6929echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6930echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6931if test $ac_cv_lib_dld_dld_link = yes; then
6932  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6933fi
6934
6935
6936fi
6937
6938
6939fi
6940
6941
6942fi
6943
6944
6945fi
6946
6947
6948fi
6949
6950    ;;
6951  esac
6952
6953  if test "x$lt_cv_dlopen" != xno; then
6954    enable_dlopen=yes
6955  else
6956    enable_dlopen=no
6957  fi
6958
6959  case $lt_cv_dlopen in
6960  dlopen)
6961    save_CPPFLAGS="$CPPFLAGS"
6962        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6963
6964    save_LDFLAGS="$LDFLAGS"
6965    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6966
6967    save_LIBS="$LIBS"
6968    LIBS="$lt_cv_dlopen_libs $LIBS"
6969
6970    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6971echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6972if test "${lt_cv_dlopen_self+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  	  if test "$cross_compiling" = yes; then :
6976  lt_cv_dlopen_self=cross
6977else
6978    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6979  lt_status=$lt_dlunknown
6980  cat > conftest.$ac_ext <<EOF
6981#line 6981 "configure"
6982#include "confdefs.h"
6983
6984#if HAVE_DLFCN_H
6985#include <dlfcn.h>
6986#endif
6987
6988#include <stdio.h>
6989
6990#ifdef RTLD_GLOBAL
6991#  define LT_DLGLOBAL		RTLD_GLOBAL
6992#else
6993#  ifdef DL_GLOBAL
6994#    define LT_DLGLOBAL		DL_GLOBAL
6995#  else
6996#    define LT_DLGLOBAL		0
6997#  endif
6998#endif
6999
7000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7001   find out it does not work in some platform. */
7002#ifndef LT_DLLAZY_OR_NOW
7003#  ifdef RTLD_LAZY
7004#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7005#  else
7006#    ifdef DL_LAZY
7007#      define LT_DLLAZY_OR_NOW		DL_LAZY
7008#    else
7009#      ifdef RTLD_NOW
7010#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7011#      else
7012#        ifdef DL_NOW
7013#          define LT_DLLAZY_OR_NOW	DL_NOW
7014#        else
7015#          define LT_DLLAZY_OR_NOW	0
7016#        endif
7017#      endif
7018#    endif
7019#  endif
7020#endif
7021
7022#ifdef __cplusplus
7023extern "C" void exit (int);
7024#endif
7025
7026void fnord() { int i=42;}
7027int main ()
7028{
7029  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7030  int status = $lt_dlunknown;
7031
7032  if (self)
7033    {
7034      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7035      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7036      /* dlclose (self); */
7037    }
7038
7039    exit (status);
7040}
7041EOF
7042  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7043  (eval $ac_link) 2>&5
7044  ac_status=$?
7045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7047    (./conftest; exit; ) 2>/dev/null
7048    lt_status=$?
7049    case x$lt_status in
7050      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7051      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7052      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7053    esac
7054  else :
7055    # compilation failed
7056    lt_cv_dlopen_self=no
7057  fi
7058fi
7059rm -fr conftest*
7060
7061
7062fi
7063echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7064echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7065
7066    if test "x$lt_cv_dlopen_self" = xyes; then
7067      LDFLAGS="$LDFLAGS $link_static_flag"
7068      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7069echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7070if test "${lt_cv_dlopen_self_static+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  	  if test "$cross_compiling" = yes; then :
7074  lt_cv_dlopen_self_static=cross
7075else
7076    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7077  lt_status=$lt_dlunknown
7078  cat > conftest.$ac_ext <<EOF
7079#line 7079 "configure"
7080#include "confdefs.h"
7081
7082#if HAVE_DLFCN_H
7083#include <dlfcn.h>
7084#endif
7085
7086#include <stdio.h>
7087
7088#ifdef RTLD_GLOBAL
7089#  define LT_DLGLOBAL		RTLD_GLOBAL
7090#else
7091#  ifdef DL_GLOBAL
7092#    define LT_DLGLOBAL		DL_GLOBAL
7093#  else
7094#    define LT_DLGLOBAL		0
7095#  endif
7096#endif
7097
7098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7099   find out it does not work in some platform. */
7100#ifndef LT_DLLAZY_OR_NOW
7101#  ifdef RTLD_LAZY
7102#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7103#  else
7104#    ifdef DL_LAZY
7105#      define LT_DLLAZY_OR_NOW		DL_LAZY
7106#    else
7107#      ifdef RTLD_NOW
7108#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7109#      else
7110#        ifdef DL_NOW
7111#          define LT_DLLAZY_OR_NOW	DL_NOW
7112#        else
7113#          define LT_DLLAZY_OR_NOW	0
7114#        endif
7115#      endif
7116#    endif
7117#  endif
7118#endif
7119
7120#ifdef __cplusplus
7121extern "C" void exit (int);
7122#endif
7123
7124void fnord() { int i=42;}
7125int main ()
7126{
7127  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7128  int status = $lt_dlunknown;
7129
7130  if (self)
7131    {
7132      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7133      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7134      /* dlclose (self); */
7135    }
7136
7137    exit (status);
7138}
7139EOF
7140  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141  (eval $ac_link) 2>&5
7142  ac_status=$?
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7145    (./conftest; exit; ) 2>/dev/null
7146    lt_status=$?
7147    case x$lt_status in
7148      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7149      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7150      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7151    esac
7152  else :
7153    # compilation failed
7154    lt_cv_dlopen_self_static=no
7155  fi
7156fi
7157rm -fr conftest*
7158
7159
7160fi
7161echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7162echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7163    fi
7164
7165    CPPFLAGS="$save_CPPFLAGS"
7166    LDFLAGS="$save_LDFLAGS"
7167    LIBS="$save_LIBS"
7168    ;;
7169  esac
7170
7171  case $lt_cv_dlopen_self in
7172  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7173  *) enable_dlopen_self=unknown ;;
7174  esac
7175
7176  case $lt_cv_dlopen_self_static in
7177  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7178  *) enable_dlopen_self_static=unknown ;;
7179  esac
7180fi
7181
7182
7183if test "$enable_shared" = yes && test "$GCC" = yes; then
7184  case $archive_cmds in
7185  *'~'*)
7186    # FIXME: we may have to deal with multi-command sequences.
7187    ;;
7188  '$CC '*)
7189    # Test whether the compiler implicitly links with -lc since on some
7190    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7191    # to ld, don't add -lc before -lgcc.
7192    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7193echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7194    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7195  echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197  $rm conftest*
7198    echo 'static int dummy;' > conftest.$ac_ext
7199
7200    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201  (eval $ac_compile) 2>&5
7202  ac_status=$?
7203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204  (exit $ac_status); }; then
7205      soname=conftest
7206      lib=conftest
7207      libobjs=conftest.$ac_objext
7208      deplibs=
7209      wl=$lt_cv_prog_cc_wl
7210      compiler_flags=-v
7211      linker_flags=-v
7212      verstring=
7213      output_objdir=.
7214      libname=conftest
7215      save_allow_undefined_flag=$allow_undefined_flag
7216      allow_undefined_flag=
7217      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7218  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7219  ac_status=$?
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); }
7222      then
7223	lt_cv_archive_cmds_need_lc=no
7224      else
7225	lt_cv_archive_cmds_need_lc=yes
7226      fi
7227      allow_undefined_flag=$save_allow_undefined_flag
7228    else
7229      cat conftest.err 1>&5
7230    fi
7231fi
7232
7233    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7234echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7235    ;;
7236  esac
7237fi
7238need_lc=${lt_cv_archive_cmds_need_lc-yes}
7239
7240# The second clause should only fire when bootstrapping the
7241# libtool distribution, otherwise you forgot to ship ltmain.sh
7242# with your package, and you will get complaints that there are
7243# no rules to generate ltmain.sh.
7244if test -f "$ltmain"; then
7245  :
7246else
7247  # If there is no Makefile yet, we rely on a make rule to execute
7248  # `config.status --recheck' to rerun these tests and create the
7249  # libtool script then.
7250  test -f Makefile && make "$ltmain"
7251fi
7252
7253if test -f "$ltmain"; then
7254  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7255  $rm -f "${ofile}T"
7256
7257  echo creating $ofile
7258
7259  # Now quote all the things that may contain metacharacters while being
7260  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7261  # variables and quote the copies for generation of the libtool script.
7262  for var in echo old_CC old_CFLAGS SED \
7263    AR AR_FLAGS CC LD LN_S NM SHELL \
7264    reload_flag reload_cmds wl \
7265    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7266    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7267    library_names_spec soname_spec \
7268    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7269    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7270    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7271    old_striplib striplib file_magic_cmd export_symbols_cmds \
7272    deplibs_check_method allow_undefined_flag no_undefined_flag \
7273    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7274    global_symbol_to_c_name_address \
7275    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7276    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7277    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7278
7279    case $var in
7280    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7281    old_postinstall_cmds | old_postuninstall_cmds | \
7282    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7283    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7284    postinstall_cmds | postuninstall_cmds | \
7285    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7286      # Double-quote double-evaled strings.
7287      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7288      ;;
7289    *)
7290      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7291      ;;
7292    esac
7293  done
7294
7295  cat <<__EOF__ > "${ofile}T"
7296#! $SHELL
7297
7298# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7299# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7300# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7301#
7302# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7303# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7304#
7305# This program is free software; you can redistribute it and/or modify
7306# it under the terms of the GNU General Public License as published by
7307# the Free Software Foundation; either version 2 of the License, or
7308# (at your option) any later version.
7309#
7310# This program is distributed in the hope that it will be useful, but
7311# WITHOUT ANY WARRANTY; without even the implied warranty of
7312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7313# General Public License for more details.
7314#
7315# You should have received a copy of the GNU General Public License
7316# along with this program; if not, write to the Free Software
7317# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7318#
7319# As a special exception to the GNU General Public License, if you
7320# distribute this file as part of a program that contains a
7321# configuration script generated by Autoconf, you may include it under
7322# the same distribution terms that you use for the rest of that program.
7323
7324# A sed that does not truncate output.
7325SED=$lt_SED
7326
7327# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7328Xsed="${SED} -e s/^X//"
7329
7330# The HP-UX ksh and POSIX shell print the target directory to stdout
7331# if CDPATH is set.
7332if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7333
7334# ### BEGIN LIBTOOL CONFIG
7335
7336# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7337
7338# Shell to use when invoking shell scripts.
7339SHELL=$lt_SHELL
7340
7341# Whether or not to build shared libraries.
7342build_libtool_libs=$enable_shared
7343
7344# Whether or not to build static libraries.
7345build_old_libs=$enable_static
7346
7347# Whether or not to add -lc for building shared libraries.
7348build_libtool_need_lc=$need_lc
7349
7350# Whether or not to optimize for fast installation.
7351fast_install=$enable_fast_install
7352
7353# The host system.
7354host_alias=$host_alias
7355host=$host
7356
7357# An echo program that does not interpret backslashes.
7358echo=$lt_echo
7359
7360# The archiver.
7361AR=$lt_AR
7362AR_FLAGS=$lt_AR_FLAGS
7363
7364# The default C compiler.
7365CC=$lt_CC
7366
7367# Is the compiler the GNU C compiler?
7368with_gcc=$GCC
7369
7370# The linker used to build libraries.
7371LD=$lt_LD
7372
7373# Whether we need hard or soft links.
7374LN_S=$lt_LN_S
7375
7376# A BSD-compatible nm program.
7377NM=$lt_NM
7378
7379# A symbol stripping program
7380STRIP=$STRIP
7381
7382# Used to examine libraries when file_magic_cmd begins "file"
7383MAGIC_CMD=$MAGIC_CMD
7384
7385# Used on cygwin: DLL creation program.
7386DLLTOOL="$DLLTOOL"
7387
7388# Used on cygwin: object dumper.
7389OBJDUMP="$OBJDUMP"
7390
7391# Used on cygwin: assembler.
7392AS="$AS"
7393
7394# The name of the directory that contains temporary libtool files.
7395objdir=$objdir
7396
7397# How to create reloadable object files.
7398reload_flag=$lt_reload_flag
7399reload_cmds=$lt_reload_cmds
7400
7401# How to pass a linker flag through the compiler.
7402wl=$lt_wl
7403
7404# Object file suffix (normally "o").
7405objext="$ac_objext"
7406
7407# Old archive suffix (normally "a").
7408libext="$libext"
7409
7410# Executable file suffix (normally "").
7411exeext="$exeext"
7412
7413# Additional compiler flags for building library objects.
7414pic_flag=$lt_pic_flag
7415pic_mode=$pic_mode
7416
7417# Does compiler simultaneously support -c and -o options?
7418compiler_c_o=$lt_compiler_c_o
7419
7420# Can we write directly to a .lo ?
7421compiler_o_lo=$lt_compiler_o_lo
7422
7423# Must we lock files when doing compilation ?
7424need_locks=$lt_need_locks
7425
7426# Do we need the lib prefix for modules?
7427need_lib_prefix=$need_lib_prefix
7428
7429# Do we need a version for libraries?
7430need_version=$need_version
7431
7432# Whether dlopen is supported.
7433dlopen_support=$enable_dlopen
7434
7435# Whether dlopen of programs is supported.
7436dlopen_self=$enable_dlopen_self
7437
7438# Whether dlopen of statically linked programs is supported.
7439dlopen_self_static=$enable_dlopen_self_static
7440
7441# Compiler flag to prevent dynamic linking.
7442link_static_flag=$lt_link_static_flag
7443
7444# Compiler flag to turn off builtin functions.
7445no_builtin_flag=$lt_no_builtin_flag
7446
7447# Compiler flag to allow reflexive dlopens.
7448export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7449
7450# Compiler flag to generate shared objects directly from archives.
7451whole_archive_flag_spec=$lt_whole_archive_flag_spec
7452
7453# Compiler flag to generate thread-safe objects.
7454thread_safe_flag_spec=$lt_thread_safe_flag_spec
7455
7456# Library versioning type.
7457version_type=$version_type
7458
7459# Format of library name prefix.
7460libname_spec=$lt_libname_spec
7461
7462# List of archive names.  First name is the real one, the rest are links.
7463# The last name is the one that the linker finds with -lNAME.
7464library_names_spec=$lt_library_names_spec
7465
7466# The coded name of the library, if different from the real name.
7467soname_spec=$lt_soname_spec
7468
7469# Commands used to build and install an old-style archive.
7470RANLIB=$lt_RANLIB
7471old_archive_cmds=$lt_old_archive_cmds
7472old_postinstall_cmds=$lt_old_postinstall_cmds
7473old_postuninstall_cmds=$lt_old_postuninstall_cmds
7474
7475# Create an old-style archive from a shared archive.
7476old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7477
7478# Create a temporary old-style archive to link instead of a shared archive.
7479old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7480
7481# Commands used to build and install a shared archive.
7482archive_cmds=$lt_archive_cmds
7483archive_expsym_cmds=$lt_archive_expsym_cmds
7484postinstall_cmds=$lt_postinstall_cmds
7485postuninstall_cmds=$lt_postuninstall_cmds
7486
7487# Commands to strip libraries.
7488old_striplib=$lt_old_striplib
7489striplib=$lt_striplib
7490
7491# Method to check whether dependent libraries are shared objects.
7492deplibs_check_method=$lt_deplibs_check_method
7493
7494# Command to use when deplibs_check_method == file_magic.
7495file_magic_cmd=$lt_file_magic_cmd
7496
7497# Flag that allows shared libraries with undefined symbols to be built.
7498allow_undefined_flag=$lt_allow_undefined_flag
7499
7500# Flag that forces no undefined symbols.
7501no_undefined_flag=$lt_no_undefined_flag
7502
7503# Commands used to finish a libtool library installation in a directory.
7504finish_cmds=$lt_finish_cmds
7505
7506# Same as above, but a single script fragment to be evaled but not shown.
7507finish_eval=$lt_finish_eval
7508
7509# Take the output of nm and produce a listing of raw symbols and C names.
7510global_symbol_pipe=$lt_global_symbol_pipe
7511
7512# Transform the output of nm in a proper C declaration
7513global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7514
7515# Transform the output of nm in a C name address pair
7516global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7517
7518# This is the shared library runtime path variable.
7519runpath_var=$runpath_var
7520
7521# This is the shared library path variable.
7522shlibpath_var=$shlibpath_var
7523
7524# Is shlibpath searched before the hard-coded library search path?
7525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7526
7527# How to hardcode a shared library path into an executable.
7528hardcode_action=$hardcode_action
7529
7530# Whether we should hardcode library paths into libraries.
7531hardcode_into_libs=$hardcode_into_libs
7532
7533# Flag to hardcode \$libdir into a binary during linking.
7534# This must work even if \$libdir does not exist.
7535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7536
7537# Whether we need a single -rpath flag with a separated argument.
7538hardcode_libdir_separator=$lt_hardcode_libdir_separator
7539
7540# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7541# resulting binary.
7542hardcode_direct=$hardcode_direct
7543
7544# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7545# resulting binary.
7546hardcode_minus_L=$hardcode_minus_L
7547
7548# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7549# the resulting binary.
7550hardcode_shlibpath_var=$hardcode_shlibpath_var
7551
7552# Variables whose values should be saved in libtool wrapper scripts and
7553# restored at relink time.
7554variables_saved_for_relink="$variables_saved_for_relink"
7555
7556# Whether libtool must link a program against all its dependency libraries.
7557link_all_deplibs=$link_all_deplibs
7558
7559# Compile-time system search path for libraries
7560sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7561
7562# Run-time system search path for libraries
7563sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7564
7565# Fix the shell variable \$srcfile for the compiler.
7566fix_srcfile_path="$fix_srcfile_path"
7567
7568# Set to yes if exported symbols are required.
7569always_export_symbols=$always_export_symbols
7570
7571# The commands to list exported symbols.
7572export_symbols_cmds=$lt_export_symbols_cmds
7573
7574# The commands to extract the exported symbol list from a shared archive.
7575extract_expsyms_cmds=$lt_extract_expsyms_cmds
7576
7577# Symbols that should not be listed in the preloaded symbols.
7578exclude_expsyms=$lt_exclude_expsyms
7579
7580# Symbols that must always be exported.
7581include_expsyms=$lt_include_expsyms
7582
7583# ### END LIBTOOL CONFIG
7584
7585__EOF__
7586
7587  case $host_os in
7588  aix3*)
7589    cat <<\EOF >> "${ofile}T"
7590
7591# AIX sometimes has problems with the GCC collect2 program.  For some
7592# reason, if we set the COLLECT_NAMES environment variable, the problems
7593# vanish in a puff of smoke.
7594if test "X${COLLECT_NAMES+set}" != Xset; then
7595  COLLECT_NAMES=
7596  export COLLECT_NAMES
7597fi
7598EOF
7599    ;;
7600  esac
7601
7602  case $host_os in
7603  cygwin* | mingw* | pw32* | os2*)
7604    cat <<'EOF' >> "${ofile}T"
7605      # This is a source program that is used to create dlls on Windows
7606      # Don't remove nor modify the starting and closing comments
7607# /* ltdll.c starts here */
7608# #define WIN32_LEAN_AND_MEAN
7609# #include <windows.h>
7610# #undef WIN32_LEAN_AND_MEAN
7611# #include <stdio.h>
7612#
7613# #ifndef __CYGWIN__
7614# #  ifdef __CYGWIN32__
7615# #    define __CYGWIN__ __CYGWIN32__
7616# #  endif
7617# #endif
7618#
7619# #ifdef __cplusplus
7620# extern "C" {
7621# #endif
7622# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7623# #ifdef __cplusplus
7624# }
7625# #endif
7626#
7627# #ifdef __CYGWIN__
7628# #include <cygwin/cygwin_dll.h>
7629# DECLARE_CYGWIN_DLL( DllMain );
7630# #endif
7631# HINSTANCE __hDllInstance_base;
7632#
7633# BOOL APIENTRY
7634# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7635# {
7636#   __hDllInstance_base = hInst;
7637#   return TRUE;
7638# }
7639# /* ltdll.c ends here */
7640	# This is a source program that is used to create import libraries
7641	# on Windows for dlls which lack them. Don't remove nor modify the
7642	# starting and closing comments
7643# /* impgen.c starts here */
7644# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7645#
7646#  This file is part of GNU libtool.
7647#
7648#  This program is free software; you can redistribute it and/or modify
7649#  it under the terms of the GNU General Public License as published by
7650#  the Free Software Foundation; either version 2 of the License, or
7651#  (at your option) any later version.
7652#
7653#  This program is distributed in the hope that it will be useful,
7654#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7655#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7656#  GNU General Public License for more details.
7657#
7658#  You should have received a copy of the GNU General Public License
7659#  along with this program; if not, write to the Free Software
7660#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7661#  */
7662#
7663# #include <stdio.h>		/* for printf() */
7664# #include <unistd.h>		/* for open(), lseek(), read() */
7665# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7666# #include <string.h>		/* for strdup() */
7667#
7668# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7669# #ifndef O_BINARY
7670# #define O_BINARY 0
7671# #endif
7672#
7673# static unsigned int
7674# pe_get16 (fd, offset)
7675#      int fd;
7676#      int offset;
7677# {
7678#   unsigned char b[2];
7679#   lseek (fd, offset, SEEK_SET);
7680#   read (fd, b, 2);
7681#   return b[0] + (b[1]<<8);
7682# }
7683#
7684# static unsigned int
7685# pe_get32 (fd, offset)
7686#     int fd;
7687#     int offset;
7688# {
7689#   unsigned char b[4];
7690#   lseek (fd, offset, SEEK_SET);
7691#   read (fd, b, 4);
7692#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7693# }
7694#
7695# static unsigned int
7696# pe_as32 (ptr)
7697#      void *ptr;
7698# {
7699#   unsigned char *b = ptr;
7700#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7701# }
7702#
7703# int
7704# main (argc, argv)
7705#     int argc;
7706#     char *argv[];
7707# {
7708#     int dll;
7709#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7710#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7711#     unsigned long name_rvas, nexp;
7712#     unsigned char *expdata, *erva;
7713#     char *filename, *dll_name;
7714#
7715#     filename = argv[1];
7716#
7717#     dll = open(filename, O_RDONLY|O_BINARY);
7718#     if (dll < 1)
7719# 	return 1;
7720#
7721#     dll_name = filename;
7722#
7723#     for (i=0; filename[i]; i++)
7724# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7725# 	    dll_name = filename + i +1;
7726#
7727#     pe_header_offset = pe_get32 (dll, 0x3c);
7728#     opthdr_ofs = pe_header_offset + 4 + 20;
7729#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7730#
7731#     if (num_entries < 1) /* no exports */
7732# 	return 1;
7733#
7734#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7735#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7736#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7737#     secptr = (pe_header_offset + 4 + 20 +
7738# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7739#
7740#     expptr = 0;
7741#     for (i = 0; i < nsections; i++)
7742#     {
7743# 	char sname[8];
7744# 	unsigned long secptr1 = secptr + 40 * i;
7745# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7746# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7747# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7748# 	lseek(dll, secptr1, SEEK_SET);
7749# 	read(dll, sname, 8);
7750# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7751# 	{
7752# 	    expptr = fptr + (export_rva - vaddr);
7753# 	    if (export_rva + export_size > vaddr + vsize)
7754# 		export_size = vsize - (export_rva - vaddr);
7755# 	    break;
7756# 	}
7757#     }
7758#
7759#     expdata = (unsigned char*)malloc(export_size);
7760#     lseek (dll, expptr, SEEK_SET);
7761#     read (dll, expdata, export_size);
7762#     erva = expdata - export_rva;
7763#
7764#     nexp = pe_as32 (expdata+24);
7765#     name_rvas = pe_as32 (expdata+32);
7766#
7767#     printf ("EXPORTS\n");
7768#     for (i = 0; i<nexp; i++)
7769#     {
7770# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7771# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7772#     }
7773#
7774#     return 0;
7775# }
7776# /* impgen.c ends here */
7777
7778EOF
7779    ;;
7780  esac
7781
7782  # We use sed instead of cat because bash on DJGPP gets confused if
7783  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7784  # text mode, it properly converts lines to CR/LF.  This bash problem
7785  # is reportedly fixed, but why not run on old versions too?
7786  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7787
7788  mv -f "${ofile}T" "$ofile" || \
7789    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7790  chmod +x "$ofile"
7791fi
7792
7793
7794
7795
7796
7797# This can be used to rebuild libtool when needed
7798LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7799
7800# Always use our own libtool.
7801LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7802
7803# Prevent multiple expansion
7804
7805
7806
7807
7808
7809
7810arch=""
7811debug=""
7812optimize=""
7813profile=""
7814
7815set -- $CFLAGS
7816CFLAGS=""
7817
7818if test "$GCC" = yes
7819then
7820    CFLAGS="-Wall"
7821fi
7822
7823while test $# -gt 0
7824do
7825    case "$1" in
7826	-Wall)
7827	    if test "$GCC" = yes
7828	    then
7829		:
7830	    else
7831		CFLAGS="$CFLAGS $1"
7832	    fi
7833	    shift
7834	    ;;
7835	-g)
7836	    debug="-g"
7837	    shift
7838	    ;;
7839	-mno-cygwin)
7840	    shift
7841	    ;;
7842	-m*)
7843	    arch="$arch $1"
7844	    shift
7845	    ;;
7846	-fomit-frame-pointer)
7847	    shift
7848	    ;;
7849	-O*|-f*)
7850	    optimize="$1"
7851	    shift
7852	    ;;
7853	*)
7854	    CFLAGS="$CFLAGS $1"
7855	    shift
7856	    ;;
7857    esac
7858done
7859
7860
7861echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7862echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7863if test "${ac_cv_header_stdc+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  cat >conftest.$ac_ext <<_ACEOF
7867#line $LINENO "configure"
7868/* confdefs.h.  */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h.  */
7873#include <stdlib.h>
7874#include <stdarg.h>
7875#include <string.h>
7876#include <float.h>
7877
7878int
7879main ()
7880{
7881
7882  ;
7883  return 0;
7884}
7885_ACEOF
7886rm -f conftest.$ac_objext
7887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888  (eval $ac_compile) 2>&5
7889  ac_status=$?
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); } &&
7892         { ac_try='test -s conftest.$ac_objext'
7893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894  (eval $ac_try) 2>&5
7895  ac_status=$?
7896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897  (exit $ac_status); }; }; then
7898  ac_cv_header_stdc=yes
7899else
7900  echo "$as_me: failed program was:" >&5
7901sed 's/^/| /' conftest.$ac_ext >&5
7902
7903ac_cv_header_stdc=no
7904fi
7905rm -f conftest.$ac_objext conftest.$ac_ext
7906
7907if test $ac_cv_header_stdc = yes; then
7908  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7909  cat >conftest.$ac_ext <<_ACEOF
7910#line $LINENO "configure"
7911/* confdefs.h.  */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h.  */
7916#include <string.h>
7917
7918_ACEOF
7919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920  $EGREP "memchr" >/dev/null 2>&1; then
7921  :
7922else
7923  ac_cv_header_stdc=no
7924fi
7925rm -f conftest*
7926
7927fi
7928
7929if test $ac_cv_header_stdc = yes; then
7930  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7931  cat >conftest.$ac_ext <<_ACEOF
7932#line $LINENO "configure"
7933/* confdefs.h.  */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h.  */
7938#include <stdlib.h>
7939
7940_ACEOF
7941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942  $EGREP "free" >/dev/null 2>&1; then
7943  :
7944else
7945  ac_cv_header_stdc=no
7946fi
7947rm -f conftest*
7948
7949fi
7950
7951if test $ac_cv_header_stdc = yes; then
7952  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7953  if test "$cross_compiling" = yes; then
7954  :
7955else
7956  cat >conftest.$ac_ext <<_ACEOF
7957#line $LINENO "configure"
7958/* confdefs.h.  */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h.  */
7963#include <ctype.h>
7964#if ((' ' & 0x0FF) == 0x020)
7965# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7966# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7967#else
7968# define ISLOWER(c) \
7969                   (('a' <= (c) && (c) <= 'i') \
7970                     || ('j' <= (c) && (c) <= 'r') \
7971                     || ('s' <= (c) && (c) <= 'z'))
7972# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7973#endif
7974
7975#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7976int
7977main ()
7978{
7979  int i;
7980  for (i = 0; i < 256; i++)
7981    if (XOR (islower (i), ISLOWER (i))
7982        || toupper (i) != TOUPPER (i))
7983      exit(2);
7984  exit (0);
7985}
7986_ACEOF
7987rm -f conftest$ac_exeext
7988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989  (eval $ac_link) 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994  (eval $ac_try) 2>&5
7995  ac_status=$?
7996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997  (exit $ac_status); }; }; then
7998  :
7999else
8000  echo "$as_me: program exited with status $ac_status" >&5
8001echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004( exit $ac_status )
8005ac_cv_header_stdc=no
8006fi
8007rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8008fi
8009fi
8010fi
8011echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8012echo "${ECHO_T}$ac_cv_header_stdc" >&6
8013if test $ac_cv_header_stdc = yes; then
8014
8015cat >>confdefs.h <<\_ACEOF
8016#define STDC_HEADERS 1
8017_ACEOF
8018
8019fi
8020
8021
8022
8023for ac_header in assert.h unistd.h
8024do
8025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8026if eval "test \"\${$as_ac_Header+set}\" = set"; then
8027  echo "$as_me:$LINENO: checking for $ac_header" >&5
8028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8029if eval "test \"\${$as_ac_Header+set}\" = set"; then
8030  echo $ECHO_N "(cached) $ECHO_C" >&6
8031fi
8032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8034else
8035  # Is the header compilable?
8036echo "$as_me:$LINENO: checking $ac_header usability" >&5
8037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8038cat >conftest.$ac_ext <<_ACEOF
8039#line $LINENO "configure"
8040/* confdefs.h.  */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h.  */
8045$ac_includes_default
8046#include <$ac_header>
8047_ACEOF
8048rm -f conftest.$ac_objext
8049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050  (eval $ac_compile) 2>&5
8051  ac_status=$?
8052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053  (exit $ac_status); } &&
8054         { ac_try='test -s conftest.$ac_objext'
8055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056  (eval $ac_try) 2>&5
8057  ac_status=$?
8058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059  (exit $ac_status); }; }; then
8060  ac_header_compiler=yes
8061else
8062  echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
8065ac_header_compiler=no
8066fi
8067rm -f conftest.$ac_objext conftest.$ac_ext
8068echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8069echo "${ECHO_T}$ac_header_compiler" >&6
8070
8071# Is the header present?
8072echo "$as_me:$LINENO: checking $ac_header presence" >&5
8073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8074cat >conftest.$ac_ext <<_ACEOF
8075#line $LINENO "configure"
8076/* confdefs.h.  */
8077_ACEOF
8078cat confdefs.h >>conftest.$ac_ext
8079cat >>conftest.$ac_ext <<_ACEOF
8080/* end confdefs.h.  */
8081#include <$ac_header>
8082_ACEOF
8083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8085  ac_status=$?
8086  grep -v '^ *+' conftest.er1 >conftest.err
8087  rm -f conftest.er1
8088  cat conftest.err >&5
8089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090  (exit $ac_status); } >/dev/null; then
8091  if test -s conftest.err; then
8092    ac_cpp_err=$ac_c_preproc_warn_flag
8093  else
8094    ac_cpp_err=
8095  fi
8096else
8097  ac_cpp_err=yes
8098fi
8099if test -z "$ac_cpp_err"; then
8100  ac_header_preproc=yes
8101else
8102  echo "$as_me: failed program was:" >&5
8103sed 's/^/| /' conftest.$ac_ext >&5
8104
8105  ac_header_preproc=no
8106fi
8107rm -f conftest.err conftest.$ac_ext
8108echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8109echo "${ECHO_T}$ac_header_preproc" >&6
8110
8111# So?  What about this header?
8112case $ac_header_compiler:$ac_header_preproc in
8113  yes:no )
8114    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8116    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8118    (
8119      cat <<\_ASBOX
8120## ------------------------------------ ##
8121## Report this to bug-autoconf@gnu.org. ##
8122## ------------------------------------ ##
8123_ASBOX
8124    ) |
8125      sed "s/^/$as_me: WARNING:     /" >&2
8126    ;;
8127  no:yes )
8128    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8130    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8134    (
8135      cat <<\_ASBOX
8136## ------------------------------------ ##
8137## Report this to bug-autoconf@gnu.org. ##
8138## ------------------------------------ ##
8139_ASBOX
8140    ) |
8141      sed "s/^/$as_me: WARNING:     /" >&2
8142    ;;
8143esac
8144echo "$as_me:$LINENO: checking for $ac_header" >&5
8145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8146if eval "test \"\${$as_ac_Header+set}\" = set"; then
8147  echo $ECHO_N "(cached) $ECHO_C" >&6
8148else
8149  eval "$as_ac_Header=$ac_header_preproc"
8150fi
8151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8153
8154fi
8155if test `eval echo '${'$as_ac_Header'}'` = yes; then
8156  cat >>confdefs.h <<_ACEOF
8157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8158_ACEOF
8159
8160fi
8161
8162done
8163
8164
8165if test "${ac_cv_header_zlib_h+set}" = set; then
8166  echo "$as_me:$LINENO: checking for zlib.h" >&5
8167echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8168if test "${ac_cv_header_zlib_h+set}" = set; then
8169  echo $ECHO_N "(cached) $ECHO_C" >&6
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8172echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8173else
8174  # Is the header compilable?
8175echo "$as_me:$LINENO: checking zlib.h usability" >&5
8176echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8177cat >conftest.$ac_ext <<_ACEOF
8178#line $LINENO "configure"
8179/* confdefs.h.  */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h.  */
8184$ac_includes_default
8185#include <zlib.h>
8186_ACEOF
8187rm -f conftest.$ac_objext
8188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189  (eval $ac_compile) 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); } &&
8193         { ac_try='test -s conftest.$ac_objext'
8194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195  (eval $ac_try) 2>&5
8196  ac_status=$?
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); }; }; then
8199  ac_header_compiler=yes
8200else
8201  echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204ac_header_compiler=no
8205fi
8206rm -f conftest.$ac_objext conftest.$ac_ext
8207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8208echo "${ECHO_T}$ac_header_compiler" >&6
8209
8210# Is the header present?
8211echo "$as_me:$LINENO: checking zlib.h presence" >&5
8212echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8213cat >conftest.$ac_ext <<_ACEOF
8214#line $LINENO "configure"
8215/* confdefs.h.  */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h.  */
8220#include <zlib.h>
8221_ACEOF
8222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8223  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8224  ac_status=$?
8225  grep -v '^ *+' conftest.er1 >conftest.err
8226  rm -f conftest.er1
8227  cat conftest.err >&5
8228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229  (exit $ac_status); } >/dev/null; then
8230  if test -s conftest.err; then
8231    ac_cpp_err=$ac_c_preproc_warn_flag
8232  else
8233    ac_cpp_err=
8234  fi
8235else
8236  ac_cpp_err=yes
8237fi
8238if test -z "$ac_cpp_err"; then
8239  ac_header_preproc=yes
8240else
8241  echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244  ac_header_preproc=no
8245fi
8246rm -f conftest.err conftest.$ac_ext
8247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8248echo "${ECHO_T}$ac_header_preproc" >&6
8249
8250# So?  What about this header?
8251case $ac_header_compiler:$ac_header_preproc in
8252  yes:no )
8253    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8254echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8255    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8256echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8257    (
8258      cat <<\_ASBOX
8259## ------------------------------------ ##
8260## Report this to bug-autoconf@gnu.org. ##
8261## ------------------------------------ ##
8262_ASBOX
8263    ) |
8264      sed "s/^/$as_me: WARNING:     /" >&2
8265    ;;
8266  no:yes )
8267    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8268echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8269    { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8270echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8271    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8272echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8273    (
8274      cat <<\_ASBOX
8275## ------------------------------------ ##
8276## Report this to bug-autoconf@gnu.org. ##
8277## ------------------------------------ ##
8278_ASBOX
8279    ) |
8280      sed "s/^/$as_me: WARNING:     /" >&2
8281    ;;
8282esac
8283echo "$as_me:$LINENO: checking for zlib.h" >&5
8284echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8285if test "${ac_cv_header_zlib_h+set}" = set; then
8286  echo $ECHO_N "(cached) $ECHO_C" >&6
8287else
8288  ac_cv_header_zlib_h=$ac_header_preproc
8289fi
8290echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8291echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8292
8293fi
8294if test $ac_cv_header_zlib_h = yes; then
8295  :
8296else
8297
8298	{ { echo "$as_me:$LINENO: error: zlib.h was not found
8299*** You must first install zlib (libz) before you can build this package.
8300*** If zlib is already installed, you may need to use the CPPFLAGS
8301*** environment variable to specify its installed location, e.g. -I<dir>." >&5
8302echo "$as_me: error: zlib.h was not found
8303*** You must first install zlib (libz) before you can build this package.
8304*** If zlib is already installed, you may need to use the CPPFLAGS
8305*** environment variable to specify its installed location, e.g. -I<dir>." >&2;}
8306   { (exit 1); exit 1; }; }
8307
8308fi
8309
8310
8311
8312
8313echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8314echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8315if test "${ac_cv_c_const+set}" = set; then
8316  echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318  cat >conftest.$ac_ext <<_ACEOF
8319#line $LINENO "configure"
8320/* confdefs.h.  */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h.  */
8325
8326int
8327main ()
8328{
8329/* FIXME: Include the comments suggested by Paul. */
8330#ifndef __cplusplus
8331  /* Ultrix mips cc rejects this.  */
8332  typedef int charset[2];
8333  const charset x;
8334  /* SunOS 4.1.1 cc rejects this.  */
8335  char const *const *ccp;
8336  char **p;
8337  /* NEC SVR4.0.2 mips cc rejects this.  */
8338  struct point {int x, y;};
8339  static struct point const zero = {0,0};
8340  /* AIX XL C 1.02.0.0 rejects this.
8341     It does not let you subtract one const X* pointer from another in
8342     an arm of an if-expression whose if-part is not a constant
8343     expression */
8344  const char *g = "string";
8345  ccp = &g + (g ? g-g : 0);
8346  /* HPUX 7.0 cc rejects these. */
8347  ++ccp;
8348  p = (char**) ccp;
8349  ccp = (char const *const *) p;
8350  { /* SCO 3.2v4 cc rejects this.  */
8351    char *t;
8352    char const *s = 0 ? (char *) 0 : (char const *) 0;
8353
8354    *t++ = 0;
8355  }
8356  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8357    int x[] = {25, 17};
8358    const int *foo = &x[0];
8359    ++foo;
8360  }
8361  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8362    typedef const int *iptr;
8363    iptr p = 0;
8364    ++p;
8365  }
8366  { /* AIX XL C 1.02.0.0 rejects this saying
8367       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8368    struct s { int j; const int *ap[3]; };
8369    struct s *b; b->j = 5;
8370  }
8371  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8372    const int foo = 10;
8373  }
8374#endif
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext
8381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382  (eval $ac_compile) 2>&5
8383  ac_status=$?
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); } &&
8386         { ac_try='test -s conftest.$ac_objext'
8387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388  (eval $ac_try) 2>&5
8389  ac_status=$?
8390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391  (exit $ac_status); }; }; then
8392  ac_cv_c_const=yes
8393else
8394  echo "$as_me: failed program was:" >&5
8395sed 's/^/| /' conftest.$ac_ext >&5
8396
8397ac_cv_c_const=no
8398fi
8399rm -f conftest.$ac_objext conftest.$ac_ext
8400fi
8401echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8402echo "${ECHO_T}$ac_cv_c_const" >&6
8403if test $ac_cv_c_const = no; then
8404
8405cat >>confdefs.h <<\_ACEOF
8406#define const
8407_ACEOF
8408
8409fi
8410
8411echo "$as_me:$LINENO: checking for inline" >&5
8412echo $ECHO_N "checking for inline... $ECHO_C" >&6
8413if test "${ac_cv_c_inline+set}" = set; then
8414  echo $ECHO_N "(cached) $ECHO_C" >&6
8415else
8416  ac_cv_c_inline=no
8417for ac_kw in inline __inline__ __inline; do
8418  cat >conftest.$ac_ext <<_ACEOF
8419#line $LINENO "configure"
8420/* confdefs.h.  */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h.  */
8425#ifndef __cplusplus
8426typedef int foo_t;
8427static $ac_kw foo_t static_foo () {return 0; }
8428$ac_kw foo_t foo () {return 0; }
8429#endif
8430
8431_ACEOF
8432rm -f conftest.$ac_objext
8433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434  (eval $ac_compile) 2>&5
8435  ac_status=$?
8436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437  (exit $ac_status); } &&
8438         { ac_try='test -s conftest.$ac_objext'
8439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440  (eval $ac_try) 2>&5
8441  ac_status=$?
8442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); }; }; then
8444  ac_cv_c_inline=$ac_kw; break
8445else
8446  echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449fi
8450rm -f conftest.$ac_objext conftest.$ac_ext
8451done
8452
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8455echo "${ECHO_T}$ac_cv_c_inline" >&6
8456case $ac_cv_c_inline in
8457  inline | yes) ;;
8458  no)
8459cat >>confdefs.h <<\_ACEOF
8460#define inline
8461_ACEOF
8462 ;;
8463  *)  cat >>confdefs.h <<_ACEOF
8464#define inline $ac_cv_c_inline
8465_ACEOF
8466 ;;
8467esac
8468
8469
8470
8471
8472for ac_func in ftruncate
8473do
8474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8475echo "$as_me:$LINENO: checking for $ac_func" >&5
8476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8477if eval "test \"\${$as_ac_var+set}\" = set"; then
8478  echo $ECHO_N "(cached) $ECHO_C" >&6
8479else
8480  cat >conftest.$ac_ext <<_ACEOF
8481#line $LINENO "configure"
8482/* confdefs.h.  */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h.  */
8487/* System header to define __stub macros and hopefully few prototypes,
8488    which can conflict with char $ac_func (); below.
8489    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8490    <limits.h> exists even on freestanding compilers.  */
8491#ifdef __STDC__
8492# include <limits.h>
8493#else
8494# include <assert.h>
8495#endif
8496/* Override any gcc2 internal prototype to avoid an error.  */
8497#ifdef __cplusplus
8498extern "C"
8499{
8500#endif
8501/* We use char because int might match the return type of a gcc2
8502   builtin and then its argument prototype would still apply.  */
8503char $ac_func ();
8504/* The GNU C library defines this for functions which it implements
8505    to always fail with ENOSYS.  Some functions are actually named
8506    something starting with __ and the normal name is an alias.  */
8507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8508choke me
8509#else
8510char (*f) () = $ac_func;
8511#endif
8512#ifdef __cplusplus
8513}
8514#endif
8515
8516int
8517main ()
8518{
8519return f != $ac_func;
8520  ;
8521  return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext conftest$ac_exeext
8525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526  (eval $ac_link) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); } &&
8530         { ac_try='test -s conftest$ac_exeext'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; }; then
8536  eval "$as_ac_var=yes"
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541eval "$as_ac_var=no"
8542fi
8543rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8544fi
8545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8547if test `eval echo '${'$as_ac_var'}'` = yes; then
8548  cat >>confdefs.h <<_ACEOF
8549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8550_ACEOF
8551
8552fi
8553done
8554
8555
8556
8557echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
8558echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6
8559if test "${ac_cv_lib_z_compress2+set}" = set; then
8560  echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562  ac_check_lib_save_LIBS=$LIBS
8563LIBS="-lz  $LIBS"
8564cat >conftest.$ac_ext <<_ACEOF
8565#line $LINENO "configure"
8566/* confdefs.h.  */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h.  */
8571
8572/* Override any gcc2 internal prototype to avoid an error.  */
8573#ifdef __cplusplus
8574extern "C"
8575#endif
8576/* We use char because int might match the return type of a gcc2
8577   builtin and then its argument prototype would still apply.  */
8578char compress2 ();
8579int
8580main ()
8581{
8582compress2 ();
8583  ;
8584  return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext conftest$ac_exeext
8588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589  (eval $ac_link) 2>&5
8590  ac_status=$?
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); } &&
8593         { ac_try='test -s conftest$ac_exeext'
8594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595  (eval $ac_try) 2>&5
8596  ac_status=$?
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); }; }; then
8599  ac_cv_lib_z_compress2=yes
8600else
8601  echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604ac_cv_lib_z_compress2=no
8605fi
8606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8607LIBS=$ac_check_lib_save_LIBS
8608fi
8609echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
8610echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6
8611if test $ac_cv_lib_z_compress2 = yes; then
8612  cat >>confdefs.h <<_ACEOF
8613#define HAVE_LIBZ 1
8614_ACEOF
8615
8616  LIBS="-lz $LIBS"
8617
8618else
8619
8620	{ { echo "$as_me:$LINENO: error: libz was not found
8621*** You must first install zlib (libz) before you can build this package.
8622*** If zlib is already installed, you may need to use the LDFLAGS
8623*** environment variable to specify its installed location, e.g. -L<dir>." >&5
8624echo "$as_me: error: libz was not found
8625*** You must first install zlib (libz) before you can build this package.
8626*** If zlib is already installed, you may need to use the LDFLAGS
8627*** environment variable to specify its installed location, e.g. -L<dir>." >&2;}
8628   { (exit 1); exit 1; }; }
8629
8630fi
8631
8632
8633
8634cat >confcache <<\_ACEOF
8635# This file is a shell script that caches the results of configure
8636# tests run on this system so they can be shared between configure
8637# scripts and configure runs, see configure's option --config-cache.
8638# It is not useful on other systems.  If it contains results you don't
8639# want to keep, you may remove or edit it.
8640#
8641# config.status only pays attention to the cache file if you give it
8642# the --recheck option to rerun configure.
8643#
8644# `ac_cv_env_foo' variables (set or unset) will be overridden when
8645# loading this file, other *unset* `ac_cv_foo' will be assigned the
8646# following values.
8647
8648_ACEOF
8649
8650# The following way of writing the cache mishandles newlines in values,
8651# but we know of no workaround that is simple, portable, and efficient.
8652# So, don't put newlines in cache variables' values.
8653# Ultrix sh set writes to stderr and can't be redirected directly,
8654# and sets the high bit in the cache file unless we assign to the vars.
8655{
8656  (set) 2>&1 |
8657    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8658    *ac_space=\ *)
8659      # `set' does not quote correctly, so add quotes (double-quote
8660      # substitution turns \\\\ into \\, and sed turns \\ into \).
8661      sed -n \
8662        "s/'/'\\\\''/g;
8663    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8664      ;;
8665    *)
8666      # `set' quotes correctly as required by POSIX, so do not add quotes.
8667      sed -n \
8668        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8669      ;;
8670    esac;
8671} |
8672  sed '
8673     t clear
8674     : clear
8675     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8676     t end
8677     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8678     : end' >>confcache
8679if diff $cache_file confcache >/dev/null 2>&1; then :; else
8680  if test -w $cache_file; then
8681    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8682    cat confcache >$cache_file
8683  else
8684    echo "not updating unwritable cache $cache_file"
8685  fi
8686fi
8687rm -f confcache
8688
8689echo "$as_me:$LINENO: checking whether to enable profiling" >&5
8690echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
8691# Check whether --enable-profiling or --disable-profiling was given.
8692if test "${enable_profiling+set}" = set; then
8693  enableval="$enable_profiling"
8694
8695    case "$enableval" in
8696	yes) profile="-pg" ;;
8697    esac
8698
8699fi;
8700echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
8701echo "${ECHO_T}${enable_profiling-no}" >&6
8702
8703echo "$as_me:$LINENO: checking whether to enable debugging" >&5
8704echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
8705# Check whether --enable-debugging or --disable-debugging was given.
8706if test "${enable_debugging+set}" = set; then
8707  enableval="$enable_debugging"
8708
8709    case "$enableval" in
8710	yes)
8711
8712cat >>confdefs.h <<\_ACEOF
8713#define DEBUG 1
8714_ACEOF
8715
8716	    optimize=""
8717	    ;;
8718	no)
8719	    if test -n "$profile"
8720	    then
8721    { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
8722echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
8723   { (exit 1); exit 1; }; }
8724	    fi
8725
8726
8727cat >>confdefs.h <<\_ACEOF
8728#define NDEBUG 1
8729_ACEOF
8730
8731	    debug=""
8732	    if test "$GCC" = yes
8733	    then
8734		optimize="$optimize -fomit-frame-pointer"
8735	    fi
8736	    ;;
8737    esac
8738
8739fi;
8740echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
8741echo "${ECHO_T}${enable_debugging-default}" >&6
8742
8743
8744if test ${enable_debugging-default} = yes; then
8745  DEBUG_TRUE=
8746  DEBUG_FALSE='#'
8747else
8748  DEBUG_TRUE='#'
8749  DEBUG_FALSE=
8750fi
8751
8752
8753
8754test -n "$arch"     && CFLAGS="$CFLAGS $arch"
8755test -n "$debug"    && CFLAGS="$CFLAGS $debug"
8756test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
8757test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
8758
8759
8760                              ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list"
8761
8762cat >confcache <<\_ACEOF
8763# This file is a shell script that caches the results of configure
8764# tests run on this system so they can be shared between configure
8765# scripts and configure runs, see configure's option --config-cache.
8766# It is not useful on other systems.  If it contains results you don't
8767# want to keep, you may remove or edit it.
8768#
8769# config.status only pays attention to the cache file if you give it
8770# the --recheck option to rerun configure.
8771#
8772# `ac_cv_env_foo' variables (set or unset) will be overridden when
8773# loading this file, other *unset* `ac_cv_foo' will be assigned the
8774# following values.
8775
8776_ACEOF
8777
8778# The following way of writing the cache mishandles newlines in values,
8779# but we know of no workaround that is simple, portable, and efficient.
8780# So, don't put newlines in cache variables' values.
8781# Ultrix sh set writes to stderr and can't be redirected directly,
8782# and sets the high bit in the cache file unless we assign to the vars.
8783{
8784  (set) 2>&1 |
8785    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8786    *ac_space=\ *)
8787      # `set' does not quote correctly, so add quotes (double-quote
8788      # substitution turns \\\\ into \\, and sed turns \\ into \).
8789      sed -n \
8790        "s/'/'\\\\''/g;
8791    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8792      ;;
8793    *)
8794      # `set' quotes correctly as required by POSIX, so do not add quotes.
8795      sed -n \
8796        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8797      ;;
8798    esac;
8799} |
8800  sed '
8801     t clear
8802     : clear
8803     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8804     t end
8805     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8806     : end' >>confcache
8807if diff $cache_file confcache >/dev/null 2>&1; then :; else
8808  if test -w $cache_file; then
8809    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8810    cat confcache >$cache_file
8811  else
8812    echo "not updating unwritable cache $cache_file"
8813  fi
8814fi
8815rm -f confcache
8816
8817test "x$prefix" = xNONE && prefix=$ac_default_prefix
8818# Let make expand exec_prefix.
8819test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8820
8821# VPATH may cause trouble with some makes, so we remove $(srcdir),
8822# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8823# trailing colons and then remove the whole line if VPATH becomes empty
8824# (actually we leave an empty line to preserve line numbers).
8825if test "x$srcdir" = x.; then
8826  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
8827s/:*\$(srcdir):*/:/;
8828s/:*\${srcdir}:*/:/;
8829s/:*@srcdir@:*/:/;
8830s/^\([^=]*=[ 	]*\):*/\1/;
8831s/:*$//;
8832s/^[^=]*=[ 	]*$//;
8833}'
8834fi
8835
8836DEFS=-DHAVE_CONFIG_H
8837
8838ac_libobjs=
8839ac_ltlibobjs=
8840for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8841  # 1. Remove the extension, and $U if already installed.
8842  ac_i=`echo "$ac_i" |
8843         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8844  # 2. Add them.
8845  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8846  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8847done
8848LIBOBJS=$ac_libobjs
8849
8850LTLIBOBJS=$ac_ltlibobjs
8851
8852
8853if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8854  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8855Usually this means the macro was only invoked conditionally." >&5
8856echo "$as_me: error: conditional \"AMDEP\" was never defined.
8857Usually this means the macro was only invoked conditionally." >&2;}
8858   { (exit 1); exit 1; }; }
8859fi
8860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8861  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8862Usually this means the macro was only invoked conditionally." >&5
8863echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8864Usually this means the macro was only invoked conditionally." >&2;}
8865   { (exit 1); exit 1; }; }
8866fi
8867if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
8868  { { echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
8869Usually this means the macro was only invoked conditionally." >&5
8870echo "$as_me: error: conditional \"DEBUG\" was never defined.
8871Usually this means the macro was only invoked conditionally." >&2;}
8872   { (exit 1); exit 1; }; }
8873fi
8874
8875: ${CONFIG_STATUS=./config.status}
8876ac_clean_files_save=$ac_clean_files
8877ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8878{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8879echo "$as_me: creating $CONFIG_STATUS" >&6;}
8880cat >$CONFIG_STATUS <<_ACEOF
8881#! $SHELL
8882# Generated by $as_me.
8883# Run this file to recreate the current configuration.
8884# Compiler output produced by configure, useful for debugging
8885# configure, is in config.log if it exists.
8886
8887debug=false
8888ac_cs_recheck=false
8889ac_cs_silent=false
8890SHELL=\${CONFIG_SHELL-$SHELL}
8891_ACEOF
8892
8893cat >>$CONFIG_STATUS <<\_ACEOF
8894## --------------------- ##
8895## M4sh Initialization.  ##
8896## --------------------- ##
8897
8898# Be Bourne compatible
8899if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8900  emulate sh
8901  NULLCMD=:
8902  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8903  # is contrary to our usage.  Disable this feature.
8904  alias -g '${1+"$@"}'='"$@"'
8905elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8906  set -o posix
8907fi
8908
8909# Support unset when possible.
8910if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8911  as_unset=unset
8912else
8913  as_unset=false
8914fi
8915
8916
8917# Work around bugs in pre-3.0 UWIN ksh.
8918$as_unset ENV MAIL MAILPATH
8919PS1='$ '
8920PS2='> '
8921PS4='+ '
8922
8923# NLS nuisances.
8924for as_var in \
8925  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8926  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8927  LC_TELEPHONE LC_TIME
8928do
8929  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8930    eval $as_var=C; export $as_var
8931  else
8932    $as_unset $as_var
8933  fi
8934done
8935
8936# Required to use basename.
8937if expr a : '\(a\)' >/dev/null 2>&1; then
8938  as_expr=expr
8939else
8940  as_expr=false
8941fi
8942
8943if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8944  as_basename=basename
8945else
8946  as_basename=false
8947fi
8948
8949
8950# Name of the executable.
8951as_me=`$as_basename "$0" ||
8952$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8953	 X"$0" : 'X\(//\)$' \| \
8954	 X"$0" : 'X\(/\)$' \| \
8955	 .     : '\(.\)' 2>/dev/null ||
8956echo X/"$0" |
8957    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8958  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
8959  	  /^X\/\(\/\).*/{ s//\1/; q; }
8960  	  s/.*/./; q'`
8961
8962
8963# PATH needs CR, and LINENO needs CR and PATH.
8964# Avoid depending upon Character Ranges.
8965as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8966as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8967as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8968as_cr_digits='0123456789'
8969as_cr_alnum=$as_cr_Letters$as_cr_digits
8970
8971# The user is always right.
8972if test "${PATH_SEPARATOR+set}" != set; then
8973  echo "#! /bin/sh" >conf$$.sh
8974  echo  "exit 0"   >>conf$$.sh
8975  chmod +x conf$$.sh
8976  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8977    PATH_SEPARATOR=';'
8978  else
8979    PATH_SEPARATOR=:
8980  fi
8981  rm -f conf$$.sh
8982fi
8983
8984
8985  as_lineno_1=$LINENO
8986  as_lineno_2=$LINENO
8987  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8988  test "x$as_lineno_1" != "x$as_lineno_2" &&
8989  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8990  # Find who we are.  Look in the path if we contain no path at all
8991  # relative or not.
8992  case $0 in
8993    *[\\/]* ) as_myself=$0 ;;
8994    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995for as_dir in $PATH
8996do
8997  IFS=$as_save_IFS
8998  test -z "$as_dir" && as_dir=.
8999  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9000done
9001
9002       ;;
9003  esac
9004  # We did not find ourselves, most probably we were run as `sh COMMAND'
9005  # in which case we are not to be found in the path.
9006  if test "x$as_myself" = x; then
9007    as_myself=$0
9008  fi
9009  if test ! -f "$as_myself"; then
9010    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9011echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9012   { (exit 1); exit 1; }; }
9013  fi
9014  case $CONFIG_SHELL in
9015  '')
9016    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9018do
9019  IFS=$as_save_IFS
9020  test -z "$as_dir" && as_dir=.
9021  for as_base in sh bash ksh sh5; do
9022	 case $as_dir in
9023	 /*)
9024	   if ("$as_dir/$as_base" -c '
9025  as_lineno_1=$LINENO
9026  as_lineno_2=$LINENO
9027  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9028  test "x$as_lineno_1" != "x$as_lineno_2" &&
9029  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9030	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9031	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9032	     CONFIG_SHELL=$as_dir/$as_base
9033	     export CONFIG_SHELL
9034	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9035	   fi;;
9036	 esac
9037       done
9038done
9039;;
9040  esac
9041
9042  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9043  # uniformly replaced by the line number.  The first 'sed' inserts a
9044  # line-number line before each line; the second 'sed' does the real
9045  # work.  The second script uses 'N' to pair each line-number line
9046  # with the numbered line, and appends trailing '-' during
9047  # substitution so that $LINENO is not a special case at line end.
9048  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9049  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9050  sed '=' <$as_myself |
9051    sed '
9052      N
9053      s,$,-,
9054      : loop
9055      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9056      t loop
9057      s,-$,,
9058      s,^['$as_cr_digits']*\n,,
9059    ' >$as_me.lineno &&
9060  chmod +x $as_me.lineno ||
9061    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9062echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9063   { (exit 1); exit 1; }; }
9064
9065  # Don't try to exec as it changes $[0], causing all sort of problems
9066  # (the dirname of $[0] is not the place where we might find the
9067  # original and so on.  Autoconf is especially sensible to this).
9068  . ./$as_me.lineno
9069  # Exit status is that of the last command.
9070  exit
9071}
9072
9073
9074case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9075  *c*,-n*) ECHO_N= ECHO_C='
9076' ECHO_T='	' ;;
9077  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9078  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9079esac
9080
9081if expr a : '\(a\)' >/dev/null 2>&1; then
9082  as_expr=expr
9083else
9084  as_expr=false
9085fi
9086
9087rm -f conf$$ conf$$.exe conf$$.file
9088echo >conf$$.file
9089if ln -s conf$$.file conf$$ 2>/dev/null; then
9090  # We could just check for DJGPP; but this test a) works b) is more generic
9091  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9092  if test -f conf$$.exe; then
9093    # Don't use ln at all; we don't have any links
9094    as_ln_s='cp -p'
9095  else
9096    as_ln_s='ln -s'
9097  fi
9098elif ln conf$$.file conf$$ 2>/dev/null; then
9099  as_ln_s=ln
9100else
9101  as_ln_s='cp -p'
9102fi
9103rm -f conf$$ conf$$.exe conf$$.file
9104
9105if mkdir -p . 2>/dev/null; then
9106  as_mkdir_p=:
9107else
9108  as_mkdir_p=false
9109fi
9110
9111as_executable_p="test -f"
9112
9113# Sed expression to map a string onto a valid CPP name.
9114as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9115
9116# Sed expression to map a string onto a valid variable name.
9117as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9118
9119
9120# IFS
9121# We need space, tab and new line, in precisely that order.
9122as_nl='
9123'
9124IFS=" 	$as_nl"
9125
9126# CDPATH.
9127$as_unset CDPATH
9128
9129exec 6>&1
9130
9131# Open the log real soon, to keep \$[0] and so on meaningful, and to
9132# report actual input values of CONFIG_FILES etc. instead of their
9133# values after options handling.  Logging --version etc. is OK.
9134exec 5>>config.log
9135{
9136  echo
9137  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9138## Running $as_me. ##
9139_ASBOX
9140} >&5
9141cat >&5 <<_CSEOF
9142
9143This file was extended by ID3 Tag $as_me 0.15.0b, which was
9144generated by GNU Autoconf 2.57.  Invocation command line was
9145
9146  CONFIG_FILES    = $CONFIG_FILES
9147  CONFIG_HEADERS  = $CONFIG_HEADERS
9148  CONFIG_LINKS    = $CONFIG_LINKS
9149  CONFIG_COMMANDS = $CONFIG_COMMANDS
9150  $ $0 $@
9151
9152_CSEOF
9153echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9154echo >&5
9155_ACEOF
9156
9157# Files that config.status was made for.
9158if test -n "$ac_config_files"; then
9159  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9160fi
9161
9162if test -n "$ac_config_headers"; then
9163  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9164fi
9165
9166if test -n "$ac_config_links"; then
9167  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9168fi
9169
9170if test -n "$ac_config_commands"; then
9171  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9172fi
9173
9174cat >>$CONFIG_STATUS <<\_ACEOF
9175
9176ac_cs_usage="\
9177\`$as_me' instantiates files from templates according to the
9178current configuration.
9179
9180Usage: $0 [OPTIONS] [FILE]...
9181
9182  -h, --help       print this help, then exit
9183  -V, --version    print version number, then exit
9184  -q, --quiet      do not print progress messages
9185  -d, --debug      don't remove temporary files
9186      --recheck    update $as_me by reconfiguring in the same conditions
9187  --file=FILE[:TEMPLATE]
9188                   instantiate the configuration file FILE
9189  --header=FILE[:TEMPLATE]
9190                   instantiate the configuration header FILE
9191
9192Configuration files:
9193$config_files
9194
9195Configuration headers:
9196$config_headers
9197
9198Configuration commands:
9199$config_commands
9200
9201Report bugs to <bug-autoconf@gnu.org>."
9202_ACEOF
9203
9204cat >>$CONFIG_STATUS <<_ACEOF
9205ac_cs_version="\\
9206ID3 Tag config.status 0.15.0b
9207configured by $0, generated by GNU Autoconf 2.57,
9208  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9209
9210Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9211Free Software Foundation, Inc.
9212This config.status script is free software; the Free Software Foundation
9213gives unlimited permission to copy, distribute and modify it."
9214srcdir=$srcdir
9215INSTALL="$INSTALL"
9216_ACEOF
9217
9218cat >>$CONFIG_STATUS <<\_ACEOF
9219# If no file are specified by the user, then we need to provide default
9220# value.  By we need to know if files were specified by the user.
9221ac_need_defaults=:
9222while test $# != 0
9223do
9224  case $1 in
9225  --*=*)
9226    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9227    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9228    ac_shift=:
9229    ;;
9230  -*)
9231    ac_option=$1
9232    ac_optarg=$2
9233    ac_shift=shift
9234    ;;
9235  *) # This is not an option, so the user has probably given explicit
9236     # arguments.
9237     ac_option=$1
9238     ac_need_defaults=false;;
9239  esac
9240
9241  case $ac_option in
9242  # Handling of the options.
9243_ACEOF
9244cat >>$CONFIG_STATUS <<\_ACEOF
9245  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9246    ac_cs_recheck=: ;;
9247  --version | --vers* | -V )
9248    echo "$ac_cs_version"; exit 0 ;;
9249  --he | --h)
9250    # Conflict between --help and --header
9251    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9252Try \`$0 --help' for more information." >&5
9253echo "$as_me: error: ambiguous option: $1
9254Try \`$0 --help' for more information." >&2;}
9255   { (exit 1); exit 1; }; };;
9256  --help | --hel | -h )
9257    echo "$ac_cs_usage"; exit 0 ;;
9258  --debug | --d* | -d )
9259    debug=: ;;
9260  --file | --fil | --fi | --f )
9261    $ac_shift
9262    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9263    ac_need_defaults=false;;
9264  --header | --heade | --head | --hea )
9265    $ac_shift
9266    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9267    ac_need_defaults=false;;
9268  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9269  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9270    ac_cs_silent=: ;;
9271
9272  # This is an error.
9273  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9274Try \`$0 --help' for more information." >&5
9275echo "$as_me: error: unrecognized option: $1
9276Try \`$0 --help' for more information." >&2;}
9277   { (exit 1); exit 1; }; } ;;
9278
9279  *) ac_config_targets="$ac_config_targets $1" ;;
9280
9281  esac
9282  shift
9283done
9284
9285ac_configure_extra_args=
9286
9287if $ac_cs_silent; then
9288  exec 6>/dev/null
9289  ac_configure_extra_args="$ac_configure_extra_args --silent"
9290fi
9291
9292_ACEOF
9293cat >>$CONFIG_STATUS <<_ACEOF
9294if \$ac_cs_recheck; then
9295  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9296  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9297fi
9298
9299_ACEOF
9300
9301cat >>$CONFIG_STATUS <<_ACEOF
9302#
9303# INIT-COMMANDS section.
9304#
9305
9306AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9307
9308_ACEOF
9309
9310
9311
9312cat >>$CONFIG_STATUS <<\_ACEOF
9313for ac_config_target in $ac_config_targets
9314do
9315  case "$ac_config_target" in
9316  # Handling of arguments.
9317  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9318  "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
9319  "libid3tag.list" ) CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;;
9320  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9321  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9322  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9323echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9324   { (exit 1); exit 1; }; };;
9325  esac
9326done
9327
9328# If the user did not use the arguments to specify the items to instantiate,
9329# then the envvar interface is used.  Set only those that are not.
9330# We use the long form for the default assignment because of an extremely
9331# bizarre bug on SunOS 4.1.3.
9332if $ac_need_defaults; then
9333  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9334  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9335  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9336fi
9337
9338# Have a temporary directory for convenience.  Make it in the build tree
9339# simply because there is no reason to put it here, and in addition,
9340# creating and moving files from /tmp can sometimes cause problems.
9341# Create a temporary directory, and hook for its removal unless debugging.
9342$debug ||
9343{
9344  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9345  trap '{ (exit 1); exit 1; }' 1 2 13 15
9346}
9347
9348# Create a (secure) tmp directory for tmp files.
9349
9350{
9351  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9352  test -n "$tmp" && test -d "$tmp"
9353}  ||
9354{
9355  tmp=./confstat$$-$RANDOM
9356  (umask 077 && mkdir $tmp)
9357} ||
9358{
9359   echo "$me: cannot create a temporary directory in ." >&2
9360   { (exit 1); exit 1; }
9361}
9362
9363_ACEOF
9364
9365cat >>$CONFIG_STATUS <<_ACEOF
9366
9367#
9368# CONFIG_FILES section.
9369#
9370
9371# No need to generate the scripts if there are no CONFIG_FILES.
9372# This happens for instance when ./config.status config.h
9373if test -n "\$CONFIG_FILES"; then
9374  # Protect against being on the right side of a sed subst in config.status.
9375  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9376   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9377s,@SHELL@,$SHELL,;t t
9378s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9379s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9380s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9381s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9382s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9383s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9384s,@exec_prefix@,$exec_prefix,;t t
9385s,@prefix@,$prefix,;t t
9386s,@program_transform_name@,$program_transform_name,;t t
9387s,@bindir@,$bindir,;t t
9388s,@sbindir@,$sbindir,;t t
9389s,@libexecdir@,$libexecdir,;t t
9390s,@datadir@,$datadir,;t t
9391s,@sysconfdir@,$sysconfdir,;t t
9392s,@sharedstatedir@,$sharedstatedir,;t t
9393s,@localstatedir@,$localstatedir,;t t
9394s,@libdir@,$libdir,;t t
9395s,@includedir@,$includedir,;t t
9396s,@oldincludedir@,$oldincludedir,;t t
9397s,@infodir@,$infodir,;t t
9398s,@mandir@,$mandir,;t t
9399s,@build_alias@,$build_alias,;t t
9400s,@host_alias@,$host_alias,;t t
9401s,@target_alias@,$target_alias,;t t
9402s,@DEFS@,$DEFS,;t t
9403s,@ECHO_C@,$ECHO_C,;t t
9404s,@ECHO_N@,$ECHO_N,;t t
9405s,@ECHO_T@,$ECHO_T,;t t
9406s,@LIBS@,$LIBS,;t t
9407s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9408s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9409s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9410s,@CYGPATH_W@,$CYGPATH_W,;t t
9411s,@PACKAGE@,$PACKAGE,;t t
9412s,@VERSION@,$VERSION,;t t
9413s,@ACLOCAL@,$ACLOCAL,;t t
9414s,@AUTOCONF@,$AUTOCONF,;t t
9415s,@AUTOMAKE@,$AUTOMAKE,;t t
9416s,@AUTOHEADER@,$AUTOHEADER,;t t
9417s,@MAKEINFO@,$MAKEINFO,;t t
9418s,@AMTAR@,$AMTAR,;t t
9419s,@install_sh@,$install_sh,;t t
9420s,@STRIP@,$STRIP,;t t
9421s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9422s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9423s,@AWK@,$AWK,;t t
9424s,@SET_MAKE@,$SET_MAKE,;t t
9425s,@am__leading_dot@,$am__leading_dot,;t t
9426s,@build@,$build,;t t
9427s,@build_cpu@,$build_cpu,;t t
9428s,@build_vendor@,$build_vendor,;t t
9429s,@build_os@,$build_os,;t t
9430s,@host@,$host,;t t
9431s,@host_cpu@,$host_cpu,;t t
9432s,@host_vendor@,$host_vendor,;t t
9433s,@host_os@,$host_os,;t t
9434s,@CC@,$CC,;t t
9435s,@CFLAGS@,$CFLAGS,;t t
9436s,@LDFLAGS@,$LDFLAGS,;t t
9437s,@CPPFLAGS@,$CPPFLAGS,;t t
9438s,@ac_ct_CC@,$ac_ct_CC,;t t
9439s,@EXEEXT@,$EXEEXT,;t t
9440s,@OBJEXT@,$OBJEXT,;t t
9441s,@DEPDIR@,$DEPDIR,;t t
9442s,@am__include@,$am__include,;t t
9443s,@am__quote@,$am__quote,;t t
9444s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9445s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9446s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9447s,@CCDEPMODE@,$CCDEPMODE,;t t
9448s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9449s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9450s,@LN_S@,$LN_S,;t t
9451s,@ECHO@,$ECHO,;t t
9452s,@RANLIB@,$RANLIB,;t t
9453s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9454s,@CPP@,$CPP,;t t
9455s,@EGREP@,$EGREP,;t t
9456s,@LIBTOOL@,$LIBTOOL,;t t
9457s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
9458s,@DEBUG_TRUE@,$DEBUG_TRUE,;t t
9459s,@DEBUG_FALSE@,$DEBUG_FALSE,;t t
9460s,@LIBOBJS@,$LIBOBJS,;t t
9461s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9462CEOF
9463
9464_ACEOF
9465
9466  cat >>$CONFIG_STATUS <<\_ACEOF
9467  # Split the substitutions into bite-sized pieces for seds with
9468  # small command number limits, like on Digital OSF/1 and HP-UX.
9469  ac_max_sed_lines=48
9470  ac_sed_frag=1 # Number of current file.
9471  ac_beg=1 # First line for current file.
9472  ac_end=$ac_max_sed_lines # Line after last line for current file.
9473  ac_more_lines=:
9474  ac_sed_cmds=
9475  while $ac_more_lines; do
9476    if test $ac_beg -gt 1; then
9477      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9478    else
9479      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9480    fi
9481    if test ! -s $tmp/subs.frag; then
9482      ac_more_lines=false
9483    else
9484      # The purpose of the label and of the branching condition is to
9485      # speed up the sed processing (if there are no `@' at all, there
9486      # is no need to browse any of the substitutions).
9487      # These are the two extra sed commands mentioned above.
9488      (echo ':t
9489  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9490      if test -z "$ac_sed_cmds"; then
9491  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9492      else
9493  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9494      fi
9495      ac_sed_frag=`expr $ac_sed_frag + 1`
9496      ac_beg=$ac_end
9497      ac_end=`expr $ac_end + $ac_max_sed_lines`
9498    fi
9499  done
9500  if test -z "$ac_sed_cmds"; then
9501    ac_sed_cmds=cat
9502  fi
9503fi # test -n "$CONFIG_FILES"
9504
9505_ACEOF
9506cat >>$CONFIG_STATUS <<\_ACEOF
9507for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9508  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9509  case $ac_file in
9510  - | *:- | *:-:* ) # input from stdin
9511        cat >$tmp/stdin
9512        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9513        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9514  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9515        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9516  * )   ac_file_in=$ac_file.in ;;
9517  esac
9518
9519  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9520  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9521$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9522         X"$ac_file" : 'X\(//\)[^/]' \| \
9523         X"$ac_file" : 'X\(//\)$' \| \
9524         X"$ac_file" : 'X\(/\)' \| \
9525         .     : '\(.\)' 2>/dev/null ||
9526echo X"$ac_file" |
9527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9528  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9529  	  /^X\(\/\/\)$/{ s//\1/; q; }
9530  	  /^X\(\/\).*/{ s//\1/; q; }
9531  	  s/.*/./; q'`
9532  { if $as_mkdir_p; then
9533    mkdir -p "$ac_dir"
9534  else
9535    as_dir="$ac_dir"
9536    as_dirs=
9537    while test ! -d "$as_dir"; do
9538      as_dirs="$as_dir $as_dirs"
9539      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9540$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9541         X"$as_dir" : 'X\(//\)[^/]' \| \
9542         X"$as_dir" : 'X\(//\)$' \| \
9543         X"$as_dir" : 'X\(/\)' \| \
9544         .     : '\(.\)' 2>/dev/null ||
9545echo X"$as_dir" |
9546    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9547  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9548  	  /^X\(\/\/\)$/{ s//\1/; q; }
9549  	  /^X\(\/\).*/{ s//\1/; q; }
9550  	  s/.*/./; q'`
9551    done
9552    test ! -n "$as_dirs" || mkdir $as_dirs
9553  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9554echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9555   { (exit 1); exit 1; }; }; }
9556
9557  ac_builddir=.
9558
9559if test "$ac_dir" != .; then
9560  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9561  # A "../" for each directory in $ac_dir_suffix.
9562  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9563else
9564  ac_dir_suffix= ac_top_builddir=
9565fi
9566
9567case $srcdir in
9568  .)  # No --srcdir option.  We are building in place.
9569    ac_srcdir=.
9570    if test -z "$ac_top_builddir"; then
9571       ac_top_srcdir=.
9572    else
9573       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9574    fi ;;
9575  [\\/]* | ?:[\\/]* )  # Absolute path.
9576    ac_srcdir=$srcdir$ac_dir_suffix;
9577    ac_top_srcdir=$srcdir ;;
9578  *) # Relative path.
9579    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9580    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9581esac
9582# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9583# absolute.
9584ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9585ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9586ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9587ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9588
9589
9590  case $INSTALL in
9591  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9592  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9593  esac
9594
9595  if test x"$ac_file" != x-; then
9596    { echo "$as_me:$LINENO: creating $ac_file" >&5
9597echo "$as_me: creating $ac_file" >&6;}
9598    rm -f "$ac_file"
9599  fi
9600  # Let's still pretend it is `configure' which instantiates (i.e., don't
9601  # use $as_me), people would be surprised to read:
9602  #    /* config.h.  Generated by config.status.  */
9603  if test x"$ac_file" = x-; then
9604    configure_input=
9605  else
9606    configure_input="$ac_file.  "
9607  fi
9608  configure_input=$configure_input"Generated from `echo $ac_file_in |
9609                                     sed 's,.*/,,'` by configure."
9610
9611  # First look for the input files in the build tree, otherwise in the
9612  # src tree.
9613  ac_file_inputs=`IFS=:
9614    for f in $ac_file_in; do
9615      case $f in
9616      -) echo $tmp/stdin ;;
9617      [\\/$]*)
9618         # Absolute (can't be DOS-style, as IFS=:)
9619         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9620echo "$as_me: error: cannot find input file: $f" >&2;}
9621   { (exit 1); exit 1; }; }
9622         echo $f;;
9623      *) # Relative
9624         if test -f "$f"; then
9625           # Build tree
9626           echo $f
9627         elif test -f "$srcdir/$f"; then
9628           # Source tree
9629           echo $srcdir/$f
9630         else
9631           # /dev/null tree
9632           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9633echo "$as_me: error: cannot find input file: $f" >&2;}
9634   { (exit 1); exit 1; }; }
9635         fi;;
9636      esac
9637    done` || { (exit 1); exit 1; }
9638_ACEOF
9639cat >>$CONFIG_STATUS <<_ACEOF
9640  sed "$ac_vpsub
9641$extrasub
9642_ACEOF
9643cat >>$CONFIG_STATUS <<\_ACEOF
9644:t
9645/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9646s,@configure_input@,$configure_input,;t t
9647s,@srcdir@,$ac_srcdir,;t t
9648s,@abs_srcdir@,$ac_abs_srcdir,;t t
9649s,@top_srcdir@,$ac_top_srcdir,;t t
9650s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9651s,@builddir@,$ac_builddir,;t t
9652s,@abs_builddir@,$ac_abs_builddir,;t t
9653s,@top_builddir@,$ac_top_builddir,;t t
9654s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9655s,@INSTALL@,$ac_INSTALL,;t t
9656" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9657  rm -f $tmp/stdin
9658  if test x"$ac_file" != x-; then
9659    mv $tmp/out $ac_file
9660  else
9661    cat $tmp/out
9662    rm -f $tmp/out
9663  fi
9664
9665done
9666_ACEOF
9667cat >>$CONFIG_STATUS <<\_ACEOF
9668
9669#
9670# CONFIG_HEADER section.
9671#
9672
9673# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9674# NAME is the cpp macro being defined and VALUE is the value it is being given.
9675#
9676# ac_d sets the value in "#define NAME VALUE" lines.
9677ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
9678ac_dB='[ 	].*$,\1#\2'
9679ac_dC=' '
9680ac_dD=',;t'
9681# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9682ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
9683ac_uB='$,\1#\2define\3'
9684ac_uC=' '
9685ac_uD=',;t'
9686
9687for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9688  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9689  case $ac_file in
9690  - | *:- | *:-:* ) # input from stdin
9691        cat >$tmp/stdin
9692        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9693        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9694  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9695        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9696  * )   ac_file_in=$ac_file.in ;;
9697  esac
9698
9699  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9700echo "$as_me: creating $ac_file" >&6;}
9701
9702  # First look for the input files in the build tree, otherwise in the
9703  # src tree.
9704  ac_file_inputs=`IFS=:
9705    for f in $ac_file_in; do
9706      case $f in
9707      -) echo $tmp/stdin ;;
9708      [\\/$]*)
9709         # Absolute (can't be DOS-style, as IFS=:)
9710         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9711echo "$as_me: error: cannot find input file: $f" >&2;}
9712   { (exit 1); exit 1; }; }
9713         echo $f;;
9714      *) # Relative
9715         if test -f "$f"; then
9716           # Build tree
9717           echo $f
9718         elif test -f "$srcdir/$f"; then
9719           # Source tree
9720           echo $srcdir/$f
9721         else
9722           # /dev/null tree
9723           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9724echo "$as_me: error: cannot find input file: $f" >&2;}
9725   { (exit 1); exit 1; }; }
9726         fi;;
9727      esac
9728    done` || { (exit 1); exit 1; }
9729  # Remove the trailing spaces.
9730  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
9731
9732_ACEOF
9733
9734# Transform confdefs.h into two sed scripts, `conftest.defines' and
9735# `conftest.undefs', that substitutes the proper values into
9736# config.h.in to produce config.h.  The first handles `#define'
9737# templates, and the second `#undef' templates.
9738# And first: Protect against being on the right side of a sed subst in
9739# config.status.  Protect against being in an unquoted here document
9740# in config.status.
9741rm -f conftest.defines conftest.undefs
9742# Using a here document instead of a string reduces the quoting nightmare.
9743# Putting comments in sed scripts is not portable.
9744#
9745# `end' is used to avoid that the second main sed command (meant for
9746# 0-ary CPP macros) applies to n-ary macro definitions.
9747# See the Autoconf documentation for `clear'.
9748cat >confdef2sed.sed <<\_ACEOF
9749s/[\\&,]/\\&/g
9750s,[\\$`],\\&,g
9751t clear
9752: clear
9753s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9754t end
9755s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9756: end
9757_ACEOF
9758# If some macros were called several times there might be several times
9759# the same #defines, which is useless.  Nevertheless, we may not want to
9760# sort them, since we want the *last* AC-DEFINE to be honored.
9761uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9762sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9763rm -f confdef2sed.sed
9764
9765# This sed command replaces #undef with comments.  This is necessary, for
9766# example, in the case of _POSIX_SOURCE, which is predefined and required
9767# on some systems where configure will not decide to define it.
9768cat >>conftest.undefs <<\_ACEOF
9769s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9770_ACEOF
9771
9772# Break up conftest.defines because some shells have a limit on the size
9773# of here documents, and old seds have small limits too (100 cmds).
9774echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9775echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9776echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9777echo '  :' >>$CONFIG_STATUS
9778rm -f conftest.tail
9779while grep . conftest.defines >/dev/null
9780do
9781  # Write a limited-size here document to $tmp/defines.sed.
9782  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9783  # Speed up: don't consider the non `#define' lines.
9784  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
9785  # Work around the forget-to-reset-the-flag bug.
9786  echo 't clr' >>$CONFIG_STATUS
9787  echo ': clr' >>$CONFIG_STATUS
9788  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9789  echo 'CEOF
9790  sed -f $tmp/defines.sed $tmp/in >$tmp/out
9791  rm -f $tmp/in
9792  mv $tmp/out $tmp/in
9793' >>$CONFIG_STATUS
9794  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9795  rm -f conftest.defines
9796  mv conftest.tail conftest.defines
9797done
9798rm -f conftest.defines
9799echo '  fi # grep' >>$CONFIG_STATUS
9800echo >>$CONFIG_STATUS
9801
9802# Break up conftest.undefs because some shells have a limit on the size
9803# of here documents, and old seds have small limits too (100 cmds).
9804echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9805rm -f conftest.tail
9806while grep . conftest.undefs >/dev/null
9807do
9808  # Write a limited-size here document to $tmp/undefs.sed.
9809  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9810  # Speed up: don't consider the non `#undef'
9811  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
9812  # Work around the forget-to-reset-the-flag bug.
9813  echo 't clr' >>$CONFIG_STATUS
9814  echo ': clr' >>$CONFIG_STATUS
9815  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9816  echo 'CEOF
9817  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9818  rm -f $tmp/in
9819  mv $tmp/out $tmp/in
9820' >>$CONFIG_STATUS
9821  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9822  rm -f conftest.undefs
9823  mv conftest.tail conftest.undefs
9824done
9825rm -f conftest.undefs
9826
9827cat >>$CONFIG_STATUS <<\_ACEOF
9828  # Let's still pretend it is `configure' which instantiates (i.e., don't
9829  # use $as_me), people would be surprised to read:
9830  #    /* config.h.  Generated by config.status.  */
9831  if test x"$ac_file" = x-; then
9832    echo "/* Generated by configure.  */" >$tmp/config.h
9833  else
9834    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9835  fi
9836  cat $tmp/in >>$tmp/config.h
9837  rm -f $tmp/in
9838  if test x"$ac_file" != x-; then
9839    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9840      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9841echo "$as_me: $ac_file is unchanged" >&6;}
9842    else
9843      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9845         X"$ac_file" : 'X\(//\)[^/]' \| \
9846         X"$ac_file" : 'X\(//\)$' \| \
9847         X"$ac_file" : 'X\(/\)' \| \
9848         .     : '\(.\)' 2>/dev/null ||
9849echo X"$ac_file" |
9850    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9851  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9852  	  /^X\(\/\/\)$/{ s//\1/; q; }
9853  	  /^X\(\/\).*/{ s//\1/; q; }
9854  	  s/.*/./; q'`
9855      { if $as_mkdir_p; then
9856    mkdir -p "$ac_dir"
9857  else
9858    as_dir="$ac_dir"
9859    as_dirs=
9860    while test ! -d "$as_dir"; do
9861      as_dirs="$as_dir $as_dirs"
9862      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9864         X"$as_dir" : 'X\(//\)[^/]' \| \
9865         X"$as_dir" : 'X\(//\)$' \| \
9866         X"$as_dir" : 'X\(/\)' \| \
9867         .     : '\(.\)' 2>/dev/null ||
9868echo X"$as_dir" |
9869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9870  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9871  	  /^X\(\/\/\)$/{ s//\1/; q; }
9872  	  /^X\(\/\).*/{ s//\1/; q; }
9873  	  s/.*/./; q'`
9874    done
9875    test ! -n "$as_dirs" || mkdir $as_dirs
9876  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9877echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9878   { (exit 1); exit 1; }; }; }
9879
9880      rm -f $ac_file
9881      mv $tmp/config.h $ac_file
9882    fi
9883  else
9884    cat $tmp/config.h
9885    rm -f $tmp/config.h
9886  fi
9887# Compute $ac_file's index in $config_headers.
9888_am_stamp_count=1
9889for _am_header in $config_headers :; do
9890  case $_am_header in
9891    $ac_file | $ac_file:* )
9892      break ;;
9893    * )
9894      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9895  esac
9896done
9897echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9898$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9899         X$ac_file : 'X\(//\)[^/]' \| \
9900         X$ac_file : 'X\(//\)$' \| \
9901         X$ac_file : 'X\(/\)' \| \
9902         .     : '\(.\)' 2>/dev/null ||
9903echo X$ac_file |
9904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9905  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9906  	  /^X\(\/\/\)$/{ s//\1/; q; }
9907  	  /^X\(\/\).*/{ s//\1/; q; }
9908  	  s/.*/./; q'`/stamp-h$_am_stamp_count
9909done
9910_ACEOF
9911cat >>$CONFIG_STATUS <<\_ACEOF
9912
9913#
9914# CONFIG_COMMANDS section.
9915#
9916for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9917  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9918  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9919  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9920$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9921         X"$ac_dest" : 'X\(//\)[^/]' \| \
9922         X"$ac_dest" : 'X\(//\)$' \| \
9923         X"$ac_dest" : 'X\(/\)' \| \
9924         .     : '\(.\)' 2>/dev/null ||
9925echo X"$ac_dest" |
9926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9927  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9928  	  /^X\(\/\/\)$/{ s//\1/; q; }
9929  	  /^X\(\/\).*/{ s//\1/; q; }
9930  	  s/.*/./; q'`
9931  ac_builddir=.
9932
9933if test "$ac_dir" != .; then
9934  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9935  # A "../" for each directory in $ac_dir_suffix.
9936  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9937else
9938  ac_dir_suffix= ac_top_builddir=
9939fi
9940
9941case $srcdir in
9942  .)  # No --srcdir option.  We are building in place.
9943    ac_srcdir=.
9944    if test -z "$ac_top_builddir"; then
9945       ac_top_srcdir=.
9946    else
9947       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9948    fi ;;
9949  [\\/]* | ?:[\\/]* )  # Absolute path.
9950    ac_srcdir=$srcdir$ac_dir_suffix;
9951    ac_top_srcdir=$srcdir ;;
9952  *) # Relative path.
9953    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9954    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9955esac
9956# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9957# absolute.
9958ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9959ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9960ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9961ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9962
9963
9964  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9965echo "$as_me: executing $ac_dest commands" >&6;}
9966  case $ac_dest in
9967    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9968  # Strip MF so we end up with the name of the file.
9969  mf=`echo "$mf" | sed -e 's/:.*$//'`
9970  # Check whether this is an Automake generated Makefile or not.
9971  # We used to match only the files named `Makefile.in', but
9972  # some people rename them; so instead we look at the file content.
9973  # Grep'ing the first line is not enough: some people post-process
9974  # each Makefile.in and add a new line on top of each file to say so.
9975  # So let's grep whole file.
9976  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9977    dirpart=`(dirname "$mf") 2>/dev/null ||
9978$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9979         X"$mf" : 'X\(//\)[^/]' \| \
9980         X"$mf" : 'X\(//\)$' \| \
9981         X"$mf" : 'X\(/\)' \| \
9982         .     : '\(.\)' 2>/dev/null ||
9983echo X"$mf" |
9984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9985  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9986  	  /^X\(\/\/\)$/{ s//\1/; q; }
9987  	  /^X\(\/\).*/{ s//\1/; q; }
9988  	  s/.*/./; q'`
9989  else
9990    continue
9991  fi
9992  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9993  # Extract the definition of DEP_FILES from the Makefile without
9994  # running `make'.
9995  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9996  test -z "$DEPDIR" && continue
9997  # When using ansi2knr, U may be empty or an underscore; expand it
9998  U=`sed -n -e '/^U = / s///p' < "$mf"`
9999  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10000  # We invoke sed twice because it is the simplest approach to
10001  # changing $(DEPDIR) to its actual value in the expansion.
10002  for file in `sed -n -e '
10003    /^DEP_FILES = .*\\\\$/ {
10004      s/^DEP_FILES = //
10005      :loop
10006	s/\\\\$//
10007	p
10008	n
10009	/\\\\$/ b loop
10010      p
10011    }
10012    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10013       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10014    # Make sure the directory exists.
10015    test -f "$dirpart/$file" && continue
10016    fdir=`(dirname "$file") 2>/dev/null ||
10017$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10018         X"$file" : 'X\(//\)[^/]' \| \
10019         X"$file" : 'X\(//\)$' \| \
10020         X"$file" : 'X\(/\)' \| \
10021         .     : '\(.\)' 2>/dev/null ||
10022echo X"$file" |
10023    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10024  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10025  	  /^X\(\/\/\)$/{ s//\1/; q; }
10026  	  /^X\(\/\).*/{ s//\1/; q; }
10027  	  s/.*/./; q'`
10028    { if $as_mkdir_p; then
10029    mkdir -p $dirpart/$fdir
10030  else
10031    as_dir=$dirpart/$fdir
10032    as_dirs=
10033    while test ! -d "$as_dir"; do
10034      as_dirs="$as_dir $as_dirs"
10035      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10037         X"$as_dir" : 'X\(//\)[^/]' \| \
10038         X"$as_dir" : 'X\(//\)$' \| \
10039         X"$as_dir" : 'X\(/\)' \| \
10040         .     : '\(.\)' 2>/dev/null ||
10041echo X"$as_dir" |
10042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10043  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10044  	  /^X\(\/\/\)$/{ s//\1/; q; }
10045  	  /^X\(\/\).*/{ s//\1/; q; }
10046  	  s/.*/./; q'`
10047    done
10048    test ! -n "$as_dirs" || mkdir $as_dirs
10049  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10050echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10051   { (exit 1); exit 1; }; }; }
10052
10053    # echo "creating $dirpart/$file"
10054    echo '# dummy' > "$dirpart/$file"
10055  done
10056done
10057 ;;
10058  esac
10059done
10060_ACEOF
10061
10062cat >>$CONFIG_STATUS <<\_ACEOF
10063
10064{ (exit 0); exit 0; }
10065_ACEOF
10066chmod +x $CONFIG_STATUS
10067ac_clean_files=$ac_clean_files_save
10068
10069
10070# configure is writing to config.log, and then calls config.status.
10071# config.status does its own redirection, appending to config.log.
10072# Unfortunately, on DOS this fails, as config.log is still kept open
10073# by configure, so config.status won't be able to write to it; its
10074# output is simply discarded.  So we exec the FD to /dev/null,
10075# effectively closing config.log, so it can be properly (re)opened and
10076# appended to by config.status.  When coming back to configure, we
10077# need to make the FD available again.
10078if test "$no_create" != yes; then
10079  ac_cs_success=:
10080  ac_config_status_args=
10081  test "$silent" = yes &&
10082    ac_config_status_args="$ac_config_status_args --quiet"
10083  exec 5>/dev/null
10084  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10085  exec 5>>config.log
10086  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10087  # would make configure fail if this is the last instruction.
10088  $ac_cs_success || { (exit 1); exit 1; }
10089fi
10090
10091