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