1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator.  Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246  UNAME=${UNAME-`uname 2>/dev/null`}
247  case X$UNAME in
248    *-DOS) lt_cv_sys_path_separator=';' ;;
249    *)     lt_cv_sys_path_separator=':' ;;
250  esac
251  PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260  # Remove one level of quotation (which was required for Make).
261  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262  ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267  # Discard the --no-reexec flag, and continue.
268  shift
269elif test "X$1" = X--fallback-echo; then
270  # Avoid inline document here, it may be left over
271  :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273  # Yippee, $echo works!
274  :
275else
276  # Restart under the correct shell.
277  exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281  # used as fallback echo
282  shift
283  cat <<EOF
284
285EOF
286  exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299       echo_test_string="`eval $cmd`" &&
300       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301    then
302      break
303    fi
304  done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309   test "X$echo_testing_string" = "X$echo_test_string"; then
310  :
311else
312  # The Solaris, AIX, and Digital Unix default echo programs unquote
313  # backslashes.  This makes it impossible to quote backslashes using
314  #   echo "$something" | sed 's/\\/\\\\/g'
315  #
316  # So, first we look for a working echo in the user's PATH.
317
318  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319  for dir in $PATH /usr/ucb; do
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/maitretarot.h"
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 LIBMT_MAJOR LIBMT_MINOR LIBMT_MICRO 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 PKG_CONFIG GLIB_CFLAGS GLIB_LIBS LIBOBJS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829              localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869         X"$0" : 'X\(//\)[^/]' \| \
870         X"$0" : 'X\(//\)$' \| \
871         X"$0" : 'X\(/\)' \| \
872         .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931
932#
933# Report the --help message.
934#
935if test "$ac_init_help" = "long"; then
936  # Omit some internal or obsolete options to make the list less imposing.
937  # This message is too long to be a string in the A/UX 3.1 sh.
938  cat <<_ACEOF
939\`configure' configures this package to adapt to many kinds of systems.
940
941Usage: $0 [OPTION]... [VAR=VALUE]...
942
943To assign environment variables (e.g., CC, CFLAGS...), specify them as
944VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946Defaults for the options are specified in brackets.
947
948Configuration:
949  -h, --help              display this help and exit
950      --help=short        display options specific to this package
951      --help=recursive    display the short help of all the included packages
952  -V, --version           display version information and exit
953  -q, --quiet, --silent   do not print \`checking...' messages
954      --cache-file=FILE   cache test results in FILE [disabled]
955  -C, --config-cache      alias for \`--cache-file=config.cache'
956  -n, --no-create         do not create output files
957      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959_ACEOF
960
961  cat <<_ACEOF
962Installation directories:
963  --prefix=PREFIX         install architecture-independent files in PREFIX
964                          [$ac_default_prefix]
965  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                          [PREFIX]
967
968By default, \`make install' will install all the files in
969\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971for instance \`--prefix=\$HOME'.
972
973For better control, use the options below.
974
975Fine tuning of the installation directories:
976  --bindir=DIR           user executables [EPREFIX/bin]
977  --sbindir=DIR          system admin executables [EPREFIX/sbin]
978  --libexecdir=DIR       program executables [EPREFIX/libexec]
979  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983  --libdir=DIR           object code libraries [EPREFIX/lib]
984  --includedir=DIR       C header files [PREFIX/include]
985  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986  --infodir=DIR          info documentation [PREFIX/info]
987  --mandir=DIR           man documentation [PREFIX/man]
988_ACEOF
989
990  cat <<\_ACEOF
991
992Program names:
993  --program-prefix=PREFIX            prepend PREFIX to installed program names
994  --program-suffix=SUFFIX            append SUFFIX to installed program names
995  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997System types:
998  --build=BUILD     configure for building on BUILD [guessed]
999  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000  --target=TARGET   configure for building compilers for TARGET [HOST]
1001_ACEOF
1002fi
1003
1004if test -n "$ac_init_help"; then
1005
1006  cat <<\_ACEOF
1007
1008Optional Features:
1009  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1010  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1011  --disable-dependency-tracking Speeds up one-time builds
1012  --enable-dependency-tracking  Do not reject slow dependency extractors
1013  --enable-shared=PKGS  build shared libraries default=yes
1014  --enable-static=PKGS  build static libraries default=yes
1015  --enable-fast-install=PKGS  optimize for fast installation default=yes
1016  --disable-libtool-lock  avoid locking (might break parallel builds)
1017
1018Optional Packages:
1019  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1020  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1021  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1022  --with-pic              try to use only PIC/non-PIC objects default=use both
1023
1024Some influential environment variables:
1025  CC          C compiler command
1026  CFLAGS      C compiler flags
1027  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1028              nonstandard directory <lib dir>
1029  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030              headers in a nonstandard directory <include dir>
1031  CPP         C preprocessor
1032
1033Use these variables to override the choices made by `configure' or to help
1034it to find libraries and programs with nonstandard names/locations.
1035
1036_ACEOF
1037fi
1038
1039if test "$ac_init_help" = "recursive"; then
1040  # If there are subdirs, report their specific --help.
1041  ac_popdir=`pwd`
1042  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043    test -d $ac_dir || continue
1044    ac_builddir=.
1045
1046if test "$ac_dir" != .; then
1047  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048  # A "../" for each directory in $ac_dir_suffix.
1049  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050else
1051  ac_dir_suffix= ac_top_builddir=
1052fi
1053
1054case $srcdir in
1055  .)  # No --srcdir option.  We are building in place.
1056    ac_srcdir=.
1057    if test -z "$ac_top_builddir"; then
1058       ac_top_srcdir=.
1059    else
1060       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061    fi ;;
1062  [\\/]* | ?:[\\/]* )  # Absolute path.
1063    ac_srcdir=$srcdir$ac_dir_suffix;
1064    ac_top_srcdir=$srcdir ;;
1065  *) # Relative path.
1066    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068esac
1069# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1070# absolute.
1071ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1072ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1073ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1074ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1075
1076    cd $ac_dir
1077    # Check for guested configure; otherwise get Cygnus style configure.
1078    if test -f $ac_srcdir/configure.gnu; then
1079      echo
1080      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1081    elif test -f $ac_srcdir/configure; then
1082      echo
1083      $SHELL $ac_srcdir/configure  --help=recursive
1084    elif test -f $ac_srcdir/configure.ac ||
1085           test -f $ac_srcdir/configure.in; then
1086      echo
1087      $ac_configure --help
1088    else
1089      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1090    fi
1091    cd $ac_popdir
1092  done
1093fi
1094
1095test -n "$ac_init_help" && exit 0
1096if $ac_init_version; then
1097  cat <<\_ACEOF
1098
1099Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1100Free Software Foundation, Inc.
1101This configure script is free software; the Free Software Foundation
1102gives unlimited permission to copy, distribute and modify it.
1103_ACEOF
1104  exit 0
1105fi
1106exec 5>config.log
1107cat >&5 <<_ACEOF
1108This file contains any messages produced by compilers while
1109running configure, to aid debugging if configure makes a mistake.
1110
1111It was created by $as_me, which was
1112generated by GNU Autoconf 2.57.  Invocation command line was
1113
1114  $ $0 $@
1115
1116_ACEOF
1117{
1118cat <<_ASUNAME
1119## --------- ##
1120## Platform. ##
1121## --------- ##
1122
1123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1124uname -m = `(uname -m) 2>/dev/null || echo unknown`
1125uname -r = `(uname -r) 2>/dev/null || echo unknown`
1126uname -s = `(uname -s) 2>/dev/null || echo unknown`
1127uname -v = `(uname -v) 2>/dev/null || echo unknown`
1128
1129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1130/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1131
1132/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1133/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1135hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1136/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1137/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1138/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1139
1140_ASUNAME
1141
1142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143for as_dir in $PATH
1144do
1145  IFS=$as_save_IFS
1146  test -z "$as_dir" && as_dir=.
1147  echo "PATH: $as_dir"
1148done
1149
1150} >&5
1151
1152cat >&5 <<_ACEOF
1153
1154
1155## ----------- ##
1156## Core tests. ##
1157## ----------- ##
1158
1159_ACEOF
1160
1161
1162# Keep a trace of the command line.
1163# Strip out --no-create and --no-recursion so they do not pile up.
1164# Strip out --silent because we don't want to record it for future runs.
1165# Also quote any args containing shell meta-characters.
1166# Make two passes to allow for proper duplicate-argument suppression.
1167ac_configure_args=
1168ac_configure_args0=
1169ac_configure_args1=
1170ac_sep=
1171ac_must_keep_next=false
1172for ac_pass in 1 2
1173do
1174  for ac_arg
1175  do
1176    case $ac_arg in
1177    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1178    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179    | -silent | --silent | --silen | --sile | --sil)
1180      continue ;;
1181    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1182      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1183    esac
1184    case $ac_pass in
1185    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1186    2)
1187      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1188      if test $ac_must_keep_next = true; then
1189        ac_must_keep_next=false # Got value, back to normal.
1190      else
1191        case $ac_arg in
1192          *=* | --config-cache | -C | -disable-* | --disable-* \
1193          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1194          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1195          | -with-* | --with-* | -without-* | --without-* | --x)
1196            case "$ac_configure_args0 " in
1197              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1198            esac
1199            ;;
1200          -* ) ac_must_keep_next=true ;;
1201        esac
1202      fi
1203      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1204      # Get rid of the leading space.
1205      ac_sep=" "
1206      ;;
1207    esac
1208  done
1209done
1210$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1211$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1212
1213# When interrupted or exit'd, cleanup temporary files, and complete
1214# config.log.  We remove comments because anyway the quotes in there
1215# would cause problems or look ugly.
1216# WARNING: Be sure not to use single quotes in there, as some shells,
1217# such as our DU 5.0 friend, will then `close' the trap.
1218trap 'exit_status=$?
1219  # Save into config.log some information that might help in debugging.
1220  {
1221    echo
1222
1223    cat <<\_ASBOX
1224## ---------------- ##
1225## Cache variables. ##
1226## ---------------- ##
1227_ASBOX
1228    echo
1229    # The following way of writing the cache mishandles newlines in values,
1230{
1231  (set) 2>&1 |
1232    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1233    *ac_space=\ *)
1234      sed -n \
1235        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1236    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1237      ;;
1238    *)
1239      sed -n \
1240        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1241      ;;
1242    esac;
1243}
1244    echo
1245
1246    cat <<\_ASBOX
1247## ----------------- ##
1248## Output variables. ##
1249## ----------------- ##
1250_ASBOX
1251    echo
1252    for ac_var in $ac_subst_vars
1253    do
1254      eval ac_val=$`echo $ac_var`
1255      echo "$ac_var='"'"'$ac_val'"'"'"
1256    done | sort
1257    echo
1258
1259    if test -n "$ac_subst_files"; then
1260      cat <<\_ASBOX
1261## ------------- ##
1262## Output files. ##
1263## ------------- ##
1264_ASBOX
1265      echo
1266      for ac_var in $ac_subst_files
1267      do
1268	eval ac_val=$`echo $ac_var`
1269        echo "$ac_var='"'"'$ac_val'"'"'"
1270      done | sort
1271      echo
1272    fi
1273
1274    if test -s confdefs.h; then
1275      cat <<\_ASBOX
1276## ----------- ##
1277## confdefs.h. ##
1278## ----------- ##
1279_ASBOX
1280      echo
1281      sed "/^$/d" confdefs.h | sort
1282      echo
1283    fi
1284    test "$ac_signal" != 0 &&
1285      echo "$as_me: caught signal $ac_signal"
1286    echo "$as_me: exit $exit_status"
1287  } >&5
1288  rm -f core core.* *.core &&
1289  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1290    exit $exit_status
1291     ' 0
1292for ac_signal in 1 2 13 15; do
1293  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1294done
1295ac_signal=0
1296
1297# confdefs.h avoids OS command line length limits that DEFS can exceed.
1298rm -rf conftest* confdefs.h
1299# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1300echo >confdefs.h
1301
1302# Predefined preprocessor variables.
1303
1304cat >>confdefs.h <<_ACEOF
1305#define PACKAGE_NAME "$PACKAGE_NAME"
1306_ACEOF
1307
1308
1309cat >>confdefs.h <<_ACEOF
1310#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1311_ACEOF
1312
1313
1314cat >>confdefs.h <<_ACEOF
1315#define PACKAGE_VERSION "$PACKAGE_VERSION"
1316_ACEOF
1317
1318
1319cat >>confdefs.h <<_ACEOF
1320#define PACKAGE_STRING "$PACKAGE_STRING"
1321_ACEOF
1322
1323
1324cat >>confdefs.h <<_ACEOF
1325#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1326_ACEOF
1327
1328
1329# Let the site file select an alternate cache file if it wants to.
1330# Prefer explicitly selected file to automatically selected ones.
1331if test -z "$CONFIG_SITE"; then
1332  if test "x$prefix" != xNONE; then
1333    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1334  else
1335    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1336  fi
1337fi
1338for ac_site_file in $CONFIG_SITE; do
1339  if test -r "$ac_site_file"; then
1340    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1341echo "$as_me: loading site script $ac_site_file" >&6;}
1342    sed 's/^/| /' "$ac_site_file" >&5
1343    . "$ac_site_file"
1344  fi
1345done
1346
1347if test -r "$cache_file"; then
1348  # Some versions of bash will fail to source /dev/null (special
1349  # files actually), so we avoid doing that.
1350  if test -f "$cache_file"; then
1351    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1352echo "$as_me: loading cache $cache_file" >&6;}
1353    case $cache_file in
1354      [\\/]* | ?:[\\/]* ) . $cache_file;;
1355      *)                      . ./$cache_file;;
1356    esac
1357  fi
1358else
1359  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1360echo "$as_me: creating cache $cache_file" >&6;}
1361  >$cache_file
1362fi
1363
1364# Check that the precious variables saved in the cache have kept the same
1365# value.
1366ac_cache_corrupted=false
1367for ac_var in `(set) 2>&1 |
1368               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1369  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1370  eval ac_new_set=\$ac_env_${ac_var}_set
1371  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1372  eval ac_new_val="\$ac_env_${ac_var}_value"
1373  case $ac_old_set,$ac_new_set in
1374    set,)
1375      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1376echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1377      ac_cache_corrupted=: ;;
1378    ,set)
1379      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1380echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1381      ac_cache_corrupted=: ;;
1382    ,);;
1383    *)
1384      if test "x$ac_old_val" != "x$ac_new_val"; then
1385        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1386echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1387        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1388echo "$as_me:   former value:  $ac_old_val" >&2;}
1389        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1390echo "$as_me:   current value: $ac_new_val" >&2;}
1391        ac_cache_corrupted=:
1392      fi;;
1393  esac
1394  # Pass precious variables to config.status.
1395  if test "$ac_new_set" = set; then
1396    case $ac_new_val in
1397    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1398      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1399    *) ac_arg=$ac_var=$ac_new_val ;;
1400    esac
1401    case " $ac_configure_args " in
1402      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1403      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1404    esac
1405  fi
1406done
1407if $ac_cache_corrupted; then
1408  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1409echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1410  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1411echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1412   { (exit 1); exit 1; }; }
1413fi
1414
1415ac_ext=c
1416ac_cpp='$CPP $CPPFLAGS'
1417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1419ac_compiler_gnu=$ac_cv_c_compiler_gnu
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439ac_aux_dir=
1440for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1441  if test -f $ac_dir/install-sh; then
1442    ac_aux_dir=$ac_dir
1443    ac_install_sh="$ac_aux_dir/install-sh -c"
1444    break
1445  elif test -f $ac_dir/install.sh; then
1446    ac_aux_dir=$ac_dir
1447    ac_install_sh="$ac_aux_dir/install.sh -c"
1448    break
1449  elif test -f $ac_dir/shtool; then
1450    ac_aux_dir=$ac_dir
1451    ac_install_sh="$ac_aux_dir/shtool install -c"
1452    break
1453  fi
1454done
1455if test -z "$ac_aux_dir"; then
1456  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1457echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1458   { (exit 1); exit 1; }; }
1459fi
1460ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1461ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1462ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1463
1464# Make sure we can run config.sub.
1465$ac_config_sub sun4 >/dev/null 2>&1 ||
1466  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1467echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1468   { (exit 1); exit 1; }; }
1469
1470echo "$as_me:$LINENO: checking build system type" >&5
1471echo $ECHO_N "checking build system type... $ECHO_C" >&6
1472if test "${ac_cv_build+set}" = set; then
1473  echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475  ac_cv_build_alias=$build_alias
1476test -z "$ac_cv_build_alias" &&
1477  ac_cv_build_alias=`$ac_config_guess`
1478test -z "$ac_cv_build_alias" &&
1479  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1480echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1481   { (exit 1); exit 1; }; }
1482ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1483  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1484echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1485   { (exit 1); exit 1; }; }
1486
1487fi
1488echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1489echo "${ECHO_T}$ac_cv_build" >&6
1490build=$ac_cv_build
1491build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496echo "$as_me:$LINENO: checking host system type" >&5
1497echo $ECHO_N "checking host system type... $ECHO_C" >&6
1498if test "${ac_cv_host+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  ac_cv_host_alias=$host_alias
1502test -z "$ac_cv_host_alias" &&
1503  ac_cv_host_alias=$ac_cv_build_alias
1504ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1505  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1506echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1507   { (exit 1); exit 1; }; }
1508
1509fi
1510echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1511echo "${ECHO_T}$ac_cv_host" >&6
1512host=$ac_cv_host
1513host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1514host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1515host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1516
1517
1518echo "$as_me:$LINENO: checking target system type" >&5
1519echo $ECHO_N "checking target system type... $ECHO_C" >&6
1520if test "${ac_cv_target+set}" = set; then
1521  echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523  ac_cv_target_alias=$target_alias
1524test "x$ac_cv_target_alias" = "x" &&
1525  ac_cv_target_alias=$ac_cv_host_alias
1526ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1527  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1528echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1529   { (exit 1); exit 1; }; }
1530
1531fi
1532echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1533echo "${ECHO_T}$ac_cv_target" >&6
1534target=$ac_cv_target
1535target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1536target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1537target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1538
1539
1540# The aliases save the names the user supplied, while $host etc.
1541# will get canonicalized.
1542test -n "$target_alias" &&
1543  test "$program_prefix$program_suffix$program_transform_name" = \
1544    NONENONEs,x,x, &&
1545  program_prefix=${target_alias}-
1546
1547am__api_version="1.7"
1548# Find a good install program.  We prefer a C program (faster),
1549# so one script is as good as another.  But avoid the broken or
1550# incompatible versions:
1551# SysV /etc/install, /usr/sbin/install
1552# SunOS /usr/etc/install
1553# IRIX /sbin/install
1554# AIX /bin/install
1555# AmigaOS /C/install, which installs bootblocks on floppy discs
1556# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1557# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1558# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1559# ./install, which can be erroneously created by make from ./install.sh.
1560echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562if test -z "$INSTALL"; then
1563if test "${ac_cv_path_install+set}" = set; then
1564  echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569  IFS=$as_save_IFS
1570  test -z "$as_dir" && as_dir=.
1571  # Account for people who put trailing slashes in PATH elements.
1572case $as_dir/ in
1573  ./ | .// | /cC/* | \
1574  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575  /usr/ucb/* ) ;;
1576  *)
1577    # OSF1 and SCO ODT 3.0 have their own names for install.
1578    # Don't use installbsd from OSF since it installs stuff as root
1579    # by default.
1580    for ac_prog in ginstall scoinst install; do
1581      for ac_exec_ext in '' $ac_executable_extensions; do
1582        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1583          if test $ac_prog = install &&
1584            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1585            # AIX install.  It has an incompatible calling convention.
1586            :
1587          elif test $ac_prog = install &&
1588            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1589            # program-specific install script used by HP pwplus--don't use.
1590            :
1591          else
1592            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1593            break 3
1594          fi
1595        fi
1596      done
1597    done
1598    ;;
1599esac
1600done
1601
1602
1603fi
1604  if test "${ac_cv_path_install+set}" = set; then
1605    INSTALL=$ac_cv_path_install
1606  else
1607    # As a last resort, use the slow shell script.  We don't cache a
1608    # path for INSTALL within a source directory, because that will
1609    # break other packages using the cache if that directory is
1610    # removed, or if the path is relative.
1611    INSTALL=$ac_install_sh
1612  fi
1613fi
1614echo "$as_me:$LINENO: result: $INSTALL" >&5
1615echo "${ECHO_T}$INSTALL" >&6
1616
1617# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1618# It thinks the first close brace ends the variable substitution.
1619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1620
1621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1622
1623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1624
1625echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1626echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1627# Just in case
1628sleep 1
1629echo timestamp > conftest.file
1630# Do `set' in a subshell so we don't clobber the current shell's
1631# arguments.  Must try -L first in case configure is actually a
1632# symlink; some systems play weird games with the mod time of symlinks
1633# (eg FreeBSD returns the mod time of the symlink's containing
1634# directory).
1635if (
1636   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1637   if test "$*" = "X"; then
1638      # -L didn't work.
1639      set X `ls -t $srcdir/configure conftest.file`
1640   fi
1641   rm -f conftest.file
1642   if test "$*" != "X $srcdir/configure conftest.file" \
1643      && test "$*" != "X conftest.file $srcdir/configure"; then
1644
1645      # If neither matched, then we have a broken ls.  This can happen
1646      # if, for instance, CONFIG_SHELL is bash and it inherits a
1647      # broken ls alias from the environment.  This has actually
1648      # happened.  Such a system could not be considered "sane".
1649      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1650alias in your environment" >&5
1651echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1652alias in your environment" >&2;}
1653   { (exit 1); exit 1; }; }
1654   fi
1655
1656   test "$2" = conftest.file
1657   )
1658then
1659   # Ok.
1660   :
1661else
1662   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1663Check your system clock" >&5
1664echo "$as_me: error: newly created file is older than distributed files!
1665Check your system clock" >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668echo "$as_me:$LINENO: result: yes" >&5
1669echo "${ECHO_T}yes" >&6
1670test "$program_prefix" != NONE &&
1671  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1672# Use a double $ so make ignores it.
1673test "$program_suffix" != NONE &&
1674  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1675# Double any \ or $.  echo might interpret backslashes.
1676# By default was `s,x,x', remove it if useless.
1677cat <<\_ACEOF >conftest.sed
1678s/[\\$]/&&/g;s/;s,x,x,$//
1679_ACEOF
1680program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1681rm conftest.sed
1682
1683
1684# expand $ac_aux_dir to an absolute path
1685am_aux_dir=`cd $ac_aux_dir && pwd`
1686
1687test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1688# Use eval to expand $SHELL
1689if eval "$MISSING --run true"; then
1690  am_missing_run="$MISSING --run "
1691else
1692  am_missing_run=
1693  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1694echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1695fi
1696
1697for ac_prog in gawk mawk nawk awk
1698do
1699  # Extract the first word of "$ac_prog", so it can be a program name with args.
1700set dummy $ac_prog; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_AWK+set}" = set; then
1704  echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706  if test -n "$AWK"; then
1707  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712  IFS=$as_save_IFS
1713  test -z "$as_dir" && as_dir=.
1714  for ac_exec_ext in '' $ac_executable_extensions; do
1715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716    ac_cv_prog_AWK="$ac_prog"
1717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718    break 2
1719  fi
1720done
1721done
1722
1723fi
1724fi
1725AWK=$ac_cv_prog_AWK
1726if test -n "$AWK"; then
1727  echo "$as_me:$LINENO: result: $AWK" >&5
1728echo "${ECHO_T}$AWK" >&6
1729else
1730  echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734  test -n "$AWK" && break
1735done
1736
1737echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1738echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1739set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1740if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1741  echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743  cat >conftest.make <<\_ACEOF
1744all:
1745	@echo 'ac_maketemp="$(MAKE)"'
1746_ACEOF
1747# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1748eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1749if test -n "$ac_maketemp"; then
1750  eval ac_cv_prog_make_${ac_make}_set=yes
1751else
1752  eval ac_cv_prog_make_${ac_make}_set=no
1753fi
1754rm -f conftest.make
1755fi
1756if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1757  echo "$as_me:$LINENO: result: yes" >&5
1758echo "${ECHO_T}yes" >&6
1759  SET_MAKE=
1760else
1761  echo "$as_me:$LINENO: result: no" >&5
1762echo "${ECHO_T}no" >&6
1763  SET_MAKE="MAKE=${MAKE-make}"
1764fi
1765
1766 # test to see if srcdir already configured
1767if test "`cd $srcdir && pwd`" != "`pwd`" &&
1768   test -f $srcdir/config.status; then
1769  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1770echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1771   { (exit 1); exit 1; }; }
1772fi
1773
1774# test whether we have cygpath
1775if test -z "$CYGPATH_W"; then
1776  if (cygpath --version) >/dev/null 2>/dev/null; then
1777    CYGPATH_W='cygpath -w'
1778  else
1779    CYGPATH_W=echo
1780  fi
1781fi
1782
1783
1784# Define the identity of the package.
1785 PACKAGE=libmaitretarot
1786 VERSION=0.1.98
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE "$PACKAGE"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define VERSION "$VERSION"
1796_ACEOF
1797
1798# Some tools Automake needs.
1799
1800ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1801
1802
1803AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1804
1805
1806AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1807
1808
1809AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1810
1811
1812MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1813
1814
1815AMTAR=${AMTAR-"${am_missing_run}tar"}
1816
1817install_sh=${install_sh-"$am_aux_dir/install-sh"}
1818
1819# Installed binaries are usually stripped using `strip' when the user
1820# run `make install-strip'.  However `strip' might not be the right
1821# tool to use in cross-compilation environments, therefore Automake
1822# will honor the `STRIP' environment variable to overrule this program.
1823if test "$cross_compiling" != no; then
1824  if test -n "$ac_tool_prefix"; then
1825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1826set dummy ${ac_tool_prefix}strip; ac_word=$2
1827echo "$as_me:$LINENO: checking for $ac_word" >&5
1828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829if test "${ac_cv_prog_STRIP+set}" = set; then
1830  echo $ECHO_N "(cached) $ECHO_C" >&6
1831else
1832  if test -n "$STRIP"; then
1833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1834else
1835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836for as_dir in $PATH
1837do
1838  IFS=$as_save_IFS
1839  test -z "$as_dir" && as_dir=.
1840  for ac_exec_ext in '' $ac_executable_extensions; do
1841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844    break 2
1845  fi
1846done
1847done
1848
1849fi
1850fi
1851STRIP=$ac_cv_prog_STRIP
1852if test -n "$STRIP"; then
1853  echo "$as_me:$LINENO: result: $STRIP" >&5
1854echo "${ECHO_T}$STRIP" >&6
1855else
1856  echo "$as_me:$LINENO: result: no" >&5
1857echo "${ECHO_T}no" >&6
1858fi
1859
1860fi
1861if test -z "$ac_cv_prog_STRIP"; then
1862  ac_ct_STRIP=$STRIP
1863  # Extract the first word of "strip", so it can be a program name with args.
1864set dummy strip; ac_word=$2
1865echo "$as_me:$LINENO: checking for $ac_word" >&5
1866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1868  echo $ECHO_N "(cached) $ECHO_C" >&6
1869else
1870  if test -n "$ac_ct_STRIP"; then
1871  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1872else
1873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874for as_dir in $PATH
1875do
1876  IFS=$as_save_IFS
1877  test -z "$as_dir" && as_dir=.
1878  for ac_exec_ext in '' $ac_executable_extensions; do
1879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880    ac_cv_prog_ac_ct_STRIP="strip"
1881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882    break 2
1883  fi
1884done
1885done
1886
1887  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1888fi
1889fi
1890ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1891if test -n "$ac_ct_STRIP"; then
1892  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1893echo "${ECHO_T}$ac_ct_STRIP" >&6
1894else
1895  echo "$as_me:$LINENO: result: no" >&5
1896echo "${ECHO_T}no" >&6
1897fi
1898
1899  STRIP=$ac_ct_STRIP
1900else
1901  STRIP="$ac_cv_prog_STRIP"
1902fi
1903
1904fi
1905INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1906
1907# We need awk for the "check" target.  The system "awk" is bad on
1908# some platforms.
1909
1910
1911
1912          ac_config_headers="$ac_config_headers config.h"
1913
1914
1915LIBMT_MAJOR=0
1916LIBMT_MINOR=0
1917LIBMT_MICRO=0
1918
1919
1920
1921
1922rm -f .deps 2>/dev/null
1923mkdir .deps 2>/dev/null
1924if test -d .deps; then
1925  DEPDIR=.deps
1926else
1927  # MS-DOS does not allow filenames that begin with a dot.
1928  DEPDIR=_deps
1929fi
1930rmdir .deps 2>/dev/null
1931
1932
1933          ac_config_commands="$ac_config_commands depfiles"
1934
1935
1936am_make=${MAKE-make}
1937cat > confinc << 'END'
1938doit:
1939	@echo done
1940END
1941# If we don't find an include directive, just comment out the code.
1942echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1943echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1944am__include="#"
1945am__quote=
1946_am_result=none
1947# First try GNU make style include.
1948echo "include confinc" > confmf
1949# We grep out `Entering directory' and `Leaving directory'
1950# messages which can occur if `w' ends up in MAKEFLAGS.
1951# In particular we don't look at `^make:' because GNU make might
1952# be invoked under some other name (usually "gmake"), in which
1953# case it prints its new name instead of `make'.
1954if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1955   am__include=include
1956   am__quote=
1957   _am_result=GNU
1958fi
1959# Now try BSD make style include.
1960if test "$am__include" = "#"; then
1961   echo '.include "confinc"' > confmf
1962   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1963      am__include=.include
1964      am__quote="\""
1965      _am_result=BSD
1966   fi
1967fi
1968
1969
1970echo "$as_me:$LINENO: result: $_am_result" >&5
1971echo "${ECHO_T}$_am_result" >&6
1972rm -f confinc confmf
1973
1974# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1975if test "${enable_dependency_tracking+set}" = set; then
1976  enableval="$enable_dependency_tracking"
1977
1978fi;
1979if test "x$enable_dependency_tracking" != xno; then
1980  am_depcomp="$ac_aux_dir/depcomp"
1981  AMDEPBACKSLASH='\'
1982fi
1983
1984
1985if test "x$enable_dependency_tracking" != xno; then
1986  AMDEP_TRUE=
1987  AMDEP_FALSE='#'
1988else
1989  AMDEP_TRUE='#'
1990  AMDEP_FALSE=
1991fi
1992
1993
1994
1995ac_ext=c
1996ac_cpp='$CPP $CPPFLAGS'
1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1999ac_compiler_gnu=$ac_cv_c_compiler_gnu
2000if test -n "$ac_tool_prefix"; then
2001  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2002set dummy ${ac_tool_prefix}gcc; ac_word=$2
2003echo "$as_me:$LINENO: checking for $ac_word" >&5
2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005if test "${ac_cv_prog_CC+set}" = set; then
2006  echo $ECHO_N "(cached) $ECHO_C" >&6
2007else
2008  if test -n "$CC"; then
2009  ac_cv_prog_CC="$CC" # Let the user override the test.
2010else
2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  for ac_exec_ext in '' $ac_executable_extensions; do
2017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024
2025fi
2026fi
2027CC=$ac_cv_prog_CC
2028if test -n "$CC"; then
2029  echo "$as_me:$LINENO: result: $CC" >&5
2030echo "${ECHO_T}$CC" >&6
2031else
2032  echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
2034fi
2035
2036fi
2037if test -z "$ac_cv_prog_CC"; then
2038  ac_ct_CC=$CC
2039  # Extract the first word of "gcc", so it can be a program name with args.
2040set dummy gcc; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$ac_ct_CC"; then
2047  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054  for ac_exec_ext in '' $ac_executable_extensions; do
2055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056    ac_cv_prog_ac_ct_CC="gcc"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063fi
2064fi
2065ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066if test -n "$ac_ct_CC"; then
2067  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068echo "${ECHO_T}$ac_ct_CC" >&6
2069else
2070  echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
2074  CC=$ac_ct_CC
2075else
2076  CC="$ac_cv_prog_CC"
2077fi
2078
2079if test -z "$CC"; then
2080  if test -n "$ac_tool_prefix"; then
2081  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2082set dummy ${ac_tool_prefix}cc; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$CC"; then
2089  ac_cv_prog_CC="$CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_CC="${ac_tool_prefix}cc"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107CC=$ac_cv_prog_CC
2108if test -n "$CC"; then
2109  echo "$as_me:$LINENO: result: $CC" >&5
2110echo "${ECHO_T}$CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116fi
2117if test -z "$ac_cv_prog_CC"; then
2118  ac_ct_CC=$CC
2119  # Extract the first word of "cc", so it can be a program name with args.
2120set dummy cc; ac_word=$2
2121echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test -n "$ac_ct_CC"; then
2127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  for ac_exec_ext in '' $ac_executable_extensions; do
2135  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136    ac_cv_prog_ac_ct_CC="cc"
2137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138    break 2
2139  fi
2140done
2141done
2142
2143fi
2144fi
2145ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146if test -n "$ac_ct_CC"; then
2147  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148echo "${ECHO_T}$ac_ct_CC" >&6
2149else
2150  echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6
2152fi
2153
2154  CC=$ac_ct_CC
2155else
2156  CC="$ac_cv_prog_CC"
2157fi
2158
2159fi
2160if test -z "$CC"; then
2161  # Extract the first word of "cc", so it can be a program name with args.
2162set dummy cc; ac_word=$2
2163echo "$as_me:$LINENO: checking for $ac_word" >&5
2164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2165if test "${ac_cv_prog_CC+set}" = set; then
2166  echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
2168  if test -n "$CC"; then
2169  ac_cv_prog_CC="$CC" # Let the user override the test.
2170else
2171  ac_prog_rejected=no
2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173for as_dir in $PATH
2174do
2175  IFS=$as_save_IFS
2176  test -z "$as_dir" && as_dir=.
2177  for ac_exec_ext in '' $ac_executable_extensions; do
2178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2179    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2180       ac_prog_rejected=yes
2181       continue
2182     fi
2183    ac_cv_prog_CC="cc"
2184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185    break 2
2186  fi
2187done
2188done
2189
2190if test $ac_prog_rejected = yes; then
2191  # We found a bogon in the path, so make sure we never use it.
2192  set dummy $ac_cv_prog_CC
2193  shift
2194  if test $# != 0; then
2195    # We chose a different compiler from the bogus one.
2196    # However, it has the same basename, so the bogon will be chosen
2197    # first if we set CC to just the basename; use the full file name.
2198    shift
2199    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2200  fi
2201fi
2202fi
2203fi
2204CC=$ac_cv_prog_CC
2205if test -n "$CC"; then
2206  echo "$as_me:$LINENO: result: $CC" >&5
2207echo "${ECHO_T}$CC" >&6
2208else
2209  echo "$as_me:$LINENO: result: no" >&5
2210echo "${ECHO_T}no" >&6
2211fi
2212
2213fi
2214if test -z "$CC"; then
2215  if test -n "$ac_tool_prefix"; then
2216  for ac_prog in cl
2217  do
2218    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2220echo "$as_me:$LINENO: checking for $ac_word" >&5
2221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222if test "${ac_cv_prog_CC+set}" = set; then
2223  echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
2225  if test -n "$CC"; then
2226  ac_cv_prog_CC="$CC" # Let the user override the test.
2227else
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231  IFS=$as_save_IFS
2232  test -z "$as_dir" && as_dir=.
2233  for ac_exec_ext in '' $ac_executable_extensions; do
2234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2235    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237    break 2
2238  fi
2239done
2240done
2241
2242fi
2243fi
2244CC=$ac_cv_prog_CC
2245if test -n "$CC"; then
2246  echo "$as_me:$LINENO: result: $CC" >&5
2247echo "${ECHO_T}$CC" >&6
2248else
2249  echo "$as_me:$LINENO: result: no" >&5
2250echo "${ECHO_T}no" >&6
2251fi
2252
2253    test -n "$CC" && break
2254  done
2255fi
2256if test -z "$CC"; then
2257  ac_ct_CC=$CC
2258  for ac_prog in cl
2259do
2260  # Extract the first word of "$ac_prog", so it can be a program name with args.
2261set dummy $ac_prog; ac_word=$2
2262echo "$as_me:$LINENO: checking for $ac_word" >&5
2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2265  echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267  if test -n "$ac_ct_CC"; then
2268  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269else
2270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273  IFS=$as_save_IFS
2274  test -z "$as_dir" && as_dir=.
2275  for ac_exec_ext in '' $ac_executable_extensions; do
2276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277    ac_cv_prog_ac_ct_CC="$ac_prog"
2278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279    break 2
2280  fi
2281done
2282done
2283
2284fi
2285fi
2286ac_ct_CC=$ac_cv_prog_ac_ct_CC
2287if test -n "$ac_ct_CC"; then
2288  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2289echo "${ECHO_T}$ac_ct_CC" >&6
2290else
2291  echo "$as_me:$LINENO: result: no" >&5
2292echo "${ECHO_T}no" >&6
2293fi
2294
2295  test -n "$ac_ct_CC" && break
2296done
2297
2298  CC=$ac_ct_CC
2299fi
2300
2301fi
2302
2303
2304test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305See \`config.log' for more details." >&5
2306echo "$as_me: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }
2309
2310# Provide some information about the compiler.
2311echo "$as_me:$LINENO:" \
2312     "checking for C compiler version" >&5
2313ac_compiler=`set X $ac_compile; echo $2`
2314{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2315  (eval $ac_compiler --version </dev/null >&5) 2>&5
2316  ac_status=$?
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); }
2319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2320  (eval $ac_compiler -v </dev/null >&5) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }
2324{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2325  (eval $ac_compiler -V </dev/null >&5) 2>&5
2326  ac_status=$?
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); }
2329
2330cat >conftest.$ac_ext <<_ACEOF
2331#line $LINENO "configure"
2332/* confdefs.h.  */
2333_ACEOF
2334cat confdefs.h >>conftest.$ac_ext
2335cat >>conftest.$ac_ext <<_ACEOF
2336/* end confdefs.h.  */
2337
2338int
2339main ()
2340{
2341
2342  ;
2343  return 0;
2344}
2345_ACEOF
2346ac_clean_files_save=$ac_clean_files
2347ac_clean_files="$ac_clean_files a.out a.exe b.out"
2348# Try to create an executable without -o first, disregard a.out.
2349# It will help us diagnose broken compilers, and finding out an intuition
2350# of exeext.
2351echo "$as_me:$LINENO: checking for C compiler default output" >&5
2352echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2353ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2354if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2355  (eval $ac_link_default) 2>&5
2356  ac_status=$?
2357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358  (exit $ac_status); }; then
2359  # Find the output, starting from the most likely.  This scheme is
2360# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2361# resort.
2362
2363# Be careful to initialize this variable, since it used to be cached.
2364# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2365ac_cv_exeext=
2366# b.out is created by i960 compilers.
2367for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2368do
2369  test -f "$ac_file" || continue
2370  case $ac_file in
2371    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2372        ;;
2373    conftest.$ac_ext )
2374        # This is the source file.
2375        ;;
2376    [ab].out )
2377        # We found the default executable, but exeext='' is most
2378        # certainly right.
2379        break;;
2380    *.* )
2381        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382        # FIXME: I believe we export ac_cv_exeext for Libtool,
2383        # but it would be cool to find out if it's true.  Does anybody
2384        # maintain Libtool? --akim.
2385        export ac_cv_exeext
2386        break;;
2387    * )
2388        break;;
2389  esac
2390done
2391else
2392  echo "$as_me: failed program was:" >&5
2393sed 's/^/| /' conftest.$ac_ext >&5
2394
2395{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2396See \`config.log' for more details." >&5
2397echo "$as_me: error: C compiler cannot create executables
2398See \`config.log' for more details." >&2;}
2399   { (exit 77); exit 77; }; }
2400fi
2401
2402ac_exeext=$ac_cv_exeext
2403echo "$as_me:$LINENO: result: $ac_file" >&5
2404echo "${ECHO_T}$ac_file" >&6
2405
2406# Check the compiler produces executables we can run.  If not, either
2407# the compiler is broken, or we cross compile.
2408echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2409echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2410# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2411# If not cross compiling, check that we can run a simple program.
2412if test "$cross_compiling" != yes; then
2413  if { ac_try='./$ac_file'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419    cross_compiling=no
2420  else
2421    if test "$cross_compiling" = maybe; then
2422	cross_compiling=yes
2423    else
2424	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2425If you meant to cross compile, use \`--host'.
2426See \`config.log' for more details." >&5
2427echo "$as_me: error: cannot run C compiled programs.
2428If you meant to cross compile, use \`--host'.
2429See \`config.log' for more details." >&2;}
2430   { (exit 1); exit 1; }; }
2431    fi
2432  fi
2433fi
2434echo "$as_me:$LINENO: result: yes" >&5
2435echo "${ECHO_T}yes" >&6
2436
2437rm -f a.out a.exe conftest$ac_cv_exeext b.out
2438ac_clean_files=$ac_clean_files_save
2439# Check the compiler produces executables we can run.  If not, either
2440# the compiler is broken, or we cross compile.
2441echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2442echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2443echo "$as_me:$LINENO: result: $cross_compiling" >&5
2444echo "${ECHO_T}$cross_compiling" >&6
2445
2446echo "$as_me:$LINENO: checking for suffix of executables" >&5
2447echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449  (eval $ac_link) 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }; then
2453  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455# work properly (i.e., refer to `conftest.exe'), while it won't with
2456# `rm'.
2457for ac_file in conftest.exe conftest conftest.*; do
2458  test -f "$ac_file" || continue
2459  case $ac_file in
2460    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2461    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462          export ac_cv_exeext
2463          break;;
2464    * ) break;;
2465  esac
2466done
2467else
2468  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469See \`config.log' for more details." >&5
2470echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471See \`config.log' for more details." >&2;}
2472   { (exit 1); exit 1; }; }
2473fi
2474
2475rm -f conftest$ac_cv_exeext
2476echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477echo "${ECHO_T}$ac_cv_exeext" >&6
2478
2479rm -f conftest.$ac_ext
2480EXEEXT=$ac_cv_exeext
2481ac_exeext=$EXEEXT
2482echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2484if test "${ac_cv_objext+set}" = set; then
2485  echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487  cat >conftest.$ac_ext <<_ACEOF
2488#line $LINENO "configure"
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494
2495int
2496main ()
2497{
2498
2499  ;
2500  return 0;
2501}
2502_ACEOF
2503rm -f conftest.o conftest.obj
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505  (eval $ac_compile) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; then
2509  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510  case $ac_file in
2511    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513       break;;
2514  esac
2515done
2516else
2517  echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521See \`config.log' for more details." >&5
2522echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523See \`config.log' for more details." >&2;}
2524   { (exit 1); exit 1; }; }
2525fi
2526
2527rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528fi
2529echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530echo "${ECHO_T}$ac_cv_objext" >&6
2531OBJEXT=$ac_cv_objext
2532ac_objext=$OBJEXT
2533echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  cat >conftest.$ac_ext <<_ACEOF
2539#line $LINENO "configure"
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545
2546int
2547main ()
2548{
2549#ifndef __GNUC__
2550       choke me
2551#endif
2552
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559  (eval $ac_compile) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -s conftest.$ac_objext'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; }; then
2569  ac_compiler_gnu=yes
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574ac_compiler_gnu=no
2575fi
2576rm -f conftest.$ac_objext conftest.$ac_ext
2577ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578
2579fi
2580echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2582GCC=`test $ac_compiler_gnu = yes && echo yes`
2583ac_test_CFLAGS=${CFLAGS+set}
2584ac_save_CFLAGS=$CFLAGS
2585CFLAGS="-g"
2586echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2588if test "${ac_cv_prog_cc_g+set}" = set; then
2589  echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591  cat >conftest.$ac_ext <<_ACEOF
2592#line $LINENO "configure"
2593/* confdefs.h.  */
2594_ACEOF
2595cat confdefs.h >>conftest.$ac_ext
2596cat >>conftest.$ac_ext <<_ACEOF
2597/* end confdefs.h.  */
2598
2599int
2600main ()
2601{
2602
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613         { ac_try='test -s conftest.$ac_objext'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; }; then
2619  ac_cv_prog_cc_g=yes
2620else
2621  echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624ac_cv_prog_cc_g=no
2625fi
2626rm -f conftest.$ac_objext conftest.$ac_ext
2627fi
2628echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2629echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2630if test "$ac_test_CFLAGS" = set; then
2631  CFLAGS=$ac_save_CFLAGS
2632elif test $ac_cv_prog_cc_g = yes; then
2633  if test "$GCC" = yes; then
2634    CFLAGS="-g -O2"
2635  else
2636    CFLAGS="-g"
2637  fi
2638else
2639  if test "$GCC" = yes; then
2640    CFLAGS="-O2"
2641  else
2642    CFLAGS=
2643  fi
2644fi
2645echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2646echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2647if test "${ac_cv_prog_cc_stdc+set}" = set; then
2648  echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
2650  ac_cv_prog_cc_stdc=no
2651ac_save_CC=$CC
2652cat >conftest.$ac_ext <<_ACEOF
2653#line $LINENO "configure"
2654/* confdefs.h.  */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h.  */
2659#include <stdarg.h>
2660#include <stdio.h>
2661#include <sys/types.h>
2662#include <sys/stat.h>
2663/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2664struct buf { int x; };
2665FILE * (*rcsopen) (struct buf *, struct stat *, int);
2666static char *e (p, i)
2667     char **p;
2668     int i;
2669{
2670  return p[i];
2671}
2672static char *f (char * (*g) (char **, int), char **p, ...)
2673{
2674  char *s;
2675  va_list v;
2676  va_start (v,p);
2677  s = g (p, va_arg (v,int));
2678  va_end (v);
2679  return s;
2680}
2681int test (int i, double x);
2682struct s1 {int (*f) (int a);};
2683struct s2 {int (*f) (double a);};
2684int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2685int argc;
2686char **argv;
2687int
2688main ()
2689{
2690return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695# Don't try gcc -ansi; that turns off useful extensions and
2696# breaks some systems' header files.
2697# AIX			-qlanglvl=ansi
2698# Ultrix and OSF/1	-std1
2699# HP-UX 10.20 and later	-Ae
2700# HP-UX older versions	-Aa -D_HPUX_SOURCE
2701# SVR4			-Xc -D__EXTENSIONS__
2702for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703do
2704  CC="$ac_save_CC $ac_arg"
2705  rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711         { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732  x|xno)
2733    echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735  *)
2736    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738    CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C.  Since we use `exit',
2742# in C++ we need to declare it.  In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747  choke me
2748#endif
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  for ac_declaration in \
2763   ''\
2764   '#include <stdlib.h>' \
2765   'extern "C" void std::exit (int) throw (); using std::exit;' \
2766   'extern "C" void std::exit (int); using std::exit;' \
2767   'extern "C" void exit (int) throw ();' \
2768   'extern "C" void exit (int);' \
2769   'void exit (int);'
2770do
2771  cat >conftest.$ac_ext <<_ACEOF
2772#line $LINENO "configure"
2773/* confdefs.h.  */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h.  */
2778#include <stdlib.h>
2779$ac_declaration
2780int
2781main ()
2782{
2783exit (42);
2784  ;
2785  return 0;
2786}
2787_ACEOF
2788rm -f conftest.$ac_objext
2789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790  (eval $ac_compile) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); } &&
2794         { ac_try='test -s conftest.$ac_objext'
2795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796  (eval $ac_try) 2>&5
2797  ac_status=$?
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); }; }; then
2800  :
2801else
2802  echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805continue
2806fi
2807rm -f conftest.$ac_objext conftest.$ac_ext
2808  cat >conftest.$ac_ext <<_ACEOF
2809#line $LINENO "configure"
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815$ac_declaration
2816int
2817main ()
2818{
2819exit (42);
2820  ;
2821  return 0;
2822}
2823_ACEOF
2824rm -f conftest.$ac_objext
2825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826  (eval $ac_compile) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); } &&
2830         { ac_try='test -s conftest.$ac_objext'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; }; then
2836  break
2837else
2838  echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841fi
2842rm -f conftest.$ac_objext conftest.$ac_ext
2843done
2844rm -f conftest*
2845if test -n "$ac_declaration"; then
2846  echo '#ifdef __cplusplus' >>confdefs.h
2847  echo $ac_declaration      >>confdefs.h
2848  echo '#endif'             >>confdefs.h
2849fi
2850
2851else
2852  echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.$ac_objext conftest.$ac_ext
2857ac_ext=c
2858ac_cpp='$CPP $CPPFLAGS'
2859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863depcc="$CC"   am_compiler_list=
2864
2865echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2866echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2867if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2868  echo $ECHO_N "(cached) $ECHO_C" >&6
2869else
2870  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2871  # We make a subdir and do the tests there.  Otherwise we can end up
2872  # making bogus files that we don't know about and never remove.  For
2873  # instance it was reported that on HP-UX the gcc test will end up
2874  # making a dummy file named `D' -- because `-MD' means `put the output
2875  # in D'.
2876  mkdir conftest.dir
2877  # Copy depcomp to subdir because otherwise we won't find it if we're
2878  # using a relative directory.
2879  cp "$am_depcomp" conftest.dir
2880  cd conftest.dir
2881
2882  am_cv_CC_dependencies_compiler_type=none
2883  if test "$am_compiler_list" = ""; then
2884     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2885  fi
2886  for depmode in $am_compiler_list; do
2887    # We need to recreate these files for each test, as the compiler may
2888    # overwrite some of them when testing with obscure command lines.
2889    # This happens at least with the AIX C compiler.
2890    echo '#include "conftest.h"' > conftest.c
2891    echo 'int i;' > conftest.h
2892    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2893
2894    case $depmode in
2895    nosideeffect)
2896      # after this tag, mechanisms are not by side-effect, so they'll
2897      # only be used when explicitly requested
2898      if test "x$enable_dependency_tracking" = xyes; then
2899	continue
2900      else
2901	break
2902      fi
2903      ;;
2904    none) break ;;
2905    esac
2906    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2907    # mode.  It turns out that the SunPro C++ compiler does not properly
2908    # handle `-M -o', and we need to detect this.
2909    if depmode=$depmode \
2910       source=conftest.c object=conftest.o \
2911       depfile=conftest.Po tmpdepfile=conftest.TPo \
2912       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2913       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2914       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2915      am_cv_CC_dependencies_compiler_type=$depmode
2916      break
2917    fi
2918  done
2919
2920  cd ..
2921  rm -rf conftest.dir
2922else
2923  am_cv_CC_dependencies_compiler_type=none
2924fi
2925
2926fi
2927echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2928echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2929CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2930
2931
2932
2933if
2934  test "x$enable_dependency_tracking" != xno \
2935  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2936  am__fastdepCC_TRUE=
2937  am__fastdepCC_FALSE='#'
2938else
2939  am__fastdepCC_TRUE='#'
2940  am__fastdepCC_FALSE=
2941fi
2942
2943
2944
2945
2946        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2947echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2948if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  ac_check_lib_save_LIBS=$LIBS
2952LIBS="-lcposix  $LIBS"
2953cat >conftest.$ac_ext <<_ACEOF
2954#line $LINENO "configure"
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961/* Override any gcc2 internal prototype to avoid an error.  */
2962#ifdef __cplusplus
2963extern "C"
2964#endif
2965/* We use char because int might match the return type of a gcc2
2966   builtin and then its argument prototype would still apply.  */
2967char strerror ();
2968int
2969main ()
2970{
2971strerror ();
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext conftest$ac_exeext
2977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978  (eval $ac_link) 2>&5
2979  ac_status=$?
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); } &&
2982         { ac_try='test -s conftest$ac_exeext'
2983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984  (eval $ac_try) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }; }; then
2988  ac_cv_lib_cposix_strerror=yes
2989else
2990  echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993ac_cv_lib_cposix_strerror=no
2994fi
2995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2996LIBS=$ac_check_lib_save_LIBS
2997fi
2998echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2999echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3000if test $ac_cv_lib_cposix_strerror = yes; then
3001  LIBS="$LIBS -lcposix"
3002fi
3003
3004
3005
3006
3007# Checks for programs.
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013if test -n "$ac_tool_prefix"; then
3014  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016echo "$as_me:$LINENO: checking for $ac_word" >&5
3017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3018if test "${ac_cv_prog_CC+set}" = set; then
3019  echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021  if test -n "$CC"; then
3022  ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027  IFS=$as_save_IFS
3028  test -z "$as_dir" && as_dir=.
3029  for ac_exec_ext in '' $ac_executable_extensions; do
3030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033    break 2
3034  fi
3035done
3036done
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  echo "$as_me:$LINENO: result: $CC" >&5
3043echo "${ECHO_T}$CC" >&6
3044else
3045  echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6
3047fi
3048
3049fi
3050if test -z "$ac_cv_prog_CC"; then
3051  ac_ct_CC=$CC
3052  # Extract the first word of "gcc", so it can be a program name with args.
3053set dummy gcc; ac_word=$2
3054echo "$as_me:$LINENO: checking for $ac_word" >&5
3055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059  if test -n "$ac_ct_CC"; then
3060  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061else
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067  for ac_exec_ext in '' $ac_executable_extensions; do
3068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069    ac_cv_prog_ac_ct_CC="gcc"
3070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074done
3075
3076fi
3077fi
3078ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079if test -n "$ac_ct_CC"; then
3080  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3081echo "${ECHO_T}$ac_ct_CC" >&6
3082else
3083  echo "$as_me:$LINENO: result: no" >&5
3084echo "${ECHO_T}no" >&6
3085fi
3086
3087  CC=$ac_ct_CC
3088else
3089  CC="$ac_cv_prog_CC"
3090fi
3091
3092if test -z "$CC"; then
3093  if test -n "$ac_tool_prefix"; then
3094  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095set dummy ${ac_tool_prefix}cc; ac_word=$2
3096echo "$as_me:$LINENO: checking for $ac_word" >&5
3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098if test "${ac_cv_prog_CC+set}" = set; then
3099  echo $ECHO_N "(cached) $ECHO_C" >&6
3100else
3101  if test -n "$CC"; then
3102  ac_cv_prog_CC="$CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109  for ac_exec_ext in '' $ac_executable_extensions; do
3110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111    ac_cv_prog_CC="${ac_tool_prefix}cc"
3112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116done
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122  echo "$as_me:$LINENO: result: $CC" >&5
3123echo "${ECHO_T}$CC" >&6
3124else
3125  echo "$as_me:$LINENO: result: no" >&5
3126echo "${ECHO_T}no" >&6
3127fi
3128
3129fi
3130if test -z "$ac_cv_prog_CC"; then
3131  ac_ct_CC=$CC
3132  # Extract the first word of "cc", so it can be a program name with args.
3133set dummy cc; ac_word=$2
3134echo "$as_me:$LINENO: checking for $ac_word" >&5
3135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3136if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137  echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139  if test -n "$ac_ct_CC"; then
3140  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141else
3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145  IFS=$as_save_IFS
3146  test -z "$as_dir" && as_dir=.
3147  for ac_exec_ext in '' $ac_executable_extensions; do
3148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149    ac_cv_prog_ac_ct_CC="cc"
3150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151    break 2
3152  fi
3153done
3154done
3155
3156fi
3157fi
3158ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159if test -n "$ac_ct_CC"; then
3160  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3161echo "${ECHO_T}$ac_ct_CC" >&6
3162else
3163  echo "$as_me:$LINENO: result: no" >&5
3164echo "${ECHO_T}no" >&6
3165fi
3166
3167  CC=$ac_ct_CC
3168else
3169  CC="$ac_cv_prog_CC"
3170fi
3171
3172fi
3173if test -z "$CC"; then
3174  # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
3176echo "$as_me:$LINENO: checking for $ac_word" >&5
3177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178if test "${ac_cv_prog_CC+set}" = set; then
3179  echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184  ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190  for ac_exec_ext in '' $ac_executable_extensions; do
3191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193       ac_prog_rejected=yes
3194       continue
3195     fi
3196    ac_cv_prog_CC="cc"
3197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201done
3202
3203if test $ac_prog_rejected = yes; then
3204  # We found a bogon in the path, so make sure we never use it.
3205  set dummy $ac_cv_prog_CC
3206  shift
3207  if test $# != 0; then
3208    # We chose a different compiler from the bogus one.
3209    # However, it has the same basename, so the bogon will be chosen
3210    # first if we set CC to just the basename; use the full file name.
3211    shift
3212    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3213  fi
3214fi
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219  echo "$as_me:$LINENO: result: $CC" >&5
3220echo "${ECHO_T}$CC" >&6
3221else
3222  echo "$as_me:$LINENO: result: no" >&5
3223echo "${ECHO_T}no" >&6
3224fi
3225
3226fi
3227if test -z "$CC"; then
3228  if test -n "$ac_tool_prefix"; then
3229  for ac_prog in cl
3230  do
3231    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_CC+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  if test -n "$CC"; then
3239  ac_cv_prog_CC="$CC" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for ac_exec_ext in '' $ac_executable_extensions; do
3247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253done
3254
3255fi
3256fi
3257CC=$ac_cv_prog_CC
3258if test -n "$CC"; then
3259  echo "$as_me:$LINENO: result: $CC" >&5
3260echo "${ECHO_T}$CC" >&6
3261else
3262  echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266    test -n "$CC" && break
3267  done
3268fi
3269if test -z "$CC"; then
3270  ac_ct_CC=$CC
3271  for ac_prog in cl
3272do
3273  # Extract the first word of "$ac_prog", so it can be a program name with args.
3274set dummy $ac_prog; ac_word=$2
3275echo "$as_me:$LINENO: checking for $ac_word" >&5
3276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  if test -n "$ac_ct_CC"; then
3281  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288  for ac_exec_ext in '' $ac_executable_extensions; do
3289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290    ac_cv_prog_ac_ct_CC="$ac_prog"
3291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292    break 2
3293  fi
3294done
3295done
3296
3297fi
3298fi
3299ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300if test -n "$ac_ct_CC"; then
3301  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3302echo "${ECHO_T}$ac_ct_CC" >&6
3303else
3304  echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306fi
3307
3308  test -n "$ac_ct_CC" && break
3309done
3310
3311  CC=$ac_ct_CC
3312fi
3313
3314fi
3315
3316
3317test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3318See \`config.log' for more details." >&5
3319echo "$as_me: error: no acceptable C compiler found in \$PATH
3320See \`config.log' for more details." >&2;}
3321   { (exit 1); exit 1; }; }
3322
3323# Provide some information about the compiler.
3324echo "$as_me:$LINENO:" \
3325     "checking for C compiler version" >&5
3326ac_compiler=`set X $ac_compile; echo $2`
3327{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3328  (eval $ac_compiler --version </dev/null >&5) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }
3332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3333  (eval $ac_compiler -v </dev/null >&5) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }
3337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3338  (eval $ac_compiler -V </dev/null >&5) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }
3342
3343echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3344echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3345if test "${ac_cv_c_compiler_gnu+set}" = set; then
3346  echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348  cat >conftest.$ac_ext <<_ACEOF
3349#line $LINENO "configure"
3350/* confdefs.h.  */
3351_ACEOF
3352cat confdefs.h >>conftest.$ac_ext
3353cat >>conftest.$ac_ext <<_ACEOF
3354/* end confdefs.h.  */
3355
3356int
3357main ()
3358{
3359#ifndef __GNUC__
3360       choke me
3361#endif
3362
3363  ;
3364  return 0;
3365}
3366_ACEOF
3367rm -f conftest.$ac_objext
3368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3369  (eval $ac_compile) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } &&
3373         { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  ac_compiler_gnu=yes
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_compiler_gnu=no
3385fi
3386rm -f conftest.$ac_objext conftest.$ac_ext
3387ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389fi
3390echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3392GCC=`test $ac_compiler_gnu = yes && echo yes`
3393ac_test_CFLAGS=${CFLAGS+set}
3394ac_save_CFLAGS=$CFLAGS
3395CFLAGS="-g"
3396echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3397echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3398if test "${ac_cv_prog_cc_g+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  cat >conftest.$ac_ext <<_ACEOF
3402#line $LINENO "configure"
3403/* confdefs.h.  */
3404_ACEOF
3405cat confdefs.h >>conftest.$ac_ext
3406cat >>conftest.$ac_ext <<_ACEOF
3407/* end confdefs.h.  */
3408
3409int
3410main ()
3411{
3412
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417rm -f conftest.$ac_objext
3418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3419  (eval $ac_compile) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } &&
3423         { ac_try='test -s conftest.$ac_objext'
3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425  (eval $ac_try) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }; }; then
3429  ac_cv_prog_cc_g=yes
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434ac_cv_prog_cc_g=no
3435fi
3436rm -f conftest.$ac_objext conftest.$ac_ext
3437fi
3438echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3439echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3440if test "$ac_test_CFLAGS" = set; then
3441  CFLAGS=$ac_save_CFLAGS
3442elif test $ac_cv_prog_cc_g = yes; then
3443  if test "$GCC" = yes; then
3444    CFLAGS="-g -O2"
3445  else
3446    CFLAGS="-g"
3447  fi
3448else
3449  if test "$GCC" = yes; then
3450    CFLAGS="-O2"
3451  else
3452    CFLAGS=
3453  fi
3454fi
3455echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3456echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3457if test "${ac_cv_prog_cc_stdc+set}" = set; then
3458  echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460  ac_cv_prog_cc_stdc=no
3461ac_save_CC=$CC
3462cat >conftest.$ac_ext <<_ACEOF
3463#line $LINENO "configure"
3464/* confdefs.h.  */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h.  */
3469#include <stdarg.h>
3470#include <stdio.h>
3471#include <sys/types.h>
3472#include <sys/stat.h>
3473/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3474struct buf { int x; };
3475FILE * (*rcsopen) (struct buf *, struct stat *, int);
3476static char *e (p, i)
3477     char **p;
3478     int i;
3479{
3480  return p[i];
3481}
3482static char *f (char * (*g) (char **, int), char **p, ...)
3483{
3484  char *s;
3485  va_list v;
3486  va_start (v,p);
3487  s = g (p, va_arg (v,int));
3488  va_end (v);
3489  return s;
3490}
3491int test (int i, double x);
3492struct s1 {int (*f) (int a);};
3493struct s2 {int (*f) (double a);};
3494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495int argc;
3496char **argv;
3497int
3498main ()
3499{
3500return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505# Don't try gcc -ansi; that turns off useful extensions and
3506# breaks some systems' header files.
3507# AIX			-qlanglvl=ansi
3508# Ultrix and OSF/1	-std1
3509# HP-UX 10.20 and later	-Ae
3510# HP-UX older versions	-Aa -D_HPUX_SOURCE
3511# SVR4			-Xc -D__EXTENSIONS__
3512for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3513do
3514  CC="$ac_save_CC $ac_arg"
3515  rm -f conftest.$ac_objext
3516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517  (eval $ac_compile) 2>&5
3518  ac_status=$?
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } &&
3521         { ac_try='test -s conftest.$ac_objext'
3522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523  (eval $ac_try) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); }; }; then
3527  ac_cv_prog_cc_stdc=$ac_arg
3528break
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533fi
3534rm -f conftest.$ac_objext
3535done
3536rm -f conftest.$ac_ext conftest.$ac_objext
3537CC=$ac_save_CC
3538
3539fi
3540
3541case "x$ac_cv_prog_cc_stdc" in
3542  x|xno)
3543    echo "$as_me:$LINENO: result: none needed" >&5
3544echo "${ECHO_T}none needed" >&6 ;;
3545  *)
3546    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3547echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3548    CC="$CC $ac_cv_prog_cc_stdc" ;;
3549esac
3550
3551# Some people use a C++ compiler to compile C.  Since we use `exit',
3552# in C++ we need to declare it.  In case someone uses the same compiler
3553# for both compiling C and C++ we need to have the C++ compiler decide
3554# the declaration of exit, since it's the most demanding environment.
3555cat >conftest.$ac_ext <<_ACEOF
3556#ifndef __cplusplus
3557  choke me
3558#endif
3559_ACEOF
3560rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562  (eval $ac_compile) 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); } &&
3566         { ac_try='test -s conftest.$ac_objext'
3567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568  (eval $ac_try) 2>&5
3569  ac_status=$?
3570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571  (exit $ac_status); }; }; then
3572  for ac_declaration in \
3573   ''\
3574   '#include <stdlib.h>' \
3575   'extern "C" void std::exit (int) throw (); using std::exit;' \
3576   'extern "C" void std::exit (int); using std::exit;' \
3577   'extern "C" void exit (int) throw ();' \
3578   'extern "C" void exit (int);' \
3579   'void exit (int);'
3580do
3581  cat >conftest.$ac_ext <<_ACEOF
3582#line $LINENO "configure"
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588#include <stdlib.h>
3589$ac_declaration
3590int
3591main ()
3592{
3593exit (42);
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600  (eval $ac_compile) 2>&5
3601  ac_status=$?
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); } &&
3604         { ac_try='test -s conftest.$ac_objext'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; }; then
3610  :
3611else
3612  echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615continue
3616fi
3617rm -f conftest.$ac_objext conftest.$ac_ext
3618  cat >conftest.$ac_ext <<_ACEOF
3619#line $LINENO "configure"
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625$ac_declaration
3626int
3627main ()
3628{
3629exit (42);
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext
3635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636  (eval $ac_compile) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); } &&
3640         { ac_try='test -s conftest.$ac_objext'
3641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642  (eval $ac_try) 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }; }; then
3646  break
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651fi
3652rm -f conftest.$ac_objext conftest.$ac_ext
3653done
3654rm -f conftest*
3655if test -n "$ac_declaration"; then
3656  echo '#ifdef __cplusplus' >>confdefs.h
3657  echo $ac_declaration      >>confdefs.h
3658  echo '#endif'             >>confdefs.h
3659fi
3660
3661else
3662  echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665fi
3666rm -f conftest.$ac_objext conftest.$ac_ext
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673depcc="$CC"   am_compiler_list=
3674
3675echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3676echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3677if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3678  echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3681  # We make a subdir and do the tests there.  Otherwise we can end up
3682  # making bogus files that we don't know about and never remove.  For
3683  # instance it was reported that on HP-UX the gcc test will end up
3684  # making a dummy file named `D' -- because `-MD' means `put the output
3685  # in D'.
3686  mkdir conftest.dir
3687  # Copy depcomp to subdir because otherwise we won't find it if we're
3688  # using a relative directory.
3689  cp "$am_depcomp" conftest.dir
3690  cd conftest.dir
3691
3692  am_cv_CC_dependencies_compiler_type=none
3693  if test "$am_compiler_list" = ""; then
3694     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695  fi
3696  for depmode in $am_compiler_list; do
3697    # We need to recreate these files for each test, as the compiler may
3698    # overwrite some of them when testing with obscure command lines.
3699    # This happens at least with the AIX C compiler.
3700    echo '#include "conftest.h"' > conftest.c
3701    echo 'int i;' > conftest.h
3702    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3703
3704    case $depmode in
3705    nosideeffect)
3706      # after this tag, mechanisms are not by side-effect, so they'll
3707      # only be used when explicitly requested
3708      if test "x$enable_dependency_tracking" = xyes; then
3709	continue
3710      else
3711	break
3712      fi
3713      ;;
3714    none) break ;;
3715    esac
3716    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3717    # mode.  It turns out that the SunPro C++ compiler does not properly
3718    # handle `-M -o', and we need to detect this.
3719    if depmode=$depmode \
3720       source=conftest.c object=conftest.o \
3721       depfile=conftest.Po tmpdepfile=conftest.TPo \
3722       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3723       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3724       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3725      am_cv_CC_dependencies_compiler_type=$depmode
3726      break
3727    fi
3728  done
3729
3730  cd ..
3731  rm -rf conftest.dir
3732else
3733  am_cv_CC_dependencies_compiler_type=none
3734fi
3735
3736fi
3737echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3738echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3739CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3740
3741
3742
3743if
3744  test "x$enable_dependency_tracking" != xno \
3745  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3746  am__fastdepCC_TRUE=
3747  am__fastdepCC_FALSE='#'
3748else
3749  am__fastdepCC_TRUE='#'
3750  am__fastdepCC_FALSE=
3751fi
3752
3753
3754# Check whether --enable-shared or --disable-shared was given.
3755if test "${enable_shared+set}" = set; then
3756  enableval="$enable_shared"
3757  p=${PACKAGE-default}
3758case $enableval in
3759yes) enable_shared=yes ;;
3760no) enable_shared=no ;;
3761*)
3762  enable_shared=no
3763  # Look at the argument we got.  We use all the common list separators.
3764  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3765  for pkg in $enableval; do
3766    if test "X$pkg" = "X$p"; then
3767      enable_shared=yes
3768    fi
3769  done
3770  IFS="$ac_save_ifs"
3771  ;;
3772esac
3773else
3774  enable_shared=yes
3775fi;
3776# Check whether --enable-static or --disable-static was given.
3777if test "${enable_static+set}" = set; then
3778  enableval="$enable_static"
3779  p=${PACKAGE-default}
3780case $enableval in
3781yes) enable_static=yes ;;
3782no) enable_static=no ;;
3783*)
3784  enable_static=no
3785  # Look at the argument we got.  We use all the common list separators.
3786  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3787  for pkg in $enableval; do
3788    if test "X$pkg" = "X$p"; then
3789      enable_static=yes
3790    fi
3791  done
3792  IFS="$ac_save_ifs"
3793  ;;
3794esac
3795else
3796  enable_static=yes
3797fi;
3798# Check whether --enable-fast-install or --disable-fast-install was given.
3799if test "${enable_fast_install+set}" = set; then
3800  enableval="$enable_fast_install"
3801  p=${PACKAGE-default}
3802case $enableval in
3803yes) enable_fast_install=yes ;;
3804no) enable_fast_install=no ;;
3805*)
3806  enable_fast_install=no
3807  # Look at the argument we got.  We use all the common list separators.
3808  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3809  for pkg in $enableval; do
3810    if test "X$pkg" = "X$p"; then
3811      enable_fast_install=yes
3812    fi
3813  done
3814  IFS="$ac_save_ifs"
3815  ;;
3816esac
3817else
3818  enable_fast_install=yes
3819fi;
3820# Find the correct PATH separator.  Usually this is `:', but
3821# DJGPP uses `;' like DOS.
3822if test "X${PATH_SEPARATOR+set}" != Xset; then
3823  UNAME=${UNAME-`uname 2>/dev/null`}
3824  case X$UNAME in
3825    *-DOS) lt_cv_sys_path_separator=';' ;;
3826    *)     lt_cv_sys_path_separator=':' ;;
3827  esac
3828  PATH_SEPARATOR=$lt_cv_sys_path_separator
3829fi
3830
3831
3832# Check whether --with-gnu-ld or --without-gnu-ld was given.
3833if test "${with_gnu_ld+set}" = set; then
3834  withval="$with_gnu_ld"
3835  test "$withval" = no || with_gnu_ld=yes
3836else
3837  with_gnu_ld=no
3838fi;
3839ac_prog=ld
3840if test "$GCC" = yes; then
3841  # Check if gcc -print-prog-name=ld gives a path.
3842  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3843echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3844  case $host in
3845  *-*-mingw*)
3846    # gcc leaves a trailing carriage return which upsets mingw
3847    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3848  *)
3849    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3850  esac
3851  case $ac_prog in
3852    # Accept absolute paths.
3853    [\\/]* | [A-Za-z]:[\\/]*)
3854      re_direlt='/[^/][^/]*/\.\./'
3855      # Canonicalize the path of ld
3856      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3857      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3858	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3859      done
3860      test -z "$LD" && LD="$ac_prog"
3861      ;;
3862  "")
3863    # If it fails, then pretend we aren't using GCC.
3864    ac_prog=ld
3865    ;;
3866  *)
3867    # If it is relative, then search for the first ld in PATH.
3868    with_gnu_ld=unknown
3869    ;;
3870  esac
3871elif test "$with_gnu_ld" = yes; then
3872  echo "$as_me:$LINENO: checking for GNU ld" >&5
3873echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3874else
3875  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3876echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3877fi
3878if test "${lt_cv_path_LD+set}" = set; then
3879  echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881  if test -z "$LD"; then
3882  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3883  for ac_dir in $PATH; do
3884    test -z "$ac_dir" && ac_dir=.
3885    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3886      lt_cv_path_LD="$ac_dir/$ac_prog"
3887      # Check to see if the program is GNU ld.  I'd rather use --version,
3888      # but apparently some GNU ld's only accept -v.
3889      # Break only if it was the GNU/non-GNU ld that we prefer.
3890      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3891	test "$with_gnu_ld" != no && break
3892      else
3893	test "$with_gnu_ld" != yes && break
3894      fi
3895    fi
3896  done
3897  IFS="$ac_save_ifs"
3898else
3899  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3900fi
3901fi
3902
3903LD="$lt_cv_path_LD"
3904if test -n "$LD"; then
3905  echo "$as_me:$LINENO: result: $LD" >&5
3906echo "${ECHO_T}$LD" >&6
3907else
3908  echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910fi
3911test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3912echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3913   { (exit 1); exit 1; }; }
3914echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3915echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3916if test "${lt_cv_prog_gnu_ld+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3920if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3921  lt_cv_prog_gnu_ld=yes
3922else
3923  lt_cv_prog_gnu_ld=no
3924fi
3925fi
3926echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3927echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3928with_gnu_ld=$lt_cv_prog_gnu_ld
3929
3930
3931echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3932echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3933if test "${lt_cv_ld_reload_flag+set}" = set; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936  lt_cv_ld_reload_flag='-r'
3937fi
3938echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3939echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3940reload_flag=$lt_cv_ld_reload_flag
3941test -n "$reload_flag" && reload_flag=" $reload_flag"
3942
3943echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3944echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3945if test "${lt_cv_path_NM+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  if test -n "$NM"; then
3949  # Let the user override the test.
3950  lt_cv_path_NM="$NM"
3951else
3952  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3953  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3954    test -z "$ac_dir" && ac_dir=.
3955    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3956    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3957      # Check to see if the nm accepts a BSD-compat flag.
3958      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3959      #   nm: unknown option "B" ignored
3960      # Tru64's nm complains that /dev/null is an invalid object file
3961      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3962	lt_cv_path_NM="$tmp_nm -B"
3963	break
3964      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3965	lt_cv_path_NM="$tmp_nm -p"
3966	break
3967      else
3968	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3969	continue # so that we can try to find one that supports BSD flags
3970      fi
3971    fi
3972  done
3973  IFS="$ac_save_ifs"
3974  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3975fi
3976fi
3977
3978NM="$lt_cv_path_NM"
3979echo "$as_me:$LINENO: result: $NM" >&5
3980echo "${ECHO_T}$NM" >&6
3981
3982echo "$as_me:$LINENO: checking whether ln -s works" >&5
3983echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3984LN_S=$as_ln_s
3985if test "$LN_S" = "ln -s"; then
3986  echo "$as_me:$LINENO: result: yes" >&5
3987echo "${ECHO_T}yes" >&6
3988else
3989  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3990echo "${ECHO_T}no, using $LN_S" >&6
3991fi
3992
3993echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3994echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3995if test "${lt_cv_deplibs_check_method+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  lt_cv_file_magic_cmd='$MAGIC_CMD'
3999lt_cv_file_magic_test_file=
4000lt_cv_deplibs_check_method='unknown'
4001# Need to set the preceding variable on all platforms that support
4002# interlibrary dependencies.
4003# 'none' -- dependencies not supported.
4004# `unknown' -- same as none, but documents that we really don't know.
4005# 'pass_all' -- all dependencies passed with no checks.
4006# 'test_compile' -- check by making test program.
4007# 'file_magic [[regex]]' -- check by looking for files in library path
4008# which responds to the $file_magic_cmd with a given egrep regex.
4009# If you have `file' or equivalent on your system and you're not sure
4010# whether `pass_all' will *always* work, you probably want this one.
4011
4012case $host_os in
4013aix4* | aix5*)
4014  lt_cv_deplibs_check_method=pass_all
4015  ;;
4016
4017beos*)
4018  lt_cv_deplibs_check_method=pass_all
4019  ;;
4020
4021bsdi4*)
4022  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4023  lt_cv_file_magic_cmd='/usr/bin/file -L'
4024  lt_cv_file_magic_test_file=/shlib/libc.so
4025  ;;
4026
4027cygwin* | mingw* | pw32*)
4028  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4029  lt_cv_file_magic_cmd='$OBJDUMP -f'
4030  ;;
4031
4032darwin* | rhapsody*)
4033  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4034  lt_cv_file_magic_cmd='/usr/bin/file -L'
4035  case "$host_os" in
4036  rhapsody* | darwin1.[012])
4037    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4038    ;;
4039  *) # Darwin 1.3 on
4040    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4041    ;;
4042  esac
4043  ;;
4044
4045freebsd*)
4046  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4047    case $host_cpu in
4048    i*86 )
4049      # Not sure whether the presence of OpenBSD here was a mistake.
4050      # Let's accept both of them until this is cleared up.
4051      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4052      lt_cv_file_magic_cmd=/usr/bin/file
4053      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4054      ;;
4055    esac
4056  else
4057    lt_cv_deplibs_check_method=pass_all
4058  fi
4059  ;;
4060
4061gnu*)
4062  lt_cv_deplibs_check_method=pass_all
4063  ;;
4064
4065hpux10.20*|hpux11*)
4066  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4067  lt_cv_file_magic_cmd=/usr/bin/file
4068  lt_cv_file_magic_test_file=/usr/lib/libc.sl
4069  ;;
4070
4071irix5* | irix6*)
4072  case $host_os in
4073  irix5*)
4074    # this will be overridden with pass_all, but let us keep it just in case
4075    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4076    ;;
4077  *)
4078    case $LD in
4079    *-32|*"-32 ") libmagic=32-bit;;
4080    *-n32|*"-n32 ") libmagic=N32;;
4081    *-64|*"-64 ") libmagic=64-bit;;
4082    *) libmagic=never-match;;
4083    esac
4084    # this will be overridden with pass_all, but let us keep it just in case
4085    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4086    ;;
4087  esac
4088  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4089  lt_cv_deplibs_check_method=pass_all
4090  ;;
4091
4092# This must be Linux ELF.
4093linux-gnu*)
4094  case $host_cpu in
4095  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | x86_64* )
4096    lt_cv_deplibs_check_method=pass_all ;;
4097  *)
4098    # glibc up to 2.1.1 does not perform some relocations on ARM
4099    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4100  esac
4101  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4102  ;;
4103
4104netbsd*)
4105  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4106    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4107  else
4108    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4109  fi
4110  ;;
4111
4112newos6*)
4113  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4114  lt_cv_file_magic_cmd=/usr/bin/file
4115  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4116  ;;
4117
4118openbsd*)
4119  lt_cv_file_magic_cmd=/usr/bin/file
4120  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4121  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4122    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4123  else
4124    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4125  fi
4126  ;;
4127
4128osf3* | osf4* | osf5*)
4129  # this will be overridden with pass_all, but let us keep it just in case
4130  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4131  lt_cv_file_magic_test_file=/shlib/libc.so
4132  lt_cv_deplibs_check_method=pass_all
4133  ;;
4134
4135sco3.2v5*)
4136  lt_cv_deplibs_check_method=pass_all
4137  ;;
4138
4139solaris*)
4140  lt_cv_deplibs_check_method=pass_all
4141  lt_cv_file_magic_test_file=/lib/libc.so
4142  ;;
4143
4144sysv5uw[78]* | sysv4*uw2*)
4145  lt_cv_deplibs_check_method=pass_all
4146  ;;
4147
4148sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4149  case $host_vendor in
4150  motorola)
4151    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]'
4152    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4153    ;;
4154  ncr)
4155    lt_cv_deplibs_check_method=pass_all
4156    ;;
4157  sequent)
4158    lt_cv_file_magic_cmd='/bin/file'
4159    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4160    ;;
4161  sni)
4162    lt_cv_file_magic_cmd='/bin/file'
4163    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4164    lt_cv_file_magic_test_file=/lib/libc.so
4165    ;;
4166  esac
4167  ;;
4168esac
4169
4170fi
4171echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4172echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4173file_magic_cmd=$lt_cv_file_magic_cmd
4174deplibs_check_method=$lt_cv_deplibs_check_method
4175
4176
4177
4178
4179
4180
4181
4182# Check for command to grab the raw symbol name followed by C symbol from nm.
4183echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4184echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4185if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188
4189# These are sane defaults that work on at least a few old systems.
4190# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4191
4192# Character class describing NM global symbol codes.
4193symcode='[BCDEGRST]'
4194
4195# Regexp to match symbols that can be accessed directly from C.
4196sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4197
4198# Transform the above into a raw symbol and a C symbol.
4199symxfrm='\1 \2\3 \3'
4200
4201# Transform an extracted symbol line into a proper C declaration
4202lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4203
4204# Transform an extracted symbol line into symbol name and symbol address
4205lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4206
4207# Define system-specific variables.
4208case $host_os in
4209aix*)
4210  symcode='[BCDT]'
4211  ;;
4212cygwin* | mingw* | pw32*)
4213  symcode='[ABCDGISTW]'
4214  ;;
4215hpux*) # Its linker distinguishes data from code symbols
4216  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4217  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'"
4218  ;;
4219irix*)
4220  symcode='[BCDEGRST]'
4221  ;;
4222solaris* | sysv5*)
4223  symcode='[BDT]'
4224  ;;
4225sysv4)
4226  symcode='[DFNSTU]'
4227  ;;
4228esac
4229
4230# Handle CRLF in mingw tool chain
4231opt_cr=
4232case $host_os in
4233mingw*)
4234  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4235  ;;
4236esac
4237
4238# If we're using GNU nm, then use its standard symbol codes.
4239if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4240  symcode='[ABCDGISTW]'
4241fi
4242
4243# Try without a prefix undercore, then with it.
4244for ac_symprfx in "" "_"; do
4245
4246  # Write the raw and C identifiers.
4247lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4248
4249  # Check to see that the pipe works correctly.
4250  pipe_works=no
4251  rm -f conftest*
4252  cat > conftest.$ac_ext <<EOF
4253#ifdef __cplusplus
4254extern "C" {
4255#endif
4256char nm_test_var;
4257void nm_test_func(){}
4258#ifdef __cplusplus
4259}
4260#endif
4261int main(){nm_test_var='a';nm_test_func();return(0);}
4262EOF
4263
4264  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265  (eval $ac_compile) 2>&5
4266  ac_status=$?
4267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268  (exit $ac_status); }; then
4269    # Now try to grab the symbols.
4270    nlist=conftest.nm
4271    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4272  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); } && test -s "$nlist"; then
4276      # Try sorting and uniquifying the output.
4277      if sort "$nlist" | uniq > "$nlist"T; then
4278	mv -f "$nlist"T "$nlist"
4279      else
4280	rm -f "$nlist"T
4281      fi
4282
4283      # Make sure that we snagged all the symbols we need.
4284      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4285	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4286	  cat <<EOF > conftest.$ac_ext
4287#ifdef __cplusplus
4288extern "C" {
4289#endif
4290
4291EOF
4292	  # Now generate the symbol file.
4293	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4294
4295	  cat <<EOF >> conftest.$ac_ext
4296#if defined (__STDC__) && __STDC__
4297# define lt_ptr void *
4298#else
4299# define lt_ptr char *
4300# define const
4301#endif
4302
4303/* The mapping between symbol names and symbols. */
4304const struct {
4305  const char *name;
4306  lt_ptr address;
4307}
4308lt_preloaded_symbols[] =
4309{
4310EOF
4311	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4312	  cat <<\EOF >> conftest.$ac_ext
4313  {0, (lt_ptr) 0}
4314};
4315
4316#ifdef __cplusplus
4317}
4318#endif
4319EOF
4320	  # Now try linking the two files.
4321	  mv conftest.$ac_objext conftstm.$ac_objext
4322	  save_LIBS="$LIBS"
4323	  save_CFLAGS="$CFLAGS"
4324	  LIBS="conftstm.$ac_objext"
4325	  CFLAGS="$CFLAGS$no_builtin_flag"
4326	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327  (eval $ac_link) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); } && test -s conftest; then
4331	    pipe_works=yes
4332	  fi
4333	  LIBS="$save_LIBS"
4334	  CFLAGS="$save_CFLAGS"
4335	else
4336	  echo "cannot find nm_test_func in $nlist" >&5
4337	fi
4338      else
4339	echo "cannot find nm_test_var in $nlist" >&5
4340      fi
4341    else
4342      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4343    fi
4344  else
4345    echo "$progname: failed program was:" >&5
4346    cat conftest.$ac_ext >&5
4347  fi
4348  rm -f conftest* conftst*
4349
4350  # Do not use the global_symbol_pipe unless it works.
4351  if test "$pipe_works" = yes; then
4352    break
4353  else
4354    lt_cv_sys_global_symbol_pipe=
4355  fi
4356done
4357
4358fi
4359
4360global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4361if test -z "$lt_cv_sys_global_symbol_pipe"; then
4362  global_symbol_to_cdecl=
4363  global_symbol_to_c_name_address=
4364else
4365  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4366  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4367fi
4368if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4369then
4370  echo "$as_me:$LINENO: result: failed" >&5
4371echo "${ECHO_T}failed" >&6
4372else
4373  echo "$as_me:$LINENO: result: ok" >&5
4374echo "${ECHO_T}ok" >&6
4375fi
4376
4377ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4383echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4384# On Suns, sometimes $CPP names a directory.
4385if test -n "$CPP" && test -d "$CPP"; then
4386  CPP=
4387fi
4388if test -z "$CPP"; then
4389  if test "${ac_cv_prog_CPP+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392      # Double quotes because CPP needs to be expanded
4393    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4394    do
4395      ac_preproc_ok=false
4396for ac_c_preproc_warn_flag in '' yes
4397do
4398  # Use a header file that comes with gcc, so configuring glibc
4399  # with a fresh cross-compiler works.
4400  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401  # <limits.h> exists even on freestanding compilers.
4402  # On the NeXT, cc -E runs the code through the compiler's parser,
4403  # not just through cpp. "Syntax error" is here to catch this case.
4404  cat >conftest.$ac_ext <<_ACEOF
4405#line $LINENO "configure"
4406/* confdefs.h.  */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h.  */
4411#ifdef __STDC__
4412# include <limits.h>
4413#else
4414# include <assert.h>
4415#endif
4416                     Syntax error
4417_ACEOF
4418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420  ac_status=$?
4421  grep -v '^ *+' conftest.er1 >conftest.err
4422  rm -f conftest.er1
4423  cat conftest.err >&5
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); } >/dev/null; then
4426  if test -s conftest.err; then
4427    ac_cpp_err=$ac_c_preproc_warn_flag
4428  else
4429    ac_cpp_err=
4430  fi
4431else
4432  ac_cpp_err=yes
4433fi
4434if test -z "$ac_cpp_err"; then
4435  :
4436else
4437  echo "$as_me: failed program was:" >&5
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
4440  # Broken: fails on valid input.
4441continue
4442fi
4443rm -f conftest.err conftest.$ac_ext
4444
4445  # OK, works on sane cases.  Now check whether non-existent headers
4446  # can be detected and how.
4447  cat >conftest.$ac_ext <<_ACEOF
4448#line $LINENO "configure"
4449/* confdefs.h.  */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h.  */
4454#include <ac_nonexistent.h>
4455_ACEOF
4456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } >/dev/null; then
4464  if test -s conftest.err; then
4465    ac_cpp_err=$ac_c_preproc_warn_flag
4466  else
4467    ac_cpp_err=
4468  fi
4469else
4470  ac_cpp_err=yes
4471fi
4472if test -z "$ac_cpp_err"; then
4473  # Broken: success on invalid input.
4474continue
4475else
4476  echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479  # Passes both tests.
4480ac_preproc_ok=:
4481break
4482fi
4483rm -f conftest.err conftest.$ac_ext
4484
4485done
4486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487rm -f conftest.err conftest.$ac_ext
4488if $ac_preproc_ok; then
4489  break
4490fi
4491
4492    done
4493    ac_cv_prog_CPP=$CPP
4494
4495fi
4496  CPP=$ac_cv_prog_CPP
4497else
4498  ac_cv_prog_CPP=$CPP
4499fi
4500echo "$as_me:$LINENO: result: $CPP" >&5
4501echo "${ECHO_T}$CPP" >&6
4502ac_preproc_ok=false
4503for ac_c_preproc_warn_flag in '' yes
4504do
4505  # Use a header file that comes with gcc, so configuring glibc
4506  # with a fresh cross-compiler works.
4507  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508  # <limits.h> exists even on freestanding compilers.
4509  # On the NeXT, cc -E runs the code through the compiler's parser,
4510  # not just through cpp. "Syntax error" is here to catch this case.
4511  cat >conftest.$ac_ext <<_ACEOF
4512#line $LINENO "configure"
4513/* confdefs.h.  */
4514_ACEOF
4515cat confdefs.h >>conftest.$ac_ext
4516cat >>conftest.$ac_ext <<_ACEOF
4517/* end confdefs.h.  */
4518#ifdef __STDC__
4519# include <limits.h>
4520#else
4521# include <assert.h>
4522#endif
4523                     Syntax error
4524_ACEOF
4525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4526  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4527  ac_status=$?
4528  grep -v '^ *+' conftest.er1 >conftest.err
4529  rm -f conftest.er1
4530  cat conftest.err >&5
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); } >/dev/null; then
4533  if test -s conftest.err; then
4534    ac_cpp_err=$ac_c_preproc_warn_flag
4535  else
4536    ac_cpp_err=
4537  fi
4538else
4539  ac_cpp_err=yes
4540fi
4541if test -z "$ac_cpp_err"; then
4542  :
4543else
4544  echo "$as_me: failed program was:" >&5
4545sed 's/^/| /' conftest.$ac_ext >&5
4546
4547  # Broken: fails on valid input.
4548continue
4549fi
4550rm -f conftest.err conftest.$ac_ext
4551
4552  # OK, works on sane cases.  Now check whether non-existent headers
4553  # can be detected and how.
4554  cat >conftest.$ac_ext <<_ACEOF
4555#line $LINENO "configure"
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561#include <ac_nonexistent.h>
4562_ACEOF
4563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } >/dev/null; then
4571  if test -s conftest.err; then
4572    ac_cpp_err=$ac_c_preproc_warn_flag
4573  else
4574    ac_cpp_err=
4575  fi
4576else
4577  ac_cpp_err=yes
4578fi
4579if test -z "$ac_cpp_err"; then
4580  # Broken: success on invalid input.
4581continue
4582else
4583  echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586  # Passes both tests.
4587ac_preproc_ok=:
4588break
4589fi
4590rm -f conftest.err conftest.$ac_ext
4591
4592done
4593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4594rm -f conftest.err conftest.$ac_ext
4595if $ac_preproc_ok; then
4596  :
4597else
4598  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4599See \`config.log' for more details." >&5
4600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4601See \`config.log' for more details." >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604
4605ac_ext=c
4606ac_cpp='$CPP $CPPFLAGS'
4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611
4612echo "$as_me:$LINENO: checking for egrep" >&5
4613echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4614if test "${ac_cv_prog_egrep+set}" = set; then
4615  echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4618    then ac_cv_prog_egrep='grep -E'
4619    else ac_cv_prog_egrep='egrep'
4620    fi
4621fi
4622echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4623echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4624 EGREP=$ac_cv_prog_egrep
4625
4626
4627echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4628echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4629if test "${ac_cv_header_stdc+set}" = set; then
4630  echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632  cat >conftest.$ac_ext <<_ACEOF
4633#line $LINENO "configure"
4634/* confdefs.h.  */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h.  */
4639#include <stdlib.h>
4640#include <stdarg.h>
4641#include <string.h>
4642#include <float.h>
4643
4644int
4645main ()
4646{
4647
4648  ;
4649  return 0;
4650}
4651_ACEOF
4652rm -f conftest.$ac_objext
4653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654  (eval $ac_compile) 2>&5
4655  ac_status=$?
4656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657  (exit $ac_status); } &&
4658         { ac_try='test -s conftest.$ac_objext'
4659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660  (eval $ac_try) 2>&5
4661  ac_status=$?
4662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663  (exit $ac_status); }; }; then
4664  ac_cv_header_stdc=yes
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669ac_cv_header_stdc=no
4670fi
4671rm -f conftest.$ac_objext conftest.$ac_ext
4672
4673if test $ac_cv_header_stdc = yes; then
4674  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4675  cat >conftest.$ac_ext <<_ACEOF
4676#line $LINENO "configure"
4677/* confdefs.h.  */
4678_ACEOF
4679cat confdefs.h >>conftest.$ac_ext
4680cat >>conftest.$ac_ext <<_ACEOF
4681/* end confdefs.h.  */
4682#include <string.h>
4683
4684_ACEOF
4685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4686  $EGREP "memchr" >/dev/null 2>&1; then
4687  :
4688else
4689  ac_cv_header_stdc=no
4690fi
4691rm -f conftest*
4692
4693fi
4694
4695if test $ac_cv_header_stdc = yes; then
4696  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4697  cat >conftest.$ac_ext <<_ACEOF
4698#line $LINENO "configure"
4699/* confdefs.h.  */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h.  */
4704#include <stdlib.h>
4705
4706_ACEOF
4707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708  $EGREP "free" >/dev/null 2>&1; then
4709  :
4710else
4711  ac_cv_header_stdc=no
4712fi
4713rm -f conftest*
4714
4715fi
4716
4717if test $ac_cv_header_stdc = yes; then
4718  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4719  if test "$cross_compiling" = yes; then
4720  :
4721else
4722  cat >conftest.$ac_ext <<_ACEOF
4723#line $LINENO "configure"
4724/* confdefs.h.  */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h.  */
4729#include <ctype.h>
4730#if ((' ' & 0x0FF) == 0x020)
4731# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4732# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4733#else
4734# define ISLOWER(c) \
4735                   (('a' <= (c) && (c) <= 'i') \
4736                     || ('j' <= (c) && (c) <= 'r') \
4737                     || ('s' <= (c) && (c) <= 'z'))
4738# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4739#endif
4740
4741#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4742int
4743main ()
4744{
4745  int i;
4746  for (i = 0; i < 256; i++)
4747    if (XOR (islower (i), ISLOWER (i))
4748        || toupper (i) != TOUPPER (i))
4749      exit(2);
4750  exit (0);
4751}
4752_ACEOF
4753rm -f conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755  (eval $ac_link) 2>&5
4756  ac_status=$?
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; }; then
4764  :
4765else
4766  echo "$as_me: program exited with status $ac_status" >&5
4767echo "$as_me: failed program was:" >&5
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770( exit $ac_status )
4771ac_cv_header_stdc=no
4772fi
4773rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4774fi
4775fi
4776fi
4777echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4778echo "${ECHO_T}$ac_cv_header_stdc" >&6
4779if test $ac_cv_header_stdc = yes; then
4780
4781cat >>confdefs.h <<\_ACEOF
4782#define STDC_HEADERS 1
4783_ACEOF
4784
4785fi
4786
4787# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4798                  inttypes.h stdint.h unistd.h
4799do
4800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4801echo "$as_me:$LINENO: checking for $ac_header" >&5
4802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4803if eval "test \"\${$as_ac_Header+set}\" = set"; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  cat >conftest.$ac_ext <<_ACEOF
4807#line $LINENO "configure"
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813$ac_includes_default
4814
4815#include <$ac_header>
4816_ACEOF
4817rm -f conftest.$ac_objext
4818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819  (eval $ac_compile) 2>&5
4820  ac_status=$?
4821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822  (exit $ac_status); } &&
4823         { ac_try='test -s conftest.$ac_objext'
4824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825  (eval $ac_try) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }; }; then
4829  eval "$as_ac_Header=yes"
4830else
4831  echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834eval "$as_ac_Header=no"
4835fi
4836rm -f conftest.$ac_objext conftest.$ac_ext
4837fi
4838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4840if test `eval echo '${'$as_ac_Header'}'` = yes; then
4841  cat >>confdefs.h <<_ACEOF
4842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843_ACEOF
4844
4845fi
4846
4847done
4848
4849
4850
4851for ac_header in dlfcn.h
4852do
4853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4854if eval "test \"\${$as_ac_Header+set}\" = set"; then
4855  echo "$as_me:$LINENO: checking for $ac_header" >&5
4856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4857if eval "test \"\${$as_ac_Header+set}\" = set"; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859fi
4860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4862else
4863  # Is the header compilable?
4864echo "$as_me:$LINENO: checking $ac_header usability" >&5
4865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4866cat >conftest.$ac_ext <<_ACEOF
4867#line $LINENO "configure"
4868/* confdefs.h.  */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h.  */
4873$ac_includes_default
4874#include <$ac_header>
4875_ACEOF
4876rm -f conftest.$ac_objext
4877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4878  (eval $ac_compile) 2>&5
4879  ac_status=$?
4880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881  (exit $ac_status); } &&
4882         { ac_try='test -s conftest.$ac_objext'
4883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884  (eval $ac_try) 2>&5
4885  ac_status=$?
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); }; }; then
4888  ac_header_compiler=yes
4889else
4890  echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893ac_header_compiler=no
4894fi
4895rm -f conftest.$ac_objext conftest.$ac_ext
4896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4897echo "${ECHO_T}$ac_header_compiler" >&6
4898
4899# Is the header present?
4900echo "$as_me:$LINENO: checking $ac_header presence" >&5
4901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4902cat >conftest.$ac_ext <<_ACEOF
4903#line $LINENO "configure"
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <$ac_header>
4910_ACEOF
4911if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4912  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4913  ac_status=$?
4914  grep -v '^ *+' conftest.er1 >conftest.err
4915  rm -f conftest.er1
4916  cat conftest.err >&5
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); } >/dev/null; then
4919  if test -s conftest.err; then
4920    ac_cpp_err=$ac_c_preproc_warn_flag
4921  else
4922    ac_cpp_err=
4923  fi
4924else
4925  ac_cpp_err=yes
4926fi
4927if test -z "$ac_cpp_err"; then
4928  ac_header_preproc=yes
4929else
4930  echo "$as_me: failed program was:" >&5
4931sed 's/^/| /' conftest.$ac_ext >&5
4932
4933  ac_header_preproc=no
4934fi
4935rm -f conftest.err conftest.$ac_ext
4936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937echo "${ECHO_T}$ac_header_preproc" >&6
4938
4939# So?  What about this header?
4940case $ac_header_compiler:$ac_header_preproc in
4941  yes:no )
4942    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4945echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4946    (
4947      cat <<\_ASBOX
4948## ------------------------------------ ##
4949## Report this to bug-autoconf@gnu.org. ##
4950## ------------------------------------ ##
4951_ASBOX
4952    ) |
4953      sed "s/^/$as_me: WARNING:     /" >&2
4954    ;;
4955  no:yes )
4956    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4958    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4960    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4962    (
4963      cat <<\_ASBOX
4964## ------------------------------------ ##
4965## Report this to bug-autoconf@gnu.org. ##
4966## ------------------------------------ ##
4967_ASBOX
4968    ) |
4969      sed "s/^/$as_me: WARNING:     /" >&2
4970    ;;
4971esac
4972echo "$as_me:$LINENO: checking for $ac_header" >&5
4973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4974if eval "test \"\${$as_ac_Header+set}\" = set"; then
4975  echo $ECHO_N "(cached) $ECHO_C" >&6
4976else
4977  eval "$as_ac_Header=$ac_header_preproc"
4978fi
4979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4981
4982fi
4983if test `eval echo '${'$as_ac_Header'}'` = yes; then
4984  cat >>confdefs.h <<_ACEOF
4985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986_ACEOF
4987
4988fi
4989
4990done
4991
4992
4993
4994
4995
4996# Only perform the check for file, if the check method requires it
4997case $deplibs_check_method in
4998file_magic*)
4999  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5000    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5001echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5002if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5003  echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005  case $MAGIC_CMD in
5006  /*)
5007  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5008  ;;
5009  ?:/*)
5010  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5011  ;;
5012  *)
5013  ac_save_MAGIC_CMD="$MAGIC_CMD"
5014  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5015  ac_dummy="/usr/bin:$PATH"
5016  for ac_dir in $ac_dummy; do
5017    test -z "$ac_dir" && ac_dir=.
5018    if test -f $ac_dir/${ac_tool_prefix}file; then
5019      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5020      if test -n "$file_magic_test_file"; then
5021	case $deplibs_check_method in
5022	"file_magic "*)
5023	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5024	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5025	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5026	    egrep "$file_magic_regex" > /dev/null; then
5027	    :
5028	  else
5029	    cat <<EOF 1>&2
5030
5031*** Warning: the command libtool uses to detect shared libraries,
5032*** $file_magic_cmd, produces output that libtool cannot recognize.
5033*** The result is that libtool may fail to recognize shared libraries
5034*** as such.  This will affect the creation of libtool libraries that
5035*** depend on shared libraries, but programs linked with such libtool
5036*** libraries will work regardless of this problem.  Nevertheless, you
5037*** may want to report the problem to your system manager and/or to
5038*** bug-libtool@gnu.org
5039
5040EOF
5041	  fi ;;
5042	esac
5043      fi
5044      break
5045    fi
5046  done
5047  IFS="$ac_save_ifs"
5048  MAGIC_CMD="$ac_save_MAGIC_CMD"
5049  ;;
5050esac
5051fi
5052
5053MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5054if test -n "$MAGIC_CMD"; then
5055  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5056echo "${ECHO_T}$MAGIC_CMD" >&6
5057else
5058  echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6
5060fi
5061
5062if test -z "$lt_cv_path_MAGIC_CMD"; then
5063  if test -n "$ac_tool_prefix"; then
5064    echo "$as_me:$LINENO: checking for file" >&5
5065echo $ECHO_N "checking for file... $ECHO_C" >&6
5066if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  case $MAGIC_CMD in
5070  /*)
5071  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5072  ;;
5073  ?:/*)
5074  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5075  ;;
5076  *)
5077  ac_save_MAGIC_CMD="$MAGIC_CMD"
5078  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5079  ac_dummy="/usr/bin:$PATH"
5080  for ac_dir in $ac_dummy; do
5081    test -z "$ac_dir" && ac_dir=.
5082    if test -f $ac_dir/file; then
5083      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5084      if test -n "$file_magic_test_file"; then
5085	case $deplibs_check_method in
5086	"file_magic "*)
5087	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5088	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5089	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5090	    egrep "$file_magic_regex" > /dev/null; then
5091	    :
5092	  else
5093	    cat <<EOF 1>&2
5094
5095*** Warning: the command libtool uses to detect shared libraries,
5096*** $file_magic_cmd, produces output that libtool cannot recognize.
5097*** The result is that libtool may fail to recognize shared libraries
5098*** as such.  This will affect the creation of libtool libraries that
5099*** depend on shared libraries, but programs linked with such libtool
5100*** libraries will work regardless of this problem.  Nevertheless, you
5101*** may want to report the problem to your system manager and/or to
5102*** bug-libtool@gnu.org
5103
5104EOF
5105	  fi ;;
5106	esac
5107      fi
5108      break
5109    fi
5110  done
5111  IFS="$ac_save_ifs"
5112  MAGIC_CMD="$ac_save_MAGIC_CMD"
5113  ;;
5114esac
5115fi
5116
5117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5118if test -n "$MAGIC_CMD"; then
5119  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5120echo "${ECHO_T}$MAGIC_CMD" >&6
5121else
5122  echo "$as_me:$LINENO: result: no" >&5
5123echo "${ECHO_T}no" >&6
5124fi
5125
5126  else
5127    MAGIC_CMD=:
5128  fi
5129fi
5130
5131  fi
5132  ;;
5133esac
5134
5135if test -n "$ac_tool_prefix"; then
5136  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5137set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_RANLIB+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  if test -n "$RANLIB"; then
5144  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151  for ac_exec_ext in '' $ac_executable_extensions; do
5152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158done
5159
5160fi
5161fi
5162RANLIB=$ac_cv_prog_RANLIB
5163if test -n "$RANLIB"; then
5164  echo "$as_me:$LINENO: result: $RANLIB" >&5
5165echo "${ECHO_T}$RANLIB" >&6
5166else
5167  echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169fi
5170
5171fi
5172if test -z "$ac_cv_prog_RANLIB"; then
5173  ac_ct_RANLIB=$RANLIB
5174  # Extract the first word of "ranlib", so it can be a program name with args.
5175set dummy ranlib; ac_word=$2
5176echo "$as_me:$LINENO: checking for $ac_word" >&5
5177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5178if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5179  echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181  if test -n "$ac_ct_RANLIB"; then
5182  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187  IFS=$as_save_IFS
5188  test -z "$as_dir" && as_dir=.
5189  for ac_exec_ext in '' $ac_executable_extensions; do
5190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191    ac_cv_prog_ac_ct_RANLIB="ranlib"
5192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193    break 2
5194  fi
5195done
5196done
5197
5198  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5199fi
5200fi
5201ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5202if test -n "$ac_ct_RANLIB"; then
5203  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5204echo "${ECHO_T}$ac_ct_RANLIB" >&6
5205else
5206  echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208fi
5209
5210  RANLIB=$ac_ct_RANLIB
5211else
5212  RANLIB="$ac_cv_prog_RANLIB"
5213fi
5214
5215if test -n "$ac_tool_prefix"; then
5216  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5217set dummy ${ac_tool_prefix}strip; ac_word=$2
5218echo "$as_me:$LINENO: checking for $ac_word" >&5
5219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5220if test "${ac_cv_prog_STRIP+set}" = set; then
5221  echo $ECHO_N "(cached) $ECHO_C" >&6
5222else
5223  if test -n "$STRIP"; then
5224  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5225else
5226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227for as_dir in $PATH
5228do
5229  IFS=$as_save_IFS
5230  test -z "$as_dir" && as_dir=.
5231  for ac_exec_ext in '' $ac_executable_extensions; do
5232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5235    break 2
5236  fi
5237done
5238done
5239
5240fi
5241fi
5242STRIP=$ac_cv_prog_STRIP
5243if test -n "$STRIP"; then
5244  echo "$as_me:$LINENO: result: $STRIP" >&5
5245echo "${ECHO_T}$STRIP" >&6
5246else
5247  echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249fi
5250
5251fi
5252if test -z "$ac_cv_prog_STRIP"; then
5253  ac_ct_STRIP=$STRIP
5254  # Extract the first word of "strip", so it can be a program name with args.
5255set dummy strip; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5259  echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261  if test -n "$ac_ct_STRIP"; then
5262  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269  for ac_exec_ext in '' $ac_executable_extensions; do
5270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271    ac_cv_prog_ac_ct_STRIP="strip"
5272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273    break 2
5274  fi
5275done
5276done
5277
5278  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5279fi
5280fi
5281ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5282if test -n "$ac_ct_STRIP"; then
5283  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5284echo "${ECHO_T}$ac_ct_STRIP" >&6
5285else
5286  echo "$as_me:$LINENO: result: no" >&5
5287echo "${ECHO_T}no" >&6
5288fi
5289
5290  STRIP=$ac_ct_STRIP
5291else
5292  STRIP="$ac_cv_prog_STRIP"
5293fi
5294
5295
5296enable_dlopen=no
5297enable_win32_dll=no
5298
5299# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5300if test "${enable_libtool_lock+set}" = set; then
5301  enableval="$enable_libtool_lock"
5302
5303fi;
5304test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5305
5306# Some flags need to be propagated to the compiler or linker for good
5307# libtool support.
5308case $host in
5309*-*-irix6*)
5310  # Find out which ABI we are using.
5311  echo '#line 5311 "configure"' > conftest.$ac_ext
5312  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313  (eval $ac_compile) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }; then
5317    case `/usr/bin/file conftest.$ac_objext` in
5318    *32-bit*)
5319      LD="${LD-ld} -32"
5320      ;;
5321    *N32*)
5322      LD="${LD-ld} -n32"
5323      ;;
5324    *64-bit*)
5325      LD="${LD-ld} -64"
5326      ;;
5327    esac
5328  fi
5329  rm -rf conftest*
5330  ;;
5331
5332*-*-linux*)
5333  # Test if the compiler is 64bit
5334  echo 'int i;' > conftest.$ac_ext
5335  lt_cv_cc_64bit_output=no
5336  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337  (eval $ac_compile) 2>&5
5338  ac_status=$?
5339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340  (exit $ac_status); }; then
5341    case `/usr/bin/file conftest.$ac_objext` in
5342    *"ELF 64"*)
5343      lt_cv_cc_64bit_output=yes
5344      ;;
5345    esac
5346  fi
5347  rm -rf conftest*
5348  ;;
5349
5350*-*-sco3.2v5*)
5351  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5352  SAVE_CFLAGS="$CFLAGS"
5353  CFLAGS="$CFLAGS -belf"
5354  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5355echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5356if test "${lt_cv_cc_needs_belf+set}" = set; then
5357  echo $ECHO_N "(cached) $ECHO_C" >&6
5358else
5359
5360
5361     ac_ext=c
5362ac_cpp='$CPP $CPPFLAGS'
5363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366
5367     cat >conftest.$ac_ext <<_ACEOF
5368#line $LINENO "configure"
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374
5375int
5376main ()
5377{
5378
5379  ;
5380  return 0;
5381}
5382_ACEOF
5383rm -f conftest.$ac_objext conftest$ac_exeext
5384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5385  (eval $ac_link) 2>&5
5386  ac_status=$?
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); } &&
5389         { ac_try='test -s conftest$ac_exeext'
5390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391  (eval $ac_try) 2>&5
5392  ac_status=$?
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); }; }; then
5395  lt_cv_cc_needs_belf=yes
5396else
5397  echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400lt_cv_cc_needs_belf=no
5401fi
5402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5403     ac_ext=c
5404ac_cpp='$CPP $CPPFLAGS'
5405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407ac_compiler_gnu=$ac_cv_c_compiler_gnu
5408
5409fi
5410echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5411echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5412  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5413    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5414    CFLAGS="$SAVE_CFLAGS"
5415  fi
5416  ;;
5417
5418
5419esac
5420
5421# Sed substitution that helps us do robust quoting.  It backslashifies
5422# metacharacters that are still active within double-quoted strings.
5423Xsed='sed -e s/^X//'
5424sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5425
5426# Same as above, but do not quote variable references.
5427double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5428
5429# Sed substitution to delay expansion of an escaped shell variable in a
5430# double_quote_subst'ed string.
5431delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5432
5433# Constants:
5434rm="rm -f"
5435
5436# Global variables:
5437default_ofile=libtool
5438can_build_shared=yes
5439
5440# All known linkers require a `.a' archive for static linking (except M$VC,
5441# which needs '.lib').
5442libext=a
5443ltmain="$ac_aux_dir/ltmain.sh"
5444ofile="$default_ofile"
5445with_gnu_ld="$lt_cv_prog_gnu_ld"
5446need_locks="$enable_libtool_lock"
5447
5448old_CC="$CC"
5449old_CFLAGS="$CFLAGS"
5450
5451# Set sane defaults for various variables
5452test -z "$AR" && AR=ar
5453test -z "$AR_FLAGS" && AR_FLAGS=cru
5454test -z "$AS" && AS=as
5455test -z "$CC" && CC=cc
5456test -z "$DLLTOOL" && DLLTOOL=dlltool
5457test -z "$LD" && LD=ld
5458test -z "$LN_S" && LN_S="ln -s"
5459test -z "$MAGIC_CMD" && MAGIC_CMD=file
5460test -z "$NM" && NM=nm
5461test -z "$OBJDUMP" && OBJDUMP=objdump
5462test -z "$RANLIB" && RANLIB=:
5463test -z "$STRIP" && STRIP=:
5464test -z "$ac_objext" && ac_objext=o
5465
5466if test x"$host" != x"$build"; then
5467  ac_tool_prefix=${host_alias}-
5468else
5469  ac_tool_prefix=
5470fi
5471
5472# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5473case $host_os in
5474linux-gnu*) ;;
5475linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5476esac
5477
5478case $host_os in
5479aix3*)
5480  # AIX sometimes has problems with the GCC collect2 program.  For some
5481  # reason, if we set the COLLECT_NAMES environment variable, the problems
5482  # vanish in a puff of smoke.
5483  if test "X${COLLECT_NAMES+set}" != Xset; then
5484    COLLECT_NAMES=
5485    export COLLECT_NAMES
5486  fi
5487  ;;
5488esac
5489
5490# Determine commands to create old-style static archives.
5491old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5492old_postinstall_cmds='chmod 644 $oldlib'
5493old_postuninstall_cmds=
5494
5495if test -n "$RANLIB"; then
5496  case $host_os in
5497  openbsd*)
5498    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5499    ;;
5500  *)
5501    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5502    ;;
5503  esac
5504  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5505fi
5506
5507# Allow CC to be a program name with arguments.
5508set dummy $CC
5509compiler="$2"
5510
5511echo "$as_me:$LINENO: checking for objdir" >&5
5512echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5513rm -f .libs 2>/dev/null
5514mkdir .libs 2>/dev/null
5515if test -d .libs; then
5516  objdir=.libs
5517else
5518  # MS-DOS does not allow filenames that begin with a dot.
5519  objdir=_libs
5520fi
5521rmdir .libs 2>/dev/null
5522echo "$as_me:$LINENO: result: $objdir" >&5
5523echo "${ECHO_T}$objdir" >&6
5524
5525
5526
5527# Check whether --with-pic or --without-pic was given.
5528if test "${with_pic+set}" = set; then
5529  withval="$with_pic"
5530  pic_mode="$withval"
5531else
5532  pic_mode=default
5533fi;
5534test -z "$pic_mode" && pic_mode=default
5535
5536# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5537# in isolation, and that seeing it set (from the cache) indicates that
5538# the associated values are set (in the cache) correctly too.
5539echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5540echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5541if test "${lt_cv_prog_cc_pic+set}" = set; then
5542  echo $ECHO_N "(cached) $ECHO_C" >&6
5543else
5544   lt_cv_prog_cc_pic=
5545  lt_cv_prog_cc_shlib=
5546  lt_cv_prog_cc_wl=
5547  lt_cv_prog_cc_static=
5548  lt_cv_prog_cc_no_builtin=
5549  lt_cv_prog_cc_can_build_shared=$can_build_shared
5550
5551  if test "$GCC" = yes; then
5552    lt_cv_prog_cc_wl='-Wl,'
5553    lt_cv_prog_cc_static='-static'
5554
5555    case $host_os in
5556    aix*)
5557      # Below there is a dirty hack to force normal static linking with -ldl
5558      # The problem is because libdl dynamically linked with both libc and
5559      # libC (AIX C++ library), which obviously doesn't included in libraries
5560      # list by gcc. This cause undefined symbols with -static flags.
5561      # This hack allows C programs to be linked with "-static -ldl", but
5562      # not sure about C++ programs.
5563      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5564      ;;
5565    amigaos*)
5566      # FIXME: we need at least 68020 code to build shared libraries, but
5567      # adding the `-m68020' flag to GCC prevents building anything better,
5568      # like `-m68040'.
5569      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5570      ;;
5571    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5572      # PIC is the default for these OSes.
5573      ;;
5574    darwin* | rhapsody*)
5575      # PIC is the default on this platform
5576      # Common symbols not allowed in MH_DYLIB files
5577      lt_cv_prog_cc_pic='-fno-common'
5578      ;;
5579    cygwin* | mingw* | pw32* | os2*)
5580      # This hack is so that the source file can tell whether it is being
5581      # built for inclusion in a dll (and should export symbols for example).
5582      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5583      ;;
5584    sysv4*MP*)
5585      if test -d /usr/nec; then
5586	 lt_cv_prog_cc_pic=-Kconform_pic
5587      fi
5588      ;;
5589    *)
5590      lt_cv_prog_cc_pic='-fPIC'
5591      ;;
5592    esac
5593  else
5594    # PORTME Check for PIC flags for the system compiler.
5595    case $host_os in
5596    aix3* | aix4* | aix5*)
5597      lt_cv_prog_cc_wl='-Wl,'
5598      # All AIX code is PIC.
5599      if test "$host_cpu" = ia64; then
5600	# AIX 5 now supports IA64 processor
5601	lt_cv_prog_cc_static='-Bstatic'
5602      else
5603	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5604      fi
5605      ;;
5606
5607    hpux9* | hpux10* | hpux11*)
5608      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5609      lt_cv_prog_cc_wl='-Wl,'
5610      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5611      lt_cv_prog_cc_pic='+Z'
5612      ;;
5613
5614    irix5* | irix6*)
5615      lt_cv_prog_cc_wl='-Wl,'
5616      lt_cv_prog_cc_static='-non_shared'
5617      # PIC (with -KPIC) is the default.
5618      ;;
5619
5620    cygwin* | mingw* | pw32* | os2*)
5621      # This hack is so that the source file can tell whether it is being
5622      # built for inclusion in a dll (and should export symbols for example).
5623      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5624      ;;
5625
5626    newsos6)
5627      lt_cv_prog_cc_pic='-KPIC'
5628      lt_cv_prog_cc_static='-Bstatic'
5629      ;;
5630
5631    osf3* | osf4* | osf5*)
5632      # All OSF/1 code is PIC.
5633      lt_cv_prog_cc_wl='-Wl,'
5634      lt_cv_prog_cc_static='-non_shared'
5635      ;;
5636
5637    sco3.2v5*)
5638      lt_cv_prog_cc_pic='-Kpic'
5639      lt_cv_prog_cc_static='-dn'
5640      lt_cv_prog_cc_shlib='-belf'
5641      ;;
5642
5643    solaris*)
5644      lt_cv_prog_cc_pic='-KPIC'
5645      lt_cv_prog_cc_static='-Bstatic'
5646      lt_cv_prog_cc_wl='-Wl,'
5647      ;;
5648
5649    sunos4*)
5650      lt_cv_prog_cc_pic='-PIC'
5651      lt_cv_prog_cc_static='-Bstatic'
5652      lt_cv_prog_cc_wl='-Qoption ld '
5653      ;;
5654
5655    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5656      lt_cv_prog_cc_pic='-KPIC'
5657      lt_cv_prog_cc_static='-Bstatic'
5658      if test "x$host_vendor" = xsni; then
5659	lt_cv_prog_cc_wl='-LD'
5660      else
5661	lt_cv_prog_cc_wl='-Wl,'
5662      fi
5663      ;;
5664
5665    uts4*)
5666      lt_cv_prog_cc_pic='-pic'
5667      lt_cv_prog_cc_static='-Bstatic'
5668      ;;
5669
5670    sysv4*MP*)
5671      if test -d /usr/nec ;then
5672	lt_cv_prog_cc_pic='-Kconform_pic'
5673	lt_cv_prog_cc_static='-Bstatic'
5674      fi
5675      ;;
5676
5677    *)
5678      lt_cv_prog_cc_can_build_shared=no
5679      ;;
5680    esac
5681  fi
5682
5683fi
5684
5685if test -z "$lt_cv_prog_cc_pic"; then
5686  echo "$as_me:$LINENO: result: none" >&5
5687echo "${ECHO_T}none" >&6
5688else
5689  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5690echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5691
5692  # Check to make sure the pic_flag actually works.
5693  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5694echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5695  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5696  echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698      save_CFLAGS="$CFLAGS"
5699    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5700    cat >conftest.$ac_ext <<_ACEOF
5701#line $LINENO "configure"
5702/* confdefs.h.  */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h.  */
5707
5708int
5709main ()
5710{
5711
5712  ;
5713  return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
5717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718  (eval $ac_compile) 2>&5
5719  ac_status=$?
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); } &&
5722         { ac_try='test -s conftest.$ac_objext'
5723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724  (eval $ac_try) 2>&5
5725  ac_status=$?
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); }; }; then
5728        case $host_os in
5729      hpux9* | hpux10* | hpux11*)
5730	# On HP-UX, both CC and GCC only warn that PIC is supported... then
5731	# they create non-PIC objects.  So, if there were any warnings, we
5732	# assume that PIC is not supported.
5733	if test -s conftest.err; then
5734	  lt_cv_prog_cc_pic_works=no
5735	else
5736	  lt_cv_prog_cc_pic_works=yes
5737	fi
5738	;;
5739      *)
5740	lt_cv_prog_cc_pic_works=yes
5741	;;
5742      esac
5743
5744else
5745  echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748      lt_cv_prog_cc_pic_works=no
5749
5750fi
5751rm -f conftest.$ac_objext conftest.$ac_ext
5752    CFLAGS="$save_CFLAGS"
5753
5754fi
5755
5756
5757  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5758    lt_cv_prog_cc_pic=
5759    lt_cv_prog_cc_can_build_shared=no
5760  else
5761    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5762  fi
5763
5764  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5765echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5766fi
5767
5768# Check for any special shared library compilation flags.
5769if test -n "$lt_cv_prog_cc_shlib"; then
5770  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5771echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5772  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
5773  else
5774   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5775echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5776    lt_cv_prog_cc_can_build_shared=no
5777  fi
5778fi
5779
5780echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5781echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5782if test "${lt_cv_prog_cc_static_works+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785    lt_cv_prog_cc_static_works=no
5786  save_LDFLAGS="$LDFLAGS"
5787  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5788  cat >conftest.$ac_ext <<_ACEOF
5789#line $LINENO "configure"
5790/* confdefs.h.  */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
5794/* end confdefs.h.  */
5795
5796int
5797main ()
5798{
5799
5800  ;
5801  return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806  (eval $ac_link) 2>&5
5807  ac_status=$?
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); } &&
5810         { ac_try='test -s conftest$ac_exeext'
5811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812  (eval $ac_try) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; }; then
5816  lt_cv_prog_cc_static_works=yes
5817else
5818  echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
5821fi
5822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5823  LDFLAGS="$save_LDFLAGS"
5824
5825fi
5826
5827
5828# Belt *and* braces to stop my trousers falling down:
5829test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5830echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5831echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5832
5833pic_flag="$lt_cv_prog_cc_pic"
5834special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5835wl="$lt_cv_prog_cc_wl"
5836link_static_flag="$lt_cv_prog_cc_static"
5837no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5838can_build_shared="$lt_cv_prog_cc_can_build_shared"
5839
5840
5841# Check to see if options -o and -c are simultaneously supported by compiler
5842echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5843echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5844if test "${lt_cv_compiler_c_o+set}" = set; then
5845  echo $ECHO_N "(cached) $ECHO_C" >&6
5846else
5847
5848$rm -r conftest 2>/dev/null
5849mkdir conftest
5850cd conftest
5851echo "int some_variable = 0;" > conftest.$ac_ext
5852mkdir out
5853# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5854# that will create temporary files in the current directory regardless of
5855# the output directory.  Thus, making CWD read-only will cause this test
5856# to fail, enabling locking or at least warning the user not to do parallel
5857# builds.
5858chmod -w .
5859save_CFLAGS="$CFLAGS"
5860CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5861compiler_c_o=no
5862if { (eval echo configure:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5863  # The compiler can only warn and ignore the option if not recognized
5864  # So say no if there are warnings
5865  if test -s out/conftest.err; then
5866    lt_cv_compiler_c_o=no
5867  else
5868    lt_cv_compiler_c_o=yes
5869  fi
5870else
5871  # Append any errors to the config.log.
5872  cat out/conftest.err 1>&5
5873  lt_cv_compiler_c_o=no
5874fi
5875CFLAGS="$save_CFLAGS"
5876chmod u+w .
5877$rm conftest* out/*
5878rmdir out
5879cd ..
5880rmdir conftest
5881$rm -r conftest 2>/dev/null
5882
5883fi
5884
5885compiler_c_o=$lt_cv_compiler_c_o
5886echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5887echo "${ECHO_T}$compiler_c_o" >&6
5888
5889if test x"$compiler_c_o" = x"yes"; then
5890  # Check to see if we can write to a .lo
5891  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5892echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5893  if test "${lt_cv_compiler_o_lo+set}" = set; then
5894  echo $ECHO_N "(cached) $ECHO_C" >&6
5895else
5896
5897  lt_cv_compiler_o_lo=no
5898  save_CFLAGS="$CFLAGS"
5899  CFLAGS="$CFLAGS -c -o conftest.lo"
5900  save_objext="$ac_objext"
5901  ac_objext=lo
5902  cat >conftest.$ac_ext <<_ACEOF
5903#line $LINENO "configure"
5904/* confdefs.h.  */
5905_ACEOF
5906cat confdefs.h >>conftest.$ac_ext
5907cat >>conftest.$ac_ext <<_ACEOF
5908/* end confdefs.h.  */
5909
5910int
5911main ()
5912{
5913int some_variable = 0;
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext
5919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920  (eval $ac_compile) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); } &&
5924         { ac_try='test -s conftest.$ac_objext'
5925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926  (eval $ac_try) 2>&5
5927  ac_status=$?
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); }; }; then
5930      # The compiler can only warn and ignore the option if not recognized
5931    # So say no if there are warnings
5932    if test -s conftest.err; then
5933      lt_cv_compiler_o_lo=no
5934    else
5935      lt_cv_compiler_o_lo=yes
5936    fi
5937
5938else
5939  echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942fi
5943rm -f conftest.$ac_objext conftest.$ac_ext
5944  ac_objext="$save_objext"
5945  CFLAGS="$save_CFLAGS"
5946
5947fi
5948
5949  compiler_o_lo=$lt_cv_compiler_o_lo
5950  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5951echo "${ECHO_T}$compiler_o_lo" >&6
5952else
5953  compiler_o_lo=no
5954fi
5955
5956# Check to see if we can do hard links to lock some files if needed
5957hard_links="nottested"
5958if test "$compiler_c_o" = no && test "$need_locks" != no; then
5959  # do not overwrite the value of need_locks provided by the user
5960  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5961echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5962  hard_links=yes
5963  $rm conftest*
5964  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5965  touch conftest.a
5966  ln conftest.a conftest.b 2>&5 || hard_links=no
5967  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5968  echo "$as_me:$LINENO: result: $hard_links" >&5
5969echo "${ECHO_T}$hard_links" >&6
5970  if test "$hard_links" = no; then
5971    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5972echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5973    need_locks=warn
5974  fi
5975else
5976  need_locks=no
5977fi
5978
5979if test "$GCC" = yes; then
5980  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5981  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5982echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5983  echo "int some_variable = 0;" > conftest.$ac_ext
5984  save_CFLAGS="$CFLAGS"
5985  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5986  compiler_rtti_exceptions=no
5987  cat >conftest.$ac_ext <<_ACEOF
5988#line $LINENO "configure"
5989/* confdefs.h.  */
5990_ACEOF
5991cat confdefs.h >>conftest.$ac_ext
5992cat >>conftest.$ac_ext <<_ACEOF
5993/* end confdefs.h.  */
5994
5995int
5996main ()
5997{
5998int some_variable = 0;
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext
6004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6005  (eval $ac_compile) 2>&5
6006  ac_status=$?
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } &&
6009         { ac_try='test -s conftest.$ac_objext'
6010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011  (eval $ac_try) 2>&5
6012  ac_status=$?
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); }; }; then
6015      # The compiler can only warn and ignore the option if not recognized
6016    # So say no if there are warnings
6017    if test -s conftest.err; then
6018      compiler_rtti_exceptions=no
6019    else
6020      compiler_rtti_exceptions=yes
6021    fi
6022
6023else
6024  echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
6027fi
6028rm -f conftest.$ac_objext conftest.$ac_ext
6029  CFLAGS="$save_CFLAGS"
6030  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6031echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6032
6033  if test "$compiler_rtti_exceptions" = "yes"; then
6034    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6035  else
6036    no_builtin_flag=' -fno-builtin'
6037  fi
6038fi
6039
6040# See if the linker supports building shared libraries.
6041echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6042echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6043
6044allow_undefined_flag=
6045no_undefined_flag=
6046need_lib_prefix=unknown
6047need_version=unknown
6048# when you set need_version to no, make sure it does not cause -set_version
6049# flags to be left without arguments
6050archive_cmds=
6051archive_expsym_cmds=
6052old_archive_from_new_cmds=
6053old_archive_from_expsyms_cmds=
6054export_dynamic_flag_spec=
6055whole_archive_flag_spec=
6056thread_safe_flag_spec=
6057hardcode_into_libs=no
6058hardcode_libdir_flag_spec=
6059hardcode_libdir_separator=
6060hardcode_direct=no
6061hardcode_minus_L=no
6062hardcode_shlibpath_var=unsupported
6063runpath_var=
6064link_all_deplibs=unknown
6065always_export_symbols=no
6066export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6067# include_expsyms should be a list of space-separated symbols to be *always*
6068# included in the symbol list
6069include_expsyms=
6070# exclude_expsyms can be an egrep regular expression of symbols to exclude
6071# it will be wrapped by ` (' and `)$', so one must not match beginning or
6072# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6073# as well as any symbol that contains `d'.
6074exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6075# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6076# platforms (ab)use it in PIC code, but their linkers get confused if
6077# the symbol is explicitly referenced.  Since portable code cannot
6078# rely on this symbol name, it's probably fine to never include it in
6079# preloaded symbol tables.
6080extract_expsyms_cmds=
6081
6082case $host_os in
6083cygwin* | mingw* | pw32*)
6084  # FIXME: the MSVC++ port hasn't been tested in a loooong time
6085  # When not using gcc, we currently assume that we are using
6086  # Microsoft Visual C++.
6087  if test "$GCC" != yes; then
6088    with_gnu_ld=no
6089  fi
6090  ;;
6091openbsd*)
6092  with_gnu_ld=no
6093  ;;
6094esac
6095
6096ld_shlibs=yes
6097if test "$with_gnu_ld" = yes; then
6098  # If archive_cmds runs LD, not CC, wlarc should be empty
6099  wlarc='${wl}'
6100
6101  # See if GNU ld supports shared libraries.
6102  case $host_os in
6103  aix3* | aix4* | aix5*)
6104    # On AIX, the GNU linker is very broken
6105    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6106    ld_shlibs=no
6107    cat <<EOF 1>&2
6108
6109*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6110*** to be unable to reliably create shared libraries on AIX.
6111*** Therefore, libtool is disabling shared libraries support.  If you
6112*** really care for shared libraries, you may want to modify your PATH
6113*** so that a non-GNU linker is found, and then restart.
6114
6115EOF
6116    ;;
6117
6118  amigaos*)
6119    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)'
6120    hardcode_libdir_flag_spec='-L$libdir'
6121    hardcode_minus_L=yes
6122
6123    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6124    # that the semantics of dynamic libraries on AmigaOS, at least up
6125    # to version 4, is to share data among multiple programs linked
6126    # with the same dynamic library.  Since this doesn't match the
6127    # behavior of shared libraries on other platforms, we can use
6128    # them.
6129    ld_shlibs=no
6130    ;;
6131
6132  beos*)
6133    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6134      allow_undefined_flag=unsupported
6135      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6136      # support --undefined.  This deserves some investigation.  FIXME
6137      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6138    else
6139      ld_shlibs=no
6140    fi
6141    ;;
6142
6143  cygwin* | mingw* | pw32*)
6144    # hardcode_libdir_flag_spec is actually meaningless, as there is
6145    # no search path for DLLs.
6146    hardcode_libdir_flag_spec='-L$libdir'
6147    allow_undefined_flag=unsupported
6148    always_export_symbols=yes
6149
6150    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6151      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6152      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6153      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6154      else $CC -o impgen impgen.c ; fi)~
6155      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6156
6157    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6158
6159    # cygwin and mingw dlls have different entry points and sets of symbols
6160    # to exclude.
6161    # FIXME: what about values for MSVC?
6162    dll_entry=__cygwin_dll_entry@12
6163    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6164    case $host_os in
6165    mingw*)
6166      # mingw values
6167      dll_entry=_DllMainCRTStartup@12
6168      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6169      ;;
6170    esac
6171
6172    # mingw and cygwin differ, and it's simplest to just exclude the union
6173    # of the two symbol sets.
6174    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6175
6176    # recent cygwin and mingw systems supply a stub DllMain which the user
6177    # can override, but on older systems we have to supply one (in ltdll.c)
6178    if test "x$lt_cv_need_dllmain" = "xyes"; then
6179      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6180      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~
6181	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6182    else
6183      ltdll_obj=
6184      ltdll_cmds=
6185    fi
6186
6187    # Extract the symbol export list from an `--export-all' def file,
6188    # then regenerate the def file from the symbol export list, so that
6189    # the compiled dll only exports the symbol export list.
6190    # Be careful not to strip the DATA tag left be newer dlltools.
6191    export_symbols_cmds="$ltdll_cmds"'
6192      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6193      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6194
6195    # If the export-symbols file already is a .def file (1st line
6196    # is EXPORTS), use it as is.
6197    # If DATA tags from a recent dlltool are present, honour them!
6198    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6199	cp $export_symbols $output_objdir/$soname-def;
6200      else
6201	echo EXPORTS > $output_objdir/$soname-def;
6202	_lt_hint=1;
6203	cat $export_symbols | while read symbol; do
6204	 set dummy \$symbol;
6205	 case \$# in
6206	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6207	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6208	 esac;
6209	 _lt_hint=`expr 1 + \$_lt_hint`;
6210	done;
6211      fi~
6212      '"$ltdll_cmds"'
6213      $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~
6214      $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~
6215      $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~
6216      $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~
6217      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6218    ;;
6219
6220  netbsd*)
6221    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6222      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6223      wlarc=
6224    else
6225      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6226      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6227    fi
6228    ;;
6229
6230  solaris* | sysv5*)
6231    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6232      ld_shlibs=no
6233      cat <<EOF 1>&2
6234
6235*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6236*** create shared libraries on Solaris systems.  Therefore, libtool
6237*** is disabling shared libraries support.  We urge you to upgrade GNU
6238*** binutils to release 2.9.1 or newer.  Another option is to modify
6239*** your PATH or compiler configuration so that the native linker is
6240*** used, and then restart.
6241
6242EOF
6243    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6244      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6245      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6246    else
6247      ld_shlibs=no
6248    fi
6249    ;;
6250
6251  sunos4*)
6252    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6253    wlarc=
6254    hardcode_direct=yes
6255    hardcode_shlibpath_var=no
6256    ;;
6257
6258  *)
6259    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6260      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6261      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6262    else
6263      ld_shlibs=no
6264    fi
6265    ;;
6266  esac
6267
6268  if test "$ld_shlibs" = yes; then
6269    runpath_var=LD_RUN_PATH
6270    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6271    export_dynamic_flag_spec='${wl}--export-dynamic'
6272    case $host_os in
6273    cygwin* | mingw* | pw32*)
6274      # dlltool doesn't understand --whole-archive et. al.
6275      whole_archive_flag_spec=
6276      ;;
6277    *)
6278      # ancient GNU ld didn't support --whole-archive et. al.
6279      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6280	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6281      else
6282	whole_archive_flag_spec=
6283      fi
6284      ;;
6285    esac
6286  fi
6287else
6288  # PORTME fill in a description of your system's linker (not GNU ld)
6289  case $host_os in
6290  aix3*)
6291    allow_undefined_flag=unsupported
6292    always_export_symbols=yes
6293    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'
6294    # Note: this linker hardcodes the directories in LIBPATH if there
6295    # are no directories specified by -L.
6296    hardcode_minus_L=yes
6297    if test "$GCC" = yes && test -z "$link_static_flag"; then
6298      # Neither direct hardcoding nor static linking is supported with a
6299      # broken collect2.
6300      hardcode_direct=unsupported
6301    fi
6302    ;;
6303
6304  aix4* | aix5*)
6305    if test "$host_cpu" = ia64; then
6306      # On IA64, the linker does run time linking by default, so we don't
6307      # have to do anything special.
6308      aix_use_runtimelinking=no
6309      exp_sym_flag='-Bexport'
6310      no_entry_flag=""
6311    else
6312      aix_use_runtimelinking=no
6313
6314      # Test if we are trying to use run time linking or normal
6315      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6316      # need to do runtime linking.
6317      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6318	for ld_flag in $LDFLAGS; do
6319	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6320	    aix_use_runtimelinking=yes
6321	    break
6322	  fi
6323	done
6324      esac
6325
6326      exp_sym_flag='-bexport'
6327      no_entry_flag='-bnoentry'
6328    fi
6329
6330    # When large executables or shared objects are built, AIX ld can
6331    # have problems creating the table of contents.  If linking a library
6332    # or program results in "error TOC overflow" add -mminimal-toc to
6333    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6334    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6335
6336    hardcode_direct=yes
6337    archive_cmds=''
6338    hardcode_libdir_separator=':'
6339    if test "$GCC" = yes; then
6340      case $host_os in aix4.[012]|aix4.[012].*)
6341	collect2name=`${CC} -print-prog-name=collect2`
6342	if test -f "$collect2name" && \
6343	  strings "$collect2name" | grep resolve_lib_name >/dev/null
6344	then
6345	  # We have reworked collect2
6346	  hardcode_direct=yes
6347	else
6348	  # We have old collect2
6349	  hardcode_direct=unsupported
6350	  # It fails to find uninstalled libraries when the uninstalled
6351	  # path is not listed in the libpath.  Setting hardcode_minus_L
6352	  # to unsupported forces relinking
6353	  hardcode_minus_L=yes
6354	  hardcode_libdir_flag_spec='-L$libdir'
6355	  hardcode_libdir_separator=
6356	fi
6357      esac
6358
6359      shared_flag='-shared'
6360    else
6361      # not using gcc
6362      if test "$host_cpu" = ia64; then
6363	shared_flag='${wl}-G'
6364      else
6365	if test "$aix_use_runtimelinking" = yes; then
6366	  shared_flag='${wl}-G'
6367	else
6368	  shared_flag='${wl}-bM:SRE'
6369	fi
6370      fi
6371    fi
6372
6373    # It seems that -bexpall can do strange things, so it is better to
6374    # generate a list of symbols to export.
6375    always_export_symbols=yes
6376    if test "$aix_use_runtimelinking" = yes; then
6377      # Warning - without using the other runtime loading flags (-brtl),
6378      # -berok will link without error, but may produce a broken library.
6379      allow_undefined_flag='-berok'
6380      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6381      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"
6382    else
6383      if test "$host_cpu" = ia64; then
6384	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6385	allow_undefined_flag="-z nodefs"
6386	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"
6387      else
6388	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6389	# Warning - without using the other run time loading flags,
6390	# -berok will link without error, but may produce a broken library.
6391	allow_undefined_flag='${wl}-berok'
6392	# This is a bit strange, but is similar to how AIX traditionally builds
6393	# it's shared libraries.
6394	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 $objdir/$libname$release.a $objdir/$soname'
6395      fi
6396    fi
6397    ;;
6398
6399  amigaos*)
6400    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)'
6401    hardcode_libdir_flag_spec='-L$libdir'
6402    hardcode_minus_L=yes
6403    # see comment about different semantics on the GNU ld section
6404    ld_shlibs=no
6405    ;;
6406
6407  cygwin* | mingw* | pw32*)
6408    # When not using gcc, we currently assume that we are using
6409    # Microsoft Visual C++.
6410    # hardcode_libdir_flag_spec is actually meaningless, as there is
6411    # no search path for DLLs.
6412    hardcode_libdir_flag_spec=' '
6413    allow_undefined_flag=unsupported
6414    # Tell ltmain to make .lib files, not .a files.
6415    libext=lib
6416    # FIXME: Setting linknames here is a bad hack.
6417    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6418    # The linker will automatically build a .lib file if we build a DLL.
6419    old_archive_from_new_cmds='true'
6420    # FIXME: Should let the user specify the lib program.
6421    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6422    fix_srcfile_path='`cygpath -w "$srcfile"`'
6423    ;;
6424
6425  darwin* | rhapsody*)
6426    case "$host_os" in
6427    rhapsody* | darwin1.[012])
6428      allow_undefined_flag='-undefined suppress'
6429      ;;
6430    *) # Darwin 1.3 on
6431      allow_undefined_flag='-flat_namespace -undefined suppress'
6432      ;;
6433    esac
6434    # FIXME: Relying on posixy $() will cause problems for
6435    #        cross-compilation, but unfortunately the echo tests do not
6436    #        yet detect zsh echo's removal of \ escapes.
6437    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6438    # We need to add '_' to the symbols in $export_symbols first
6439    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6440    hardcode_direct=yes
6441    hardcode_shlibpath_var=no
6442    whole_archive_flag_spec='-all_load $convenience'
6443    ;;
6444
6445  freebsd1*)
6446    ld_shlibs=no
6447    ;;
6448
6449  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6450  # support.  Future versions do this automatically, but an explicit c++rt0.o
6451  # does not break anything, and helps significantly (at the cost of a little
6452  # extra space).
6453  freebsd2.2*)
6454    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6455    hardcode_libdir_flag_spec='-R$libdir'
6456    hardcode_direct=yes
6457    hardcode_shlibpath_var=no
6458    ;;
6459
6460  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6461  freebsd2*)
6462    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6463    hardcode_direct=yes
6464    hardcode_minus_L=yes
6465    hardcode_shlibpath_var=no
6466    ;;
6467
6468  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6469  freebsd*)
6470    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6471    hardcode_libdir_flag_spec='-R$libdir'
6472    hardcode_direct=yes
6473    hardcode_shlibpath_var=no
6474    ;;
6475
6476  hpux9* | hpux10* | hpux11*)
6477    case $host_os in
6478    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' ;;
6479    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6480    esac
6481    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6482    hardcode_libdir_separator=:
6483    hardcode_direct=yes
6484    hardcode_minus_L=yes # Not in the search PATH, but as the default
6485			 # location of the library.
6486    export_dynamic_flag_spec='${wl}-E'
6487    ;;
6488
6489  irix5* | irix6*)
6490    if test "$GCC" = yes; then
6491      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'
6492    else
6493      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'
6494    fi
6495    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6496    hardcode_libdir_separator=:
6497    link_all_deplibs=yes
6498    ;;
6499
6500  netbsd*)
6501    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6502      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6503    else
6504      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6505    fi
6506    hardcode_libdir_flag_spec='-R$libdir'
6507    hardcode_direct=yes
6508    hardcode_shlibpath_var=no
6509    ;;
6510
6511  newsos6)
6512    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6513    hardcode_direct=yes
6514    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6515    hardcode_libdir_separator=:
6516    hardcode_shlibpath_var=no
6517    ;;
6518
6519  openbsd*)
6520    hardcode_direct=yes
6521    hardcode_shlibpath_var=no
6522    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6523      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6524      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6525      export_dynamic_flag_spec='${wl}-E'
6526    else
6527      case "$host_os" in
6528      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6529	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6530	hardcode_libdir_flag_spec='-R$libdir'
6531        ;;
6532      *)
6533        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6534        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6535        ;;
6536      esac
6537    fi
6538    ;;
6539
6540  os2*)
6541    hardcode_libdir_flag_spec='-L$libdir'
6542    hardcode_minus_L=yes
6543    allow_undefined_flag=unsupported
6544    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'
6545    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6546    ;;
6547
6548  osf3*)
6549    if test "$GCC" = yes; then
6550      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6551      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'
6552    else
6553      allow_undefined_flag=' -expect_unresolved \*'
6554      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'
6555    fi
6556    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6557    hardcode_libdir_separator=:
6558    ;;
6559
6560  osf4* | osf5*)	# as osf3* with the addition of -msym flag
6561    if test "$GCC" = yes; then
6562      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6563      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'
6564      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6565    else
6566      allow_undefined_flag=' -expect_unresolved \*'
6567      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'
6568      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6569      $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'
6570
6571      #Both c and cxx compiler support -rpath directly
6572      hardcode_libdir_flag_spec='-rpath $libdir'
6573    fi
6574    hardcode_libdir_separator=:
6575    ;;
6576
6577  sco3.2v5*)
6578    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6579    hardcode_shlibpath_var=no
6580    runpath_var=LD_RUN_PATH
6581    hardcode_runpath_var=yes
6582    export_dynamic_flag_spec='${wl}-Bexport'
6583    ;;
6584
6585  solaris*)
6586    # gcc --version < 3.0 without binutils cannot create self contained
6587    # shared libraries reliably, requiring libgcc.a to resolve some of
6588    # the object symbols generated in some cases.  Libraries that use
6589    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6590    # a copy of libgcc.a into every shared library to guarantee resolving
6591    # such symbols causes other problems:  According to Tim Van Holder
6592    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6593    # (to the application) exception stack for one thing.
6594    no_undefined_flag=' -z defs'
6595    if test "$GCC" = yes; then
6596      case `$CC --version 2>/dev/null` in
6597      [12].*)
6598	cat <<EOF 1>&2
6599
6600*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6601*** create self contained shared libraries on Solaris systems, without
6602*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6603*** -no-undefined support, which will at least allow you to build shared
6604*** libraries.  However, you may find that when you link such libraries
6605*** into an application without using GCC, you have to manually add
6606*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6607*** upgrade to a newer version of GCC.  Another option is to rebuild your
6608*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6609
6610EOF
6611        no_undefined_flag=
6612	;;
6613      esac
6614    fi
6615    # $CC -shared without GNU ld will not create a library from C++
6616    # object files and a static libstdc++, better avoid it by now
6617    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6618    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6619		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6620    hardcode_libdir_flag_spec='-R$libdir'
6621    hardcode_shlibpath_var=no
6622    case $host_os in
6623    solaris2.[0-5] | solaris2.[0-5].*) ;;
6624    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6625      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6626    esac
6627    link_all_deplibs=yes
6628    ;;
6629
6630  sunos4*)
6631    if test "x$host_vendor" = xsequent; then
6632      # Use $CC to link under sequent, because it throws in some extra .o
6633      # files that make .init and .fini sections work.
6634      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6635    else
6636      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6637    fi
6638    hardcode_libdir_flag_spec='-L$libdir'
6639    hardcode_direct=yes
6640    hardcode_minus_L=yes
6641    hardcode_shlibpath_var=no
6642    ;;
6643
6644  sysv4)
6645    if test "x$host_vendor" = xsno; then
6646      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6647      hardcode_direct=yes # is this really true???
6648    else
6649      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6650      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6651    fi
6652    runpath_var='LD_RUN_PATH'
6653    hardcode_shlibpath_var=no
6654    ;;
6655
6656  sysv4.3*)
6657    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6658    hardcode_shlibpath_var=no
6659    export_dynamic_flag_spec='-Bexport'
6660    ;;
6661
6662  sysv5*)
6663    no_undefined_flag=' -z text'
6664    # $CC -shared without GNU ld will not create a library from C++
6665    # object files and a static libstdc++, better avoid it by now
6666    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6667    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6668		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6669    hardcode_libdir_flag_spec=
6670    hardcode_shlibpath_var=no
6671    runpath_var='LD_RUN_PATH'
6672    ;;
6673
6674  uts4*)
6675    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6676    hardcode_libdir_flag_spec='-L$libdir'
6677    hardcode_shlibpath_var=no
6678    ;;
6679
6680  dgux*)
6681    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6682    hardcode_libdir_flag_spec='-L$libdir'
6683    hardcode_shlibpath_var=no
6684    ;;
6685
6686  sysv4*MP*)
6687    if test -d /usr/nec; then
6688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6689      hardcode_shlibpath_var=no
6690      runpath_var=LD_RUN_PATH
6691      hardcode_runpath_var=yes
6692      ld_shlibs=yes
6693    fi
6694    ;;
6695
6696  sysv4.2uw2*)
6697    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6698    hardcode_direct=yes
6699    hardcode_minus_L=no
6700    hardcode_shlibpath_var=no
6701    hardcode_runpath_var=yes
6702    runpath_var=LD_RUN_PATH
6703    ;;
6704
6705  sysv5uw7* | unixware7*)
6706    no_undefined_flag='${wl}-z ${wl}text'
6707    if test "$GCC" = yes; then
6708      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6709    else
6710      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6711    fi
6712    runpath_var='LD_RUN_PATH'
6713    hardcode_shlibpath_var=no
6714    ;;
6715
6716  *)
6717    ld_shlibs=no
6718    ;;
6719  esac
6720fi
6721echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6722echo "${ECHO_T}$ld_shlibs" >&6
6723test "$ld_shlibs" = no && can_build_shared=no
6724
6725# Check hardcoding attributes.
6726echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6727echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6728hardcode_action=
6729if test -n "$hardcode_libdir_flag_spec" || \
6730   test -n "$runpath_var"; then
6731
6732  # We can hardcode non-existant directories.
6733  if test "$hardcode_direct" != no &&
6734     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6735     # have to relink, otherwise we might link with an installed library
6736     # when we should be linking with a yet-to-be-installed one
6737     ## test "$hardcode_shlibpath_var" != no &&
6738     test "$hardcode_minus_L" != no; then
6739    # Linking always hardcodes the temporary library directory.
6740    hardcode_action=relink
6741  else
6742    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6743    hardcode_action=immediate
6744  fi
6745else
6746  # We cannot hardcode anything, or else we can only hardcode existing
6747  # directories.
6748  hardcode_action=unsupported
6749fi
6750echo "$as_me:$LINENO: result: $hardcode_action" >&5
6751echo "${ECHO_T}$hardcode_action" >&6
6752
6753striplib=
6754old_striplib=
6755echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6756echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6757if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6758  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6759  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6760  echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762else
6763  echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765fi
6766
6767reload_cmds='$LD$reload_flag -o $output$reload_objs'
6768test -z "$deplibs_check_method" && deplibs_check_method=unknown
6769
6770# PORTME Fill in your ld.so characteristics
6771echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6772echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6773library_names_spec=
6774libname_spec='lib$name'
6775soname_spec=
6776postinstall_cmds=
6777postuninstall_cmds=
6778finish_cmds=
6779finish_eval=
6780shlibpath_var=
6781shlibpath_overrides_runpath=unknown
6782version_type=none
6783dynamic_linker="$host_os ld.so"
6784sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6785sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6786
6787case $host_os in
6788aix3*)
6789  version_type=linux
6790  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6791  shlibpath_var=LIBPATH
6792
6793  # AIX has no versioning support, so we append a major version to the name.
6794  soname_spec='${libname}${release}.so$major'
6795  ;;
6796
6797aix4* | aix5*)
6798  version_type=linux
6799  if test "$host_cpu" = ia64; then
6800    # AIX 5 supports IA64
6801    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6802    shlibpath_var=LD_LIBRARY_PATH
6803  else
6804    # With GCC up to 2.95.x, collect2 would create an import file
6805    # for dependence libraries.  The import file would start with
6806    # the line `#! .'.  This would cause the generated library to
6807    # depend on `.', always an invalid library.  This was fixed in
6808    # development snapshots of GCC prior to 3.0.
6809    case $host_os in
6810      aix4 | aix4.[01] | aix4.[01].*)
6811	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6812	     echo ' yes '
6813	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6814	  :
6815	else
6816	  can_build_shared=no
6817	fi
6818	;;
6819    esac
6820    # AIX (on Power*) has no versioning support, so currently we can
6821    # not hardcode correct soname into executable. Probably we can
6822    # add versioning support to collect2, so additional links can
6823    # be useful in future.
6824    if test "$aix_use_runtimelinking" = yes; then
6825      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6826      # instead of lib<name>.a to let people know that these are not
6827      # typical AIX shared libraries.
6828      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6829    else
6830      # We preserve .a as extension for shared libraries through AIX4.2
6831      # and later when we are not doing run time linking.
6832      library_names_spec='${libname}${release}.a $libname.a'
6833      soname_spec='${libname}${release}.so$major'
6834    fi
6835    shlibpath_var=LIBPATH
6836  fi
6837  ;;
6838
6839amigaos*)
6840  library_names_spec='$libname.ixlibrary $libname.a'
6841  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6842  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'
6843  ;;
6844
6845beos*)
6846  library_names_spec='${libname}.so'
6847  dynamic_linker="$host_os ld.so"
6848  shlibpath_var=LIBRARY_PATH
6849  ;;
6850
6851bsdi4*)
6852  version_type=linux
6853  need_version=no
6854  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855  soname_spec='${libname}${release}.so$major'
6856  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6857  shlibpath_var=LD_LIBRARY_PATH
6858  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6859  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6860  export_dynamic_flag_spec=-rdynamic
6861  # the default ld.so.conf also contains /usr/contrib/lib and
6862  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6863  # libtool to hard-code these into programs
6864  ;;
6865
6866cygwin* | mingw* | pw32*)
6867  version_type=windows
6868  need_version=no
6869  need_lib_prefix=no
6870  case $GCC,$host_os in
6871  yes,cygwin*)
6872    library_names_spec='$libname.dll.a'
6873    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6874    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6875      dldir=$destdir/`dirname \$dlpath`~
6876      test -d \$dldir || mkdir -p \$dldir~
6877      $install_prog .libs/$dlname \$dldir/$dlname'
6878    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6879      dlpath=$dir/\$dldll~
6880       $rm \$dlpath'
6881    ;;
6882  yes,mingw*)
6883    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6884    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6885    ;;
6886  yes,pw32*)
6887    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6888    ;;
6889  *)
6890    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6891    ;;
6892  esac
6893  dynamic_linker='Win32 ld.exe'
6894  # FIXME: first we should search . and the directory the executable is in
6895  shlibpath_var=PATH
6896  ;;
6897
6898darwin* | rhapsody*)
6899  dynamic_linker="$host_os dyld"
6900  version_type=darwin
6901  need_lib_prefix=no
6902  need_version=no
6903  # FIXME: Relying on posixy $() will cause problems for
6904  #        cross-compilation, but unfortunately the echo tests do not
6905  #        yet detect zsh echo's removal of \ escapes.
6906  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)'
6907  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6908  shlibpath_overrides_runpath=yes
6909  shlibpath_var=DYLD_LIBRARY_PATH
6910  ;;
6911
6912freebsd1*)
6913  dynamic_linker=no
6914  ;;
6915
6916freebsd*)
6917  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6918  version_type=freebsd-$objformat
6919  case $version_type in
6920    freebsd-elf*)
6921      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6922      need_version=no
6923      need_lib_prefix=no
6924      ;;
6925    freebsd-*)
6926      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6927      need_version=yes
6928      ;;
6929  esac
6930  shlibpath_var=LD_LIBRARY_PATH
6931  case $host_os in
6932  freebsd2*)
6933    shlibpath_overrides_runpath=yes
6934    ;;
6935  *)
6936    shlibpath_overrides_runpath=no
6937    hardcode_into_libs=yes
6938    ;;
6939  esac
6940  ;;
6941
6942gnu*)
6943  version_type=linux
6944  need_lib_prefix=no
6945  need_version=no
6946  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6947  soname_spec='${libname}${release}.so$major'
6948  shlibpath_var=LD_LIBRARY_PATH
6949  hardcode_into_libs=yes
6950  ;;
6951
6952hpux9* | hpux10* | hpux11*)
6953  # Give a soname corresponding to the major version so that dld.sl refuses to
6954  # link against other versions.
6955  dynamic_linker="$host_os dld.sl"
6956  version_type=sunos
6957  need_lib_prefix=no
6958  need_version=no
6959  shlibpath_var=SHLIB_PATH
6960  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6961  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6962  soname_spec='${libname}${release}.sl$major'
6963  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6964  postinstall_cmds='chmod 555 $lib'
6965  ;;
6966
6967irix5* | irix6*)
6968  version_type=irix
6969  need_lib_prefix=no
6970  need_version=no
6971  soname_spec='${libname}${release}.so$major'
6972  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6973  case $host_os in
6974  irix5*)
6975    libsuff= shlibsuff=
6976    ;;
6977  *)
6978    case $LD in # libtool.m4 will add one of these switches to LD
6979    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6980    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6981    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6982    *) libsuff= shlibsuff= libmagic=never-match;;
6983    esac
6984    ;;
6985  esac
6986  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6987  shlibpath_overrides_runpath=no
6988  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6989  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6990  ;;
6991
6992# No shared lib support for Linux oldld, aout, or coff.
6993linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6994  dynamic_linker=no
6995  ;;
6996
6997# This must be Linux ELF.
6998linux-gnu*)
6999  version_type=linux
7000  need_lib_prefix=no
7001  need_version=no
7002  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7003  soname_spec='${libname}${release}.so$major'
7004  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7005  shlibpath_var=LD_LIBRARY_PATH
7006  shlibpath_overrides_runpath=no
7007  # This implies no fast_install, which is unacceptable.
7008  # Some rework will be needed to allow for fast_install
7009  # before this can be enabled.
7010  hardcode_into_libs=yes
7011
7012  case $host_cpu:$lt_cv_cc_64bit_output in
7013  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7014    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7015    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7016    ;;
7017  esac
7018
7019  # We used to test for /lib/ld.so.1 and disable shared libraries on
7020  # powerpc, because MkLinux only supported shared libraries with the
7021  # GNU dynamic linker.  Since this was broken with cross compilers,
7022  # most powerpc-linux boxes support dynamic linking these days and
7023  # people can always --disable-shared, the test was removed, and we
7024  # assume the GNU/Linux dynamic linker is in use.
7025  dynamic_linker='GNU/Linux ld.so'
7026  ;;
7027
7028netbsd*)
7029  version_type=sunos
7030  need_lib_prefix=no
7031  need_version=no
7032  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7033    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7034    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7035    dynamic_linker='NetBSD (a.out) ld.so'
7036  else
7037    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7038    soname_spec='${libname}${release}.so$major'
7039    dynamic_linker='NetBSD ld.elf_so'
7040  fi
7041  shlibpath_var=LD_LIBRARY_PATH
7042  shlibpath_overrides_runpath=yes
7043  hardcode_into_libs=yes
7044  ;;
7045
7046newsos6)
7047  version_type=linux
7048  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7049  shlibpath_var=LD_LIBRARY_PATH
7050  shlibpath_overrides_runpath=yes
7051  ;;
7052
7053openbsd*)
7054  version_type=sunos
7055  need_lib_prefix=no
7056  need_version=no
7057  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7058    case "$host_os" in
7059    openbsd2.[89] | openbsd2.[89].*)
7060      shlibpath_overrides_runpath=no
7061      ;;
7062    *)
7063      shlibpath_overrides_runpath=yes
7064      ;;
7065    esac
7066  else
7067    shlibpath_overrides_runpath=yes
7068  fi
7069  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7070  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7071  shlibpath_var=LD_LIBRARY_PATH
7072  ;;
7073
7074os2*)
7075  libname_spec='$name'
7076  need_lib_prefix=no
7077  library_names_spec='$libname.dll $libname.a'
7078  dynamic_linker='OS/2 ld.exe'
7079  shlibpath_var=LIBPATH
7080  ;;
7081
7082osf3* | osf4* | osf5*)
7083  version_type=osf
7084  need_version=no
7085  soname_spec='${libname}${release}.so'
7086  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
7087  shlibpath_var=LD_LIBRARY_PATH
7088  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7089  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7090  ;;
7091
7092sco3.2v5*)
7093  version_type=osf
7094  soname_spec='${libname}${release}.so$major'
7095  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7096  shlibpath_var=LD_LIBRARY_PATH
7097  ;;
7098
7099solaris*)
7100  version_type=linux
7101  need_lib_prefix=no
7102  need_version=no
7103  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7104  soname_spec='${libname}${release}.so$major'
7105  shlibpath_var=LD_LIBRARY_PATH
7106  shlibpath_overrides_runpath=yes
7107  hardcode_into_libs=yes
7108  # ldd complains unless libraries are executable
7109  postinstall_cmds='chmod +x $lib'
7110  ;;
7111
7112sunos4*)
7113  version_type=sunos
7114  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7115  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7116  shlibpath_var=LD_LIBRARY_PATH
7117  shlibpath_overrides_runpath=yes
7118  if test "$with_gnu_ld" = yes; then
7119    need_lib_prefix=no
7120  fi
7121  need_version=yes
7122  ;;
7123
7124sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7125  version_type=linux
7126  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7127  soname_spec='${libname}${release}.so$major'
7128  shlibpath_var=LD_LIBRARY_PATH
7129  case $host_vendor in
7130    sni)
7131      shlibpath_overrides_runpath=no
7132      ;;
7133    motorola)
7134      need_lib_prefix=no
7135      need_version=no
7136      shlibpath_overrides_runpath=no
7137      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7138      ;;
7139  esac
7140  ;;
7141
7142uts4*)
7143  version_type=linux
7144  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7145  soname_spec='${libname}${release}.so$major'
7146  shlibpath_var=LD_LIBRARY_PATH
7147  ;;
7148
7149dgux*)
7150  version_type=linux
7151  need_lib_prefix=no
7152  need_version=no
7153  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7154  soname_spec='${libname}${release}.so$major'
7155  shlibpath_var=LD_LIBRARY_PATH
7156  ;;
7157
7158sysv4*MP*)
7159  if test -d /usr/nec ;then
7160    version_type=linux
7161    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7162    soname_spec='$libname.so.$major'
7163    shlibpath_var=LD_LIBRARY_PATH
7164  fi
7165  ;;
7166
7167*)
7168  dynamic_linker=no
7169  ;;
7170esac
7171echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7172echo "${ECHO_T}$dynamic_linker" >&6
7173test "$dynamic_linker" = no && can_build_shared=no
7174
7175# Report the final consequences.
7176echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7177echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7178echo "$as_me:$LINENO: result: $can_build_shared" >&5
7179echo "${ECHO_T}$can_build_shared" >&6
7180
7181echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7182echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7183test "$can_build_shared" = "no" && enable_shared=no
7184
7185# On AIX, shared libraries and static libraries use the same namespace, and
7186# are all built from PIC.
7187case "$host_os" in
7188aix3*)
7189  test "$enable_shared" = yes && enable_static=no
7190  if test -n "$RANLIB"; then
7191    archive_cmds="$archive_cmds~\$RANLIB \$lib"
7192    postinstall_cmds='$RANLIB $lib'
7193  fi
7194  ;;
7195
7196aix4*)
7197  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7198    test "$enable_shared" = yes && enable_static=no
7199  fi
7200  ;;
7201esac
7202echo "$as_me:$LINENO: result: $enable_shared" >&5
7203echo "${ECHO_T}$enable_shared" >&6
7204
7205echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7206echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7207# Make sure either enable_shared or enable_static is yes.
7208test "$enable_shared" = yes || enable_static=yes
7209echo "$as_me:$LINENO: result: $enable_static" >&5
7210echo "${ECHO_T}$enable_static" >&6
7211
7212if test "$hardcode_action" = relink; then
7213  # Fast installation is not supported
7214  enable_fast_install=no
7215elif test "$shlibpath_overrides_runpath" = yes ||
7216     test "$enable_shared" = no; then
7217  # Fast installation is not necessary
7218  enable_fast_install=needless
7219fi
7220
7221variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7222if test "$GCC" = yes; then
7223  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7224fi
7225
7226if test "x$enable_dlopen" != xyes; then
7227  enable_dlopen=unknown
7228  enable_dlopen_self=unknown
7229  enable_dlopen_self_static=unknown
7230else
7231  lt_cv_dlopen=no
7232  lt_cv_dlopen_libs=
7233
7234  case $host_os in
7235  beos*)
7236    lt_cv_dlopen="load_add_on"
7237    lt_cv_dlopen_libs=
7238    lt_cv_dlopen_self=yes
7239    ;;
7240
7241  cygwin* | mingw* | pw32*)
7242    lt_cv_dlopen="LoadLibrary"
7243    lt_cv_dlopen_libs=
7244   ;;
7245
7246  *)
7247    echo "$as_me:$LINENO: checking for shl_load" >&5
7248echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7249if test "${ac_cv_func_shl_load+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252  cat >conftest.$ac_ext <<_ACEOF
7253#line $LINENO "configure"
7254/* confdefs.h.  */
7255_ACEOF
7256cat confdefs.h >>conftest.$ac_ext
7257cat >>conftest.$ac_ext <<_ACEOF
7258/* end confdefs.h.  */
7259/* System header to define __stub macros and hopefully few prototypes,
7260    which can conflict with char shl_load (); below.
7261    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262    <limits.h> exists even on freestanding compilers.  */
7263#ifdef __STDC__
7264# include <limits.h>
7265#else
7266# include <assert.h>
7267#endif
7268/* Override any gcc2 internal prototype to avoid an error.  */
7269#ifdef __cplusplus
7270extern "C"
7271{
7272#endif
7273/* We use char because int might match the return type of a gcc2
7274   builtin and then its argument prototype would still apply.  */
7275char shl_load ();
7276/* The GNU C library defines this for functions which it implements
7277    to always fail with ENOSYS.  Some functions are actually named
7278    something starting with __ and the normal name is an alias.  */
7279#if defined (__stub_shl_load) || defined (__stub___shl_load)
7280choke me
7281#else
7282char (*f) () = shl_load;
7283#endif
7284#ifdef __cplusplus
7285}
7286#endif
7287
7288int
7289main ()
7290{
7291return f != shl_load;
7292  ;
7293  return 0;
7294}
7295_ACEOF
7296rm -f conftest.$ac_objext conftest$ac_exeext
7297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298  (eval $ac_link) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); } &&
7302         { ac_try='test -s conftest$ac_exeext'
7303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304  (eval $ac_try) 2>&5
7305  ac_status=$?
7306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307  (exit $ac_status); }; }; then
7308  ac_cv_func_shl_load=yes
7309else
7310  echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313ac_cv_func_shl_load=no
7314fi
7315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316fi
7317echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7318echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7319if test $ac_cv_func_shl_load = yes; then
7320  lt_cv_dlopen="shl_load"
7321else
7322  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7323echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7324if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327  ac_check_lib_save_LIBS=$LIBS
7328LIBS="-ldld  $LIBS"
7329cat >conftest.$ac_ext <<_ACEOF
7330#line $LINENO "configure"
7331/* confdefs.h.  */
7332_ACEOF
7333cat confdefs.h >>conftest.$ac_ext
7334cat >>conftest.$ac_ext <<_ACEOF
7335/* end confdefs.h.  */
7336
7337/* Override any gcc2 internal prototype to avoid an error.  */
7338#ifdef __cplusplus
7339extern "C"
7340#endif
7341/* We use char because int might match the return type of a gcc2
7342   builtin and then its argument prototype would still apply.  */
7343char shl_load ();
7344int
7345main ()
7346{
7347shl_load ();
7348  ;
7349  return 0;
7350}
7351_ACEOF
7352rm -f conftest.$ac_objext conftest$ac_exeext
7353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7354  (eval $ac_link) 2>&5
7355  ac_status=$?
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } &&
7358         { ac_try='test -s conftest$ac_exeext'
7359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360  (eval $ac_try) 2>&5
7361  ac_status=$?
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); }; }; then
7364  ac_cv_lib_dld_shl_load=yes
7365else
7366  echo "$as_me: failed program was:" >&5
7367sed 's/^/| /' conftest.$ac_ext >&5
7368
7369ac_cv_lib_dld_shl_load=no
7370fi
7371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7372LIBS=$ac_check_lib_save_LIBS
7373fi
7374echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7375echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7376if test $ac_cv_lib_dld_shl_load = yes; then
7377  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7378else
7379  echo "$as_me:$LINENO: checking for dlopen" >&5
7380echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7381if test "${ac_cv_func_dlopen+set}" = set; then
7382  echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384  cat >conftest.$ac_ext <<_ACEOF
7385#line $LINENO "configure"
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391/* System header to define __stub macros and hopefully few prototypes,
7392    which can conflict with char dlopen (); below.
7393    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394    <limits.h> exists even on freestanding compilers.  */
7395#ifdef __STDC__
7396# include <limits.h>
7397#else
7398# include <assert.h>
7399#endif
7400/* Override any gcc2 internal prototype to avoid an error.  */
7401#ifdef __cplusplus
7402extern "C"
7403{
7404#endif
7405/* We use char because int might match the return type of a gcc2
7406   builtin and then its argument prototype would still apply.  */
7407char dlopen ();
7408/* The GNU C library defines this for functions which it implements
7409    to always fail with ENOSYS.  Some functions are actually named
7410    something starting with __ and the normal name is an alias.  */
7411#if defined (__stub_dlopen) || defined (__stub___dlopen)
7412choke me
7413#else
7414char (*f) () = dlopen;
7415#endif
7416#ifdef __cplusplus
7417}
7418#endif
7419
7420int
7421main ()
7422{
7423return f != dlopen;
7424  ;
7425  return 0;
7426}
7427_ACEOF
7428rm -f conftest.$ac_objext conftest$ac_exeext
7429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430  (eval $ac_link) 2>&5
7431  ac_status=$?
7432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433  (exit $ac_status); } &&
7434         { ac_try='test -s conftest$ac_exeext'
7435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436  (eval $ac_try) 2>&5
7437  ac_status=$?
7438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439  (exit $ac_status); }; }; then
7440  ac_cv_func_dlopen=yes
7441else
7442  echo "$as_me: failed program was:" >&5
7443sed 's/^/| /' conftest.$ac_ext >&5
7444
7445ac_cv_func_dlopen=no
7446fi
7447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7448fi
7449echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7450echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7451if test $ac_cv_func_dlopen = yes; then
7452  lt_cv_dlopen="dlopen"
7453else
7454  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7455echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7456if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  ac_check_lib_save_LIBS=$LIBS
7460LIBS="-ldl  $LIBS"
7461cat >conftest.$ac_ext <<_ACEOF
7462#line $LINENO "configure"
7463/* confdefs.h.  */
7464_ACEOF
7465cat confdefs.h >>conftest.$ac_ext
7466cat >>conftest.$ac_ext <<_ACEOF
7467/* end confdefs.h.  */
7468
7469/* Override any gcc2 internal prototype to avoid an error.  */
7470#ifdef __cplusplus
7471extern "C"
7472#endif
7473/* We use char because int might match the return type of a gcc2
7474   builtin and then its argument prototype would still apply.  */
7475char dlopen ();
7476int
7477main ()
7478{
7479dlopen ();
7480  ;
7481  return 0;
7482}
7483_ACEOF
7484rm -f conftest.$ac_objext conftest$ac_exeext
7485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486  (eval $ac_link) 2>&5
7487  ac_status=$?
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } &&
7490         { ac_try='test -s conftest$ac_exeext'
7491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492  (eval $ac_try) 2>&5
7493  ac_status=$?
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); }; }; then
7496  ac_cv_lib_dl_dlopen=yes
7497else
7498  echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
7500
7501ac_cv_lib_dl_dlopen=no
7502fi
7503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7504LIBS=$ac_check_lib_save_LIBS
7505fi
7506echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7507echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7508if test $ac_cv_lib_dl_dlopen = yes; then
7509  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7510else
7511  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7512echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7513if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  ac_check_lib_save_LIBS=$LIBS
7517LIBS="-lsvld  $LIBS"
7518cat >conftest.$ac_ext <<_ACEOF
7519#line $LINENO "configure"
7520/* confdefs.h.  */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h.  */
7525
7526/* Override any gcc2 internal prototype to avoid an error.  */
7527#ifdef __cplusplus
7528extern "C"
7529#endif
7530/* We use char because int might match the return type of a gcc2
7531   builtin and then its argument prototype would still apply.  */
7532char dlopen ();
7533int
7534main ()
7535{
7536dlopen ();
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541rm -f conftest.$ac_objext conftest$ac_exeext
7542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543  (eval $ac_link) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); } &&
7547         { ac_try='test -s conftest$ac_exeext'
7548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549  (eval $ac_try) 2>&5
7550  ac_status=$?
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); }; }; then
7553  ac_cv_lib_svld_dlopen=yes
7554else
7555  echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
7558ac_cv_lib_svld_dlopen=no
7559fi
7560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7561LIBS=$ac_check_lib_save_LIBS
7562fi
7563echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7564echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7565if test $ac_cv_lib_svld_dlopen = yes; then
7566  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7567else
7568  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7569echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7570if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7571  echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573  ac_check_lib_save_LIBS=$LIBS
7574LIBS="-ldld  $LIBS"
7575cat >conftest.$ac_ext <<_ACEOF
7576#line $LINENO "configure"
7577/* confdefs.h.  */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h.  */
7582
7583/* Override any gcc2 internal prototype to avoid an error.  */
7584#ifdef __cplusplus
7585extern "C"
7586#endif
7587/* We use char because int might match the return type of a gcc2
7588   builtin and then its argument prototype would still apply.  */
7589char dld_link ();
7590int
7591main ()
7592{
7593dld_link ();
7594  ;
7595  return 0;
7596}
7597_ACEOF
7598rm -f conftest.$ac_objext conftest$ac_exeext
7599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600  (eval $ac_link) 2>&5
7601  ac_status=$?
7602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603  (exit $ac_status); } &&
7604         { ac_try='test -s conftest$ac_exeext'
7605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606  (eval $ac_try) 2>&5
7607  ac_status=$?
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); }; }; then
7610  ac_cv_lib_dld_dld_link=yes
7611else
7612  echo "$as_me: failed program was:" >&5
7613sed 's/^/| /' conftest.$ac_ext >&5
7614
7615ac_cv_lib_dld_dld_link=no
7616fi
7617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7618LIBS=$ac_check_lib_save_LIBS
7619fi
7620echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7621echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7622if test $ac_cv_lib_dld_dld_link = yes; then
7623  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7624fi
7625
7626
7627fi
7628
7629
7630fi
7631
7632
7633fi
7634
7635
7636fi
7637
7638
7639fi
7640
7641    ;;
7642  esac
7643
7644  if test "x$lt_cv_dlopen" != xno; then
7645    enable_dlopen=yes
7646  else
7647    enable_dlopen=no
7648  fi
7649
7650  case $lt_cv_dlopen in
7651  dlopen)
7652    save_CPPFLAGS="$CPPFLAGS"
7653        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7654
7655    save_LDFLAGS="$LDFLAGS"
7656    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7657
7658    save_LIBS="$LIBS"
7659    LIBS="$lt_cv_dlopen_libs $LIBS"
7660
7661    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7662echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7663if test "${lt_cv_dlopen_self+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  	  if test "$cross_compiling" = yes; then :
7667  lt_cv_dlopen_self=cross
7668else
7669    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7670  lt_status=$lt_dlunknown
7671  cat > conftest.$ac_ext <<EOF
7672#line 7672 "configure"
7673#include "confdefs.h"
7674
7675#if HAVE_DLFCN_H
7676#include <dlfcn.h>
7677#endif
7678
7679#include <stdio.h>
7680
7681#ifdef RTLD_GLOBAL
7682#  define LT_DLGLOBAL		RTLD_GLOBAL
7683#else
7684#  ifdef DL_GLOBAL
7685#    define LT_DLGLOBAL		DL_GLOBAL
7686#  else
7687#    define LT_DLGLOBAL		0
7688#  endif
7689#endif
7690
7691/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7692   find out it does not work in some platform. */
7693#ifndef LT_DLLAZY_OR_NOW
7694#  ifdef RTLD_LAZY
7695#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7696#  else
7697#    ifdef DL_LAZY
7698#      define LT_DLLAZY_OR_NOW		DL_LAZY
7699#    else
7700#      ifdef RTLD_NOW
7701#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7702#      else
7703#        ifdef DL_NOW
7704#          define LT_DLLAZY_OR_NOW	DL_NOW
7705#        else
7706#          define LT_DLLAZY_OR_NOW	0
7707#        endif
7708#      endif
7709#    endif
7710#  endif
7711#endif
7712
7713#ifdef __cplusplus
7714extern "C" void exit (int);
7715#endif
7716
7717void fnord() { int i=42;}
7718int main ()
7719{
7720  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7721  int status = $lt_dlunknown;
7722
7723  if (self)
7724    {
7725      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7726      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7727      /* dlclose (self); */
7728    }
7729
7730    exit (status);
7731}
7732EOF
7733  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734  (eval $ac_link) 2>&5
7735  ac_status=$?
7736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7738    (./conftest; exit; ) 2>/dev/null
7739    lt_status=$?
7740    case x$lt_status in
7741      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7742      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7743      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7744    esac
7745  else :
7746    # compilation failed
7747    lt_cv_dlopen_self=no
7748  fi
7749fi
7750rm -fr conftest*
7751
7752
7753fi
7754echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7755echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7756
7757    if test "x$lt_cv_dlopen_self" = xyes; then
7758      LDFLAGS="$LDFLAGS $link_static_flag"
7759      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7760echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7761if test "${lt_cv_dlopen_self_static+set}" = set; then
7762  echo $ECHO_N "(cached) $ECHO_C" >&6
7763else
7764  	  if test "$cross_compiling" = yes; then :
7765  lt_cv_dlopen_self_static=cross
7766else
7767    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7768  lt_status=$lt_dlunknown
7769  cat > conftest.$ac_ext <<EOF
7770#line 7770 "configure"
7771#include "confdefs.h"
7772
7773#if HAVE_DLFCN_H
7774#include <dlfcn.h>
7775#endif
7776
7777#include <stdio.h>
7778
7779#ifdef RTLD_GLOBAL
7780#  define LT_DLGLOBAL		RTLD_GLOBAL
7781#else
7782#  ifdef DL_GLOBAL
7783#    define LT_DLGLOBAL		DL_GLOBAL
7784#  else
7785#    define LT_DLGLOBAL		0
7786#  endif
7787#endif
7788
7789/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7790   find out it does not work in some platform. */
7791#ifndef LT_DLLAZY_OR_NOW
7792#  ifdef RTLD_LAZY
7793#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7794#  else
7795#    ifdef DL_LAZY
7796#      define LT_DLLAZY_OR_NOW		DL_LAZY
7797#    else
7798#      ifdef RTLD_NOW
7799#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7800#      else
7801#        ifdef DL_NOW
7802#          define LT_DLLAZY_OR_NOW	DL_NOW
7803#        else
7804#          define LT_DLLAZY_OR_NOW	0
7805#        endif
7806#      endif
7807#    endif
7808#  endif
7809#endif
7810
7811#ifdef __cplusplus
7812extern "C" void exit (int);
7813#endif
7814
7815void fnord() { int i=42;}
7816int main ()
7817{
7818  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7819  int status = $lt_dlunknown;
7820
7821  if (self)
7822    {
7823      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7824      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7825      /* dlclose (self); */
7826    }
7827
7828    exit (status);
7829}
7830EOF
7831  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832  (eval $ac_link) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7836    (./conftest; exit; ) 2>/dev/null
7837    lt_status=$?
7838    case x$lt_status in
7839      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7840      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7841      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7842    esac
7843  else :
7844    # compilation failed
7845    lt_cv_dlopen_self_static=no
7846  fi
7847fi
7848rm -fr conftest*
7849
7850
7851fi
7852echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7853echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7854    fi
7855
7856    CPPFLAGS="$save_CPPFLAGS"
7857    LDFLAGS="$save_LDFLAGS"
7858    LIBS="$save_LIBS"
7859    ;;
7860  esac
7861
7862  case $lt_cv_dlopen_self in
7863  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7864  *) enable_dlopen_self=unknown ;;
7865  esac
7866
7867  case $lt_cv_dlopen_self_static in
7868  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7869  *) enable_dlopen_self_static=unknown ;;
7870  esac
7871fi
7872
7873
7874if test "$enable_shared" = yes && test "$GCC" = yes; then
7875  case $archive_cmds in
7876  *'~'*)
7877    # FIXME: we may have to deal with multi-command sequences.
7878    ;;
7879  '$CC '*)
7880    # Test whether the compiler implicitly links with -lc since on some
7881    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7882    # to ld, don't add -lc before -lgcc.
7883    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7884echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7885    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  $rm conftest*
7889    echo 'static int dummy;' > conftest.$ac_ext
7890
7891    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7892  (eval $ac_compile) 2>&5
7893  ac_status=$?
7894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895  (exit $ac_status); }; then
7896      soname=conftest
7897      lib=conftest
7898      libobjs=conftest.$ac_objext
7899      deplibs=
7900      wl=$lt_cv_prog_cc_wl
7901      compiler_flags=-v
7902      linker_flags=-v
7903      verstring=
7904      output_objdir=.
7905      libname=conftest
7906      save_allow_undefined_flag=$allow_undefined_flag
7907      allow_undefined_flag=
7908      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7909  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7910  ac_status=$?
7911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912  (exit $ac_status); }
7913      then
7914	lt_cv_archive_cmds_need_lc=no
7915      else
7916	lt_cv_archive_cmds_need_lc=yes
7917      fi
7918      allow_undefined_flag=$save_allow_undefined_flag
7919    else
7920      cat conftest.err 1>&5
7921    fi
7922fi
7923
7924    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7925echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7926    ;;
7927  esac
7928fi
7929need_lc=${lt_cv_archive_cmds_need_lc-yes}
7930
7931# The second clause should only fire when bootstrapping the
7932# libtool distribution, otherwise you forgot to ship ltmain.sh
7933# with your package, and you will get complaints that there are
7934# no rules to generate ltmain.sh.
7935if test -f "$ltmain"; then
7936  :
7937else
7938  # If there is no Makefile yet, we rely on a make rule to execute
7939  # `config.status --recheck' to rerun these tests and create the
7940  # libtool script then.
7941  test -f Makefile && make "$ltmain"
7942fi
7943
7944if test -f "$ltmain"; then
7945  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7946  $rm -f "${ofile}T"
7947
7948  echo creating $ofile
7949
7950  # Now quote all the things that may contain metacharacters while being
7951  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7952  # variables and quote the copies for generation of the libtool script.
7953  for var in echo old_CC old_CFLAGS \
7954    AR AR_FLAGS CC LD LN_S NM SHELL \
7955    reload_flag reload_cmds wl \
7956    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7957    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7958    library_names_spec soname_spec \
7959    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7960    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7961    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7962    old_striplib striplib file_magic_cmd export_symbols_cmds \
7963    deplibs_check_method allow_undefined_flag no_undefined_flag \
7964    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7965    global_symbol_to_c_name_address \
7966    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7967    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7968    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7969
7970    case $var in
7971    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7972    old_postinstall_cmds | old_postuninstall_cmds | \
7973    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7974    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7975    postinstall_cmds | postuninstall_cmds | \
7976    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7977      # Double-quote double-evaled strings.
7978      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7979      ;;
7980    *)
7981      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7982      ;;
7983    esac
7984  done
7985
7986  cat <<__EOF__ > "${ofile}T"
7987#! $SHELL
7988
7989# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7990# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7991# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7992#
7993# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7994# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7995#
7996# This program is free software; you can redistribute it and/or modify
7997# it under the terms of the GNU General Public License as published by
7998# the Free Software Foundation; either version 2 of the License, or
7999# (at your option) any later version.
8000#
8001# This program is distributed in the hope that it will be useful, but
8002# WITHOUT ANY WARRANTY; without even the implied warranty of
8003# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8004# General Public License for more details.
8005#
8006# You should have received a copy of the GNU General Public License
8007# along with this program; if not, write to the Free Software
8008# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8009#
8010# As a special exception to the GNU General Public License, if you
8011# distribute this file as part of a program that contains a
8012# configuration script generated by Autoconf, you may include it under
8013# the same distribution terms that you use for the rest of that program.
8014
8015# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8016Xsed="sed -e s/^X//"
8017
8018# The HP-UX ksh and POSIX shell print the target directory to stdout
8019# if CDPATH is set.
8020if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8021
8022# ### BEGIN LIBTOOL CONFIG
8023
8024# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8025
8026# Shell to use when invoking shell scripts.
8027SHELL=$lt_SHELL
8028
8029# Whether or not to build shared libraries.
8030build_libtool_libs=$enable_shared
8031
8032# Whether or not to build static libraries.
8033build_old_libs=$enable_static
8034
8035# Whether or not to add -lc for building shared libraries.
8036build_libtool_need_lc=$need_lc
8037
8038# Whether or not to optimize for fast installation.
8039fast_install=$enable_fast_install
8040
8041# The host system.
8042host_alias=$host_alias
8043host=$host
8044
8045# An echo program that does not interpret backslashes.
8046echo=$lt_echo
8047
8048# The archiver.
8049AR=$lt_AR
8050AR_FLAGS=$lt_AR_FLAGS
8051
8052# The default C compiler.
8053CC=$lt_CC
8054
8055# Is the compiler the GNU C compiler?
8056with_gcc=$GCC
8057
8058# The linker used to build libraries.
8059LD=$lt_LD
8060
8061# Whether we need hard or soft links.
8062LN_S=$lt_LN_S
8063
8064# A BSD-compatible nm program.
8065NM=$lt_NM
8066
8067# A symbol stripping program
8068STRIP=$STRIP
8069
8070# Used to examine libraries when file_magic_cmd begins "file"
8071MAGIC_CMD=$MAGIC_CMD
8072
8073# Used on cygwin: DLL creation program.
8074DLLTOOL="$DLLTOOL"
8075
8076# Used on cygwin: object dumper.
8077OBJDUMP="$OBJDUMP"
8078
8079# Used on cygwin: assembler.
8080AS="$AS"
8081
8082# The name of the directory that contains temporary libtool files.
8083objdir=$objdir
8084
8085# How to create reloadable object files.
8086reload_flag=$lt_reload_flag
8087reload_cmds=$lt_reload_cmds
8088
8089# How to pass a linker flag through the compiler.
8090wl=$lt_wl
8091
8092# Object file suffix (normally "o").
8093objext="$ac_objext"
8094
8095# Old archive suffix (normally "a").
8096libext="$libext"
8097
8098# Executable file suffix (normally "").
8099exeext="$exeext"
8100
8101# Additional compiler flags for building library objects.
8102pic_flag=$lt_pic_flag
8103pic_mode=$pic_mode
8104
8105# Does compiler simultaneously support -c and -o options?
8106compiler_c_o=$lt_compiler_c_o
8107
8108# Can we write directly to a .lo ?
8109compiler_o_lo=$lt_compiler_o_lo
8110
8111# Must we lock files when doing compilation ?
8112need_locks=$lt_need_locks
8113
8114# Do we need the lib prefix for modules?
8115need_lib_prefix=$need_lib_prefix
8116
8117# Do we need a version for libraries?
8118need_version=$need_version
8119
8120# Whether dlopen is supported.
8121dlopen_support=$enable_dlopen
8122
8123# Whether dlopen of programs is supported.
8124dlopen_self=$enable_dlopen_self
8125
8126# Whether dlopen of statically linked programs is supported.
8127dlopen_self_static=$enable_dlopen_self_static
8128
8129# Compiler flag to prevent dynamic linking.
8130link_static_flag=$lt_link_static_flag
8131
8132# Compiler flag to turn off builtin functions.
8133no_builtin_flag=$lt_no_builtin_flag
8134
8135# Compiler flag to allow reflexive dlopens.
8136export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8137
8138# Compiler flag to generate shared objects directly from archives.
8139whole_archive_flag_spec=$lt_whole_archive_flag_spec
8140
8141# Compiler flag to generate thread-safe objects.
8142thread_safe_flag_spec=$lt_thread_safe_flag_spec
8143
8144# Library versioning type.
8145version_type=$version_type
8146
8147# Format of library name prefix.
8148libname_spec=$lt_libname_spec
8149
8150# List of archive names.  First name is the real one, the rest are links.
8151# The last name is the one that the linker finds with -lNAME.
8152library_names_spec=$lt_library_names_spec
8153
8154# The coded name of the library, if different from the real name.
8155soname_spec=$lt_soname_spec
8156
8157# Commands used to build and install an old-style archive.
8158RANLIB=$lt_RANLIB
8159old_archive_cmds=$lt_old_archive_cmds
8160old_postinstall_cmds=$lt_old_postinstall_cmds
8161old_postuninstall_cmds=$lt_old_postuninstall_cmds
8162
8163# Create an old-style archive from a shared archive.
8164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8165
8166# Create a temporary old-style archive to link instead of a shared archive.
8167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8168
8169# Commands used to build and install a shared archive.
8170archive_cmds=$lt_archive_cmds
8171archive_expsym_cmds=$lt_archive_expsym_cmds
8172postinstall_cmds=$lt_postinstall_cmds
8173postuninstall_cmds=$lt_postuninstall_cmds
8174
8175# Commands to strip libraries.
8176old_striplib=$lt_old_striplib
8177striplib=$lt_striplib
8178
8179# Method to check whether dependent libraries are shared objects.
8180deplibs_check_method=$lt_deplibs_check_method
8181
8182# Command to use when deplibs_check_method == file_magic.
8183file_magic_cmd=$lt_file_magic_cmd
8184
8185# Flag that allows shared libraries with undefined symbols to be built.
8186allow_undefined_flag=$lt_allow_undefined_flag
8187
8188# Flag that forces no undefined symbols.
8189no_undefined_flag=$lt_no_undefined_flag
8190
8191# Commands used to finish a libtool library installation in a directory.
8192finish_cmds=$lt_finish_cmds
8193
8194# Same as above, but a single script fragment to be evaled but not shown.
8195finish_eval=$lt_finish_eval
8196
8197# Take the output of nm and produce a listing of raw symbols and C names.
8198global_symbol_pipe=$lt_global_symbol_pipe
8199
8200# Transform the output of nm in a proper C declaration
8201global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8202
8203# Transform the output of nm in a C name address pair
8204global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8205
8206# This is the shared library runtime path variable.
8207runpath_var=$runpath_var
8208
8209# This is the shared library path variable.
8210shlibpath_var=$shlibpath_var
8211
8212# Is shlibpath searched before the hard-coded library search path?
8213shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8214
8215# How to hardcode a shared library path into an executable.
8216hardcode_action=$hardcode_action
8217
8218# Whether we should hardcode library paths into libraries.
8219hardcode_into_libs=$hardcode_into_libs
8220
8221# Flag to hardcode \$libdir into a binary during linking.
8222# This must work even if \$libdir does not exist.
8223hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8224
8225# Whether we need a single -rpath flag with a separated argument.
8226hardcode_libdir_separator=$lt_hardcode_libdir_separator
8227
8228# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8229# resulting binary.
8230hardcode_direct=$hardcode_direct
8231
8232# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8233# resulting binary.
8234hardcode_minus_L=$hardcode_minus_L
8235
8236# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8237# the resulting binary.
8238hardcode_shlibpath_var=$hardcode_shlibpath_var
8239
8240# Variables whose values should be saved in libtool wrapper scripts and
8241# restored at relink time.
8242variables_saved_for_relink="$variables_saved_for_relink"
8243
8244# Whether libtool must link a program against all its dependency libraries.
8245link_all_deplibs=$link_all_deplibs
8246
8247# Compile-time system search path for libraries
8248sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8249
8250# Run-time system search path for libraries
8251sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8252
8253# Fix the shell variable \$srcfile for the compiler.
8254fix_srcfile_path="$fix_srcfile_path"
8255
8256# Set to yes if exported symbols are required.
8257always_export_symbols=$always_export_symbols
8258
8259# The commands to list exported symbols.
8260export_symbols_cmds=$lt_export_symbols_cmds
8261
8262# The commands to extract the exported symbol list from a shared archive.
8263extract_expsyms_cmds=$lt_extract_expsyms_cmds
8264
8265# Symbols that should not be listed in the preloaded symbols.
8266exclude_expsyms=$lt_exclude_expsyms
8267
8268# Symbols that must always be exported.
8269include_expsyms=$lt_include_expsyms
8270
8271# ### END LIBTOOL CONFIG
8272
8273__EOF__
8274
8275  case $host_os in
8276  aix3*)
8277    cat <<\EOF >> "${ofile}T"
8278
8279# AIX sometimes has problems with the GCC collect2 program.  For some
8280# reason, if we set the COLLECT_NAMES environment variable, the problems
8281# vanish in a puff of smoke.
8282if test "X${COLLECT_NAMES+set}" != Xset; then
8283  COLLECT_NAMES=
8284  export COLLECT_NAMES
8285fi
8286EOF
8287    ;;
8288  esac
8289
8290  case $host_os in
8291  cygwin* | mingw* | pw32* | os2*)
8292    cat <<'EOF' >> "${ofile}T"
8293      # This is a source program that is used to create dlls on Windows
8294      # Don't remove nor modify the starting and closing comments
8295# /* ltdll.c starts here */
8296# #define WIN32_LEAN_AND_MEAN
8297# #include <windows.h>
8298# #undef WIN32_LEAN_AND_MEAN
8299# #include <stdio.h>
8300#
8301# #ifndef __CYGWIN__
8302# #  ifdef __CYGWIN32__
8303# #    define __CYGWIN__ __CYGWIN32__
8304# #  endif
8305# #endif
8306#
8307# #ifdef __cplusplus
8308# extern "C" {
8309# #endif
8310# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8311# #ifdef __cplusplus
8312# }
8313# #endif
8314#
8315# #ifdef __CYGWIN__
8316# #include <cygwin/cygwin_dll.h>
8317# DECLARE_CYGWIN_DLL( DllMain );
8318# #endif
8319# HINSTANCE __hDllInstance_base;
8320#
8321# BOOL APIENTRY
8322# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8323# {
8324#   __hDllInstance_base = hInst;
8325#   return TRUE;
8326# }
8327# /* ltdll.c ends here */
8328	# This is a source program that is used to create import libraries
8329	# on Windows for dlls which lack them. Don't remove nor modify the
8330	# starting and closing comments
8331# /* impgen.c starts here */
8332# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8333#
8334#  This file is part of GNU libtool.
8335#
8336#  This program is free software; you can redistribute it and/or modify
8337#  it under the terms of the GNU General Public License as published by
8338#  the Free Software Foundation; either version 2 of the License, or
8339#  (at your option) any later version.
8340#
8341#  This program is distributed in the hope that it will be useful,
8342#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8343#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8344#  GNU General Public License for more details.
8345#
8346#  You should have received a copy of the GNU General Public License
8347#  along with this program; if not, write to the Free Software
8348#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8349#  */
8350#
8351# #include <stdio.h>		/* for printf() */
8352# #include <unistd.h>		/* for open(), lseek(), read() */
8353# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
8354# #include <string.h>		/* for strdup() */
8355#
8356# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8357# #ifndef O_BINARY
8358# #define O_BINARY 0
8359# #endif
8360#
8361# static unsigned int
8362# pe_get16 (fd, offset)
8363#      int fd;
8364#      int offset;
8365# {
8366#   unsigned char b[2];
8367#   lseek (fd, offset, SEEK_SET);
8368#   read (fd, b, 2);
8369#   return b[0] + (b[1]<<8);
8370# }
8371#
8372# static unsigned int
8373# pe_get32 (fd, offset)
8374#     int fd;
8375#     int offset;
8376# {
8377#   unsigned char b[4];
8378#   lseek (fd, offset, SEEK_SET);
8379#   read (fd, b, 4);
8380#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8381# }
8382#
8383# static unsigned int
8384# pe_as32 (ptr)
8385#      void *ptr;
8386# {
8387#   unsigned char *b = ptr;
8388#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8389# }
8390#
8391# int
8392# main (argc, argv)
8393#     int argc;
8394#     char *argv[];
8395# {
8396#     int dll;
8397#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8398#     unsigned long export_rva, export_size, nsections, secptr, expptr;
8399#     unsigned long name_rvas, nexp;
8400#     unsigned char *expdata, *erva;
8401#     char *filename, *dll_name;
8402#
8403#     filename = argv[1];
8404#
8405#     dll = open(filename, O_RDONLY|O_BINARY);
8406#     if (dll < 1)
8407# 	return 1;
8408#
8409#     dll_name = filename;
8410#
8411#     for (i=0; filename[i]; i++)
8412# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8413# 	    dll_name = filename + i +1;
8414#
8415#     pe_header_offset = pe_get32 (dll, 0x3c);
8416#     opthdr_ofs = pe_header_offset + 4 + 20;
8417#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8418#
8419#     if (num_entries < 1) /* no exports */
8420# 	return 1;
8421#
8422#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8423#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8424#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8425#     secptr = (pe_header_offset + 4 + 20 +
8426# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8427#
8428#     expptr = 0;
8429#     for (i = 0; i < nsections; i++)
8430#     {
8431# 	char sname[8];
8432# 	unsigned long secptr1 = secptr + 40 * i;
8433# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8434# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8435# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8436# 	lseek(dll, secptr1, SEEK_SET);
8437# 	read(dll, sname, 8);
8438# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8439# 	{
8440# 	    expptr = fptr + (export_rva - vaddr);
8441# 	    if (export_rva + export_size > vaddr + vsize)
8442# 		export_size = vsize - (export_rva - vaddr);
8443# 	    break;
8444# 	}
8445#     }
8446#
8447#     expdata = (unsigned char*)malloc(export_size);
8448#     lseek (dll, expptr, SEEK_SET);
8449#     read (dll, expdata, export_size);
8450#     erva = expdata - export_rva;
8451#
8452#     nexp = pe_as32 (expdata+24);
8453#     name_rvas = pe_as32 (expdata+32);
8454#
8455#     printf ("EXPORTS\n");
8456#     for (i = 0; i<nexp; i++)
8457#     {
8458# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8459# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8460#     }
8461#
8462#     return 0;
8463# }
8464# /* impgen.c ends here */
8465
8466EOF
8467    ;;
8468  esac
8469
8470  # We use sed instead of cat because bash on DJGPP gets confused if
8471  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8472  # text mode, it properly converts lines to CR/LF.  This bash problem
8473  # is reportedly fixed, but why not run on old versions too?
8474  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8475
8476  mv -f "${ofile}T" "$ofile" || \
8477    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8478  chmod +x "$ofile"
8479fi
8480
8481
8482
8483
8484
8485# This can be used to rebuild libtool when needed
8486LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8487
8488# Always use our own libtool.
8489LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8490
8491# Prevent multiple expansion
8492
8493
8494
8495# Checks for libraries.
8496
8497  succeeded=no
8498
8499  if test -z "$PKG_CONFIG"; then
8500    # Extract the first word of "pkg-config", so it can be a program name with args.
8501set dummy pkg-config; ac_word=$2
8502echo "$as_me:$LINENO: checking for $ac_word" >&5
8503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8504if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8505  echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507  case $PKG_CONFIG in
8508  [\\/]* | ?:[\\/]*)
8509  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8510  ;;
8511  *)
8512  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515  IFS=$as_save_IFS
8516  test -z "$as_dir" && as_dir=.
8517  for ac_exec_ext in '' $ac_executable_extensions; do
8518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521    break 2
8522  fi
8523done
8524done
8525
8526  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8527  ;;
8528esac
8529fi
8530PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8531
8532if test -n "$PKG_CONFIG"; then
8533  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8534echo "${ECHO_T}$PKG_CONFIG" >&6
8535else
8536  echo "$as_me:$LINENO: result: no" >&5
8537echo "${ECHO_T}no" >&6
8538fi
8539
8540  fi
8541
8542  if test "$PKG_CONFIG" = "no" ; then
8543     echo "*** The pkg-config script could not be found. Make sure it is"
8544     echo "*** in your path, or set the PKG_CONFIG environment variable"
8545     echo "*** to the full path to pkg-config."
8546     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8547  else
8548     PKG_CONFIG_MIN_VERSION=0.9.0
8549     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8550        echo "$as_me:$LINENO: checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" >&5
8551echo $ECHO_N "checking for glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0... $ECHO_C" >&6
8552
8553        if $PKG_CONFIG --exists "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0" ; then
8554            echo "$as_me:$LINENO: result: yes" >&5
8555echo "${ECHO_T}yes" >&6
8556            succeeded=yes
8557
8558            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
8559echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
8560            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
8561            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
8562echo "${ECHO_T}$GLIB_CFLAGS" >&6
8563
8564            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
8565echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
8566            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
8567            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
8568echo "${ECHO_T}$GLIB_LIBS" >&6
8569        else
8570            GLIB_CFLAGS=""
8571            GLIB_LIBS=""
8572            ## If we have a custom action on failure, don't print errors, but
8573            ## do set a variable so people can do so.
8574            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0"`
8575            echo $GLIB_PKG_ERRORS
8576        fi
8577
8578
8579
8580     else
8581        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8582        echo "*** See http://www.freedesktop.org/software/pkgconfig"
8583     fi
8584  fi
8585
8586  if test $succeeded = yes; then
8587     :
8588  else
8589     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8590echo "$as_me: error: Library requirements (glib-2.0 >= 1.3.1 gthread-2.0 >= 2.0 libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8591   { (exit 1); exit 1; }; }
8592  fi
8593
8594
8595
8596
8597# Checks for header files.
8598echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8599echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8600if test "${ac_cv_header_stdc+set}" = set; then
8601  echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603  cat >conftest.$ac_ext <<_ACEOF
8604#line $LINENO "configure"
8605/* confdefs.h.  */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h.  */
8610#include <stdlib.h>
8611#include <stdarg.h>
8612#include <string.h>
8613#include <float.h>
8614
8615int
8616main ()
8617{
8618
8619  ;
8620  return 0;
8621}
8622_ACEOF
8623rm -f conftest.$ac_objext
8624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625  (eval $ac_compile) 2>&5
8626  ac_status=$?
8627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628  (exit $ac_status); } &&
8629         { ac_try='test -s conftest.$ac_objext'
8630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631  (eval $ac_try) 2>&5
8632  ac_status=$?
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); }; }; then
8635  ac_cv_header_stdc=yes
8636else
8637  echo "$as_me: failed program was:" >&5
8638sed 's/^/| /' conftest.$ac_ext >&5
8639
8640ac_cv_header_stdc=no
8641fi
8642rm -f conftest.$ac_objext conftest.$ac_ext
8643
8644if test $ac_cv_header_stdc = yes; then
8645  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8646  cat >conftest.$ac_ext <<_ACEOF
8647#line $LINENO "configure"
8648/* confdefs.h.  */
8649_ACEOF
8650cat confdefs.h >>conftest.$ac_ext
8651cat >>conftest.$ac_ext <<_ACEOF
8652/* end confdefs.h.  */
8653#include <string.h>
8654
8655_ACEOF
8656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8657  $EGREP "memchr" >/dev/null 2>&1; then
8658  :
8659else
8660  ac_cv_header_stdc=no
8661fi
8662rm -f conftest*
8663
8664fi
8665
8666if test $ac_cv_header_stdc = yes; then
8667  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8668  cat >conftest.$ac_ext <<_ACEOF
8669#line $LINENO "configure"
8670/* confdefs.h.  */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h.  */
8675#include <stdlib.h>
8676
8677_ACEOF
8678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8679  $EGREP "free" >/dev/null 2>&1; then
8680  :
8681else
8682  ac_cv_header_stdc=no
8683fi
8684rm -f conftest*
8685
8686fi
8687
8688if test $ac_cv_header_stdc = yes; then
8689  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8690  if test "$cross_compiling" = yes; then
8691  :
8692else
8693  cat >conftest.$ac_ext <<_ACEOF
8694#line $LINENO "configure"
8695/* confdefs.h.  */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h.  */
8700#include <ctype.h>
8701#if ((' ' & 0x0FF) == 0x020)
8702# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8703# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8704#else
8705# define ISLOWER(c) \
8706                   (('a' <= (c) && (c) <= 'i') \
8707                     || ('j' <= (c) && (c) <= 'r') \
8708                     || ('s' <= (c) && (c) <= 'z'))
8709# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8710#endif
8711
8712#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8713int
8714main ()
8715{
8716  int i;
8717  for (i = 0; i < 256; i++)
8718    if (XOR (islower (i), ISLOWER (i))
8719        || toupper (i) != TOUPPER (i))
8720      exit(2);
8721  exit (0);
8722}
8723_ACEOF
8724rm -f conftest$ac_exeext
8725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726  (eval $ac_link) 2>&5
8727  ac_status=$?
8728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731  (eval $ac_try) 2>&5
8732  ac_status=$?
8733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734  (exit $ac_status); }; }; then
8735  :
8736else
8737  echo "$as_me: program exited with status $ac_status" >&5
8738echo "$as_me: failed program was:" >&5
8739sed 's/^/| /' conftest.$ac_ext >&5
8740
8741( exit $ac_status )
8742ac_cv_header_stdc=no
8743fi
8744rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8745fi
8746fi
8747fi
8748echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8749echo "${ECHO_T}$ac_cv_header_stdc" >&6
8750if test $ac_cv_header_stdc = yes; then
8751
8752cat >>confdefs.h <<\_ACEOF
8753#define STDC_HEADERS 1
8754_ACEOF
8755
8756fi
8757
8758
8759
8760
8761
8762
8763
8764
8765for ac_header in netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h
8766do
8767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769  echo "$as_me:$LINENO: checking for $ac_header" >&5
8770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772  echo $ECHO_N "(cached) $ECHO_C" >&6
8773fi
8774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776else
8777  # Is the header compilable?
8778echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8780cat >conftest.$ac_ext <<_ACEOF
8781#line $LINENO "configure"
8782/* confdefs.h.  */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h.  */
8787$ac_includes_default
8788#include <$ac_header>
8789_ACEOF
8790rm -f conftest.$ac_objext
8791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8792  (eval $ac_compile) 2>&5
8793  ac_status=$?
8794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795  (exit $ac_status); } &&
8796         { ac_try='test -s conftest.$ac_objext'
8797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798  (eval $ac_try) 2>&5
8799  ac_status=$?
8800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801  (exit $ac_status); }; }; then
8802  ac_header_compiler=yes
8803else
8804  echo "$as_me: failed program was:" >&5
8805sed 's/^/| /' conftest.$ac_ext >&5
8806
8807ac_header_compiler=no
8808fi
8809rm -f conftest.$ac_objext conftest.$ac_ext
8810echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8811echo "${ECHO_T}$ac_header_compiler" >&6
8812
8813# Is the header present?
8814echo "$as_me:$LINENO: checking $ac_header presence" >&5
8815echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8816cat >conftest.$ac_ext <<_ACEOF
8817#line $LINENO "configure"
8818/* confdefs.h.  */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h.  */
8823#include <$ac_header>
8824_ACEOF
8825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8827  ac_status=$?
8828  grep -v '^ *+' conftest.er1 >conftest.err
8829  rm -f conftest.er1
8830  cat conftest.err >&5
8831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832  (exit $ac_status); } >/dev/null; then
8833  if test -s conftest.err; then
8834    ac_cpp_err=$ac_c_preproc_warn_flag
8835  else
8836    ac_cpp_err=
8837  fi
8838else
8839  ac_cpp_err=yes
8840fi
8841if test -z "$ac_cpp_err"; then
8842  ac_header_preproc=yes
8843else
8844  echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847  ac_header_preproc=no
8848fi
8849rm -f conftest.err conftest.$ac_ext
8850echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8851echo "${ECHO_T}$ac_header_preproc" >&6
8852
8853# So?  What about this header?
8854case $ac_header_compiler:$ac_header_preproc in
8855  yes:no )
8856    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8857echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8858    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860    (
8861      cat <<\_ASBOX
8862## ------------------------------------ ##
8863## Report this to bug-autoconf@gnu.org. ##
8864## ------------------------------------ ##
8865_ASBOX
8866    ) |
8867      sed "s/^/$as_me: WARNING:     /" >&2
8868    ;;
8869  no:yes )
8870    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8876    (
8877      cat <<\_ASBOX
8878## ------------------------------------ ##
8879## Report this to bug-autoconf@gnu.org. ##
8880## ------------------------------------ ##
8881_ASBOX
8882    ) |
8883      sed "s/^/$as_me: WARNING:     /" >&2
8884    ;;
8885esac
8886echo "$as_me:$LINENO: checking for $ac_header" >&5
8887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889  echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891  eval "$as_ac_Header=$ac_header_preproc"
8892fi
8893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895
8896fi
8897if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898  cat >>confdefs.h <<_ACEOF
8899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900_ACEOF
8901
8902fi
8903
8904done
8905
8906
8907# Checks for typedefs, structures, and compiler characteristics.
8908echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8909echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8910if test "${ac_cv_header_time+set}" = set; then
8911  echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913  cat >conftest.$ac_ext <<_ACEOF
8914#line $LINENO "configure"
8915/* confdefs.h.  */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h.  */
8920#include <sys/types.h>
8921#include <sys/time.h>
8922#include <time.h>
8923
8924int
8925main ()
8926{
8927if ((struct tm *) 0)
8928return 0;
8929  ;
8930  return 0;
8931}
8932_ACEOF
8933rm -f conftest.$ac_objext
8934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935  (eval $ac_compile) 2>&5
8936  ac_status=$?
8937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938  (exit $ac_status); } &&
8939         { ac_try='test -s conftest.$ac_objext'
8940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941  (eval $ac_try) 2>&5
8942  ac_status=$?
8943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944  (exit $ac_status); }; }; then
8945  ac_cv_header_time=yes
8946else
8947  echo "$as_me: failed program was:" >&5
8948sed 's/^/| /' conftest.$ac_ext >&5
8949
8950ac_cv_header_time=no
8951fi
8952rm -f conftest.$ac_objext conftest.$ac_ext
8953fi
8954echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8955echo "${ECHO_T}$ac_cv_header_time" >&6
8956if test $ac_cv_header_time = yes; then
8957
8958cat >>confdefs.h <<\_ACEOF
8959#define TIME_WITH_SYS_TIME 1
8960_ACEOF
8961
8962fi
8963
8964echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8965echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8966if test "${ac_cv_c_const+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  cat >conftest.$ac_ext <<_ACEOF
8970#line $LINENO "configure"
8971/* confdefs.h.  */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h.  */
8976
8977int
8978main ()
8979{
8980/* FIXME: Include the comments suggested by Paul. */
8981#ifndef __cplusplus
8982  /* Ultrix mips cc rejects this.  */
8983  typedef int charset[2];
8984  const charset x;
8985  /* SunOS 4.1.1 cc rejects this.  */
8986  char const *const *ccp;
8987  char **p;
8988  /* NEC SVR4.0.2 mips cc rejects this.  */
8989  struct point {int x, y;};
8990  static struct point const zero = {0,0};
8991  /* AIX XL C 1.02.0.0 rejects this.
8992     It does not let you subtract one const X* pointer from another in
8993     an arm of an if-expression whose if-part is not a constant
8994     expression */
8995  const char *g = "string";
8996  ccp = &g + (g ? g-g : 0);
8997  /* HPUX 7.0 cc rejects these. */
8998  ++ccp;
8999  p = (char**) ccp;
9000  ccp = (char const *const *) p;
9001  { /* SCO 3.2v4 cc rejects this.  */
9002    char *t;
9003    char const *s = 0 ? (char *) 0 : (char const *) 0;
9004
9005    *t++ = 0;
9006  }
9007  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9008    int x[] = {25, 17};
9009    const int *foo = &x[0];
9010    ++foo;
9011  }
9012  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9013    typedef const int *iptr;
9014    iptr p = 0;
9015    ++p;
9016  }
9017  { /* AIX XL C 1.02.0.0 rejects this saying
9018       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9019    struct s { int j; const int *ap[3]; };
9020    struct s *b; b->j = 5;
9021  }
9022  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9023    const int foo = 10;
9024  }
9025#endif
9026
9027  ;
9028  return 0;
9029}
9030_ACEOF
9031rm -f conftest.$ac_objext
9032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033  (eval $ac_compile) 2>&5
9034  ac_status=$?
9035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036  (exit $ac_status); } &&
9037         { ac_try='test -s conftest.$ac_objext'
9038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039  (eval $ac_try) 2>&5
9040  ac_status=$?
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); }; }; then
9043  ac_cv_c_const=yes
9044else
9045  echo "$as_me: failed program was:" >&5
9046sed 's/^/| /' conftest.$ac_ext >&5
9047
9048ac_cv_c_const=no
9049fi
9050rm -f conftest.$ac_objext conftest.$ac_ext
9051fi
9052echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9053echo "${ECHO_T}$ac_cv_c_const" >&6
9054if test $ac_cv_c_const = no; then
9055
9056cat >>confdefs.h <<\_ACEOF
9057#define const
9058_ACEOF
9059
9060fi
9061
9062
9063# Checks for library functions.
9064
9065
9066
9067
9068for ac_func in bzero gethostbyname gethostname socket
9069do
9070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9071echo "$as_me:$LINENO: checking for $ac_func" >&5
9072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9073if eval "test \"\${$as_ac_var+set}\" = set"; then
9074  echo $ECHO_N "(cached) $ECHO_C" >&6
9075else
9076  cat >conftest.$ac_ext <<_ACEOF
9077#line $LINENO "configure"
9078/* confdefs.h.  */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h.  */
9083/* System header to define __stub macros and hopefully few prototypes,
9084    which can conflict with char $ac_func (); below.
9085    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9086    <limits.h> exists even on freestanding compilers.  */
9087#ifdef __STDC__
9088# include <limits.h>
9089#else
9090# include <assert.h>
9091#endif
9092/* Override any gcc2 internal prototype to avoid an error.  */
9093#ifdef __cplusplus
9094extern "C"
9095{
9096#endif
9097/* We use char because int might match the return type of a gcc2
9098   builtin and then its argument prototype would still apply.  */
9099char $ac_func ();
9100/* The GNU C library defines this for functions which it implements
9101    to always fail with ENOSYS.  Some functions are actually named
9102    something starting with __ and the normal name is an alias.  */
9103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9104choke me
9105#else
9106char (*f) () = $ac_func;
9107#endif
9108#ifdef __cplusplus
9109}
9110#endif
9111
9112int
9113main ()
9114{
9115return f != $ac_func;
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120rm -f conftest.$ac_objext conftest$ac_exeext
9121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122  (eval $ac_link) 2>&5
9123  ac_status=$?
9124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125  (exit $ac_status); } &&
9126         { ac_try='test -s conftest$ac_exeext'
9127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128  (eval $ac_try) 2>&5
9129  ac_status=$?
9130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131  (exit $ac_status); }; }; then
9132  eval "$as_ac_var=yes"
9133else
9134  echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137eval "$as_ac_var=no"
9138fi
9139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9140fi
9141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9143if test `eval echo '${'$as_ac_var'}'` = yes; then
9144  cat >>confdefs.h <<_ACEOF
9145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9146_ACEOF
9147
9148fi
9149done
9150
9151
9152if test "x$GCC" = "xyes"; then
9153  case " $CFLAGS " in
9154  *[\ \	]-Wall[\ \	]*) ;;
9155  *) CFLAGS="$CFLAGS -Wall" ;;
9156  esac
9157fi
9158
9159                              ac_config_files="$ac_config_files Makefile src/Makefile libmaitretarot.spec"
9160cat >confcache <<\_ACEOF
9161# This file is a shell script that caches the results of configure
9162# tests run on this system so they can be shared between configure
9163# scripts and configure runs, see configure's option --config-cache.
9164# It is not useful on other systems.  If it contains results you don't
9165# want to keep, you may remove or edit it.
9166#
9167# config.status only pays attention to the cache file if you give it
9168# the --recheck option to rerun configure.
9169#
9170# `ac_cv_env_foo' variables (set or unset) will be overridden when
9171# loading this file, other *unset* `ac_cv_foo' will be assigned the
9172# following values.
9173
9174_ACEOF
9175
9176# The following way of writing the cache mishandles newlines in values,
9177# but we know of no workaround that is simple, portable, and efficient.
9178# So, don't put newlines in cache variables' values.
9179# Ultrix sh set writes to stderr and can't be redirected directly,
9180# and sets the high bit in the cache file unless we assign to the vars.
9181{
9182  (set) 2>&1 |
9183    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9184    *ac_space=\ *)
9185      # `set' does not quote correctly, so add quotes (double-quote
9186      # substitution turns \\\\ into \\, and sed turns \\ into \).
9187      sed -n \
9188        "s/'/'\\\\''/g;
9189    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9190      ;;
9191    *)
9192      # `set' quotes correctly as required by POSIX, so do not add quotes.
9193      sed -n \
9194        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9195      ;;
9196    esac;
9197} |
9198  sed '
9199     t clear
9200     : clear
9201     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9202     t end
9203     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9204     : end' >>confcache
9205if diff $cache_file confcache >/dev/null 2>&1; then :; else
9206  if test -w $cache_file; then
9207    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9208    cat confcache >$cache_file
9209  else
9210    echo "not updating unwritable cache $cache_file"
9211  fi
9212fi
9213rm -f confcache
9214
9215test "x$prefix" = xNONE && prefix=$ac_default_prefix
9216# Let make expand exec_prefix.
9217test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9218
9219# VPATH may cause trouble with some makes, so we remove $(srcdir),
9220# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9221# trailing colons and then remove the whole line if VPATH becomes empty
9222# (actually we leave an empty line to preserve line numbers).
9223if test "x$srcdir" = x.; then
9224  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
9225s/:*\$(srcdir):*/:/;
9226s/:*\${srcdir}:*/:/;
9227s/:*@srcdir@:*/:/;
9228s/^\([^=]*=[ 	]*\):*/\1/;
9229s/:*$//;
9230s/^[^=]*=[ 	]*$//;
9231}'
9232fi
9233
9234DEFS=-DHAVE_CONFIG_H
9235
9236ac_libobjs=
9237ac_ltlibobjs=
9238for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9239  # 1. Remove the extension, and $U if already installed.
9240  ac_i=`echo "$ac_i" |
9241         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9242  # 2. Add them.
9243  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9244  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9245done
9246LIBOBJS=$ac_libobjs
9247
9248LTLIBOBJS=$ac_ltlibobjs
9249
9250
9251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9252  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9253Usually this means the macro was only invoked conditionally." >&5
9254echo "$as_me: error: conditional \"AMDEP\" was never defined.
9255Usually this means the macro was only invoked conditionally." >&2;}
9256   { (exit 1); exit 1; }; }
9257fi
9258if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9259  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9260Usually this means the macro was only invoked conditionally." >&5
9261echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9262Usually this means the macro was only invoked conditionally." >&2;}
9263   { (exit 1); exit 1; }; }
9264fi
9265if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9266  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9267Usually this means the macro was only invoked conditionally." >&5
9268echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9269Usually this means the macro was only invoked conditionally." >&2;}
9270   { (exit 1); exit 1; }; }
9271fi
9272
9273: ${CONFIG_STATUS=./config.status}
9274ac_clean_files_save=$ac_clean_files
9275ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9276{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9277echo "$as_me: creating $CONFIG_STATUS" >&6;}
9278cat >$CONFIG_STATUS <<_ACEOF
9279#! $SHELL
9280# Generated by $as_me.
9281# Run this file to recreate the current configuration.
9282# Compiler output produced by configure, useful for debugging
9283# configure, is in config.log if it exists.
9284
9285debug=false
9286ac_cs_recheck=false
9287ac_cs_silent=false
9288SHELL=\${CONFIG_SHELL-$SHELL}
9289_ACEOF
9290
9291cat >>$CONFIG_STATUS <<\_ACEOF
9292## --------------------- ##
9293## M4sh Initialization.  ##
9294## --------------------- ##
9295
9296# Be Bourne compatible
9297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9298  emulate sh
9299  NULLCMD=:
9300  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9301  # is contrary to our usage.  Disable this feature.
9302  alias -g '${1+"$@"}'='"$@"'
9303elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9304  set -o posix
9305fi
9306
9307# Support unset when possible.
9308if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9309  as_unset=unset
9310else
9311  as_unset=false
9312fi
9313
9314
9315# Work around bugs in pre-3.0 UWIN ksh.
9316$as_unset ENV MAIL MAILPATH
9317PS1='$ '
9318PS2='> '
9319PS4='+ '
9320
9321# NLS nuisances.
9322for as_var in \
9323  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9324  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9325  LC_TELEPHONE LC_TIME
9326do
9327  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9328    eval $as_var=C; export $as_var
9329  else
9330    $as_unset $as_var
9331  fi
9332done
9333
9334# Required to use basename.
9335if expr a : '\(a\)' >/dev/null 2>&1; then
9336  as_expr=expr
9337else
9338  as_expr=false
9339fi
9340
9341if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9342  as_basename=basename
9343else
9344  as_basename=false
9345fi
9346
9347
9348# Name of the executable.
9349as_me=`$as_basename "$0" ||
9350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9351	 X"$0" : 'X\(//\)$' \| \
9352	 X"$0" : 'X\(/\)$' \| \
9353	 .     : '\(.\)' 2>/dev/null ||
9354echo X/"$0" |
9355    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9356  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
9357  	  /^X\/\(\/\).*/{ s//\1/; q; }
9358  	  s/.*/./; q'`
9359
9360
9361# PATH needs CR, and LINENO needs CR and PATH.
9362# Avoid depending upon Character Ranges.
9363as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9364as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9365as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9366as_cr_digits='0123456789'
9367as_cr_alnum=$as_cr_Letters$as_cr_digits
9368
9369# The user is always right.
9370if test "${PATH_SEPARATOR+set}" != set; then
9371  echo "#! /bin/sh" >conf$$.sh
9372  echo  "exit 0"   >>conf$$.sh
9373  chmod +x conf$$.sh
9374  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9375    PATH_SEPARATOR=';'
9376  else
9377    PATH_SEPARATOR=:
9378  fi
9379  rm -f conf$$.sh
9380fi
9381
9382
9383  as_lineno_1=$LINENO
9384  as_lineno_2=$LINENO
9385  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9386  test "x$as_lineno_1" != "x$as_lineno_2" &&
9387  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9388  # Find who we are.  Look in the path if we contain no path at all
9389  # relative or not.
9390  case $0 in
9391    *[\\/]* ) as_myself=$0 ;;
9392    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395  IFS=$as_save_IFS
9396  test -z "$as_dir" && as_dir=.
9397  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9398done
9399
9400       ;;
9401  esac
9402  # We did not find ourselves, most probably we were run as `sh COMMAND'
9403  # in which case we are not to be found in the path.
9404  if test "x$as_myself" = x; then
9405    as_myself=$0
9406  fi
9407  if test ! -f "$as_myself"; then
9408    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9409echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9410   { (exit 1); exit 1; }; }
9411  fi
9412  case $CONFIG_SHELL in
9413  '')
9414    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9416do
9417  IFS=$as_save_IFS
9418  test -z "$as_dir" && as_dir=.
9419  for as_base in sh bash ksh sh5; do
9420	 case $as_dir in
9421	 /*)
9422	   if ("$as_dir/$as_base" -c '
9423  as_lineno_1=$LINENO
9424  as_lineno_2=$LINENO
9425  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9426  test "x$as_lineno_1" != "x$as_lineno_2" &&
9427  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9428	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9429	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9430	     CONFIG_SHELL=$as_dir/$as_base
9431	     export CONFIG_SHELL
9432	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9433	   fi;;
9434	 esac
9435       done
9436done
9437;;
9438  esac
9439
9440  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9441  # uniformly replaced by the line number.  The first 'sed' inserts a
9442  # line-number line before each line; the second 'sed' does the real
9443  # work.  The second script uses 'N' to pair each line-number line
9444  # with the numbered line, and appends trailing '-' during
9445  # substitution so that $LINENO is not a special case at line end.
9446  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9447  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9448  sed '=' <$as_myself |
9449    sed '
9450      N
9451      s,$,-,
9452      : loop
9453      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9454      t loop
9455      s,-$,,
9456      s,^['$as_cr_digits']*\n,,
9457    ' >$as_me.lineno &&
9458  chmod +x $as_me.lineno ||
9459    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9460echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9461   { (exit 1); exit 1; }; }
9462
9463  # Don't try to exec as it changes $[0], causing all sort of problems
9464  # (the dirname of $[0] is not the place where we might find the
9465  # original and so on.  Autoconf is especially sensible to this).
9466  . ./$as_me.lineno
9467  # Exit status is that of the last command.
9468  exit
9469}
9470
9471
9472case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9473  *c*,-n*) ECHO_N= ECHO_C='
9474' ECHO_T='	' ;;
9475  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9476  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9477esac
9478
9479if expr a : '\(a\)' >/dev/null 2>&1; then
9480  as_expr=expr
9481else
9482  as_expr=false
9483fi
9484
9485rm -f conf$$ conf$$.exe conf$$.file
9486echo >conf$$.file
9487if ln -s conf$$.file conf$$ 2>/dev/null; then
9488  # We could just check for DJGPP; but this test a) works b) is more generic
9489  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9490  if test -f conf$$.exe; then
9491    # Don't use ln at all; we don't have any links
9492    as_ln_s='cp -p'
9493  else
9494    as_ln_s='ln -s'
9495  fi
9496elif ln conf$$.file conf$$ 2>/dev/null; then
9497  as_ln_s=ln
9498else
9499  as_ln_s='cp -p'
9500fi
9501rm -f conf$$ conf$$.exe conf$$.file
9502
9503if mkdir -p . 2>/dev/null; then
9504  as_mkdir_p=:
9505else
9506  as_mkdir_p=false
9507fi
9508
9509as_executable_p="test -f"
9510
9511# Sed expression to map a string onto a valid CPP name.
9512as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9513
9514# Sed expression to map a string onto a valid variable name.
9515as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9516
9517
9518# IFS
9519# We need space, tab and new line, in precisely that order.
9520as_nl='
9521'
9522IFS=" 	$as_nl"
9523
9524# CDPATH.
9525$as_unset CDPATH
9526
9527exec 6>&1
9528
9529# Open the log real soon, to keep \$[0] and so on meaningful, and to
9530# report actual input values of CONFIG_FILES etc. instead of their
9531# values after options handling.  Logging --version etc. is OK.
9532exec 5>>config.log
9533{
9534  echo
9535  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9536## Running $as_me. ##
9537_ASBOX
9538} >&5
9539cat >&5 <<_CSEOF
9540
9541This file was extended by $as_me, which was
9542generated by GNU Autoconf 2.57.  Invocation command line was
9543
9544  CONFIG_FILES    = $CONFIG_FILES
9545  CONFIG_HEADERS  = $CONFIG_HEADERS
9546  CONFIG_LINKS    = $CONFIG_LINKS
9547  CONFIG_COMMANDS = $CONFIG_COMMANDS
9548  $ $0 $@
9549
9550_CSEOF
9551echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9552echo >&5
9553_ACEOF
9554
9555# Files that config.status was made for.
9556if test -n "$ac_config_files"; then
9557  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9558fi
9559
9560if test -n "$ac_config_headers"; then
9561  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9562fi
9563
9564if test -n "$ac_config_links"; then
9565  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9566fi
9567
9568if test -n "$ac_config_commands"; then
9569  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9570fi
9571
9572cat >>$CONFIG_STATUS <<\_ACEOF
9573
9574ac_cs_usage="\
9575\`$as_me' instantiates files from templates according to the
9576current configuration.
9577
9578Usage: $0 [OPTIONS] [FILE]...
9579
9580  -h, --help       print this help, then exit
9581  -V, --version    print version number, then exit
9582  -q, --quiet      do not print progress messages
9583  -d, --debug      don't remove temporary files
9584      --recheck    update $as_me by reconfiguring in the same conditions
9585  --file=FILE[:TEMPLATE]
9586                   instantiate the configuration file FILE
9587  --header=FILE[:TEMPLATE]
9588                   instantiate the configuration header FILE
9589
9590Configuration files:
9591$config_files
9592
9593Configuration headers:
9594$config_headers
9595
9596Configuration commands:
9597$config_commands
9598
9599Report bugs to <bug-autoconf@gnu.org>."
9600_ACEOF
9601
9602cat >>$CONFIG_STATUS <<_ACEOF
9603ac_cs_version="\\
9604config.status
9605configured by $0, generated by GNU Autoconf 2.57,
9606  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9607
9608Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9609Free Software Foundation, Inc.
9610This config.status script is free software; the Free Software Foundation
9611gives unlimited permission to copy, distribute and modify it."
9612srcdir=$srcdir
9613INSTALL="$INSTALL"
9614_ACEOF
9615
9616cat >>$CONFIG_STATUS <<\_ACEOF
9617# If no file are specified by the user, then we need to provide default
9618# value.  By we need to know if files were specified by the user.
9619ac_need_defaults=:
9620while test $# != 0
9621do
9622  case $1 in
9623  --*=*)
9624    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9625    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9626    ac_shift=:
9627    ;;
9628  -*)
9629    ac_option=$1
9630    ac_optarg=$2
9631    ac_shift=shift
9632    ;;
9633  *) # This is not an option, so the user has probably given explicit
9634     # arguments.
9635     ac_option=$1
9636     ac_need_defaults=false;;
9637  esac
9638
9639  case $ac_option in
9640  # Handling of the options.
9641_ACEOF
9642cat >>$CONFIG_STATUS <<\_ACEOF
9643  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9644    ac_cs_recheck=: ;;
9645  --version | --vers* | -V )
9646    echo "$ac_cs_version"; exit 0 ;;
9647  --he | --h)
9648    # Conflict between --help and --header
9649    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9650Try \`$0 --help' for more information." >&5
9651echo "$as_me: error: ambiguous option: $1
9652Try \`$0 --help' for more information." >&2;}
9653   { (exit 1); exit 1; }; };;
9654  --help | --hel | -h )
9655    echo "$ac_cs_usage"; exit 0 ;;
9656  --debug | --d* | -d )
9657    debug=: ;;
9658  --file | --fil | --fi | --f )
9659    $ac_shift
9660    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9661    ac_need_defaults=false;;
9662  --header | --heade | --head | --hea )
9663    $ac_shift
9664    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9665    ac_need_defaults=false;;
9666  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9667  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9668    ac_cs_silent=: ;;
9669
9670  # This is an error.
9671  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9672Try \`$0 --help' for more information." >&5
9673echo "$as_me: error: unrecognized option: $1
9674Try \`$0 --help' for more information." >&2;}
9675   { (exit 1); exit 1; }; } ;;
9676
9677  *) ac_config_targets="$ac_config_targets $1" ;;
9678
9679  esac
9680  shift
9681done
9682
9683ac_configure_extra_args=
9684
9685if $ac_cs_silent; then
9686  exec 6>/dev/null
9687  ac_configure_extra_args="$ac_configure_extra_args --silent"
9688fi
9689
9690_ACEOF
9691cat >>$CONFIG_STATUS <<_ACEOF
9692if \$ac_cs_recheck; then
9693  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9694  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9695fi
9696
9697_ACEOF
9698
9699cat >>$CONFIG_STATUS <<_ACEOF
9700#
9701# INIT-COMMANDS section.
9702#
9703
9704AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9705
9706_ACEOF
9707
9708
9709
9710cat >>$CONFIG_STATUS <<\_ACEOF
9711for ac_config_target in $ac_config_targets
9712do
9713  case "$ac_config_target" in
9714  # Handling of arguments.
9715  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9716  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9717  "libmaitretarot.spec" ) CONFIG_FILES="$CONFIG_FILES libmaitretarot.spec" ;;
9718  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9719  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9720  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9721echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9722   { (exit 1); exit 1; }; };;
9723  esac
9724done
9725
9726# If the user did not use the arguments to specify the items to instantiate,
9727# then the envvar interface is used.  Set only those that are not.
9728# We use the long form for the default assignment because of an extremely
9729# bizarre bug on SunOS 4.1.3.
9730if $ac_need_defaults; then
9731  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9732  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9733  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9734fi
9735
9736# Have a temporary directory for convenience.  Make it in the build tree
9737# simply because there is no reason to put it here, and in addition,
9738# creating and moving files from /tmp can sometimes cause problems.
9739# Create a temporary directory, and hook for its removal unless debugging.
9740$debug ||
9741{
9742  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9743  trap '{ (exit 1); exit 1; }' 1 2 13 15
9744}
9745
9746# Create a (secure) tmp directory for tmp files.
9747
9748{
9749  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9750  test -n "$tmp" && test -d "$tmp"
9751}  ||
9752{
9753  tmp=./confstat$$-$RANDOM
9754  (umask 077 && mkdir $tmp)
9755} ||
9756{
9757   echo "$me: cannot create a temporary directory in ." >&2
9758   { (exit 1); exit 1; }
9759}
9760
9761_ACEOF
9762
9763cat >>$CONFIG_STATUS <<_ACEOF
9764
9765#
9766# CONFIG_FILES section.
9767#
9768
9769# No need to generate the scripts if there are no CONFIG_FILES.
9770# This happens for instance when ./config.status config.h
9771if test -n "\$CONFIG_FILES"; then
9772  # Protect against being on the right side of a sed subst in config.status.
9773  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9774   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9775s,@SHELL@,$SHELL,;t t
9776s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9777s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9778s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9779s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9780s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9781s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9782s,@exec_prefix@,$exec_prefix,;t t
9783s,@prefix@,$prefix,;t t
9784s,@program_transform_name@,$program_transform_name,;t t
9785s,@bindir@,$bindir,;t t
9786s,@sbindir@,$sbindir,;t t
9787s,@libexecdir@,$libexecdir,;t t
9788s,@datadir@,$datadir,;t t
9789s,@sysconfdir@,$sysconfdir,;t t
9790s,@sharedstatedir@,$sharedstatedir,;t t
9791s,@localstatedir@,$localstatedir,;t t
9792s,@libdir@,$libdir,;t t
9793s,@includedir@,$includedir,;t t
9794s,@oldincludedir@,$oldincludedir,;t t
9795s,@infodir@,$infodir,;t t
9796s,@mandir@,$mandir,;t t
9797s,@build_alias@,$build_alias,;t t
9798s,@host_alias@,$host_alias,;t t
9799s,@target_alias@,$target_alias,;t t
9800s,@DEFS@,$DEFS,;t t
9801s,@ECHO_C@,$ECHO_C,;t t
9802s,@ECHO_N@,$ECHO_N,;t t
9803s,@ECHO_T@,$ECHO_T,;t t
9804s,@LIBS@,$LIBS,;t t
9805s,@build@,$build,;t t
9806s,@build_cpu@,$build_cpu,;t t
9807s,@build_vendor@,$build_vendor,;t t
9808s,@build_os@,$build_os,;t t
9809s,@host@,$host,;t t
9810s,@host_cpu@,$host_cpu,;t t
9811s,@host_vendor@,$host_vendor,;t t
9812s,@host_os@,$host_os,;t t
9813s,@target@,$target,;t t
9814s,@target_cpu@,$target_cpu,;t t
9815s,@target_vendor@,$target_vendor,;t t
9816s,@target_os@,$target_os,;t t
9817s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9818s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9819s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9820s,@CYGPATH_W@,$CYGPATH_W,;t t
9821s,@PACKAGE@,$PACKAGE,;t t
9822s,@VERSION@,$VERSION,;t t
9823s,@ACLOCAL@,$ACLOCAL,;t t
9824s,@AUTOCONF@,$AUTOCONF,;t t
9825s,@AUTOMAKE@,$AUTOMAKE,;t t
9826s,@AUTOHEADER@,$AUTOHEADER,;t t
9827s,@MAKEINFO@,$MAKEINFO,;t t
9828s,@AMTAR@,$AMTAR,;t t
9829s,@install_sh@,$install_sh,;t t
9830s,@STRIP@,$STRIP,;t t
9831s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9832s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9833s,@AWK@,$AWK,;t t
9834s,@SET_MAKE@,$SET_MAKE,;t t
9835s,@LIBMT_MAJOR@,$LIBMT_MAJOR,;t t
9836s,@LIBMT_MINOR@,$LIBMT_MINOR,;t t
9837s,@LIBMT_MICRO@,$LIBMT_MICRO,;t t
9838s,@CC@,$CC,;t t
9839s,@CFLAGS@,$CFLAGS,;t t
9840s,@LDFLAGS@,$LDFLAGS,;t t
9841s,@CPPFLAGS@,$CPPFLAGS,;t t
9842s,@ac_ct_CC@,$ac_ct_CC,;t t
9843s,@EXEEXT@,$EXEEXT,;t t
9844s,@OBJEXT@,$OBJEXT,;t t
9845s,@DEPDIR@,$DEPDIR,;t t
9846s,@am__include@,$am__include,;t t
9847s,@am__quote@,$am__quote,;t t
9848s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9849s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9850s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9851s,@CCDEPMODE@,$CCDEPMODE,;t t
9852s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9853s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9854s,@LN_S@,$LN_S,;t t
9855s,@ECHO@,$ECHO,;t t
9856s,@RANLIB@,$RANLIB,;t t
9857s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9858s,@CPP@,$CPP,;t t
9859s,@EGREP@,$EGREP,;t t
9860s,@LIBTOOL@,$LIBTOOL,;t t
9861s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9862s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
9863s,@GLIB_LIBS@,$GLIB_LIBS,;t t
9864s,@LIBOBJS@,$LIBOBJS,;t t
9865s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9866CEOF
9867
9868_ACEOF
9869
9870  cat >>$CONFIG_STATUS <<\_ACEOF
9871  # Split the substitutions into bite-sized pieces for seds with
9872  # small command number limits, like on Digital OSF/1 and HP-UX.
9873  ac_max_sed_lines=48
9874  ac_sed_frag=1 # Number of current file.
9875  ac_beg=1 # First line for current file.
9876  ac_end=$ac_max_sed_lines # Line after last line for current file.
9877  ac_more_lines=:
9878  ac_sed_cmds=
9879  while $ac_more_lines; do
9880    if test $ac_beg -gt 1; then
9881      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9882    else
9883      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9884    fi
9885    if test ! -s $tmp/subs.frag; then
9886      ac_more_lines=false
9887    else
9888      # The purpose of the label and of the branching condition is to
9889      # speed up the sed processing (if there are no `@' at all, there
9890      # is no need to browse any of the substitutions).
9891      # These are the two extra sed commands mentioned above.
9892      (echo ':t
9893  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9894      if test -z "$ac_sed_cmds"; then
9895  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9896      else
9897  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9898      fi
9899      ac_sed_frag=`expr $ac_sed_frag + 1`
9900      ac_beg=$ac_end
9901      ac_end=`expr $ac_end + $ac_max_sed_lines`
9902    fi
9903  done
9904  if test -z "$ac_sed_cmds"; then
9905    ac_sed_cmds=cat
9906  fi
9907fi # test -n "$CONFIG_FILES"
9908
9909_ACEOF
9910cat >>$CONFIG_STATUS <<\_ACEOF
9911for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9912  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9913  case $ac_file in
9914  - | *:- | *:-:* ) # input from stdin
9915        cat >$tmp/stdin
9916        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9917        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9918  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9919        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9920  * )   ac_file_in=$ac_file.in ;;
9921  esac
9922
9923  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9924  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9925$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9926         X"$ac_file" : 'X\(//\)[^/]' \| \
9927         X"$ac_file" : 'X\(//\)$' \| \
9928         X"$ac_file" : 'X\(/\)' \| \
9929         .     : '\(.\)' 2>/dev/null ||
9930echo X"$ac_file" |
9931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9932  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9933  	  /^X\(\/\/\)$/{ s//\1/; q; }
9934  	  /^X\(\/\).*/{ s//\1/; q; }
9935  	  s/.*/./; q'`
9936  { if $as_mkdir_p; then
9937    mkdir -p "$ac_dir"
9938  else
9939    as_dir="$ac_dir"
9940    as_dirs=
9941    while test ! -d "$as_dir"; do
9942      as_dirs="$as_dir $as_dirs"
9943      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9944$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9945         X"$as_dir" : 'X\(//\)[^/]' \| \
9946         X"$as_dir" : 'X\(//\)$' \| \
9947         X"$as_dir" : 'X\(/\)' \| \
9948         .     : '\(.\)' 2>/dev/null ||
9949echo X"$as_dir" |
9950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9951  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9952  	  /^X\(\/\/\)$/{ s//\1/; q; }
9953  	  /^X\(\/\).*/{ s//\1/; q; }
9954  	  s/.*/./; q'`
9955    done
9956    test ! -n "$as_dirs" || mkdir $as_dirs
9957  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9958echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9959   { (exit 1); exit 1; }; }; }
9960
9961  ac_builddir=.
9962
9963if test "$ac_dir" != .; then
9964  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9965  # A "../" for each directory in $ac_dir_suffix.
9966  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9967else
9968  ac_dir_suffix= ac_top_builddir=
9969fi
9970
9971case $srcdir in
9972  .)  # No --srcdir option.  We are building in place.
9973    ac_srcdir=.
9974    if test -z "$ac_top_builddir"; then
9975       ac_top_srcdir=.
9976    else
9977       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9978    fi ;;
9979  [\\/]* | ?:[\\/]* )  # Absolute path.
9980    ac_srcdir=$srcdir$ac_dir_suffix;
9981    ac_top_srcdir=$srcdir ;;
9982  *) # Relative path.
9983    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9984    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9985esac
9986# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9987# absolute.
9988ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9989ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9990ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9991ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9992
9993
9994  case $INSTALL in
9995  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9996  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9997  esac
9998
9999  if test x"$ac_file" != x-; then
10000    { echo "$as_me:$LINENO: creating $ac_file" >&5
10001echo "$as_me: creating $ac_file" >&6;}
10002    rm -f "$ac_file"
10003  fi
10004  # Let's still pretend it is `configure' which instantiates (i.e., don't
10005  # use $as_me), people would be surprised to read:
10006  #    /* config.h.  Generated by config.status.  */
10007  if test x"$ac_file" = x-; then
10008    configure_input=
10009  else
10010    configure_input="$ac_file.  "
10011  fi
10012  configure_input=$configure_input"Generated from `echo $ac_file_in |
10013                                     sed 's,.*/,,'` by configure."
10014
10015  # First look for the input files in the build tree, otherwise in the
10016  # src tree.
10017  ac_file_inputs=`IFS=:
10018    for f in $ac_file_in; do
10019      case $f in
10020      -) echo $tmp/stdin ;;
10021      [\\/$]*)
10022         # Absolute (can't be DOS-style, as IFS=:)
10023         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10024echo "$as_me: error: cannot find input file: $f" >&2;}
10025   { (exit 1); exit 1; }; }
10026         echo $f;;
10027      *) # Relative
10028         if test -f "$f"; then
10029           # Build tree
10030           echo $f
10031         elif test -f "$srcdir/$f"; then
10032           # Source tree
10033           echo $srcdir/$f
10034         else
10035           # /dev/null tree
10036           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10037echo "$as_me: error: cannot find input file: $f" >&2;}
10038   { (exit 1); exit 1; }; }
10039         fi;;
10040      esac
10041    done` || { (exit 1); exit 1; }
10042_ACEOF
10043cat >>$CONFIG_STATUS <<_ACEOF
10044  sed "$ac_vpsub
10045$extrasub
10046_ACEOF
10047cat >>$CONFIG_STATUS <<\_ACEOF
10048:t
10049/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10050s,@configure_input@,$configure_input,;t t
10051s,@srcdir@,$ac_srcdir,;t t
10052s,@abs_srcdir@,$ac_abs_srcdir,;t t
10053s,@top_srcdir@,$ac_top_srcdir,;t t
10054s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10055s,@builddir@,$ac_builddir,;t t
10056s,@abs_builddir@,$ac_abs_builddir,;t t
10057s,@top_builddir@,$ac_top_builddir,;t t
10058s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10059s,@INSTALL@,$ac_INSTALL,;t t
10060" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10061  rm -f $tmp/stdin
10062  if test x"$ac_file" != x-; then
10063    mv $tmp/out $ac_file
10064  else
10065    cat $tmp/out
10066    rm -f $tmp/out
10067  fi
10068
10069done
10070_ACEOF
10071cat >>$CONFIG_STATUS <<\_ACEOF
10072
10073#
10074# CONFIG_HEADER section.
10075#
10076
10077# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10078# NAME is the cpp macro being defined and VALUE is the value it is being given.
10079#
10080# ac_d sets the value in "#define NAME VALUE" lines.
10081ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
10082ac_dB='[ 	].*$,\1#\2'
10083ac_dC=' '
10084ac_dD=',;t'
10085# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10086ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
10087ac_uB='$,\1#\2define\3'
10088ac_uC=' '
10089ac_uD=',;t'
10090
10091for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10092  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10093  case $ac_file in
10094  - | *:- | *:-:* ) # input from stdin
10095        cat >$tmp/stdin
10096        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10097        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10098  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10099        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10100  * )   ac_file_in=$ac_file.in ;;
10101  esac
10102
10103  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10104echo "$as_me: creating $ac_file" >&6;}
10105
10106  # First look for the input files in the build tree, otherwise in the
10107  # src tree.
10108  ac_file_inputs=`IFS=:
10109    for f in $ac_file_in; do
10110      case $f in
10111      -) echo $tmp/stdin ;;
10112      [\\/$]*)
10113         # Absolute (can't be DOS-style, as IFS=:)
10114         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10115echo "$as_me: error: cannot find input file: $f" >&2;}
10116   { (exit 1); exit 1; }; }
10117         echo $f;;
10118      *) # Relative
10119         if test -f "$f"; then
10120           # Build tree
10121           echo $f
10122         elif test -f "$srcdir/$f"; then
10123           # Source tree
10124           echo $srcdir/$f
10125         else
10126           # /dev/null tree
10127           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10128echo "$as_me: error: cannot find input file: $f" >&2;}
10129   { (exit 1); exit 1; }; }
10130         fi;;
10131      esac
10132    done` || { (exit 1); exit 1; }
10133  # Remove the trailing spaces.
10134  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
10135
10136_ACEOF
10137
10138# Transform confdefs.h into two sed scripts, `conftest.defines' and
10139# `conftest.undefs', that substitutes the proper values into
10140# config.h.in to produce config.h.  The first handles `#define'
10141# templates, and the second `#undef' templates.
10142# And first: Protect against being on the right side of a sed subst in
10143# config.status.  Protect against being in an unquoted here document
10144# in config.status.
10145rm -f conftest.defines conftest.undefs
10146# Using a here document instead of a string reduces the quoting nightmare.
10147# Putting comments in sed scripts is not portable.
10148#
10149# `end' is used to avoid that the second main sed command (meant for
10150# 0-ary CPP macros) applies to n-ary macro definitions.
10151# See the Autoconf documentation for `clear'.
10152cat >confdef2sed.sed <<\_ACEOF
10153s/[\\&,]/\\&/g
10154s,[\\$`],\\&,g
10155t clear
10156: clear
10157s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10158t end
10159s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10160: end
10161_ACEOF
10162# If some macros were called several times there might be several times
10163# the same #defines, which is useless.  Nevertheless, we may not want to
10164# sort them, since we want the *last* AC-DEFINE to be honored.
10165uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10166sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10167rm -f confdef2sed.sed
10168
10169# This sed command replaces #undef with comments.  This is necessary, for
10170# example, in the case of _POSIX_SOURCE, which is predefined and required
10171# on some systems where configure will not decide to define it.
10172cat >>conftest.undefs <<\_ACEOF
10173s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10174_ACEOF
10175
10176# Break up conftest.defines because some shells have a limit on the size
10177# of here documents, and old seds have small limits too (100 cmds).
10178echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10179echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10180echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10181echo '  :' >>$CONFIG_STATUS
10182rm -f conftest.tail
10183while grep . conftest.defines >/dev/null
10184do
10185  # Write a limited-size here document to $tmp/defines.sed.
10186  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10187  # Speed up: don't consider the non `#define' lines.
10188  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
10189  # Work around the forget-to-reset-the-flag bug.
10190  echo 't clr' >>$CONFIG_STATUS
10191  echo ': clr' >>$CONFIG_STATUS
10192  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10193  echo 'CEOF
10194  sed -f $tmp/defines.sed $tmp/in >$tmp/out
10195  rm -f $tmp/in
10196  mv $tmp/out $tmp/in
10197' >>$CONFIG_STATUS
10198  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10199  rm -f conftest.defines
10200  mv conftest.tail conftest.defines
10201done
10202rm -f conftest.defines
10203echo '  fi # grep' >>$CONFIG_STATUS
10204echo >>$CONFIG_STATUS
10205
10206# Break up conftest.undefs because some shells have a limit on the size
10207# of here documents, and old seds have small limits too (100 cmds).
10208echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10209rm -f conftest.tail
10210while grep . conftest.undefs >/dev/null
10211do
10212  # Write a limited-size here document to $tmp/undefs.sed.
10213  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10214  # Speed up: don't consider the non `#undef'
10215  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
10216  # Work around the forget-to-reset-the-flag bug.
10217  echo 't clr' >>$CONFIG_STATUS
10218  echo ': clr' >>$CONFIG_STATUS
10219  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10220  echo 'CEOF
10221  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10222  rm -f $tmp/in
10223  mv $tmp/out $tmp/in
10224' >>$CONFIG_STATUS
10225  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10226  rm -f conftest.undefs
10227  mv conftest.tail conftest.undefs
10228done
10229rm -f conftest.undefs
10230
10231cat >>$CONFIG_STATUS <<\_ACEOF
10232  # Let's still pretend it is `configure' which instantiates (i.e., don't
10233  # use $as_me), people would be surprised to read:
10234  #    /* config.h.  Generated by config.status.  */
10235  if test x"$ac_file" = x-; then
10236    echo "/* Generated by configure.  */" >$tmp/config.h
10237  else
10238    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10239  fi
10240  cat $tmp/in >>$tmp/config.h
10241  rm -f $tmp/in
10242  if test x"$ac_file" != x-; then
10243    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10244      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10245echo "$as_me: $ac_file is unchanged" >&6;}
10246    else
10247      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10248$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10249         X"$ac_file" : 'X\(//\)[^/]' \| \
10250         X"$ac_file" : 'X\(//\)$' \| \
10251         X"$ac_file" : 'X\(/\)' \| \
10252         .     : '\(.\)' 2>/dev/null ||
10253echo X"$ac_file" |
10254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10255  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10256  	  /^X\(\/\/\)$/{ s//\1/; q; }
10257  	  /^X\(\/\).*/{ s//\1/; q; }
10258  	  s/.*/./; q'`
10259      { if $as_mkdir_p; then
10260    mkdir -p "$ac_dir"
10261  else
10262    as_dir="$ac_dir"
10263    as_dirs=
10264    while test ! -d "$as_dir"; do
10265      as_dirs="$as_dir $as_dirs"
10266      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10267$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10268         X"$as_dir" : 'X\(//\)[^/]' \| \
10269         X"$as_dir" : 'X\(//\)$' \| \
10270         X"$as_dir" : 'X\(/\)' \| \
10271         .     : '\(.\)' 2>/dev/null ||
10272echo X"$as_dir" |
10273    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10274  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10275  	  /^X\(\/\/\)$/{ s//\1/; q; }
10276  	  /^X\(\/\).*/{ s//\1/; q; }
10277  	  s/.*/./; q'`
10278    done
10279    test ! -n "$as_dirs" || mkdir $as_dirs
10280  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10281echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10282   { (exit 1); exit 1; }; }; }
10283
10284      rm -f $ac_file
10285      mv $tmp/config.h $ac_file
10286    fi
10287  else
10288    cat $tmp/config.h
10289    rm -f $tmp/config.h
10290  fi
10291_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
10292echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10293$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10294         X$ac_file : 'X\(//\)[^/]' \| \
10295         X$ac_file : 'X\(//\)$' \| \
10296         X$ac_file : 'X\(/\)' \| \
10297         .     : '\(.\)' 2>/dev/null ||
10298echo X$ac_file |
10299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10300  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10301  	  /^X\(\/\/\)$/{ s//\1/; q; }
10302  	  /^X\(\/\).*/{ s//\1/; q; }
10303  	  s/.*/./; q'`/stamp-h$_am_stamp_count
10304done
10305_ACEOF
10306cat >>$CONFIG_STATUS <<\_ACEOF
10307
10308#
10309# CONFIG_COMMANDS section.
10310#
10311for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10312  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10313  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10314  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10315$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10316         X"$ac_dest" : 'X\(//\)[^/]' \| \
10317         X"$ac_dest" : 'X\(//\)$' \| \
10318         X"$ac_dest" : 'X\(/\)' \| \
10319         .     : '\(.\)' 2>/dev/null ||
10320echo X"$ac_dest" |
10321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10322  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10323  	  /^X\(\/\/\)$/{ s//\1/; q; }
10324  	  /^X\(\/\).*/{ s//\1/; q; }
10325  	  s/.*/./; q'`
10326  ac_builddir=.
10327
10328if test "$ac_dir" != .; then
10329  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10330  # A "../" for each directory in $ac_dir_suffix.
10331  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10332else
10333  ac_dir_suffix= ac_top_builddir=
10334fi
10335
10336case $srcdir in
10337  .)  # No --srcdir option.  We are building in place.
10338    ac_srcdir=.
10339    if test -z "$ac_top_builddir"; then
10340       ac_top_srcdir=.
10341    else
10342       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10343    fi ;;
10344  [\\/]* | ?:[\\/]* )  # Absolute path.
10345    ac_srcdir=$srcdir$ac_dir_suffix;
10346    ac_top_srcdir=$srcdir ;;
10347  *) # Relative path.
10348    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10349    ac_top_srcdir=$ac_top_builddir$srcdir ;;
10350esac
10351# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10352# absolute.
10353ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10354ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10355ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10356ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10357
10358
10359  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10360echo "$as_me: executing $ac_dest commands" >&6;}
10361  case $ac_dest in
10362    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10363  # Strip MF so we end up with the name of the file.
10364  mf=`echo "$mf" | sed -e 's/:.*$//'`
10365  # Check whether this is an Automake generated Makefile or not.
10366  # We used to match only the files named `Makefile.in', but
10367  # some people rename them; so instead we look at the file content.
10368  # Grep'ing the first line is not enough: some people post-process
10369  # each Makefile.in and add a new line on top of each file to say so.
10370  # So let's grep whole file.
10371  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10372    dirpart=`(dirname "$mf") 2>/dev/null ||
10373$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10374         X"$mf" : 'X\(//\)[^/]' \| \
10375         X"$mf" : 'X\(//\)$' \| \
10376         X"$mf" : 'X\(/\)' \| \
10377         .     : '\(.\)' 2>/dev/null ||
10378echo X"$mf" |
10379    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10380  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10381  	  /^X\(\/\/\)$/{ s//\1/; q; }
10382  	  /^X\(\/\).*/{ s//\1/; q; }
10383  	  s/.*/./; q'`
10384  else
10385    continue
10386  fi
10387  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10388  # Extract the definition of DEP_FILES from the Makefile without
10389  # running `make'.
10390  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10391  test -z "$DEPDIR" && continue
10392  # When using ansi2knr, U may be empty or an underscore; expand it
10393  U=`sed -n -e '/^U = / s///p' < "$mf"`
10394  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10395  # We invoke sed twice because it is the simplest approach to
10396  # changing $(DEPDIR) to its actual value in the expansion.
10397  for file in `sed -n -e '
10398    /^DEP_FILES = .*\\\\$/ {
10399      s/^DEP_FILES = //
10400      :loop
10401	s/\\\\$//
10402	p
10403	n
10404	/\\\\$/ b loop
10405      p
10406    }
10407    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10408       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10409    # Make sure the directory exists.
10410    test -f "$dirpart/$file" && continue
10411    fdir=`(dirname "$file") 2>/dev/null ||
10412$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10413         X"$file" : 'X\(//\)[^/]' \| \
10414         X"$file" : 'X\(//\)$' \| \
10415         X"$file" : 'X\(/\)' \| \
10416         .     : '\(.\)' 2>/dev/null ||
10417echo X"$file" |
10418    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10419  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10420  	  /^X\(\/\/\)$/{ s//\1/; q; }
10421  	  /^X\(\/\).*/{ s//\1/; q; }
10422  	  s/.*/./; q'`
10423    { if $as_mkdir_p; then
10424    mkdir -p $dirpart/$fdir
10425  else
10426    as_dir=$dirpart/$fdir
10427    as_dirs=
10428    while test ! -d "$as_dir"; do
10429      as_dirs="$as_dir $as_dirs"
10430      as_dir=`(dirname "$as_dir") 2>/dev/null ||
10431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10432         X"$as_dir" : 'X\(//\)[^/]' \| \
10433         X"$as_dir" : 'X\(//\)$' \| \
10434         X"$as_dir" : 'X\(/\)' \| \
10435         .     : '\(.\)' 2>/dev/null ||
10436echo X"$as_dir" |
10437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10438  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10439  	  /^X\(\/\/\)$/{ s//\1/; q; }
10440  	  /^X\(\/\).*/{ s//\1/; q; }
10441  	  s/.*/./; q'`
10442    done
10443    test ! -n "$as_dirs" || mkdir $as_dirs
10444  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10445echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10446   { (exit 1); exit 1; }; }; }
10447
10448    # echo "creating $dirpart/$file"
10449    echo '# dummy' > "$dirpart/$file"
10450  done
10451done
10452 ;;
10453  esac
10454done
10455_ACEOF
10456
10457cat >>$CONFIG_STATUS <<\_ACEOF
10458
10459{ (exit 0); exit 0; }
10460_ACEOF
10461chmod +x $CONFIG_STATUS
10462ac_clean_files=$ac_clean_files_save
10463
10464
10465# configure is writing to config.log, and then calls config.status.
10466# config.status does its own redirection, appending to config.log.
10467# Unfortunately, on DOS this fails, as config.log is still kept open
10468# by configure, so config.status won't be able to write to it; its
10469# output is simply discarded.  So we exec the FD to /dev/null,
10470# effectively closing config.log, so it can be properly (re)opened and
10471# appended to by config.status.  When coming back to configure, we
10472# need to make the FD available again.
10473if test "$no_create" != yes; then
10474  ac_cs_success=:
10475  ac_config_status_args=
10476  test "$silent" = yes &&
10477    ac_config_status_args="$ac_config_status_args --quiet"
10478  exec 5>/dev/null
10479  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10480  exec 5>>config.log
10481  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10482  # would make configure fail if this is the last instruction.
10483  $ac_cs_success || { (exit 1); exit 1; }
10484fi
10485
10486