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