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